diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 8b687efe44..75c3406fac 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -32,40 +32,23 @@ docs/AvailableVLAN.md
docs/Bookmark.md
docs/BookmarkRequest.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/CircuitRequest.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/CircuitsCircuitTerminationsListCableEndParameter.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/ComponentNestedModule.md
-docs/ComponentNestedModuleRequest.md
docs/ConfigContext.md
docs/ConfigContextRequest.md
docs/ConfigTemplate.md
@@ -96,7 +79,6 @@ docs/ContactGroupRequest.md
docs/ContactRequest.md
docs/ContactRole.md
docs/ContactRoleRequest.md
-docs/ContentType.md
docs/CoreAPI.md
docs/CustomField.md
docs/CustomFieldChoiceSet.md
@@ -125,16 +107,23 @@ docs/DashboardRequest.md
docs/DataFile.md
docs/DataSource.md
docs/DataSourceRequest.md
-docs/DataSourceStatus.md
-docs/DataSourceStatusLabel.md
-docs/DataSourceStatusValue.md
-docs/DataSourceType.md
-docs/DataSourceTypeLabel.md
-docs/DataSourceTypeValue.md
+docs/DataSourceRequestType.md
docs/DcimAPI.md
+docs/DcimCablesListLengthUnitParameter.md
+docs/DcimConsolePortTemplatesListTypeParameter.md
+docs/DcimConsolePortsListSpeedParameter.md
+docs/DcimDeviceTypesListAirflowParameter.md
+docs/DcimDeviceTypesListWeightUnitParameter.md
docs/DcimDevicesRenderConfigCreateFormatParameter.md
+docs/DcimInterfacesListModeParameter.md
+docs/DcimPowerFeedsListPhaseParameter.md
+docs/DcimPowerFeedsListSupplyParameter.md
+docs/DcimPowerFeedsListTypeParameter.md
+docs/DcimPowerOutletTemplatesListTypeParameter.md
+docs/DcimPowerPortTemplatesListTypeParameter.md
docs/DcimRacksElevationRetrieveFaceParameter.md
docs/DcimRacksElevationRetrieveRenderParameter.md
+docs/DcimRacksListOuterUnitParameter.md
docs/Device.md
docs/DeviceAirflow.md
docs/DeviceAirflowLabel.md
@@ -143,31 +132,22 @@ docs/DeviceBay.md
docs/DeviceBayRequest.md
docs/DeviceBayTemplate.md
docs/DeviceBayTemplateRequest.md
-docs/DeviceDeviceRole.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/EventRule.md
docs/EventRuleActionType.md
docs/EventRuleActionTypeLabel.md
@@ -176,6 +156,12 @@ docs/EventRuleRequest.md
docs/ExportTemplate.md
docs/ExportTemplateRequest.md
docs/ExtrasAPI.md
+docs/ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md
+docs/ExtrasCustomFieldsListFilterLogicParameter.md
+docs/ExtrasCustomFieldsListUiEditableParameter.md
+docs/ExtrasCustomFieldsListUiVisibleParameter.md
+docs/ExtrasCustomLinksListButtonClassParameter.md
+docs/ExtrasObjectChangesListActionParameter.md
docs/FHRPGroup.md
docs/FHRPGroupAssignment.md
docs/FHRPGroupAssignmentRequest.md
@@ -190,7 +176,6 @@ docs/FrontPortTemplateRequest.md
docs/FrontPortType.md
docs/FrontPortTypeLabel.md
docs/FrontPortTypeValue.md
-docs/GenericObject.md
docs/GenericObjectRequest.md
docs/Group.md
docs/GroupRequest.md
@@ -218,12 +203,6 @@ 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
@@ -279,7 +258,9 @@ docs/InventoryItemRoleRequest.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
@@ -297,9 +278,6 @@ docs/L2VPNTypeLabel.md
docs/L2VPNTypeValue.md
docs/Location.md
docs/LocationRequest.md
-docs/LocationStatus.md
-docs/LocationStatusLabel.md
-docs/LocationStatusValue.md
docs/Manufacturer.md
docs/ManufacturerRequest.md
docs/Module.md
@@ -309,129 +287,33 @@ docs/ModuleBayNestedModuleRequest.md
docs/ModuleBayRequest.md
docs/ModuleBayTemplate.md
docs/ModuleBayTemplateRequest.md
-docs/ModuleNestedModuleBay.md
-docs/ModuleNestedModuleBayRequest.md
docs/ModuleRequest.md
-docs/ModuleStatus.md
-docs/ModuleStatusLabel.md
-docs/ModuleStatusValue.md
docs/ModuleType.md
docs/ModuleTypeRequest.md
-docs/NestedASN.md
-docs/NestedCable.md
-docs/NestedCableRequest.md
-docs/NestedCircuit.md
-docs/NestedCircuitRequest.md
-docs/NestedCircuitType.md
-docs/NestedCircuitTypeRequest.md
-docs/NestedCluster.md
-docs/NestedClusterGroup.md
-docs/NestedClusterGroupRequest.md
-docs/NestedClusterRequest.md
-docs/NestedClusterType.md
-docs/NestedClusterTypeRequest.md
-docs/NestedConfigTemplate.md
-docs/NestedConfigTemplateRequest.md
-docs/NestedContact.md
docs/NestedContactGroup.md
docs/NestedContactGroupRequest.md
-docs/NestedContactRequest.md
-docs/NestedContactRole.md
-docs/NestedContactRoleRequest.md
-docs/NestedCustomFieldChoiceSet.md
-docs/NestedCustomFieldChoiceSetRequest.md
-docs/NestedDataFile.md
-docs/NestedDataSource.md
-docs/NestedDataSourceRequest.md
docs/NestedDevice.md
docs/NestedDeviceRequest.md
-docs/NestedDeviceRole.md
-docs/NestedDeviceRoleRequest.md
-docs/NestedDeviceType.md
-docs/NestedDeviceTypeRequest.md
-docs/NestedFHRPGroup.md
-docs/NestedFHRPGroupRequest.md
-docs/NestedIKEPolicy.md
-docs/NestedIKEPolicyRequest.md
-docs/NestedIPAddress.md
-docs/NestedIPAddressRequest.md
-docs/NestedIPSecPolicy.md
-docs/NestedIPSecPolicyRequest.md
-docs/NestedIPSecProfile.md
-docs/NestedIPSecProfileRequest.md
+docs/NestedGroup.md
docs/NestedInterface.md
docs/NestedInterfaceRequest.md
docs/NestedInterfaceTemplate.md
docs/NestedInterfaceTemplateRequest.md
-docs/NestedInventoryItemRole.md
-docs/NestedInventoryItemRoleRequest.md
-docs/NestedL2VPN.md
-docs/NestedL2VPNRequest.md
-docs/NestedL2VPNTermination.md
-docs/NestedL2VPNTerminationRequest.md
-docs/NestedLocation.md
-docs/NestedLocationRequest.md
-docs/NestedManufacturer.md
-docs/NestedManufacturerRequest.md
docs/NestedModuleBay.md
docs/NestedModuleBayRequest.md
-docs/NestedModuleType.md
-docs/NestedModuleTypeRequest.md
-docs/NestedPlatform.md
-docs/NestedPlatformRequest.md
-docs/NestedPowerPanel.md
-docs/NestedPowerPanelRequest.md
-docs/NestedPowerPort.md
-docs/NestedPowerPortRequest.md
-docs/NestedPowerPortTemplate.md
-docs/NestedPowerPortTemplateRequest.md
-docs/NestedProvider.md
-docs/NestedProviderAccount.md
-docs/NestedProviderAccountRequest.md
-docs/NestedProviderNetwork.md
-docs/NestedProviderNetworkRequest.md
-docs/NestedProviderRequest.md
-docs/NestedRIR.md
-docs/NestedRIRRequest.md
-docs/NestedRack.md
-docs/NestedRackRequest.md
-docs/NestedRackRole.md
-docs/NestedRackRoleRequest.md
-docs/NestedRearPortTemplate.md
-docs/NestedRearPortTemplateRequest.md
docs/NestedRegion.md
docs/NestedRegionRequest.md
-docs/NestedRole.md
-docs/NestedRoleRequest.md
-docs/NestedSite.md
docs/NestedSiteGroup.md
docs/NestedSiteGroupRequest.md
-docs/NestedSiteRequest.md
docs/NestedTag.md
docs/NestedTagRequest.md
-docs/NestedTenant.md
docs/NestedTenantGroup.md
docs/NestedTenantGroupRequest.md
-docs/NestedTenantRequest.md
-docs/NestedTunnel.md
-docs/NestedTunnelGroup.md
-docs/NestedTunnelGroupRequest.md
-docs/NestedTunnelRequest.md
docs/NestedUser.md
-docs/NestedUserRequest.md
-docs/NestedVLAN.md
-docs/NestedVLANGroup.md
-docs/NestedVLANGroupRequest.md
-docs/NestedVLANRequest.md
docs/NestedVMInterface.md
docs/NestedVMInterfaceRequest.md
-docs/NestedVRF.md
-docs/NestedVRFRequest.md
-docs/NestedVirtualChassis.md
-docs/NestedVirtualChassisRequest.md
docs/NestedVirtualMachine.md
docs/NestedVirtualMachineRequest.md
-docs/NestedWirelessLANGroup.md
docs/NestedWirelessLANGroupRequest.md
docs/NestedWirelessLink.md
docs/NestedWirelessLinkRequest.md
@@ -441,6 +323,7 @@ docs/ObjectChangeActionLabel.md
docs/ObjectChangeActionValue.md
docs/ObjectPermission.md
docs/ObjectPermissionRequest.md
+docs/ObjectType.md
docs/PaginatedASNList.md
docs/PaginatedASNRangeList.md
docs/PaginatedAggregateList.md
@@ -463,7 +346,6 @@ docs/PaginatedContactAssignmentList.md
docs/PaginatedContactGroupList.md
docs/PaginatedContactList.md
docs/PaginatedContactRoleList.md
-docs/PaginatedContentTypeList.md
docs/PaginatedCustomFieldChoiceSetList.md
docs/PaginatedCustomFieldList.md
docs/PaginatedCustomLinkList.md
@@ -506,6 +388,7 @@ docs/PaginatedModuleList.md
docs/PaginatedModuleTypeList.md
docs/PaginatedObjectChangeList.md
docs/PaginatedObjectPermissionList.md
+docs/PaginatedObjectTypeList.md
docs/PaginatedPlatformList.md
docs/PaginatedPowerFeedList.md
docs/PaginatedPowerOutletList.md
@@ -528,6 +411,7 @@ docs/PaginatedRegionList.md
docs/PaginatedRoleList.md
docs/PaginatedRouteTargetList.md
docs/PaginatedSavedFilterList.md
+docs/PaginatedScriptList.md
docs/PaginatedServiceList.md
docs/PaginatedServiceTemplateList.md
docs/PaginatedSiteGroupList.md
@@ -553,37 +437,67 @@ docs/PaginatedWirelessLANGroupList.md
docs/PaginatedWirelessLANList.md
docs/PaginatedWirelessLinkList.md
docs/ParentChildStatus.md
+docs/ParentChildStatus1.md
+docs/PatchedASNRangeRequest.md
+docs/PatchedASNRequest.md
+docs/PatchedBookmarkRequest.md
docs/PatchedCableTerminationRequest.md
+docs/PatchedCircuitTerminationRequest.md
docs/PatchedCircuitTypeRequest.md
docs/PatchedClusterGroupRequest.md
docs/PatchedClusterTypeRequest.md
+docs/PatchedConfigContextRequest.md
+docs/PatchedConfigTemplateRequest.md
+docs/PatchedContactRequest.md
docs/PatchedContactRoleRequest.md
docs/PatchedCustomLinkRequest.md
docs/PatchedDashboardRequest.md
+docs/PatchedDeviceBayRequest.md
+docs/PatchedDeviceBayTemplateRequest.md
+docs/PatchedDeviceRoleRequest.md
+docs/PatchedExportTemplateRequest.md
+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/PatchedManufacturerRequest.md
+docs/PatchedModuleBayRequest.md
+docs/PatchedModuleBayTemplateRequest.md
+docs/PatchedObjectPermissionRequest.md
+docs/PatchedPlatformRequest.md
+docs/PatchedPowerPanelRequest.md
+docs/PatchedProviderAccountRequest.md
+docs/PatchedProviderNetworkRequest.md
+docs/PatchedProviderRequest.md
docs/PatchedRIRRequest.md
+docs/PatchedRackReservationRequest.md
docs/PatchedRackRoleRequest.md
docs/PatchedRoleRequest.md
+docs/PatchedRouteTargetRequest.md
docs/PatchedSavedFilterRequest.md
docs/PatchedTagRequest.md
+docs/PatchedTenantRequest.md
+docs/PatchedTokenRequest.md
docs/PatchedTunnelGroupRequest.md
+docs/PatchedUserRequest.md
docs/PatchedVLANGroupRequest.md
+docs/PatchedVRFRequest.md
+docs/PatchedVirtualDiskRequest.md
docs/PatchedWebhookRequest.md
docs/PatchedWebhookRequestHttpMethod.md
-docs/PatchedWritableASNRangeRequest.md
-docs/PatchedWritableASNRequest.md
docs/PatchedWritableAggregateRequest.md
-docs/PatchedWritableBookmarkRequest.md
docs/PatchedWritableCableRequest.md
+docs/PatchedWritableCableRequestLengthUnit.md
+docs/PatchedWritableCableRequestStatus.md
+docs/PatchedWritableCableRequestType.md
docs/PatchedWritableCircuitRequest.md
-docs/PatchedWritableCircuitTerminationRequest.md
+docs/PatchedWritableCircuitRequestStatus.md
docs/PatchedWritableClusterRequest.md
-docs/PatchedWritableConfigContextRequest.md
-docs/PatchedWritableConfigTemplateRequest.md
+docs/PatchedWritableClusterRequestStatus.md
docs/PatchedWritableConsolePortRequest.md
docs/PatchedWritableConsolePortRequestSpeed.md
docs/PatchedWritableConsolePortRequestType.md
@@ -592,7 +506,6 @@ docs/PatchedWritableConsoleServerPortRequest.md
docs/PatchedWritableConsoleServerPortTemplateRequest.md
docs/PatchedWritableContactAssignmentRequest.md
docs/PatchedWritableContactGroupRequest.md
-docs/PatchedWritableContactRequest.md
docs/PatchedWritableCustomFieldChoiceSetRequest.md
docs/PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md
docs/PatchedWritableCustomFieldRequest.md
@@ -601,14 +514,10 @@ docs/PatchedWritableCustomFieldRequestType.md
docs/PatchedWritableCustomFieldRequestUiEditable.md
docs/PatchedWritableCustomFieldRequestUiVisible.md
docs/PatchedWritableDataSourceRequest.md
-docs/PatchedWritableDeviceBayRequest.md
-docs/PatchedWritableDeviceBayTemplateRequest.md
-docs/PatchedWritableDeviceRoleRequest.md
docs/PatchedWritableDeviceTypeRequest.md
+docs/PatchedWritableDeviceTypeRequestWeightUnit.md
docs/PatchedWritableDeviceWithConfigContextRequest.md
docs/PatchedWritableEventRuleRequest.md
-docs/PatchedWritableExportTemplateRequest.md
-docs/PatchedWritableFHRPGroupAssignmentRequest.md
docs/PatchedWritableFrontPortRequest.md
docs/PatchedWritableFrontPortTemplateRequest.md
docs/PatchedWritableIKEPolicyRequest.md
@@ -629,18 +538,13 @@ docs/PatchedWritableIPSecProposalRequest.md
docs/PatchedWritableInterfaceRequest.md
docs/PatchedWritableInterfaceRequestMode.md
docs/PatchedWritableInterfaceTemplateRequest.md
-docs/PatchedWritableInventoryItemRequest.md
-docs/PatchedWritableInventoryItemTemplateRequest.md
docs/PatchedWritableJournalEntryRequest.md
docs/PatchedWritableL2VPNRequest.md
-docs/PatchedWritableL2VPNTerminationRequest.md
docs/PatchedWritableLocationRequest.md
-docs/PatchedWritableModuleBayRequest.md
-docs/PatchedWritableModuleBayTemplateRequest.md
+docs/PatchedWritableLocationRequestStatus.md
docs/PatchedWritableModuleRequest.md
+docs/PatchedWritableModuleRequestStatus.md
docs/PatchedWritableModuleTypeRequest.md
-docs/PatchedWritableObjectPermissionRequest.md
-docs/PatchedWritablePlatformRequest.md
docs/PatchedWritablePowerFeedRequest.md
docs/PatchedWritablePowerFeedRequestPhase.md
docs/PatchedWritablePowerFeedRequestStatus.md
@@ -651,48 +555,37 @@ docs/PatchedWritablePowerOutletRequestFeedLeg.md
docs/PatchedWritablePowerOutletRequestType.md
docs/PatchedWritablePowerOutletTemplateRequest.md
docs/PatchedWritablePowerOutletTemplateRequestType.md
-docs/PatchedWritablePowerPanelRequest.md
docs/PatchedWritablePowerPortRequest.md
docs/PatchedWritablePowerPortRequestType.md
docs/PatchedWritablePowerPortTemplateRequest.md
docs/PatchedWritablePowerPortTemplateRequestType.md
docs/PatchedWritablePrefixRequest.md
docs/PatchedWritablePrefixRequestStatus.md
-docs/PatchedWritableProviderAccountRequest.md
-docs/PatchedWritableProviderNetworkRequest.md
-docs/PatchedWritableProviderRequest.md
docs/PatchedWritableRackRequest.md
docs/PatchedWritableRackRequestOuterUnit.md
docs/PatchedWritableRackRequestStatus.md
docs/PatchedWritableRackRequestType.md
docs/PatchedWritableRackRequestWidth.md
-docs/PatchedWritableRackReservationRequest.md
docs/PatchedWritableRearPortRequest.md
docs/PatchedWritableRearPortTemplateRequest.md
docs/PatchedWritableRegionRequest.md
-docs/PatchedWritableRouteTargetRequest.md
docs/PatchedWritableServiceRequest.md
docs/PatchedWritableServiceRequestProtocol.md
docs/PatchedWritableServiceTemplateRequest.md
docs/PatchedWritableSiteGroupRequest.md
docs/PatchedWritableSiteRequest.md
docs/PatchedWritableTenantGroupRequest.md
-docs/PatchedWritableTenantRequest.md
-docs/PatchedWritableTokenRequest.md
docs/PatchedWritableTunnelRequest.md
docs/PatchedWritableTunnelRequestEncapsulation.md
docs/PatchedWritableTunnelRequestStatus.md
docs/PatchedWritableTunnelTerminationRequest.md
docs/PatchedWritableTunnelTerminationRequestRole.md
-docs/PatchedWritableUserRequest.md
docs/PatchedWritableVLANRequest.md
docs/PatchedWritableVLANRequestStatus.md
docs/PatchedWritableVMInterfaceRequest.md
-docs/PatchedWritableVRFRequest.md
docs/PatchedWritableVirtualChassisRequest.md
docs/PatchedWritableVirtualDeviceContextRequest.md
docs/PatchedWritableVirtualDeviceContextRequestStatus.md
-docs/PatchedWritableVirtualDiskRequest.md
docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
docs/PatchedWritableWirelessLANGroupRequest.md
docs/PatchedWritableWirelessLANRequest.md
@@ -725,11 +618,8 @@ docs/PowerPanel.md
docs/PowerPanelRequest.md
docs/PowerPort.md
docs/PowerPortRequest.md
-docs/PowerPortRequestType.md
docs/PowerPortTemplate.md
docs/PowerPortTemplateRequest.md
-docs/PowerPortType.md
-docs/PowerPortTypeLabel.md
docs/Prefix.md
docs/PrefixRequest.md
docs/PrefixStatus.md
@@ -745,25 +635,15 @@ docs/RIR.md
docs/RIRRequest.md
docs/Rack.md
docs/RackFace.md
-docs/RackOuterUnit.md
-docs/RackOuterUnitLabel.md
+docs/RackFace1.md
docs/RackRequest.md
-docs/RackRequestOuterUnit.md
-docs/RackRequestType.md
docs/RackReservation.md
docs/RackReservationRequest.md
docs/RackRole.md
docs/RackRoleRequest.md
-docs/RackStatus.md
-docs/RackStatusLabel.md
-docs/RackType.md
-docs/RackTypeLabel.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
@@ -778,6 +658,8 @@ docs/SavedFilter.md
docs/SavedFilterRequest.md
docs/SchemaAPI.md
docs/SchemaRetrieveFormatParameter.md
+docs/SchemaRetrieveLangParameter.md
+docs/Script.md
docs/Service.md
docs/ServiceProtocol.md
docs/ServiceProtocolLabel.md
@@ -792,23 +674,21 @@ docs/StatusAPI.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/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
@@ -832,8 +712,12 @@ 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
@@ -855,35 +739,25 @@ docs/WirelessLANStatusLabel.md
docs/WirelessLANStatusValue.md
docs/WirelessLink.md
docs/WirelessLinkRequest.md
+docs/WirelessLinkStatus.md
+docs/WirelessLinkStatusLabel.md
docs/WirelessRole.md
-docs/WritableASNRangeRequest.md
-docs/WritableASNRequest.md
docs/WritableAggregateRequest.md
-docs/WritableBookmarkRequest.md
docs/WritableCableRequest.md
docs/WritableCircuitRequest.md
-docs/WritableCircuitTerminationRequest.md
docs/WritableClusterRequest.md
-docs/WritableConfigContextRequest.md
-docs/WritableConfigTemplateRequest.md
docs/WritableConsolePortRequest.md
docs/WritableConsolePortTemplateRequest.md
docs/WritableConsoleServerPortRequest.md
docs/WritableConsoleServerPortTemplateRequest.md
docs/WritableContactAssignmentRequest.md
docs/WritableContactGroupRequest.md
-docs/WritableContactRequest.md
docs/WritableCustomFieldChoiceSetRequest.md
docs/WritableCustomFieldRequest.md
docs/WritableDataSourceRequest.md
-docs/WritableDeviceBayRequest.md
-docs/WritableDeviceBayTemplateRequest.md
-docs/WritableDeviceRoleRequest.md
docs/WritableDeviceTypeRequest.md
docs/WritableDeviceWithConfigContextRequest.md
docs/WritableEventRuleRequest.md
-docs/WritableExportTemplateRequest.md
-docs/WritableFHRPGroupAssignmentRequest.md
docs/WritableFrontPortRequest.md
docs/WritableFrontPortTemplateRequest.md
docs/WritableIKEPolicyRequest.md
@@ -895,50 +769,32 @@ docs/WritableIPSecProfileRequest.md
docs/WritableIPSecProposalRequest.md
docs/WritableInterfaceRequest.md
docs/WritableInterfaceTemplateRequest.md
-docs/WritableInventoryItemRequest.md
-docs/WritableInventoryItemTemplateRequest.md
docs/WritableJournalEntryRequest.md
docs/WritableL2VPNRequest.md
-docs/WritableL2VPNTerminationRequest.md
docs/WritableLocationRequest.md
-docs/WritableModuleBayRequest.md
-docs/WritableModuleBayTemplateRequest.md
docs/WritableModuleRequest.md
docs/WritableModuleTypeRequest.md
-docs/WritableObjectPermissionRequest.md
-docs/WritablePlatformRequest.md
docs/WritablePowerFeedRequest.md
docs/WritablePowerOutletRequest.md
docs/WritablePowerOutletTemplateRequest.md
-docs/WritablePowerPanelRequest.md
docs/WritablePowerPortRequest.md
docs/WritablePowerPortTemplateRequest.md
docs/WritablePrefixRequest.md
-docs/WritableProviderAccountRequest.md
-docs/WritableProviderNetworkRequest.md
-docs/WritableProviderRequest.md
docs/WritableRackRequest.md
-docs/WritableRackReservationRequest.md
docs/WritableRearPortRequest.md
docs/WritableRearPortTemplateRequest.md
docs/WritableRegionRequest.md
-docs/WritableRouteTargetRequest.md
docs/WritableServiceRequest.md
docs/WritableServiceTemplateRequest.md
docs/WritableSiteGroupRequest.md
docs/WritableSiteRequest.md
docs/WritableTenantGroupRequest.md
-docs/WritableTenantRequest.md
-docs/WritableTokenRequest.md
docs/WritableTunnelRequest.md
docs/WritableTunnelTerminationRequest.md
-docs/WritableUserRequest.md
docs/WritableVLANRequest.md
docs/WritableVMInterfaceRequest.md
-docs/WritableVRFRequest.md
docs/WritableVirtualChassisRequest.md
docs/WritableVirtualDeviceContextRequest.md
-docs/WritableVirtualDiskRequest.md
docs/WritableVirtualMachineWithConfigContextRequest.md
docs/WritableWirelessLANGroupRequest.md
docs/WritableWirelessLANRequest.md
@@ -965,39 +821,22 @@ model_available_vlan.go
model_bookmark.go
model_bookmark_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_request.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_terminations_list_cable_end_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_component_nested_module.go
-model_component_nested_module_request.go
model_config_context.go
model_config_context_request.go
model_config_template.go
@@ -1028,7 +867,6 @@ model_contact_group_request.go
model_contact_request.go
model_contact_role.go
model_contact_role_request.go
-model_content_type.go
model_custom_field.go
model_custom_field_choice_set.go
model_custom_field_choice_set_base_choices.go
@@ -1056,15 +894,22 @@ model_dashboard_request.go
model_data_file.go
model_data_source.go
model_data_source_request.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_data_source_request_type.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
+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_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_racks_elevation_retrieve_face_parameter.go
model_dcim_racks_elevation_retrieve_render_parameter.go
+model_dcim_racks_list_outer_unit_parameter.go
model_device.go
model_device_airflow.go
model_device_airflow_label.go
@@ -1073,31 +918,22 @@ model_device_bay.go
model_device_bay_request.go
model_device_bay_template.go
model_device_bay_template_request.go
-model_device_device_role.go
model_device_face.go
model_device_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_rule.go
model_event_rule_action_type.go
model_event_rule_action_type_label.go
@@ -1105,6 +941,12 @@ model_event_rule_action_type_value.go
model_event_rule_request.go
model_export_template.go
model_export_template_request.go
+model_extras_custom_field_choice_sets_list_base_choices_parameter.go
+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
@@ -1119,7 +961,6 @@ 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
@@ -1187,12 +1028,6 @@ 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
@@ -1207,7 +1042,9 @@ model_ip_sec_profile_mode_value.go
model_ip_sec_profile_request.go
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
@@ -1225,9 +1062,6 @@ 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_manufacturer.go
model_manufacturer_request.go
model_module.go
@@ -1237,129 +1071,33 @@ 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_nested_module_bay.go
-model_module_nested_module_bay_request.go
model_module_request.go
-model_module_status.go
-model_module_status_label.go
-model_module_status_value.go
model_module_type.go
model_module_type_request.go
-model_nested_asn.go
-model_nested_cable.go
-model_nested_cable_request.go
-model_nested_circuit.go
-model_nested_circuit_request.go
-model_nested_circuit_type.go
-model_nested_circuit_type_request.go
-model_nested_cluster.go
-model_nested_cluster_group.go
-model_nested_cluster_group_request.go
-model_nested_cluster_request.go
-model_nested_cluster_type.go
-model_nested_cluster_type_request.go
-model_nested_config_template.go
-model_nested_config_template_request.go
-model_nested_contact.go
model_nested_contact_group.go
model_nested_contact_group_request.go
-model_nested_contact_request.go
-model_nested_contact_role.go
-model_nested_contact_role_request.go
-model_nested_custom_field_choice_set.go
-model_nested_custom_field_choice_set_request.go
-model_nested_data_file.go
-model_nested_data_source.go
-model_nested_data_source_request.go
model_nested_device.go
model_nested_device_request.go
-model_nested_device_role.go
-model_nested_device_role_request.go
-model_nested_device_type.go
-model_nested_device_type_request.go
-model_nested_fhrp_group.go
-model_nested_fhrp_group_request.go
-model_nested_ike_policy.go
-model_nested_ike_policy_request.go
+model_nested_group.go
model_nested_interface.go
model_nested_interface_request.go
model_nested_interface_template.go
model_nested_interface_template_request.go
-model_nested_inventory_item_role.go
-model_nested_inventory_item_role_request.go
-model_nested_ip_address.go
-model_nested_ip_address_request.go
-model_nested_ip_sec_policy.go
-model_nested_ip_sec_policy_request.go
-model_nested_ip_sec_profile.go
-model_nested_ip_sec_profile_request.go
-model_nested_l2_vpn.go
-model_nested_l2_vpn_request.go
-model_nested_l2_vpn_termination.go
-model_nested_l2_vpn_termination_request.go
-model_nested_location.go
-model_nested_location_request.go
-model_nested_manufacturer.go
-model_nested_manufacturer_request.go
model_nested_module_bay.go
model_nested_module_bay_request.go
-model_nested_module_type.go
-model_nested_module_type_request.go
-model_nested_platform.go
-model_nested_platform_request.go
-model_nested_power_panel.go
-model_nested_power_panel_request.go
-model_nested_power_port.go
-model_nested_power_port_request.go
-model_nested_power_port_template.go
-model_nested_power_port_template_request.go
-model_nested_provider.go
-model_nested_provider_account.go
-model_nested_provider_account_request.go
-model_nested_provider_network.go
-model_nested_provider_network_request.go
-model_nested_provider_request.go
-model_nested_rack.go
-model_nested_rack_request.go
-model_nested_rack_role.go
-model_nested_rack_role_request.go
-model_nested_rear_port_template.go
-model_nested_rear_port_template_request.go
model_nested_region.go
model_nested_region_request.go
-model_nested_rir.go
-model_nested_rir_request.go
-model_nested_role.go
-model_nested_role_request.go
-model_nested_site.go
model_nested_site_group.go
model_nested_site_group_request.go
-model_nested_site_request.go
model_nested_tag.go
model_nested_tag_request.go
-model_nested_tenant.go
model_nested_tenant_group.go
model_nested_tenant_group_request.go
-model_nested_tenant_request.go
-model_nested_tunnel.go
-model_nested_tunnel_group.go
-model_nested_tunnel_group_request.go
-model_nested_tunnel_request.go
model_nested_user.go
-model_nested_user_request.go
-model_nested_virtual_chassis.go
-model_nested_virtual_chassis_request.go
model_nested_virtual_machine.go
model_nested_virtual_machine_request.go
-model_nested_vlan.go
-model_nested_vlan_group.go
-model_nested_vlan_group_request.go
-model_nested_vlan_request.go
model_nested_vm_interface.go
model_nested_vm_interface_request.go
-model_nested_vrf.go
-model_nested_vrf_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
@@ -1369,6 +1107,7 @@ model_object_change_action_label.go
model_object_change_action_value.go
model_object_permission.go
model_object_permission_request.go
+model_object_type.go
model_paginated_aggregate_list.go
model_paginated_asn_list.go
model_paginated_asn_range_list.go
@@ -1391,7 +1130,6 @@ model_paginated_contact_assignment_list.go
model_paginated_contact_group_list.go
model_paginated_contact_list.go
model_paginated_contact_role_list.go
-model_paginated_content_type_list.go
model_paginated_custom_field_choice_set_list.go
model_paginated_custom_field_list.go
model_paginated_custom_link_list.go
@@ -1434,6 +1172,7 @@ model_paginated_module_list.go
model_paginated_module_type_list.go
model_paginated_object_change_list.go
model_paginated_object_permission_list.go
+model_paginated_object_type_list.go
model_paginated_platform_list.go
model_paginated_power_feed_list.go
model_paginated_power_outlet_list.go
@@ -1456,6 +1195,7 @@ model_paginated_rir_list.go
model_paginated_role_list.go
model_paginated_route_target_list.go
model_paginated_saved_filter_list.go
+model_paginated_script_list.go
model_paginated_service_list.go
model_paginated_service_template_list.go
model_paginated_site_group_list.go
@@ -1481,37 +1221,67 @@ model_paginated_wireless_lan_group_list.go
model_paginated_wireless_lan_list.go
model_paginated_wireless_link_list.go
model_parent_child_status.go
+model_parent_child_status_1.go
+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_termination_request.go
model_patched_circuit_type_request.go
model_patched_cluster_group_request.go
model_patched_cluster_type_request.go
+model_patched_config_context_request.go
+model_patched_config_template_request.go
+model_patched_contact_request.go
model_patched_contact_role_request.go
model_patched_custom_link_request.go
model_patched_dashboard_request.go
+model_patched_device_bay_request.go
+model_patched_device_bay_template_request.go
+model_patched_device_role_request.go
+model_patched_export_template_request.go
+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_manufacturer_request.go
+model_patched_module_bay_request.go
+model_patched_module_bay_template_request.go
+model_patched_object_permission_request.go
+model_patched_platform_request.go
+model_patched_power_panel_request.go
+model_patched_provider_account_request.go
+model_patched_provider_network_request.go
+model_patched_provider_request.go
+model_patched_rack_reservation_request.go
model_patched_rack_role_request.go
model_patched_rir_request.go
model_patched_role_request.go
+model_patched_route_target_request.go
model_patched_saved_filter_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_disk_request.go
model_patched_vlan_group_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_asn_range_request.go
-model_patched_writable_asn_request.go
-model_patched_writable_bookmark_request.go
model_patched_writable_cable_request.go
+model_patched_writable_cable_request_length_unit.go
+model_patched_writable_cable_request_status.go
+model_patched_writable_cable_request_type.go
model_patched_writable_circuit_request.go
-model_patched_writable_circuit_termination_request.go
+model_patched_writable_circuit_request_status.go
model_patched_writable_cluster_request.go
-model_patched_writable_config_context_request.go
-model_patched_writable_config_template_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
@@ -1520,7 +1290,6 @@ model_patched_writable_console_server_port_request.go
model_patched_writable_console_server_port_template_request.go
model_patched_writable_contact_assignment_request.go
model_patched_writable_contact_group_request.go
-model_patched_writable_contact_request.go
model_patched_writable_custom_field_choice_set_request.go
model_patched_writable_custom_field_choice_set_request_base_choices.go
model_patched_writable_custom_field_request.go
@@ -1529,14 +1298,10 @@ model_patched_writable_custom_field_request_type.go
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_bay_request.go
-model_patched_writable_device_bay_template_request.go
-model_patched_writable_device_role_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_export_template_request.go
-model_patched_writable_fhrp_group_assignment_request.go
model_patched_writable_front_port_request.go
model_patched_writable_front_port_template_request.go
model_patched_writable_ike_policy_request.go
@@ -1548,8 +1313,6 @@ 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_inventory_item_template_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
@@ -1561,14 +1324,11 @@ model_patched_writable_ip_sec_profile_request.go
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_l2_vpn_termination_request.go
model_patched_writable_location_request.go
-model_patched_writable_module_bay_request.go
-model_patched_writable_module_bay_template_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_object_permission_request.go
-model_patched_writable_platform_request.go
model_patched_writable_power_feed_request.go
model_patched_writable_power_feed_request_phase.go
model_patched_writable_power_feed_request_status.go
@@ -1579,49 +1339,38 @@ model_patched_writable_power_outlet_request_feed_leg.go
model_patched_writable_power_outlet_request_type.go
model_patched_writable_power_outlet_template_request.go
model_patched_writable_power_outlet_template_request_type.go
-model_patched_writable_power_panel_request.go
model_patched_writable_power_port_request.go
model_patched_writable_power_port_request_type.go
model_patched_writable_power_port_template_request.go
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_provider_account_request.go
-model_patched_writable_provider_network_request.go
-model_patched_writable_provider_request.go
model_patched_writable_rack_request.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_reservation_request.go
model_patched_writable_rear_port_request.go
model_patched_writable_rear_port_template_request.go
model_patched_writable_region_request.go
-model_patched_writable_route_target_request.go
model_patched_writable_service_request.go
model_patched_writable_service_request_protocol.go
model_patched_writable_service_template_request.go
model_patched_writable_site_group_request.go
model_patched_writable_site_request.go
model_patched_writable_tenant_group_request.go
-model_patched_writable_tenant_request.go
-model_patched_writable_token_request.go
model_patched_writable_tunnel_request.go
model_patched_writable_tunnel_request_encapsulation.go
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_user_request.go
model_patched_writable_virtual_chassis_request.go
model_patched_writable_virtual_device_context_request.go
model_patched_writable_virtual_device_context_request_status.go
-model_patched_writable_virtual_disk_request.go
model_patched_writable_virtual_machine_with_config_context_request.go
model_patched_writable_vlan_request.go
model_patched_writable_vlan_request_status.go
model_patched_writable_vm_interface_request.go
-model_patched_writable_vrf_request.go
model_patched_writable_wireless_lan_group_request.go
model_patched_writable_wireless_lan_request.go
model_patched_writable_wireless_lan_request_status.go
@@ -1653,11 +1402,8 @@ model_power_panel.go
model_power_panel_request.go
model_power_port.go
model_power_port_request.go
-model_power_port_request_type.go
model_power_port_template.go
model_power_port_template_request.go
-model_power_port_type.go
-model_power_port_type_label.go
model_prefix.go
model_prefix_request.go
model_prefix_status.go
@@ -1671,25 +1417,15 @@ model_provider_network_request.go
model_provider_request.go
model_rack.go
model_rack_face.go
-model_rack_outer_unit.go
-model_rack_outer_unit_label.go
+model_rack_face_1.go
model_rack_request.go
-model_rack_request_outer_unit.go
-model_rack_request_type.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_label.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
@@ -1705,6 +1441,8 @@ model_route_target_request.go
model_saved_filter.go
model_saved_filter_request.go
model_schema_retrieve_format_parameter.go
+model_schema_retrieve_lang_parameter.go
+model_script.go
model_service.go
model_service_protocol.go
model_service_protocol_label.go
@@ -1717,23 +1455,21 @@ model_site_group_request.go
model_site_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_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
@@ -1748,8 +1484,12 @@ 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
@@ -1776,43 +1516,31 @@ 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_asn_range_request.go
-model_writable_asn_request.go
-model_writable_bookmark_request.go
model_writable_cable_request.go
model_writable_circuit_request.go
-model_writable_circuit_termination_request.go
model_writable_cluster_request.go
-model_writable_config_context_request.go
-model_writable_config_template_request.go
model_writable_console_port_request.go
model_writable_console_port_template_request.go
model_writable_console_server_port_request.go
model_writable_console_server_port_template_request.go
model_writable_contact_assignment_request.go
model_writable_contact_group_request.go
-model_writable_contact_request.go
model_writable_custom_field_choice_set_request.go
model_writable_custom_field_request.go
model_writable_data_source_request.go
-model_writable_device_bay_request.go
-model_writable_device_bay_template_request.go
-model_writable_device_role_request.go
model_writable_device_type_request.go
model_writable_device_with_config_context_request.go
model_writable_event_rule_request.go
-model_writable_export_template_request.go
-model_writable_fhrp_group_assignment_request.go
model_writable_front_port_request.go
model_writable_front_port_template_request.go
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_inventory_item_template_request.go
model_writable_ip_address_request.go
model_writable_ip_range_request.go
model_writable_ip_sec_policy_request.go
@@ -1820,47 +1548,31 @@ model_writable_ip_sec_profile_request.go
model_writable_ip_sec_proposal_request.go
model_writable_journal_entry_request.go
model_writable_l2_vpn_request.go
-model_writable_l2_vpn_termination_request.go
model_writable_location_request.go
-model_writable_module_bay_request.go
-model_writable_module_bay_template_request.go
model_writable_module_request.go
model_writable_module_type_request.go
-model_writable_object_permission_request.go
-model_writable_platform_request.go
model_writable_power_feed_request.go
model_writable_power_outlet_request.go
model_writable_power_outlet_template_request.go
-model_writable_power_panel_request.go
model_writable_power_port_request.go
model_writable_power_port_template_request.go
model_writable_prefix_request.go
-model_writable_provider_account_request.go
-model_writable_provider_network_request.go
-model_writable_provider_request.go
model_writable_rack_request.go
-model_writable_rack_reservation_request.go
model_writable_rear_port_request.go
model_writable_rear_port_template_request.go
model_writable_region_request.go
-model_writable_route_target_request.go
model_writable_service_request.go
model_writable_service_template_request.go
model_writable_site_group_request.go
model_writable_site_request.go
model_writable_tenant_group_request.go
-model_writable_tenant_request.go
-model_writable_token_request.go
model_writable_tunnel_request.go
model_writable_tunnel_termination_request.go
-model_writable_user_request.go
model_writable_virtual_chassis_request.go
model_writable_virtual_device_context_request.go
-model_writable_virtual_disk_request.go
model_writable_virtual_machine_with_config_context_request.go
model_writable_vlan_request.go
model_writable_vm_interface_request.go
-model_writable_vrf_request.go
model_writable_wireless_lan_group_request.go
model_writable_wireless_lan_request.go
model_writable_wireless_link_request.go
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 18bb4182dd..93c8ddab9f 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.5.0
+7.6.0
diff --git a/.openapi-generator/config.yaml b/.openapi-generator/config.yaml
index 9a93345ba1..afcf6ce2ba 100644
--- a/.openapi-generator/config.yaml
+++ b/.openapi-generator/config.yaml
@@ -2,7 +2,7 @@ generatorName: go
gitHost: github.com
gitUserId: netbox-community
-gitRepoId: go-netbox/v3
+gitRepoId: go-netbox/v4
packageName: netbox
diff --git a/api/netbox_docker_version b/api/netbox_docker_version
index 834f262953..dedcc7d433 100644
--- a/api/netbox_docker_version
+++ b/api/netbox_docker_version
@@ -1 +1 @@
-2.8.0
+2.9.1
diff --git a/api/netbox_version b/api/netbox_version
index d2577d9756..c4e41f9459 100644
--- a/api/netbox_version
+++ b/api/netbox_version
@@ -1 +1 @@
-3.7.7
+4.0.3
diff --git a/api/openapi.yaml b/api/openapi.yaml
index bca74e8346..75765d6508 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: NetBox REST API
- version: 3.7.7 (3.7)
+ version: 4.0.3 (4.0)
license:
name: Apache v2 License
paths:
@@ -15,11 +15,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -321,6 +353,10 @@ paths:
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -400,6 +436,126 @@ paths:
format: int32
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
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: pp_info__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: pp_info__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: pp_info__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: pp_info__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: pp_info__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: provider
+ schema:
+ type: array
+ items:
+ type: string
+ description: Provider (slug)
+ explode: true
+ style: form
+ - in: query
+ name: provider__n
+ schema:
+ type: array
+ items:
+ type: string
+ description: Provider (slug)
+ explode: true
+ style: form
+ - in: query
+ name: provider_id
+ schema:
+ type: array
+ items:
+ type: 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:
@@ -485,12 +641,24 @@ paths:
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:
@@ -659,10 +827,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/CircuitTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/CircuitTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -797,10 +965,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/CircuitTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/CircuitTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -828,10 +996,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/PatchedCircuitTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableCircuitTerminationRequest'
+ $ref: '#/components/schemas/PatchedCircuitTerminationRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -2257,6 +2425,26 @@ 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:
@@ -2532,6 +2720,26 @@ paths:
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:
@@ -2590,6 +2798,26 @@ paths:
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:
@@ -3405,10 +3633,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderAccountRequest'
+ $ref: '#/components/schemas/ProviderAccountRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderAccountRequest'
+ $ref: '#/components/schemas/ProviderAccountRequest'
required: true
security:
- cookieAuth: []
@@ -3543,10 +3771,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderAccountRequest'
+ $ref: '#/components/schemas/ProviderAccountRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderAccountRequest'
+ $ref: '#/components/schemas/ProviderAccountRequest'
required: true
security:
- cookieAuth: []
@@ -3574,10 +3802,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderAccountRequest'
+ $ref: '#/components/schemas/PatchedProviderAccountRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderAccountRequest'
+ $ref: '#/components/schemas/PatchedProviderAccountRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -4158,10 +4386,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderNetworkRequest'
+ $ref: '#/components/schemas/ProviderNetworkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderNetworkRequest'
+ $ref: '#/components/schemas/ProviderNetworkRequest'
required: true
security:
- cookieAuth: []
@@ -4296,10 +4524,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderNetworkRequest'
+ $ref: '#/components/schemas/ProviderNetworkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderNetworkRequest'
+ $ref: '#/components/schemas/ProviderNetworkRequest'
required: true
security:
- cookieAuth: []
@@ -4327,10 +4555,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderNetworkRequest'
+ $ref: '#/components/schemas/PatchedProviderNetworkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderNetworkRequest'
+ $ref: '#/components/schemas/PatchedProviderNetworkRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -5079,10 +5307,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderRequest'
+ $ref: '#/components/schemas/ProviderRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderRequest'
+ $ref: '#/components/schemas/ProviderRequest'
required: true
security:
- cookieAuth: []
@@ -5217,10 +5445,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableProviderRequest'
+ $ref: '#/components/schemas/ProviderRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableProviderRequest'
+ $ref: '#/components/schemas/ProviderRequest'
required: true
security:
- cookieAuth: []
@@ -5248,10 +5476,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderRequest'
+ $ref: '#/components/schemas/PatchedProviderRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableProviderRequest'
+ $ref: '#/components/schemas/PatchedProviderRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -6022,6 +6250,64 @@ 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:
@@ -6197,6 +6483,90 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: source_url
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__empty
+ schema:
+ type: boolean
+ - in: query
+ name: source_url__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: source_url__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: status
schema:
@@ -6655,6 +7025,11 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: job_id
+ schema:
+ type: string
+ format: uuid
- name: limit
required: false
in: query
@@ -6938,12 +7313,92 @@ paths:
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
+ 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:
@@ -7002,12 +7457,80 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- name: limit
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- name: offset
required: false
in: query
@@ -7086,6 +7609,11 @@ paths:
name: termination_type__n
schema:
type: string
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- dcim
security:
@@ -7811,11 +8339,47 @@ paths:
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
@@ -8521,6 +9085,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: devicetype_id
schema:
@@ -8599,6 +9183,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:
@@ -8673,6 +9341,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: moduletype_id
schema:
@@ -8799,11 +9487,39 @@ paths:
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:
@@ -9041,11 +9757,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -9244,42 +9992,6 @@ 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_type
schema:
@@ -9563,6 +10275,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -9873,6 +10589,72 @@ paths:
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:
@@ -10353,6 +11135,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: devicetype_id
schema:
@@ -10431,6 +11233,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:
@@ -10505,6 +11391,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: moduletype_id
schema:
@@ -10631,11 +11537,39 @@ paths:
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:
@@ -10873,11 +11807,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -11076,42 +12042,6 @@ 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_type
schema:
@@ -11395,6 +12325,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -11705,6 +12639,72 @@ paths:
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:
@@ -12185,6 +13185,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: devicetype_id
schema:
@@ -12261,6 +13279,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:
@@ -12462,10 +13564,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/DeviceBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/DeviceBayTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -12600,10 +13702,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/DeviceBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/DeviceBayTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -12631,10 +13733,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceBayTemplateRequest'
+ $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -12859,79 +13961,83 @@ paths:
explode: true
style: form
- in: query
- name: device_role
+ name: device_type
schema:
type: array
items:
type: string
- description: Device role (slug)
+ description: Device type (model)
explode: true
style: form
- in: query
- name: device_role__n
+ name: device_type__n
schema:
type: array
items:
type: string
- description: Device role (slug)
+ description: Device type (model)
explode: true
style: form
- in: query
- name: device_role_id
+ name: device_type_id
schema:
type: array
items:
type: integer
- description: Device role (ID)
+ description: Device type (ID)
explode: true
style: form
- in: query
- name: device_role_id__n
+ name: device_type_id__n
schema:
type: array
items:
type: integer
- description: Device role (ID)
+ description: Device type (ID)
explode: true
style: form
- in: query
- name: device_type
+ name: id
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__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__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: id__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: id__lt
schema:
type: array
items:
type: integer
- description: Device type (ID)
+ format: int32
explode: true
style: form
- in: query
- name: id
+ name: id__lte
schema:
type: array
items:
@@ -12940,11 +14046,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:
@@ -12953,39 +14055,43 @@ paths:
explode: true
style: form
- in: query
- name: id__gte
+ 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: id__lt
+ 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: id__lte
+ 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: id__n
+ 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
@@ -13541,10 +14647,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceBayRequest'
+ $ref: '#/components/schemas/DeviceBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceBayRequest'
+ $ref: '#/components/schemas/DeviceBayRequest'
required: true
security:
- cookieAuth: []
@@ -13679,10 +14785,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceBayRequest'
+ $ref: '#/components/schemas/DeviceBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceBayRequest'
+ $ref: '#/components/schemas/DeviceBayRequest'
required: true
security:
- cookieAuth: []
@@ -13710,10 +14816,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceBayRequest'
+ $ref: '#/components/schemas/PatchedDeviceBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceBayRequest'
+ $ref: '#/components/schemas/PatchedDeviceBayRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -14366,10 +15472,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceRoleRequest'
+ $ref: '#/components/schemas/DeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceRoleRequest'
+ $ref: '#/components/schemas/DeviceRoleRequest'
required: true
security:
- cookieAuth: []
@@ -14504,10 +15610,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableDeviceRoleRequest'
+ $ref: '#/components/schemas/DeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableDeviceRoleRequest'
+ $ref: '#/components/schemas/DeviceRoleRequest'
required: true
security:
- cookieAuth: []
@@ -14535,10 +15641,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceRoleRequest'
+ $ref: '#/components/schemas/PatchedDeviceRoleRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableDeviceRoleRequest'
+ $ref: '#/components/schemas/PatchedDeviceRoleRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -14577,16 +15683,174 @@ paths:
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
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: console_port_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: console_port_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: console_ports
schema:
type: boolean
description: Has console ports
+ - in: query
+ name: console_server_port_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: console_server_port_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_template_count__lt
+ schema:
+ type: array
+ items:
+ 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:
@@ -14782,6 +16046,64 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: device_bay_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: device_bay_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ 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:
@@ -14791,6 +16113,64 @@ paths:
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:
@@ -14859,11 +16239,127 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: interface_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: interface_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: interface_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: interface_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: interface_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: interface_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: interface_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: interfaces
schema:
type: boolean
description: Has interfaces
+ - in: query
+ name: inventory_item_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: inventory_item_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_template_count__lt
+ schema:
+ type: array
+ items:
+ 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:
@@ -15067,6 +16563,64 @@ paths:
schema:
type: string
format: uuid
+ - in: query
+ name: module_bay_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: module_bay_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: module_bays
schema:
@@ -15173,11 +16727,127 @@ paths:
schema:
type: boolean
description: Has pass-through ports
+ - in: query
+ name: power_outlet_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: power_outlet_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: power_outlets
schema:
type: boolean
description: Has power outlets
+ - in: query
+ name: power_port_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: power_port_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: power_ports
schema:
@@ -15188,6 +16858,64 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: rear_port_template_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_template_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: rear_port_template_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_template_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_template_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_template_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_template_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: slug
schema:
@@ -15278,16 +17006,32 @@ paths:
type: string
x-spec-enum-id: d10d91f690a856c2
title: Parent/child status
- description: Parent devices house child devices in device bays. Leave blank
+ 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: subdevice_role__n
schema:
type: string
x-spec-enum-id: d10d91f690a856c2
title: Parent/child status
- description: Parent devices house child devices in device bays. Leave blank
+ 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: tag
schema:
@@ -15430,11 +17174,35 @@ paths:
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'
tags:
- dcim
security:
@@ -15667,11 +17435,53 @@ paths:
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
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: asset_tag
schema:
@@ -15796,11 +17606,127 @@ paths:
description: Config template (ID)
explode: true
style: form
+ - in: query
+ name: console_port_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: console_port_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_port_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: console_ports
schema:
type: boolean
description: Has console ports
+ - in: query
+ name: console_server_port_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: console_server_port_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: console_server_port_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: console_server_ports
schema:
@@ -16012,6 +17938,64 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: device_bay_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: device_bay_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: device_bay_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: device_bays
schema:
@@ -16059,12 +18043,82 @@ paths:
type: string
x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
+ enum:
+ - front
+ - rear
+ description: '* `front` - Front
+
+ * `rear` - Rear'
- in: query
name: face__n
schema:
type: string
x-spec-enum-id: d2fb9b3f75158b83
title: Rack face
+ enum:
+ - front
+ - rear
+ description: '* `front` - Front
+
+ * `rear` - Rear'
+ - in: query
+ name: front_port_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: front_port_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: front_port_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: front_port_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: front_port_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: front_port_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: front_port_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: has_oob_ip
schema:
@@ -16075,6 +18129,11 @@ paths:
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:
@@ -16133,11 +18192,127 @@ paths:
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: interfaces
schema:
type: boolean
description: Has interfaces
+ - in: query
+ name: inventory_item_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: inventory_item_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: inventory_item_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: is_full_depth
schema:
@@ -16490,6 +18665,64 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: module_bay_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: module_bays
schema:
@@ -16609,6 +18842,24 @@ paths:
description: Which field to use when ordering the results.
schema:
type: string
+ - in: query
+ name: parent_bay_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Parent bay (ID)
+ explode: true
+ style: form
+ - in: query
+ name: parent_bay_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Parent bay (ID)
+ explode: true
+ style: form
- in: query
name: parent_device_id
schema:
@@ -16728,11 +18979,127 @@ paths:
format: double
explode: true
style: form
+ - in: query
+ name: power_outlet_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: power_outlet_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_outlet_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: power_outlets
schema:
type: boolean
description: Has power outlets
+ - in: query
+ name: power_port_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: power_port_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: power_port_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: power_ports
schema:
@@ -16797,6 +19164,64 @@ paths:
description: Rack (ID)
explode: true
style: form
+ - in: query
+ name: rear_port_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: rear_port_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: rear_port_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: region
schema:
@@ -17782,6 +20207,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: devicetype_id
schema:
@@ -17860,6 +20305,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:
@@ -17934,6 +20463,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: moduletype_id
schema:
@@ -18055,6 +20604,80 @@ paths:
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
+ - 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: 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: type
schema:
@@ -18310,11 +20933,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -18593,42 +21248,6 @@ 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_type
schema:
@@ -18912,6 +21531,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -19078,6 +21701,80 @@ paths:
description: Rack (ID)
explode: true
style: form
+ - 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
+ - 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: 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:
@@ -19715,6 +22412,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: devicetype_id
schema:
@@ -19797,6 +22514,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:
@@ -19875,6 +22676,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: moduletype_id
schema:
@@ -20058,7 +22879,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
explode: true
style: form
- in: query
@@ -20067,7 +22888,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
explode: true
style: form
- in: query
@@ -20325,11 +23146,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -20528,42 +23381,6 @@ 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_type
schema:
@@ -21018,6 +23835,10 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: mgmt_only
schema:
@@ -21027,13 +23848,35 @@ paths:
schema:
type: string
x-spec-enum-id: 79109bd9dbb73a3c
- description: IEEE 802.1Q tagging strategy
+ 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
- description: IEEE 802.1Q tagging strategy
+ 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:
@@ -21755,7 +24598,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
explode: true
style: form
- in: query
@@ -21764,7 +24607,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
explode: true
style: form
- in: query
@@ -21935,6 +24778,44 @@ paths:
description: VRF
explode: true
style: form
+ - in: query
+ name: wireless_lan_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Wireless LAN
+ explode: true
+ style: form
+ - in: query
+ name: wireless_lan_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Wireless LAN
+ explode: true
+ style: form
+ - in: query
+ name: wireless_link_id
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Wireless link
+ explode: true
+ style: form
+ - in: query
+ 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:
@@ -23290,6 +26171,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: devicetype_id
schema:
@@ -23831,10 +26730,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/InventoryItemTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/InventoryItemTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -23969,10 +26868,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/InventoryItemTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/InventoryItemTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -24000,10 +26899,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableInventoryItemTemplateRequest'
+ $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -24261,77 +27160,125 @@ paths:
type: string
format: uuid
- in: query
- name: device
+ name: description
schema:
type: array
items:
type: string
- nullable: true
- description: Device (name)
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: string
- nullable: true
- description: Device (name)
explode: true
style: form
- in: query
- name: device_id
+ name: description__ie
schema:
type: array
items:
- type: integer
- description: Device (ID)
+ type: string
explode: true
style: form
- in: query
- name: device_id__n
+ name: description__iew
schema:
type: array
items:
- type: integer
- description: Device (ID)
+ type: string
explode: true
style: form
- in: query
- name: device_role
+ name: description__isw
schema:
type: array
items:
type: string
- description: Device role (slug)
explode: true
style: form
- in: query
- name: device_role__n
+ name: description__n
schema:
type: array
items:
type: string
- description: Device role (slug)
explode: true
style: form
- in: query
- name: device_role_id
+ 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 role (ID)
+ description: Device (ID)
explode: true
style: form
- in: query
- name: device_role_id__n
+ name: device_id__n
schema:
type: array
items:
type: integer
- description: Device role (ID)
+ description: Device (ID)
explode: true
style: form
- in: query
@@ -25213,10 +28160,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableInventoryItemRequest'
+ $ref: '#/components/schemas/InventoryItemRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableInventoryItemRequest'
+ $ref: '#/components/schemas/InventoryItemRequest'
required: true
security:
- cookieAuth: []
@@ -25351,10 +28298,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableInventoryItemRequest'
+ $ref: '#/components/schemas/InventoryItemRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableInventoryItemRequest'
+ $ref: '#/components/schemas/InventoryItemRequest'
required: true
security:
- cookieAuth: []
@@ -25382,10 +28329,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableInventoryItemRequest'
+ $ref: '#/components/schemas/PatchedInventoryItemRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableInventoryItemRequest'
+ $ref: '#/components/schemas/PatchedInventoryItemRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -25419,6 +28366,42 @@ paths:
operationId: dcim_locations_list
description: Get a list of location 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
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Location (ID)
+ explode: true
+ style: form
- in: query
name: contact
schema:
@@ -25625,6 +28608,90 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: facility
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__empty
+ schema:
+ type: boolean
+ - in: query
+ name: facility__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: facility__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: id
schema:
@@ -25858,8 +28925,8 @@ paths:
schema:
type: array
items:
- type: integer
- description: Location (slug)
+ type: string
+ description: Parent location (slug)
explode: true
style: form
- in: query
@@ -25867,8 +28934,8 @@ paths:
schema:
type: array
items:
- type: integer
- description: Location (slug)
+ type: string
+ description: Parent location (slug)
explode: true
style: form
- in: query
@@ -25877,7 +28944,8 @@ paths:
type: array
items:
type: integer
- description: Location (ID)
+ nullable: true
+ description: Parent location (ID)
explode: true
style: form
- in: query
@@ -25886,7 +28954,8 @@ paths:
type: array
items:
type: integer
- description: Location (ID)
+ nullable: true
+ description: Parent location (ID)
explode: true
style: form
- in: query
@@ -27349,6 +30418,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: devicetype_id
schema:
@@ -27425,6 +30512,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:
@@ -27595,6 +30766,90 @@ paths:
description: Which field to use when ordering the results.
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
+ 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:
@@ -27626,10 +30881,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/ModuleBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/ModuleBayTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -27764,10 +31019,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/ModuleBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/ModuleBayTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -27795,10 +31050,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/PatchedModuleBayTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleBayTemplateRequest'
+ $ref: '#/components/schemas/PatchedModuleBayTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -28022,42 +31277,6 @@ 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_type
schema:
@@ -28152,6 +31371,24 @@ paths:
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:
@@ -28442,6 +31679,90 @@ paths:
description: Which field to use when ordering the results.
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
+ 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:
@@ -28705,10 +32026,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleBayRequest'
+ $ref: '#/components/schemas/ModuleBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleBayRequest'
+ $ref: '#/components/schemas/ModuleBayRequest'
required: true
security:
- cookieAuth: []
@@ -28843,10 +32164,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableModuleBayRequest'
+ $ref: '#/components/schemas/ModuleBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableModuleBayRequest'
+ $ref: '#/components/schemas/ModuleBayRequest'
required: true
security:
- cookieAuth: []
@@ -28874,10 +32195,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleBayRequest'
+ $ref: '#/components/schemas/PatchedModuleBayRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableModuleBayRequest'
+ $ref: '#/components/schemas/PatchedModuleBayRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -29530,11 +32851,35 @@ paths:
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'
tags:
- dcim
security:
@@ -31176,10 +34521,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePlatformRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePlatformRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -31314,10 +34659,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePlatformRequest'
+ $ref: '#/components/schemas/PlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePlatformRequest'
+ $ref: '#/components/schemas/PlatformRequest'
required: true
security:
- cookieAuth: []
@@ -31345,10 +34690,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritablePlatformRequest'
+ $ref: '#/components/schemas/PatchedPlatformRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritablePlatformRequest'
+ $ref: '#/components/schemas/PatchedPlatformRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -31440,16 +34785,106 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: available_power
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__empty
+ schema:
+ type: boolean
+ - in: query
+ name: available_power__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: available_power__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ 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
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -31737,6 +35172,10 @@ 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:
@@ -31905,11 +35344,23 @@ paths:
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
schema:
@@ -32082,11 +35533,23 @@ paths:
schema:
type: string
x-spec-enum-id: 1b6d99616ca6412b
+ enum:
+ - ac
+ - dc
+ description: '* `ac` - AC
+
+ * `dc` - DC'
- in: query
name: supply__n
schema:
type: string
x-spec-enum-id: 1b6d99616ca6412b
+ enum:
+ - ac
+ - dc
+ description: '* `ac` - AC
+
+ * `dc` - DC'
- in: query
name: tag
schema:
@@ -32182,11 +35645,23 @@ paths:
schema:
type: string
x-spec-enum-id: 093a164236819eb8
+ enum:
+ - primary
+ - redundant
+ description: '* `primary` - Primary
+
+ * `redundant` - Redundant'
- in: query
name: type__n
schema:
type: string
x-spec-enum-id: 093a164236819eb8
+ enum:
+ - primary
+ - redundant
+ description: '* `primary` - Primary
+
+ * `redundant` - Redundant'
- in: query
name: updated_by_request
schema:
@@ -32653,6 +36128,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: devicetype_id
schema:
@@ -32751,6 +36246,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:
@@ -32825,6 +36404,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: moduletype_id
schema:
@@ -32941,6 +36540,26 @@ paths:
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:
@@ -32950,12 +36569,166 @@ paths:
name: type
schema:
type: string
- x-spec-enum-id: 5be1814581544db3
+ 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: 5be1814581544db3
+ 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:
@@ -33193,11 +36966,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -33396,42 +37201,6 @@ 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_type
schema:
@@ -33735,6 +37504,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -33860,6 +37633,26 @@ paths:
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:
@@ -34067,7 +37860,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 5be1814581544db3
+ x-spec-enum-id: 2ff919f516566857
description: Physical port type
explode: true
style: form
@@ -34077,7 +37870,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 5be1814581544db3
+ x-spec-enum-id: 2ff919f516566857
description: Physical port type
explode: true
style: form
@@ -34980,10 +38773,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerPanelRequest'
+ $ref: '#/components/schemas/PowerPanelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerPanelRequest'
+ $ref: '#/components/schemas/PowerPanelRequest'
required: true
security:
- cookieAuth: []
@@ -35118,10 +38911,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritablePowerPanelRequest'
+ $ref: '#/components/schemas/PowerPanelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritablePowerPanelRequest'
+ $ref: '#/components/schemas/PowerPanelRequest'
required: true
security:
- cookieAuth: []
@@ -35149,10 +38942,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerPanelRequest'
+ $ref: '#/components/schemas/PatchedPowerPanelRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritablePowerPanelRequest'
+ $ref: '#/components/schemas/PatchedPowerPanelRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -35396,6 +39189,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: devicetype_id
schema:
@@ -35474,6 +39287,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:
@@ -35606,6 +39503,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: moduletype_id
schema:
@@ -35731,12 +39648,172 @@ paths:
name: type
schema:
type: string
- x-spec-enum-id: 0612e2fb273da8ee
+ 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'')]'
- in: query
name: type__n
schema:
type: string
- x-spec-enum-id: 0612e2fb273da8ee
+ 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'')]'
- in: query
name: updated_by_request
schema:
@@ -36032,11 +40109,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -36235,42 +40344,6 @@ 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_type
schema:
@@ -36554,6 +40627,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: maximum_draw
schema:
@@ -36944,7 +41021,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 6d680dea031864ae
description: Physical port type
explode: true
style: form
@@ -36954,7 +41031,7 @@ paths:
type: array
items:
type: string
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 6d680dea031864ae
description: Physical port type
explode: true
style: form
@@ -37803,6 +41880,10 @@ paths:
description: Tenant (ID)
explode: true
style: form
+ - in: query
+ name: unit
+ schema:
+ type: number
- in: query
name: updated_by_request
schema:
@@ -37865,10 +41946,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRackReservationRequest'
+ $ref: '#/components/schemas/RackReservationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRackReservationRequest'
+ $ref: '#/components/schemas/RackReservationRequest'
required: true
security:
- cookieAuth: []
@@ -38003,10 +42084,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRackReservationRequest'
+ $ref: '#/components/schemas/RackReservationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRackReservationRequest'
+ $ref: '#/components/schemas/RackReservationRequest'
required: true
security:
- cookieAuth: []
@@ -38034,10 +42115,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableRackReservationRequest'
+ $ref: '#/components/schemas/PatchedRackReservationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableRackReservationRequest'
+ $ref: '#/components/schemas/PatchedRackReservationRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -39693,11 +43774,23 @@ paths:
schema:
type: string
x-spec-enum-id: 86a846b6c40f495e
+ enum:
+ - in
+ - mm
+ description: '* `mm` - Millimeters
+
+ * `in` - Inches'
- in: query
name: outer_unit__n
schema:
type: string
x-spec-enum-id: 86a846b6c40f495e
+ enum:
+ - in
+ - mm
+ description: '* `mm` - Millimeters
+
+ * `in` - Inches'
- in: query
name: outer_width
schema:
@@ -40301,11 +44394,35 @@ paths:
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:
@@ -40888,6 +45005,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: devicetype_id
schema:
@@ -40966,6 +45103,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:
@@ -41040,6 +45261,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: moduletype_id
schema:
@@ -41474,11 +45715,43 @@ paths:
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
+ schema:
+ type: array
+ items:
+ type: integer
+ nullable: true
+ description: Cable (ID)
+ explode: true
+ style: form
- in: query
name: cabled
schema:
@@ -41757,42 +46030,6 @@ 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_type
schema:
@@ -42076,6 +46313,10 @@ paths:
description: Location (ID)
explode: true
style: form
+ - in: query
+ name: mark_connected
+ schema:
+ type: boolean
- in: query
name: modified_by_request
schema:
@@ -42769,6 +47010,42 @@ paths:
operationId: dcim_regions_list
description: Get a list of region 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:
@@ -43578,6 +47855,42 @@ paths:
operationId: dcim_site_groups_list
description: Get a list of site group 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
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Site group (ID)
+ explode: true
+ style: form
- in: query
name: contact
schema:
@@ -45332,6 +49645,86 @@ paths:
description: Tenant (ID)
explode: true
style: form
+ - in: query
+ name: time_zone
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: time_zone__nisw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
- in: query
name: updated_by_request
schema:
@@ -45967,6 +50360,64 @@ paths:
description: Master (ID)
explode: true
style: form
+ - in: query
+ name: member_count
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: member_count__empty
+ schema:
+ type: boolean
+ - in: query
+ name: member_count__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: member_count__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: member_count__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: member_count__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: member_count__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
name: modified_by_request
schema:
@@ -46716,6 +51167,82 @@ 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: 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:
@@ -47534,10 +52061,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableBookmarkRequest'
+ $ref: '#/components/schemas/BookmarkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableBookmarkRequest'
+ $ref: '#/components/schemas/BookmarkRequest'
required: true
security:
- cookieAuth: []
@@ -47672,10 +52199,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableBookmarkRequest'
+ $ref: '#/components/schemas/BookmarkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableBookmarkRequest'
+ $ref: '#/components/schemas/BookmarkRequest'
required: true
security:
- cookieAuth: []
@@ -47703,10 +52230,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableBookmarkRequest'
+ $ref: '#/components/schemas/PatchedBookmarkRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableBookmarkRequest'
+ $ref: '#/components/schemas/PatchedBookmarkRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -47740,6 +52267,10 @@ paths:
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:
@@ -48080,6 +52611,42 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: device_role
+ schema:
+ type: array
+ items:
+ type: string
+ description: Role (slug)
+ explode: true
+ style: form
+ - in: query
+ name: device_role__n
+ schema:
+ type: array
+ items:
+ type: string
+ 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:
@@ -48664,6 +53231,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:
@@ -48685,10 +53310,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -48823,10 +53448,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -48854,10 +53479,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableConfigContextRequest'
+ $ref: '#/components/schemas/PatchedConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableConfigContextRequest'
+ $ref: '#/components/schemas/PatchedConfigContextRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -48904,10 +53529,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigContextRequest'
+ $ref: '#/components/schemas/ConfigContextRequest'
required: true
security:
- cookieAuth: []
@@ -48924,6 +53549,78 @@ paths:
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:
+ 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: data_file_id
schema:
@@ -49164,12 +53861,80 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- name: limit
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: name
schema:
@@ -49287,6 +54052,11 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -49308,10 +54078,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -49446,10 +54216,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -49477,10 +54247,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest'
+ $ref: '#/components/schemas/PatchedConfigTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest'
+ $ref: '#/components/schemas/PatchedConfigTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -49536,10 +54306,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -49572,10 +54342,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableConfigTemplateRequest'
+ $ref: '#/components/schemas/ConfigTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -49587,108 +54357,121 @@ paths:
schema:
$ref: '#/components/schemas/ConfigTemplate'
description: ''
- /api/extras/content-types/:
+ /api/extras/custom-field-choice-sets/:
get:
- operationId: extras_content_types_list
- description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent
- to NetBox objects.
+ operationId: extras_custom_field_choice_sets_list
+ description: Get a list of custom field choice set objects.
parameters:
- in: query
- name: app_label
+ name: base_choices
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)'
- in: query
- name: id
- schema:
- type: integer
- - name: limit
- required: false
- in: query
- description: Number of results to return per page.
+ name: base_choices__n
schema:
- type: integer
+ 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)'
- in: query
- name: model
+ name: choice
schema:
- type: string
- - 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: created
schema:
- type: integer
- - name: ordering
- required: false
- in: query
- description: Which field to use when ordering the results.
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__empty
schema:
- type: string
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: q
+ name: created__gt
schema:
- type: string
- description: Search
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PaginatedContentTypeList'
- description: ''
- /api/extras/content-types/{id}/:
- get:
- operationId: extras_content_types_retrieve
- description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent
- to NetBox objects.
- parameters:
- - in: path
- name: id
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: created__gte
schema:
- type: integer
- description: A unique integer value identifying this content type.
- required: true
- tags:
- - extras
- security:
- - cookieAuth: []
- - tokenAuth: []
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ContentType'
- description: ''
- /api/extras/custom-field-choice-sets/:
- get:
- operationId: extras_custom_field_choice_sets_list
- description: Get a list of custom field choice set objects.
- parameters:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: base_choices
+ name: created__lt
schema:
- type: string
- x-spec-enum-id: cf0efb5195f85007
- description: Base set of predefined choices (optional)
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: base_choices__n
+ name: created__lte
schema:
- type: string
- x-spec-enum-id: cf0efb5195f85007
- description: Base set of predefined choices (optional)
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: choice
+ 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:
@@ -49831,12 +54614,80 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- name: limit
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: name
schema:
@@ -49942,6 +54793,11 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -50227,108 +55083,73 @@ paths:
explode: true
style: form
- in: query
- name: content_type_id
+ name: created
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__empty
+ name: created__empty
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gt
+ name: created__gt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gte
+ name: created__gte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lt
+ name: created__lt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lte
+ name: created__lte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__n
+ name: created__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_types
- schema:
- type: string
- - in: query
- name: content_types__ic
- schema:
- type: string
- - in: query
- name: content_types__ie
- schema:
- type: string
- - in: query
- name: content_types__iew
- schema:
- type: string
- - in: query
- name: content_types__isw
- schema:
- type: string
- - in: query
- name: content_types__n
- schema:
- type: string
- - in: query
- name: content_types__nic
- schema:
- type: string
- - in: query
- name: content_types__nie
- schema:
- type: string
- - in: query
- name: content_types__niew
- schema:
- type: string
- - in: query
- name: content_types__nisw
+ name: created_by_request
schema:
type: string
+ format: uuid
- in: query
name: description
schema:
@@ -50418,15 +55239,37 @@ paths:
schema:
type: string
x-spec-enum-id: a958350ae21c10ee
- description: Loose matches any instance of a given string; exact matches the
- entire field.
+ 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
- description: Loose matches any instance of a given string; exact matches the
- entire field.
+ 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:
@@ -50573,12 +55416,164 @@ paths:
name: is_cloneable
schema:
type: boolean
+ - 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:
+ 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:
@@ -50663,6 +55658,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
@@ -50680,6 +55731,30 @@ paths:
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
+ explode: true
+ style: form
+ - in: query
+ name: related_object_type_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: required
schema:
@@ -50767,27 +55842,276 @@ paths:
schema:
type: string
x-spec-enum-id: 1065673147e26bb5
- description: Specifies whether the custom field value can be edited in the
+ 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
- description: Specifies whether the custom field value can be edited in the
+ 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
- description: Specifies whether the custom field is displayed in the UI
+ 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
- description: Specifies whether the custom field is displayed in the UI
+ 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
+ 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:
@@ -51074,108 +56398,181 @@ paths:
description: Get a list of custom link objects.
parameters:
- in: query
- name: content_type_id
+ name: button_class
+ 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'
+ - in: query
+ name: button_class__n
+ 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'
+ - in: query
+ name: created
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__empty
+ name: created__empty
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gt
+ name: created__gt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gte
+ name: created__gte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lt
+ name: created__lt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lte
+ name: created__lte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__n
+ name: created__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_types
- schema:
- type: string
- - in: query
- name: content_types__ic
- schema:
- type: string
- - in: query
- name: content_types__ie
- schema:
- type: string
- - in: query
- name: content_types__iew
- schema:
- type: string
- - in: query
- name: content_types__isw
- schema:
- type: string
- - in: query
- name: content_types__n
- schema:
- type: string
- - in: query
- name: content_types__nic
- schema:
- type: string
- - in: query
- name: content_types__nie
- schema:
- type: string
- - in: query
- name: content_types__niew
- schema:
- type: string
- - in: query
- name: content_types__nisw
+ name: created_by_request
schema:
type: string
+ format: uuid
- in: query
name: enabled
schema:
@@ -51322,6 +56719,69 @@ 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
@@ -51408,6 +56868,11 @@ paths:
name: link_url__nisw
schema:
type: string
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: name
schema:
@@ -51496,6 +56961,62 @@ paths:
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
@@ -51513,6 +57034,11 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: weight
schema:
@@ -51960,109 +57486,6 @@ paths:
x-spec-enum-id: a08300d86473de6e
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: content_type_id__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_type_id__n
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: content_types
- schema:
- type: string
- - in: query
- name: content_types__ic
- schema:
- type: string
- - in: query
- name: content_types__ie
- schema:
- type: string
- - in: query
- name: content_types__iew
- schema:
- type: string
- - in: query
- name: content_types__isw
- schema:
- type: string
- - in: query
- name: content_types__n
- schema:
- type: string
- - in: query
- name: content_types__nic
- schema:
- type: string
- - in: query
- name: content_types__nie
- schema:
- type: string
- - in: query
- name: content_types__niew
- schema:
- type: string
- - in: query
- name: content_types__nisw
- schema:
- type: string
- in: query
name: created
schema:
@@ -52435,6 +57858,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
@@ -52721,108 +58200,81 @@ paths:
description: Get a list of export template objects.
parameters:
- in: query
- name: content_type_id
+ name: as_attachment
+ schema:
+ type: boolean
+ - in: query
+ name: auto_sync_enabled
+ 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: content_type_id__empty
+ name: created__empty
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gt
+ name: created__gt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gte
+ name: created__gte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lt
+ name: created__lt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lte
+ name: created__lte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__n
+ name: created__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_types
- schema:
- type: string
- - in: query
- name: content_types__ic
- schema:
- type: string
- - in: query
- name: content_types__ie
- schema:
- type: string
- - in: query
- name: content_types__iew
- schema:
- type: string
- - in: query
- name: content_types__isw
- schema:
- type: string
- - in: query
- name: content_types__n
- schema:
- type: string
- - in: query
- name: content_types__nic
- schema:
- type: string
- - in: query
- name: content_types__nie
- schema:
- type: string
- - in: query
- name: content_types__niew
- schema:
- type: string
- - in: query
- name: content_types__nisw
+ name: created_by_request
schema:
type: string
+ format: uuid
- in: query
name: data_file_id
schema:
@@ -53005,6 +58457,90 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: file_extension
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: file_extension__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:
@@ -53063,12 +58599,164 @@ 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: mime_type
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__empty
+ schema:
+ type: boolean
+ - in: query
+ name: mime_type__ic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__ie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__iew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__isw
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__n
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nic
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nie
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__niew
+ schema:
+ type: array
+ items:
+ type: string
+ explode: true
+ style: form
+ - in: query
+ name: mime_type__nisw
+ 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:
@@ -53153,6 +58841,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
@@ -53170,6 +58914,11 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -53191,10 +58940,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -53329,10 +59078,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -53360,10 +59109,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
+ $ref: '#/components/schemas/PatchedExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableExportTemplateRequest'
+ $ref: '#/components/schemas/PatchedExportTemplateRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -53410,10 +59159,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableExportTemplateRequest'
+ $ref: '#/components/schemas/ExportTemplateRequest'
required: true
security:
- cookieAuth: []
@@ -53431,26 +59180,73 @@ paths:
description: Get a list of image attachment objects.
parameters:
- in: query
- name: content_type
+ name: created
schema:
- type: string
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: content_type__n
+ name: created__empty
schema:
- type: string
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: content_type_id
+ name: created__gt
schema:
- type: integer
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: content_type_id__n
+ name: created__gte
schema:
- type: integer
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
- name: created
+ 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
schema:
@@ -53509,12 +59305,196 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: image_height
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_height__empty
+ schema:
+ type: boolean
+ - in: query
+ name: image_height__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_height__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_height__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_height__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_height__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width__empty
+ schema:
+ type: boolean
+ - in: query
+ name: image_width__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: image_width__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:
@@ -53657,6 +59637,22 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: object_type
+ schema:
+ type: string
+ - in: query
+ name: object_type__n
+ schema:
+ type: string
+ - in: query
+ name: object_type_id
+ schema:
+ type: integer
+ - in: query
+ name: object_type_id__n
+ schema:
+ type: integer
- name: offset
required: false
in: query
@@ -53674,6 +59670,11 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
tags:
- extras
security:
@@ -54456,11 +60457,29 @@ paths:
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:
@@ -54708,6 +60727,72 @@ paths:
schema:
type: string
description: Search
+ - in: query
+ name: related_object_id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: related_object_id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: related_object_id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: related_object_id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: related_object_id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: related_object_id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ 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:
@@ -54880,114 +60965,154 @@ paths:
schema:
$ref: '#/components/schemas/ObjectChange'
description: ''
+ /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: content_type_id
+ name: created
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__empty
+ name: created__empty
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gt
+ name: created__gt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__gte
+ name: created__gte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lt
+ name: created__lt
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__lte
+ name: created__lte
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_type_id__n
+ name: created__n
schema:
type: array
items:
- type: integer
- format: int32
+ type: string
+ format: date-time
explode: true
style: form
- in: query
- name: content_types
- schema:
- type: string
- - in: query
- name: content_types__ic
- schema:
- type: string
- - in: query
- name: content_types__ie
- schema:
- type: string
- - in: query
- name: content_types__iew
- schema:
- type: string
- - in: query
- name: content_types__isw
- schema:
- type: string
- - in: query
- name: content_types__n
- schema:
- type: string
- - in: query
- name: content_types__nic
- schema:
- type: string
- - in: query
- name: content_types__nie
- schema:
- type: string
- - in: query
- name: content_types__niew
- schema:
- type: string
- - in: query
- name: content_types__nisw
+ name: created_by_request
schema:
type: string
+ format: uuid
- in: query
name: description
schema:
@@ -55134,12 +61259,80 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: last_updated
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__empty
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_updated__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- name: limit
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
+ - in: query
+ name: modified_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: name
schema:
@@ -55224,6 +61417,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
@@ -55329,6 +61578,11 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: updated_by_request
+ schema:
+ type: string
+ format: uuid
- in: query
name: usable
schema:
@@ -55651,6 +61905,310 @@ paths:
responses:
'204':
description: No response body
+ /api/extras/scripts/:
+ get:
+ operationId: extras_scripts_list
+ description: Get a list of script objects.
+ parameters:
+ - in: query
+ name: id
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__empty
+ schema:
+ type: boolean
+ - in: query
+ name: id__gt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__gte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lt
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__lte
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
+ - in: query
+ name: is_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
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Script module (ID)
+ explode: true
+ style: form
+ - in: query
+ name: module_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Script 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
+ - 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
@@ -58603,6 +65161,90 @@ paths:
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:
@@ -58777,10 +65419,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableASNRangeRequest'
+ $ref: '#/components/schemas/ASNRangeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableASNRangeRequest'
+ $ref: '#/components/schemas/ASNRangeRequest'
required: true
security:
- cookieAuth: []
@@ -58915,10 +65557,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableASNRangeRequest'
+ $ref: '#/components/schemas/ASNRangeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableASNRangeRequest'
+ $ref: '#/components/schemas/ASNRangeRequest'
required: true
security:
- cookieAuth: []
@@ -58946,10 +65588,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableASNRangeRequest'
+ $ref: '#/components/schemas/PatchedASNRangeRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableASNRangeRequest'
+ $ref: '#/components/schemas/PatchedASNRangeRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -59397,6 +66039,42 @@ paths:
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: 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:
@@ -59590,10 +66268,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableASNRequest'
+ $ref: '#/components/schemas/ASNRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableASNRequest'
+ $ref: '#/components/schemas/ASNRequest'
required: true
security:
- cookieAuth: []
@@ -59728,10 +66406,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableASNRequest'
+ $ref: '#/components/schemas/ASNRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableASNRequest'
+ $ref: '#/components/schemas/ASNRequest'
required: true
security:
- cookieAuth: []
@@ -59759,10 +66437,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableASNRequest'
+ $ref: '#/components/schemas/PatchedASNRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableASNRequest'
+ $ref: '#/components/schemas/PatchedASNRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -60210,10 +66888,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/FHRPGroupAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/FHRPGroupAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -60348,10 +67026,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/FHRPGroupAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/FHRPGroupAssignmentRequest'
required: true
security:
- cookieAuth: []
@@ -60379,10 +67057,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableFHRPGroupAssignmentRequest'
+ $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -61250,6 +67928,72 @@ paths:
schema:
type: boolean
description: Is assigned
+ - 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
- in: query
name: assigned_to_interface
schema:
@@ -61715,6 +68459,24 @@ paths:
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
@@ -61768,6 +68530,24 @@ paths:
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
schema:
@@ -62573,6 +69353,64 @@ paths:
description: Role (ID)
explode: true
style: form
+ - 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: start_address
schema:
@@ -65430,6 +72268,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:
- ipam
security:
@@ -65809,6 +72705,50 @@ paths:
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:
@@ -65907,6 +72847,50 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: importing_l2vpn
+ 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
+ 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_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Importing L2VPN
+ explode: true
+ style: form
+ - in: query
+ name: importing_l2vpn_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Importing L2VPN
+ explode: true
+ style: form
- in: query
name: importing_vrf
schema:
@@ -66238,10 +73222,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -66376,10 +73360,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableRouteTargetRequest'
+ $ref: '#/components/schemas/RouteTargetRequest'
required: true
security:
- cookieAuth: []
@@ -66407,10 +73391,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
+ $ref: '#/components/schemas/PatchedRouteTargetRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableRouteTargetRequest'
+ $ref: '#/components/schemas/PatchedRouteTargetRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -66833,11 +73817,29 @@ paths:
schema:
type: string
x-spec-enum-id: 5521e084b1ad51de
+ enum:
+ - sctp
+ - tcp
+ - udp
+ description: '* `tcp` - TCP
+
+ * `udp` - UDP
+
+ * `sctp` - SCTP'
- in: query
name: protocol__n
schema:
type: string
x-spec-enum-id: 5521e084b1ad51de
+ enum:
+ - sctp
+ - tcp
+ - udp
+ description: '* `tcp` - TCP
+
+ * `udp` - UDP
+
+ * `sctp` - SCTP'
- in: query
name: q
schema:
@@ -67341,6 +74343,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: ipaddress
schema:
@@ -67556,11 +74594,29 @@ paths:
schema:
type: string
x-spec-enum-id: 5521e084b1ad51de
+ enum:
+ - sctp
+ - tcp
+ - udp
+ description: '* `tcp` - TCP
+
+ * `udp` - UDP
+
+ * `sctp` - SCTP'
- in: query
name: protocol__n
schema:
type: string
x-spec-enum-id: 5521e084b1ad51de
+ enum:
+ - sctp
+ - tcp
+ - udp
+ description: '* `tcp` - TCP
+
+ * `udp` - UDP
+
+ * `sctp` - SCTP'
- in: query
name: q
schema:
@@ -67856,10 +74912,14 @@ paths:
name: cluster
schema:
type: integer
+ - in: query
+ name: cluster_group
+ schema:
+ type: integer
- in: query
name: clustergroup
schema:
- type: number
+ type: integer
- in: query
name: created
schema:
@@ -68443,10 +75503,14 @@ paths:
name: site
schema:
type: integer
+ - in: query
+ name: site_group
+ schema:
+ type: integer
- in: query
name: sitegroup
schema:
- type: number
+ type: integer
- in: query
name: slug
schema:
@@ -70527,10 +77591,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/VRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/VRFRequest'
required: true
security:
- cookieAuth: []
@@ -70665,10 +77729,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/VRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVRFRequest'
+ $ref: '#/components/schemas/VRFRequest'
required: true
security:
- cookieAuth: []
@@ -70696,10 +77760,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVRFRequest'
+ $ref: '#/components/schemas/PatchedVRFRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVRFRequest'
+ $ref: '#/components/schemas/PatchedVRFRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -70746,6 +77810,21 @@ paths:
enum:
- json
- yaml
+ - in: query
+ name: lang
+ schema:
+ type: string
+ enum:
+ - de
+ - en
+ - es
+ - fr
+ - ja
+ - pt
+ - ru
+ - tr
+ - uk
+ - zh
tags:
- schema
security:
@@ -70813,22 +77892,6 @@ paths:
description: Contact (ID)
explode: true
style: form
- - in: query
- name: content_type
- schema:
- type: string
- - in: query
- name: content_type__n
- schema:
- type: string
- - in: query
- name: content_type_id
- schema:
- type: integer
- - in: query
- name: content_type_id__n
- schema:
- type: integer
- in: query
name: created
schema:
@@ -71123,6 +78186,22 @@ paths:
format: int32
explode: true
style: form
+ - in: query
+ name: object_type
+ schema:
+ type: string
+ - in: query
+ name: object_type__n
+ schema:
+ type: string
+ - in: query
+ name: object_type_id
+ schema:
+ type: integer
+ - in: query
+ name: object_type_id__n
+ schema:
+ type: integer
- name: offset
required: false
in: query
@@ -71140,11 +78219,35 @@ paths:
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'
- in: query
name: q
schema:
@@ -71434,6 +78537,42 @@ paths:
operationId: tenancy_contact_groups_list
description: Get a list of contact group objects.
parameters:
+ - in: query
+ name: ancestor
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: ancestor__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (slug)
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (ID)
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Contact group (ID)
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -71820,7 +78959,7 @@ paths:
type: array
items:
type: string
- description: Contact group (slug)
+ description: Parent contact group (slug)
explode: true
style: form
- in: query
@@ -71829,7 +78968,7 @@ paths:
type: array
items:
type: string
- description: Contact group (slug)
+ description: Parent contact group (slug)
explode: true
style: form
- in: query
@@ -71839,7 +78978,7 @@ paths:
items:
type: integer
nullable: true
- description: Contact group (ID)
+ description: Parent contact group (ID)
explode: true
style: form
- in: query
@@ -71849,7 +78988,7 @@ paths:
items:
type: integer
nullable: true
- description: Contact group (ID)
+ description: Parent contact group (ID)
explode: true
style: form
- in: query
@@ -73789,10 +80928,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/ContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/ContactRequest'
required: true
security:
- cookieAuth: []
@@ -73927,10 +81066,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/ContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableContactRequest'
+ $ref: '#/components/schemas/ContactRequest'
required: true
security:
- cookieAuth: []
@@ -73958,10 +81097,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableContactRequest'
+ $ref: '#/components/schemas/PatchedContactRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableContactRequest'
+ $ref: '#/components/schemas/PatchedContactRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -73995,6 +81134,42 @@ paths:
operationId: tenancy_tenant_groups_list
description: Get a list of tenant group 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
+ schema:
+ type: array
+ items:
+ type: integer
+ description: Tenant group (ID)
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -74381,7 +81556,7 @@ paths:
type: array
items:
type: string
- description: Tenant group (slug)
+ description: Parent tenant group (slug)
explode: true
style: form
- in: query
@@ -74390,7 +81565,7 @@ paths:
type: array
items:
type: string
- description: Tenant group (slug)
+ description: Parent tenant group (slug)
explode: true
style: form
- in: query
@@ -74400,7 +81575,7 @@ paths:
items:
type: integer
nullable: true
- description: Tenant group (ID)
+ description: Parent tenant group (ID)
explode: true
style: form
- in: query
@@ -74410,7 +81585,7 @@ paths:
items:
type: integer
nullable: true
- description: Tenant group (ID)
+ description: Parent tenant group (ID)
explode: true
style: form
- in: query
@@ -75351,10 +82526,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTenantRequest'
+ $ref: '#/components/schemas/TenantRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTenantRequest'
+ $ref: '#/components/schemas/TenantRequest'
required: true
security:
- cookieAuth: []
@@ -75489,10 +82664,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTenantRequest'
+ $ref: '#/components/schemas/TenantRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTenantRequest'
+ $ref: '#/components/schemas/TenantRequest'
required: true
security:
- cookieAuth: []
@@ -75520,10 +82695,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableTenantRequest'
+ $ref: '#/components/schemas/PatchedTenantRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableTenantRequest'
+ $ref: '#/components/schemas/PatchedTenantRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -75575,6 +82750,90 @@ paths:
operationId: users_groups_list
description: Get a list of group objects.
parameters:
+ - 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:
@@ -75735,11 +82994,47 @@ 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: 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:
- users
security:
@@ -76255,6 +83550,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
- in: query
name: object_types
schema:
@@ -76345,10 +83696,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/ObjectPermissionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/ObjectPermissionRequest'
required: true
security:
- cookieAuth: []
@@ -76483,10 +83834,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/ObjectPermissionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableObjectPermissionRequest'
+ $ref: '#/components/schemas/ObjectPermissionRequest'
required: true
security:
- cookieAuth: []
@@ -76514,10 +83865,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ $ref: '#/components/schemas/PatchedObjectPermissionRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableObjectPermissionRequest'
+ $ref: '#/components/schemas/PatchedObjectPermissionRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -76807,6 +84158,64 @@ paths:
type: string
explode: true
style: form
+ - in: query
+ name: last_used
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_used__empty
+ schema:
+ type: boolean
+ - in: query
+ name: last_used__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_used__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_used__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_used__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_used__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- name: limit
required: false
in: query
@@ -76891,10 +84300,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/TokenRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/TokenRequest'
required: true
security:
- cookieAuth: []
@@ -77029,10 +84438,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/TokenRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableTokenRequest'
+ $ref: '#/components/schemas/TokenRequest'
required: true
security:
- cookieAuth: []
@@ -77060,10 +84469,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ $ref: '#/components/schemas/PatchedTokenRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableTokenRequest'
+ $ref: '#/components/schemas/PatchedTokenRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -77130,6 +84539,64 @@ paths:
operationId: users_users_list
description: Get a list of user objects.
parameters:
+ - in: query
+ name: date_joined
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: date_joined__empty
+ schema:
+ type: boolean
+ - in: query
+ name: date_joined__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: date_joined__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: date_joined__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: date_joined__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: date_joined__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
name: email
schema:
@@ -77404,6 +84871,64 @@ paths:
name: is_superuser
schema:
type: boolean
+ - in: query
+ name: last_login
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_login__empty
+ schema:
+ type: boolean
+ - in: query
+ name: last_login__gt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_login__gte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_login__lt
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_login__lte
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
+ - in: query
+ name: last_login__n
+ schema:
+ type: array
+ items:
+ type: string
+ format: date-time
+ explode: true
+ style: form
- in: query
name: last_name
schema:
@@ -77506,6 +85031,24 @@ 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:
@@ -77616,10 +85159,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/UserRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/UserRequest'
required: true
security:
- cookieAuth: []
@@ -77754,10 +85297,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/UserRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableUserRequest'
+ $ref: '#/components/schemas/UserRequest'
required: true
security:
- cookieAuth: []
@@ -77785,10 +85328,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableUserRequest'
+ $ref: '#/components/schemas/PatchedUserRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableUserRequest'
+ $ref: '#/components/schemas/PatchedUserRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -80734,6 +88277,40 @@ paths:
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:
@@ -81771,10 +89348,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ $ref: '#/components/schemas/VirtualDiskRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ $ref: '#/components/schemas/VirtualDiskRequest'
required: true
security:
- cookieAuth: []
@@ -81909,10 +89486,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ $ref: '#/components/schemas/VirtualDiskRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableVirtualDiskRequest'
+ $ref: '#/components/schemas/VirtualDiskRequest'
required: true
security:
- cookieAuth: []
@@ -81940,10 +89517,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableVirtualDiskRequest'
+ $ref: '#/components/schemas/PatchedVirtualDiskRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableVirtualDiskRequest'
+ $ref: '#/components/schemas/PatchedVirtualDiskRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -82474,6 +90051,64 @@ paths:
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:
@@ -83185,6 +90820,64 @@ paths:
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:
@@ -83664,6 +91357,38 @@ paths:
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:
@@ -83900,42 +91625,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: proposal__empty
- schema:
- type: boolean
- - in: query
- name: proposal__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: proposal__n
schema:
@@ -83944,90 +91633,12 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: proposal__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: proposal_id
schema:
type: array
items:
type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
explode: true
style: form
- in: query
@@ -84036,7 +91647,6 @@ paths:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
@@ -85321,6 +92931,38 @@ 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:
@@ -85521,42 +93163,6 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: proposal__empty
- schema:
- type: boolean
- - in: query
- name: proposal__ic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__ie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__iew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__isw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: proposal__n
schema:
@@ -85565,90 +93171,12 @@ paths:
type: string
explode: true
style: form
- - in: query
- name: proposal__nic
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__nie
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__niew
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- - in: query
- name: proposal__nisw
- schema:
- type: array
- items:
- type: string
- explode: true
- style: form
- in: query
name: proposal_id
schema:
type: array
items:
type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: proposal_id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
explode: true
style: form
- in: query
@@ -85657,7 +93185,6 @@ paths:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
@@ -86886,6 +94413,42 @@ paths:
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:
@@ -87426,21 +94989,71 @@ paths:
description: Get a list of L2VPN termination objects.
parameters:
- in: query
- name: assigned_object_type
+ name: assigned_object_id
schema:
- type: string
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: assigned_object_type__n
+ name: assigned_object_id__empty
schema:
- type: string
+ type: boolean
- in: query
- name: assigned_object_type_id
+ name: assigned_object_id__gt
schema:
- type: integer
+ type: array
+ items:
+ type: integer
+ format: int32
+ explode: true
+ style: form
- in: query
- name: assigned_object_type_id__n
+ name: assigned_object_id__gte
schema:
- type: integer
+ 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:
@@ -87987,10 +95600,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -88125,10 +95738,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/WritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/L2VPNTerminationRequest'
required: true
security:
- cookieAuth: []
@@ -88156,10 +95769,10 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/PatchedL2VPNTerminationRequest'
multipart/form-data:
schema:
- $ref: '#/components/schemas/PatchedWritableL2VPNTerminationRequest'
+ $ref: '#/components/schemas/PatchedL2VPNTerminationRequest'
security:
- cookieAuth: []
- tokenAuth: []
@@ -90154,6 +97767,64 @@ paths:
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:
@@ -91343,6 +99014,38 @@ paths:
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: integer
+ explode: true
+ style: form
+ - in: query
+ name: ancestor__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
+ - in: query
+ name: ancestor_id__n
+ schema:
+ type: array
+ items:
+ type: integer
+ explode: true
+ style: form
- in: query
name: created
schema:
@@ -92460,6 +100163,22 @@ paths:
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:
@@ -93333,52 +101052,6 @@ paths:
type: array
items:
type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_a_id__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_a_id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_a_id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_a_id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_a_id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
explode: true
style: form
- in: query
@@ -93387,7 +101060,6 @@ paths:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
@@ -93396,52 +101068,6 @@ paths:
type: array
items:
type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_b_id__empty
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_b_id__gt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_b_id__gte
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_b_id__lt
- schema:
- type: array
- items:
- type: integer
- format: int32
- explode: true
- style: form
- - in: query
- name: interface_b_id__lte
- schema:
- type: array
- items:
- type: integer
- format: int32
explode: true
style: form
- in: query
@@ -93450,7 +101076,6 @@ paths:
type: array
items:
type: integer
- format: int32
explode: true
style: form
- in: query
@@ -93987,11 +101612,11 @@ components:
description: 16- or 32-bit autonomous system number
rir:
allOf:
- - $ref: '#/components/schemas/NestedRIR'
+ - $ref: '#/components/schemas/RIR'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
description:
type: string
@@ -94017,9 +101642,11 @@ components:
nullable: true
site_count:
type: integer
+ format: int64
readOnly: true
provider_count:
type: integer
+ format: int64
readOnly: true
required:
- asn
@@ -94052,7 +101679,7 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
rir:
- $ref: '#/components/schemas/NestedRIR'
+ $ref: '#/components/schemas/RIR'
start:
type: integer
maximum: 4294967295
@@ -94065,7 +101692,7 @@ components:
format: int64
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
description:
type: string
@@ -94116,7 +101743,7 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
rir:
- $ref: '#/components/schemas/NestedRIRRequest'
+ $ref: '#/components/schemas/RIRRequest'
start:
type: integer
maximum: 4294967295
@@ -94129,7 +101756,7 @@ components:
format: int64
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
description:
type: string
@@ -94159,11 +101786,11 @@ components:
description: 16- or 32-bit autonomous system number
rir:
allOf:
- - $ref: '#/components/schemas/NestedRIRRequest'
+ - $ref: '#/components/schemas/RIRRequest'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
description:
type: string
@@ -94214,10 +101841,10 @@ components:
prefix:
type: string
rir:
- $ref: '#/components/schemas/NestedRIR'
+ $ref: '#/components/schemas/RIR'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
date_added:
type: string
@@ -94262,10 +101889,10 @@ components:
type: string
minLength: 1
rir:
- $ref: '#/components/schemas/NestedRIRRequest'
+ $ref: '#/components/schemas/RIRRequest'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
date_added:
type: string
@@ -94304,13 +101931,12 @@ components:
family:
type: integer
readOnly: true
- nullable: true
address:
type: string
readOnly: true
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
readOnly: true
nullable: true
description:
@@ -94326,13 +101952,12 @@ components:
family:
type: integer
readOnly: true
- nullable: true
prefix:
type: string
readOnly: true
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
readOnly: true
nullable: true
required:
@@ -94348,7 +101973,7 @@ components:
readOnly: true
group:
allOf:
- - $ref: '#/components/schemas/NestedVLANGroup'
+ - $ref: '#/components/schemas/VLANGroup'
readOnly: true
nullable: true
required:
@@ -94382,7 +102007,7 @@ components:
nullable: true
readOnly: true
user:
- $ref: '#/components/schemas/NestedUser'
+ $ref: '#/components/schemas/User'
created:
type: string
format: date-time
@@ -94411,7 +102036,7 @@ components:
minimum: 0
format: int64
user:
- $ref: '#/components/schemas/NestedUserRequest'
+ $ref: '#/components/schemas/UserRequest'
required:
- object_id
- object_type
@@ -94430,341 +102055,26 @@ components:
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
- - 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)
-
- * `power` - Power'
- x-spec-enum-id: e671018e64196f8d
- 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/NestedTenant'
- 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:
- - created
- display
- id
- - last_updated
- url
CableRequest:
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
- - 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)
-
- * `power` - Power'
- x-spec-enum-id: e671018e64196f8d
- 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/NestedTenantRequest'
- 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.
@@ -94869,210 +102179,14 @@ components:
title: Circuit ID
description: Unique circuit ID
maxLength: 100
- provider:
- $ref: '#/components/schemas/NestedProvider'
- provider_account:
- allOf:
- - $ref: '#/components/schemas/NestedProviderAccount'
- nullable: true
- type:
- $ref: '#/components/schemas/NestedCircuitType'
- 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/NestedTenant'
- 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
- 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
required:
- cid
- - created
- - display
- - id
- - last_updated
- - provider
- - termination_a
- - termination_z
- - 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:
- type: string
- readOnly: true
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSite'
- nullable: true
- provider_network:
- allOf:
- - $ref: '#/components/schemas/NestedProviderNetwork'
- nullable: true
- port_speed:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: Port speed (Kbps)
- 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
- - provider_network
- - site
- 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:
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
- nullable: true
- provider_network:
- allOf:
- - $ref: '#/components/schemas/NestedProviderNetworkRequest'
- nullable: true
- port_speed:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: Port speed (Kbps)
- 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:
- - provider_network
- - site
CircuitRequest:
type: object
description: Adds support for custom fields and tags.
@@ -95083,72 +102197,11 @@ components:
title: Circuit ID
description: Unique circuit ID
maxLength: 100
- provider:
- $ref: '#/components/schemas/NestedProviderRequest'
- provider_account:
- allOf:
- - $ref: '#/components/schemas/NestedProviderAccountRequest'
- nullable: true
- type:
- $ref: '#/components/schemas/NestedCircuitTypeRequest'
- 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/NestedTenantRequest'
- 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
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- cid
- - provider
- - type
CircuitTermination:
type: object
description: Adds support for custom fields and tags.
@@ -95164,7 +102217,7 @@ components:
type: string
readOnly: true
circuit:
- $ref: '#/components/schemas/NestedCircuit'
+ $ref: '#/components/schemas/Circuit'
term_side:
enum:
- A
@@ -95177,11 +102230,11 @@ components:
title: Termination
site:
allOf:
- - $ref: '#/components/schemas/NestedSite'
+ - $ref: '#/components/schemas/Site'
nullable: true
provider_network:
allOf:
- - $ref: '#/components/schemas/NestedProviderNetwork'
+ - $ref: '#/components/schemas/ProviderNetwork'
nullable: true
port_speed:
type: integer
@@ -95215,7 +102268,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -95268,7 +102321,7 @@ components:
description: Adds support for custom fields and tags.
properties:
circuit:
- $ref: '#/components/schemas/NestedCircuitRequest'
+ $ref: '#/components/schemas/CircuitRequest'
term_side:
enum:
- A
@@ -95281,11 +102334,11 @@ components:
title: Termination
site:
allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
provider_network:
allOf:
- - $ref: '#/components/schemas/NestedProviderNetworkRequest'
+ - $ref: '#/components/schemas/ProviderNetworkRequest'
nullable: true
port_speed:
type: integer
@@ -95374,6 +102427,7 @@ components:
nullable: true
circuit_count:
type: integer
+ format: int64
readOnly: true
required:
- circuit_count
@@ -95431,85 +102485,17 @@ components:
name:
type: string
maxLength: 100
- type:
- $ref: '#/components/schemas/NestedClusterType'
- group:
- allOf:
- - $ref: '#/components/schemas/NestedClusterGroup'
- 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/NestedTenant'
- nullable: true
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSite'
- 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
- readOnly: true
virtualmachine_count:
type: integer
+ format: int64
readOnly: true
required:
- - created
- - device_count
- display
- id
- - last_updated
- name
- - type
- url
- virtualmachine_count
ClusterGroup:
@@ -95555,6 +102541,7 @@ components:
nullable: true
cluster_count:
type: integer
+ format: int64
readOnly: true
required:
- cluster_count
@@ -95599,53 +102586,11 @@ components:
type: string
minLength: 1
maxLength: 100
- type:
- $ref: '#/components/schemas/NestedClusterTypeRequest'
- group:
- allOf:
- - $ref: '#/components/schemas/NestedClusterGroupRequest'
- 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/NestedTenantRequest'
- nullable: true
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
- 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.
@@ -95689,6 +102634,7 @@ components:
nullable: true
cluster_count:
type: integer
+ format: int64
readOnly: true
required:
- cluster_count
@@ -95725,40 +102671,6 @@ components:
required:
- name
- slug
- ComponentNestedModule:
- type: object
- description: Used by device component serializers.
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- device:
- type: integer
- module_bay:
- allOf:
- - $ref: '#/components/schemas/ModuleNestedModuleBay'
- readOnly: true
- required:
- - device
- - display
- - id
- - module_bay
- - url
- ComponentNestedModuleRequest:
- type: object
- description: Used by device component serializers.
- properties:
- device:
- type: integer
- required:
- - device
ConfigContext:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -95791,64 +102703,64 @@ components:
regions:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Region'
site_groups:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/SiteGroup'
sites:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Site'
locations:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Location'
device_types:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/DeviceType'
roles:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/DeviceRole'
platforms:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Platform'
cluster_types:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/ClusterType'
cluster_groups:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/ClusterGroup'
clusters:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Cluster'
tenant_groups:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/TenantGroup'
tenants:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/Tenant'
tags:
type: array
items:
type: string
data_source:
- $ref: '#/components/schemas/NestedDataSource'
+ $ref: '#/components/schemas/DataSource'
data_path:
type: string
readOnly: true
description: Path to remote file (relative to data source root)
data_file:
allOf:
- - $ref: '#/components/schemas/NestedDataFile'
+ - $ref: '#/components/schemas/DataFile'
readOnly: true
data_synced:
type: string
@@ -95952,7 +102864,7 @@ components:
type: string
minLength: 1
data_source:
- $ref: '#/components/schemas/NestedDataSourceRequest'
+ $ref: '#/components/schemas/DataSourceRequest'
data: {}
required:
- data
@@ -95980,51 +102892,10 @@ 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/NestedDataSource'
- data_path:
- type: string
- readOnly: true
- description: Path to remote file (relative to data source root)
- data_file:
- $ref: '#/components/schemas/NestedDataFile'
- 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:
- - created
- - data_path
- - data_synced
- display
- id
- - last_updated
- name
- - template_code
- url
ConfigTemplateRequest:
type: object
@@ -96040,24 +102911,8 @@ 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/NestedDataSourceRequest'
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
required:
- name
- - template_code
ConsolePort:
type: object
description: Adds support for custom fields and tags.
@@ -96073,10 +102928,10 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -96205,7 +103060,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -96271,10 +103126,10 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -96396,11 +103251,11 @@ components:
readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceType'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $ref: '#/components/schemas/ModuleType'
nullable: true
name:
type: string
@@ -96510,11 +103365,11 @@ components:
properties:
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -96595,10 +103450,10 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -96727,7 +103582,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -96793,10 +103648,10 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -96918,11 +103773,11 @@ components:
readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceType'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $ref: '#/components/schemas/ModuleType'
nullable: true
name:
type: string
@@ -97032,11 +103887,11 @@ components:
properties:
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -97116,57 +103971,15 @@ components:
display:
type: string
readOnly: true
- group:
- allOf:
- - $ref: '#/components/schemas/NestedContactGroup'
- 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:
- - created
- display
- id
- - last_updated
- name
- url
ContactAssignment:
@@ -97183,7 +103996,7 @@ components:
display:
type: string
readOnly: true
- content_type:
+ object_type:
type: string
object_id:
type: integer
@@ -97195,10 +104008,10 @@ components:
additionalProperties: {}
readOnly: true
contact:
- $ref: '#/components/schemas/NestedContact'
+ $ref: '#/components/schemas/Contact'
role:
allOf:
- - $ref: '#/components/schemas/NestedContactRole'
+ - $ref: '#/components/schemas/ContactRole'
nullable: true
priority:
type: object
@@ -97245,19 +104058,19 @@ components:
nullable: true
required:
- contact
- - content_type
- created
- display
- id
- last_updated
- object
- object_id
+ - object_type
- url
ContactAssignmentRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- content_type:
+ object_type:
type: string
object_id:
type: integer
@@ -97265,10 +104078,10 @@ components:
minimum: 0
format: int64
contact:
- $ref: '#/components/schemas/NestedContactRequest'
+ $ref: '#/components/schemas/ContactRequest'
role:
allOf:
- - $ref: '#/components/schemas/NestedContactRoleRequest'
+ - $ref: '#/components/schemas/ContactRoleRequest'
nullable: true
priority:
enum:
@@ -97295,8 +104108,8 @@ components:
additionalProperties: {}
required:
- contact
- - content_type
- object_id
+ - object_type
ContactGroup:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -97345,6 +104158,7 @@ components:
contact_count:
type: integer
readOnly: true
+ default: 0
_depth:
type: integer
readOnly: true
@@ -97393,43 +104207,13 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- group:
- allOf:
- - $ref: '#/components/schemas/NestedContactGroupRequest'
- 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:
@@ -97456,28 +104240,9 @@ 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:
- - created
- display
- id
- - last_updated
- name
- slug
- url
@@ -97497,42 +104262,9 @@ components:
description:
type: string
maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
- slug
- ContentType:
- type: object
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- app_label:
- type: string
- maxLength: 100
- model:
- type: string
- title: Python model class name
- maxLength: 100
- required:
- - app_label
- - display
- - id
- - model
- - url
CustomField:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -97550,7 +104282,7 @@ components:
display:
type: string
readOnly: true
- content_types:
+ object_types:
type: array
items:
type: string
@@ -97615,7 +104347,7 @@ components:
- Multiple selection
- Object
- Multiple objects
- object_type:
+ related_object_type:
type: string
nullable: true
data_type:
@@ -97748,8 +104480,10 @@ components:
maxLength: 500
choice_set:
allOf:
- - $ref: '#/components/schemas/NestedCustomFieldChoiceSet'
+ - $ref: '#/components/schemas/CustomFieldChoiceSet'
nullable: true
+ comments:
+ type: string
created:
type: string
format: date-time
@@ -97761,13 +104495,13 @@ components:
readOnly: true
nullable: true
required:
- - content_types
- created
- data_type
- display
- id
- last_updated
- name
+ - object_types
- type
- url
CustomFieldChoiceSet:
@@ -97892,7 +104626,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -97938,7 +104672,7 @@ components:
* `multiobject` - Multiple objects'
x-spec-enum-id: 22e3a64138d10046
- object_type:
+ related_object_type:
type: string
nullable: true
name:
@@ -98042,11 +104776,13 @@ components:
maxLength: 500
choice_set:
allOf:
- - $ref: '#/components/schemas/NestedCustomFieldChoiceSetRequest'
+ - $ref: '#/components/schemas/CustomFieldChoiceSetRequest'
nullable: true
+ comments:
+ type: string
required:
- - content_types
- name
+ - object_types
- type
CustomLink:
type: object
@@ -98065,7 +104801,7 @@ components:
display:
type: string
readOnly: true
- content_types:
+ object_types:
type: array
items:
type: string
@@ -98154,7 +104890,6 @@ components:
readOnly: true
nullable: true
required:
- - content_types
- created
- display
- id
@@ -98162,6 +104897,7 @@ components:
- link_text
- link_url
- name
+ - object_types
- url
CustomLinkRequest:
type: object
@@ -98170,7 +104906,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -98252,10 +104988,10 @@ components:
type: boolean
description: Force link to open in a new window
required:
- - content_types
- link_text
- link_url
- name
+ - object_types
Dashboard:
type: object
properties:
@@ -98282,7 +105018,7 @@ components:
readOnly: true
source:
allOf:
- - $ref: '#/components/schemas/NestedDataSource'
+ - $ref: '#/components/schemas/DataSource'
readOnly: true
path:
type: string
@@ -98325,101 +105061,13 @@ components:
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
- comments:
- type: string
- parameters:
- nullable: true
- ignore_rules:
- type: string
- description: Patterns (one per line) matching files to ignore when syncing
- 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
- file_count:
- type: integer
- readOnly: true
required:
- - created
- display
- - file_count
- id
- - last_updated
- name
- - source_url
- - status
- - type
- url
DataSourceRequest:
type: object
@@ -98485,21 +105133,16 @@ components:
nullable: true
maxLength: 64
device_type:
- $ref: '#/components/schemas/NestedDeviceType'
+ $ref: '#/components/schemas/DeviceType'
role:
- $ref: '#/components/schemas/NestedDeviceRole'
- device_role:
- allOf:
- - $ref: '#/components/schemas/NestedDeviceRole'
- readOnly: true
- description: Deprecated in v3.6 in favor of `role`.
+ $ref: '#/components/schemas/DeviceRole'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
platform:
allOf:
- - $ref: '#/components/schemas/NestedPlatform'
+ - $ref: '#/components/schemas/Platform'
nullable: true
serial:
type: string
@@ -98512,14 +105155,14 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- $ref: '#/components/schemas/NestedSite'
+ $ref: '#/components/schemas/Site'
location:
allOf:
- - $ref: '#/components/schemas/NestedLocation'
+ - $ref: '#/components/schemas/Location'
nullable: true
rack:
allOf:
- - $ref: '#/components/schemas/NestedRack'
+ - $ref: '#/components/schemas/Rack'
nullable: true
position:
type: number
@@ -98647,28 +105290,28 @@ components:
- Mixed
primary_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
readOnly: true
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
oob_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
cluster:
allOf:
- - $ref: '#/components/schemas/NestedCluster'
+ - $ref: '#/components/schemas/Cluster'
nullable: true
virtual_chassis:
allOf:
- - $ref: '#/components/schemas/NestedVirtualChassis'
+ - $ref: '#/components/schemas/VirtualChassis'
nullable: true
vc_position:
type: integer
@@ -98688,7 +105331,7 @@ components:
type: string
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplate'
+ - $ref: '#/components/schemas/ConfigTemplate'
nullable: true
local_context_data:
nullable: true
@@ -98746,7 +105389,6 @@ components:
- console_server_port_count
- created
- device_bay_count
- - device_role
- device_type
- display
- front_port_count
@@ -98778,7 +105420,7 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
name:
type: string
maxLength: 64
@@ -98791,7 +105433,7 @@ components:
maxLength: 200
installed_device:
allOf:
- - $ref: '#/components/schemas/NestedDevice'
+ - $ref: '#/components/schemas/Device'
nullable: true
tags:
type: array
@@ -98823,7 +105465,7 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
name:
type: string
minLength: 1
@@ -98837,7 +105479,7 @@ components:
maxLength: 200
installed_device:
allOf:
- - $ref: '#/components/schemas/NestedDeviceRequest'
+ - $ref: '#/components/schemas/DeviceRequest'
nullable: true
tags:
type: array
@@ -98867,7 +105509,7 @@ components:
type: string
readOnly: true
device_type:
- $ref: '#/components/schemas/NestedDeviceType'
+ $ref: '#/components/schemas/DeviceType'
name:
type: string
description: '{module} is accepted as a substitution for the module bay
@@ -98906,7 +105548,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/NestedDeviceTypeRequest'
+ $ref: '#/components/schemas/DeviceTypeRequest'
name:
type: string
minLength: 1
@@ -98923,6 +105565,17 @@ 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.
@@ -98944,49 +105597,21 @@ 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/NestedConfigTemplate'
- 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
readOnly: true
virtualmachine_count:
type: integer
+ format: int64
readOnly: true
required:
- - created
- device_count
- display
- id
- - last_updated
- name
- slug
- url
@@ -99014,7 +105639,7 @@ components:
description: Virtual machines may be assigned to this role
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplateRequest'
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
nullable: true
description:
type: string
@@ -99044,11 +105669,7 @@ components:
type: string
readOnly: true
manufacturer:
- $ref: '#/components/schemas/NestedManufacturer'
- default_platform:
- allOf:
- - $ref: '#/components/schemas/NestedPlatform'
- nullable: true
+ $ref: '#/components/schemas/Manufacturer'
model:
type: string
maxLength: 100
@@ -99056,462 +105677,179 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- part_number:
+ description:
type: string
- description: Discrete part number (optional)
+ maxLength: 200
+ device_count:
+ type: integer
+ format: int64
+ readOnly: true
+ required:
+ - device_count
+ - display
+ - id
+ - manufacturer
+ - model
+ - slug
+ - url
+ DeviceTypeRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ manufacturer:
+ $ref: '#/components/schemas/ManufacturerRequest'
+ 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
+ DeviceWithConfigContext:
+ 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
+ device_type:
+ $ref: '#/components/schemas/DeviceType'
+ role:
+ $ref: '#/components/schemas/DeviceRole'
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/Tenant'
+ nullable: true
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/Platform'
+ nullable: true
+ serial:
+ type: string
+ title: Serial number
+ description: Chassis serial number, assigned by the manufacturer
maxLength: 50
- u_height:
+ asset_tag:
+ type: string
+ nullable: true
+ description: A unique tag used to identify this device
+ maxLength: 50
+ site:
+ $ref: '#/components/schemas/Site'
+ location:
+ allOf:
+ - $ref: '#/components/schemas/Location'
+ nullable: true
+ rack:
+ allOf:
+ - $ref: '#/components/schemas/Rack'
+ nullable: true
+ position:
type: number
format: double
maximum: 1000
- minimum: 0
+ minimum: 0.5
exclusiveMaximum: true
- default: 1.0
+ nullable: true
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:
+ face:
type: object
properties:
value:
enum:
- - parent
- - child
+ - front
+ - rear
- ''
type: string
- description: '* `parent` - Parent
+ description: '* `front` - Front
- * `child` - Child'
- x-spec-enum-id: d10d91f690a856c2
+ * `rear` - Rear'
+ x-spec-enum-id: d2fb9b3f75158b83
label:
type: string
enum:
- - Parent
- - Child
+ - Front
+ - Rear
+ latitude:
+ type: number
+ format: double
+ maximum: 100
+ minimum: -100
+ exclusiveMaximum: true
+ exclusiveMinimum: true
nullable: true
- airflow:
- type: object
- properties:
- value:
- enum:
- - front-to-rear
- - rear-to-front
- - left-to-right
- - right-to-left
- - side-to-rear
- - 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
-
- * `passive` - Passive
-
- * `mixed` - Mixed'
- x-spec-enum-id: 58e389e240a5e53d
- label:
- type: string
- enum:
- - Front to rear
- - Rear to front
- - Left to right
- - Right to left
- - Side to rear
- - 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
- readOnly: true
- console_port_template_count:
- type: integer
- readOnly: true
- console_server_port_template_count:
- type: integer
- readOnly: true
- power_port_template_count:
- type: integer
- readOnly: true
- power_outlet_template_count:
- type: integer
- readOnly: true
- interface_template_count:
- type: integer
- readOnly: true
- front_port_template_count:
- type: integer
- readOnly: true
- rear_port_template_count:
- type: integer
- readOnly: true
- device_bay_template_count:
- type: integer
- readOnly: true
- module_bay_template_count:
- type: integer
- readOnly: true
- inventory_item_template_count:
- type: integer
- readOnly: true
- required:
- - console_port_template_count
- - console_server_port_template_count
- - created
- - device_bay_template_count
- - device_count
- - display
- - front_port_template_count
- - id
- - interface_template_count
- - inventory_item_template_count
- - last_updated
- - manufacturer
- - model
- - module_bay_template_count
- - power_outlet_template_count
- - power_port_template_count
- - rear_port_template_count
- - slug
- - url
- DeviceTypeRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- manufacturer:
- $ref: '#/components/schemas/NestedManufacturerRequest'
- default_platform:
- allOf:
- - $ref: '#/components/schemas/NestedPlatformRequest'
- nullable: true
- model:
- type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- 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
- - 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
-
- * `passive` - Passive
-
- * `mixed` - Mixed'
- x-spec-enum-id: 58e389e240a5e53d
- 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
- - slug
- DeviceWithConfigContext:
- 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
- device_type:
- $ref: '#/components/schemas/NestedDeviceType'
- role:
- $ref: '#/components/schemas/NestedDeviceRole'
- device_role:
- allOf:
- - $ref: '#/components/schemas/NestedDeviceRole'
- readOnly: true
- description: Deprecated in v3.6 in favor of `role`.
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- nullable: true
- platform:
- allOf:
- - $ref: '#/components/schemas/NestedPlatform'
- nullable: true
- serial:
- type: string
- title: Serial number
- description: Chassis serial number, assigned by the manufacturer
- maxLength: 50
- asset_tag:
- type: string
- nullable: true
- description: A unique tag used to identify this device
- maxLength: 50
- site:
- $ref: '#/components/schemas/NestedSite'
- location:
- allOf:
- - $ref: '#/components/schemas/NestedLocation'
- nullable: true
- rack:
- allOf:
- - $ref: '#/components/schemas/NestedRack'
- nullable: true
- position:
- type: number
- format: double
- maximum: 1000
- minimum: 0.5
- exclusiveMaximum: true
- nullable: true
- title: Position (U)
- face:
- type: object
- properties:
- value:
- enum:
- - front
- - rear
- - ''
- type: string
- description: '* `front` - Front
-
- * `rear` - Rear'
- x-spec-enum-id: d2fb9b3f75158b83
- label:
- type: string
- enum:
- - Front
- - Rear
- latitude:
- type: number
- format: double
- maximum: 100
- minimum: -100
- exclusiveMaximum: true
- exclusiveMinimum: true
- nullable: true
- description: GPS coordinate in decimal format (xx.yyyyyy)
- longitude:
- type: number
- format: double
- maximum: 1000
- minimum: -1000
- exclusiveMaximum: true
- exclusiveMinimum: true
- nullable: true
- description: GPS coordinate in decimal format (xx.yyyyyy)
- parent_device:
- allOf:
- - $ref: '#/components/schemas/NestedDevice'
- readOnly: true
- nullable: true
- status:
- type: object
- properties:
- value:
- enum:
- - offline
- - active
- - planned
- - staged
- - failed
- - inventory
- - decommissioning
- type: string
- description: '* `offline` - Offline
-
- * `active` - Active
-
- * `planned` - Planned
-
- * `staged` - Staged
-
- * `failed` - Failed
-
- * `inventory` - Inventory
-
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 8d8971779f16ee18
- label:
- type: string
- enum:
- - Offline
- - Active
- - Planned
- - Staged
- - Failed
- - Inventory
- - Decommissioning
+ description: GPS coordinate in decimal format (xx.yyyyyy)
+ longitude:
+ type: number
+ format: double
+ maximum: 1000
+ minimum: -1000
+ exclusiveMaximum: true
+ exclusiveMinimum: true
+ nullable: true
+ description: GPS coordinate in decimal format (xx.yyyyyy)
+ parent_device:
+ allOf:
+ - $ref: '#/components/schemas/NestedDevice'
+ readOnly: true
+ nullable: true
+ status:
+ type: object
+ properties:
+ value:
+ enum:
+ - offline
+ - active
+ - planned
+ - staged
+ - failed
+ - inventory
+ - decommissioning
+ type: string
+ description: '* `offline` - Offline
+
+ * `active` - Active
+
+ * `planned` - Planned
+
+ * `staged` - Staged
+
+ * `failed` - Failed
+
+ * `inventory` - Inventory
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 8d8971779f16ee18
+ label:
+ type: string
+ enum:
+ - Offline
+ - Active
+ - Planned
+ - Staged
+ - Failed
+ - Inventory
+ - Decommissioning
airflow:
type: object
properties:
@@ -99552,28 +105890,28 @@ components:
- Mixed
primary_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
readOnly: true
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
oob_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
cluster:
allOf:
- - $ref: '#/components/schemas/NestedCluster'
+ - $ref: '#/components/schemas/Cluster'
nullable: true
virtual_chassis:
allOf:
- - $ref: '#/components/schemas/NestedVirtualChassis'
+ - $ref: '#/components/schemas/VirtualChassis'
nullable: true
vc_position:
type: integer
@@ -99593,7 +105931,7 @@ components:
type: string
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplate'
+ - $ref: '#/components/schemas/ConfigTemplate'
nullable: true
config_context:
nullable: true
@@ -99655,7 +105993,6 @@ components:
- console_server_port_count
- created
- device_bay_count
- - device_role
- device_type
- display
- front_port_count
@@ -99681,16 +106018,16 @@ components:
nullable: true
maxLength: 64
device_type:
- $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ $ref: '#/components/schemas/DeviceTypeRequest'
role:
- $ref: '#/components/schemas/NestedDeviceRoleRequest'
+ $ref: '#/components/schemas/DeviceRoleRequest'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
platform:
allOf:
- - $ref: '#/components/schemas/NestedPlatformRequest'
+ - $ref: '#/components/schemas/PlatformRequest'
nullable: true
serial:
type: string
@@ -99703,14 +106040,14 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- $ref: '#/components/schemas/NestedSiteRequest'
+ $ref: '#/components/schemas/SiteRequest'
location:
allOf:
- - $ref: '#/components/schemas/NestedLocationRequest'
+ - $ref: '#/components/schemas/LocationRequest'
nullable: true
rack:
allOf:
- - $ref: '#/components/schemas/NestedRackRequest'
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
position:
type: number
@@ -99799,23 +106136,23 @@ components:
x-spec-enum-id: 58e389e240a5e53d
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
oob_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
cluster:
allOf:
- - $ref: '#/components/schemas/NestedClusterRequest'
+ - $ref: '#/components/schemas/ClusterRequest'
nullable: true
virtual_chassis:
allOf:
- - $ref: '#/components/schemas/NestedVirtualChassisRequest'
+ - $ref: '#/components/schemas/VirtualChassisRequest'
nullable: true
vc_position:
type: integer
@@ -99835,7 +106172,7 @@ components:
type: string
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplateRequest'
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
nullable: true
local_context_data:
nullable: true
@@ -99866,7 +106203,7 @@ components:
display:
type: string
readOnly: true
- content_types:
+ object_types:
type: array
items:
type: string
@@ -99952,18 +106289,18 @@ components:
- action_object
- action_object_type
- action_type
- - content_types
- created
- display
- id
- last_updated
- name
+ - object_types
- url
EventRuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -100027,8 +106364,8 @@ components:
required:
- action_object_type
- action_type
- - content_types
- name
+ - object_types
ExportTemplate:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -100046,7 +106383,7 @@ components:
display:
type: string
readOnly: true
- content_types:
+ object_types:
type: array
items:
type: string
@@ -100072,14 +106409,14 @@ components:
type: boolean
description: Download file as attachment
data_source:
- $ref: '#/components/schemas/NestedDataSource'
+ $ref: '#/components/schemas/DataSource'
data_path:
type: string
readOnly: true
description: Path to remote file (relative to data source root)
data_file:
allOf:
- - $ref: '#/components/schemas/NestedDataFile'
+ - $ref: '#/components/schemas/DataFile'
readOnly: true
data_synced:
type: string
@@ -100098,7 +106435,6 @@ components:
readOnly: true
nullable: true
required:
- - content_types
- created
- data_file
- data_path
@@ -100107,6 +106443,7 @@ components:
- id
- last_updated
- name
+ - object_types
- template_code
- url
ExportTemplateRequest:
@@ -100116,7 +106453,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -100144,10 +106481,10 @@ components:
type: boolean
description: Download file as attachment
data_source:
- $ref: '#/components/schemas/NestedDataSourceRequest'
+ $ref: '#/components/schemas/DataSourceRequest'
required:
- - content_types
- name
+ - object_types
- template_code
FHRPGroup:
type: object
@@ -100156,9 +106493,6 @@ components:
id:
type: integer
readOnly: true
- name:
- type: string
- maxLength: 100
url:
type: string
format: uri
@@ -100194,55 +106528,13 @@ components:
type: integer
maximum: 32767
minimum: 0
- auth_type:
- enum:
- - plaintext
- - md5
- - ''
- type: string
- description: '* `plaintext` - Plaintext
-
- * `md5` - MD5'
- x-spec-enum-id: 12b9faea3a45bf37
- 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/NestedIPAddress'
- readOnly: true
required:
- - created
- display
- group_id
- id
- - ip_addresses
- - last_updated
- protocol
- url
FHRPGroupAssignment:
@@ -100260,7 +106552,7 @@ components:
type: string
readOnly: true
group:
- $ref: '#/components/schemas/NestedFHRPGroup'
+ $ref: '#/components/schemas/FHRPGroup'
interface_type:
type: string
interface_id:
@@ -100301,7 +106593,7 @@ components:
description: Adds support for custom fields and tags.
properties:
group:
- $ref: '#/components/schemas/NestedFHRPGroupRequest'
+ $ref: '#/components/schemas/FHRPGroupRequest'
interface_type:
type: string
interface_id:
@@ -100322,9 +106614,6 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- name:
- type: string
- maxLength: 100
protocol:
enum:
- vrrp2
@@ -100353,33 +106642,9 @@ components:
type: integer
maximum: 32767
minimum: 0
- auth_type:
- enum:
- - plaintext
- - md5
- - ''
- type: string
- description: '* `plaintext` - Plaintext
-
- * `md5` - MD5'
- x-spec-enum-id: 12b9faea3a45bf37
- 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
@@ -100398,10 +106663,10 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -100617,6 +106882,7 @@ components:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description: Mapped position on corresponding rear port
description:
type: string
@@ -100626,7 +106892,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -100729,10 +106995,10 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -100896,6 +107162,7 @@ components:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description: Mapped position on corresponding rear port
description:
type: string
@@ -100934,11 +107201,11 @@ components:
readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceType'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $ref: '#/components/schemas/ModuleType'
nullable: true
name:
type: string
@@ -101151,11 +107418,12 @@ components:
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- $ref: '#/components/schemas/NestedRearPortTemplate'
+ $ref: '#/components/schemas/RearPortTemplate'
rear_port_position:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description:
type: string
maxLength: 200
@@ -101187,11 +107455,11 @@ components:
properties:
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -101352,11 +107620,12 @@ components:
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- $ref: '#/components/schemas/NestedRearPortTemplateRequest'
+ $ref: '#/components/schemas/RearPortTemplateRequest'
rear_port_position:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description:
type: string
maxLength: 200
@@ -101364,22 +107633,6 @@ 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
- - object_id
- - object_type
GenericObjectRequest:
type: object
description: Minimal representation of some generic object identified by ContentType
@@ -101412,6 +107665,13 @@ components:
name:
type: string
maxLength: 150
+ description:
+ type: string
+ maxLength: 200
+ permissions:
+ type: array
+ items:
+ $ref: '#/components/schemas/ObjectPermission'
user_count:
type: integer
readOnly: true
@@ -101432,6 +107692,13 @@ components:
type: string
minLength: 1
maxLength: 150
+ description:
+ type: string
+ maxLength: 200
+ permissions:
+ type: array
+ items:
+ type: integer
required:
- name
IKEPolicy:
@@ -101491,7 +107758,7 @@ components:
proposals:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/IKEProposal'
preshared_key:
type: string
title: Pre-shared key
@@ -102029,142 +108296,14 @@ components:
readOnly: true
address:
type: string
- vrf:
- allOf:
- - $ref: '#/components/schemas/NestedVRF'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- nullable: true
- status:
- type: object
- properties:
- value:
- 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
- - assigned_object
- - created
- display
- family
- id
- - last_updated
- - nat_outside
- url
IPAddressRequest:
type: object
@@ -102173,90 +108312,9 @@ components:
address:
type: string
minLength: 1
- vrf:
- allOf:
- - $ref: '#/components/schemas/NestedVRFRequest'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- 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:
@@ -102300,11 +108358,11 @@ components:
readOnly: true
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
status:
type: object
@@ -102329,7 +108387,7 @@ components:
- Deprecated
role:
allOf:
- - $ref: '#/components/schemas/NestedRole'
+ - $ref: '#/components/schemas/Role'
nullable: true
description:
type: string
@@ -102378,11 +108436,11 @@ components:
minLength: 1
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRFRequest'
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
status:
enum:
@@ -102398,7 +108456,7 @@ components:
x-spec-enum-id: 6388dfb94ca1cc15
role:
allOf:
- - $ref: '#/components/schemas/NestedRoleRequest'
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
description:
type: string
@@ -102441,7 +108499,7 @@ components:
proposals:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/IPSecProposal'
pfs_group:
type: object
properties:
@@ -102712,9 +108770,9 @@ components:
- ESP
- AH
ike_policy:
- $ref: '#/components/schemas/NestedIKEPolicy'
+ $ref: '#/components/schemas/IKEPolicy'
ipsec_policy:
- $ref: '#/components/schemas/NestedIPSecPolicy'
+ $ref: '#/components/schemas/IPSecPolicy'
comments:
type: string
tags:
@@ -102765,9 +108823,9 @@ components:
* `ah` - AH'
x-spec-enum-id: 1136c2cdfee84436
ike_policy:
- $ref: '#/components/schemas/NestedIKEPolicyRequest'
+ $ref: '#/components/schemas/IKEPolicyRequest'
ipsec_policy:
- $ref: '#/components/schemas/NestedIPSecPolicyRequest'
+ $ref: '#/components/schemas/IPSecPolicyRequest'
comments:
type: string
tags:
@@ -103014,7 +109072,7 @@ components:
display:
type: string
readOnly: true
- content_type:
+ object_type:
type: string
object_id:
type: integer
@@ -103049,7 +109107,6 @@ components:
readOnly: true
nullable: true
required:
- - content_type
- created
- display
- id
@@ -103058,6 +109115,7 @@ components:
- image_width
- last_updated
- object_id
+ - object_type
- parent
- url
ImageAttachmentRequest:
@@ -103067,7 +109125,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_type:
+ object_type:
type: string
object_id:
type: integer
@@ -103089,11 +109147,11 @@ components:
maximum: 32767
minimum: 0
required:
- - content_type
- image
- image_height
- image_width
- object_id
+ - object_type
Interface:
type: object
description: Adds support for custom fields and tags.
@@ -103109,14 +109167,14 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
vdcs:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/VirtualDeviceContext'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -103174,6 +109232,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -103194,6 +109254,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -103227,12 +109289,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -103337,6 +109402,10 @@ components:
* `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)
@@ -103377,6 +109446,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -103443,7 +109516,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -103451,9 +109530,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -103484,7 +109563,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
label:
type: string
enum:
@@ -103532,6 +109611,8 @@ components:
- QSFP-DD (800GE)
- OSFP (800GE)
- 1000BASE-KX (1GE)
+ - 2.5GBASE-KX (2.5GE)
+ - 5GBASE-KR (5GE)
- 10GBASE-KR (10GE)
- 10GBASE-KX4 (10GE)
- 25GBASE-KR (25GE)
@@ -103552,6 +109633,8 @@ components:
- GSM
- CDMA
- LTE
+ - 4G
+ - 5G
- OC-3/STM-1
- OC-12/STM-4
- OC-48/STM-16
@@ -103585,12 +109668,15 @@ components:
- E3 (34 Mbps)
- xDSL
- DOCSIS
- - GPON (2.5 Gbps / 1.25 Gps)
+ - BPON (622 Mbps / 155 Mbps)
+ - EPON (1 Gbps)
+ - 10G-EPON (10 Gbps)
+ - GPON (2.5 Gbps / 1.25 Gbps)
- XG-PON (10 Gbps / 2.5 Gbps)
- XGS-PON (10 Gbps)
- NG-PON2 (TWDM-PON) (4x10 Gbps)
- - EPON (1 Gbps)
- - 10G-EPON (10 Gbps)
+ - 25G-PON (25 Gbps)
+ - 50G-PON (50 Gbps)
- Cisco StackWise
- Cisco StackWise Plus
- Cisco FlexStack
@@ -104593,18 +110679,18 @@ components:
title: Transmit power (dBm)
untagged_vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLAN'
+ - $ref: '#/components/schemas/VLAN'
nullable: true
tagged_vlans:
type: array
items:
- $ref: '#/components/schemas/NestedVLAN'
+ $ref: '#/components/schemas/VLAN'
mark_connected:
type: boolean
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -104626,14 +110712,14 @@ components:
wireless_lans:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/WirelessLAN'
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
nullable: true
l2vpn_termination:
allOf:
- - $ref: '#/components/schemas/NestedL2VPNTermination'
+ - $ref: '#/components/schemas/L2VPNTermination'
readOnly: true
nullable: true
connected_endpoints:
@@ -104699,14 +110785,14 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
vdcs:
type: array
items:
type: integer
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -104762,6 +110848,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -104782,6 +110870,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -104815,12 +110905,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -104925,6 +111018,10 @@ components:
* `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)
@@ -104965,6 +111062,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -105031,7 +111132,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -105039,9 +111146,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -105072,7 +111179,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
enabled:
type: boolean
parent:
@@ -105809,7 +111916,7 @@ components:
title: Transmit power (dBm)
untagged_vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLANRequest'
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tagged_vlans:
type: array
@@ -105824,7 +111931,7 @@ components:
type: integer
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRFRequest'
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tags:
type: array
@@ -105856,11 +111963,11 @@ components:
readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceType'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $ref: '#/components/schemas/ModuleType'
nullable: true
name:
type: string
@@ -105920,6 +112027,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -105940,6 +112049,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -105973,12 +112084,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -106083,6 +112197,10 @@ components:
* `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)
@@ -106123,6 +112241,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -106189,7 +112311,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -106197,9 +112325,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -106230,7 +112358,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
label:
type: string
enum:
@@ -106278,6 +112406,8 @@ components:
- QSFP-DD (800GE)
- OSFP (800GE)
- 1000BASE-KX (1GE)
+ - 2.5GBASE-KX (2.5GE)
+ - 5GBASE-KR (5GE)
- 10GBASE-KR (10GE)
- 10GBASE-KX4 (10GE)
- 25GBASE-KR (25GE)
@@ -106298,6 +112428,8 @@ components:
- GSM
- CDMA
- LTE
+ - 4G
+ - 5G
- OC-3/STM-1
- OC-12/STM-4
- OC-48/STM-16
@@ -106331,12 +112463,15 @@ components:
- E3 (34 Mbps)
- xDSL
- DOCSIS
- - GPON (2.5 Gbps / 1.25 Gps)
+ - BPON (622 Mbps / 155 Mbps)
+ - EPON (1 Gbps)
+ - 10G-EPON (10 Gbps)
+ - GPON (2.5 Gbps / 1.25 Gbps)
- XG-PON (10 Gbps / 2.5 Gbps)
- XGS-PON (10 Gbps)
- NG-PON2 (TWDM-PON) (4x10 Gbps)
- - EPON (1 Gbps)
- - 10G-EPON (10 Gbps)
+ - 25G-PON (25 Gbps)
+ - 50G-PON (50 Gbps)
- Cisco StackWise
- Cisco StackWise Plus
- Cisco FlexStack
@@ -106472,11 +112607,11 @@ components:
properties:
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -106534,6 +112669,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -106554,6 +112691,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -106587,12 +112726,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -106697,6 +112839,10 @@ components:
* `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)
@@ -106737,6 +112883,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -106803,7 +112953,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -106811,9 +112967,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -106844,7 +113000,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
enabled:
type: boolean
mgmt_only:
@@ -106926,7 +113082,7 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
parent:
type: integer
nullable: true
@@ -106939,11 +113095,11 @@ components:
maxLength: 64
role:
allOf:
- - $ref: '#/components/schemas/NestedInventoryItemRole'
+ - $ref: '#/components/schemas/InventoryItemRole'
nullable: true
manufacturer:
allOf:
- - $ref: '#/components/schemas/NestedManufacturer'
+ - $ref: '#/components/schemas/Manufacturer'
nullable: true
part_id:
type: string
@@ -107012,7 +113168,7 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
parent:
type: integer
nullable: true
@@ -107026,11 +113182,11 @@ components:
maxLength: 64
role:
allOf:
- - $ref: '#/components/schemas/NestedInventoryItemRoleRequest'
+ - $ref: '#/components/schemas/InventoryItemRoleRequest'
nullable: true
manufacturer:
allOf:
- - $ref: '#/components/schemas/NestedManufacturerRequest'
+ - $ref: '#/components/schemas/ManufacturerRequest'
nullable: true
part_id:
type: string
@@ -107117,6 +113273,7 @@ components:
nullable: true
inventoryitem_count:
type: integer
+ format: int64
readOnly: true
required:
- created
@@ -107176,7 +113333,7 @@ components:
type: string
readOnly: true
device_type:
- $ref: '#/components/schemas/NestedDeviceType'
+ $ref: '#/components/schemas/DeviceType'
parent:
type: integer
nullable: true
@@ -107191,11 +113348,11 @@ components:
maxLength: 64
role:
allOf:
- - $ref: '#/components/schemas/NestedInventoryItemRole'
+ - $ref: '#/components/schemas/InventoryItemRole'
nullable: true
manufacturer:
allOf:
- - $ref: '#/components/schemas/NestedManufacturer'
+ - $ref: '#/components/schemas/Manufacturer'
nullable: true
part_id:
type: string
@@ -107248,7 +113405,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/NestedDeviceTypeRequest'
+ $ref: '#/components/schemas/DeviceTypeRequest'
parent:
type: integer
nullable: true
@@ -107264,11 +113421,11 @@ components:
maxLength: 64
role:
allOf:
- - $ref: '#/components/schemas/NestedInventoryItemRoleRequest'
+ - $ref: '#/components/schemas/InventoryItemRoleRequest'
nullable: true
manufacturer:
allOf:
- - $ref: '#/components/schemas/NestedManufacturerRequest'
+ - $ref: '#/components/schemas/ManufacturerRequest'
nullable: true
part_id:
type: string
@@ -107372,7 +113529,7 @@ components:
nullable: true
user:
allOf:
- - $ref: '#/components/schemas/NestedUser'
+ - $ref: '#/components/schemas/User'
readOnly: true
data:
nullable: true
@@ -107393,6 +113550,13 @@ 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.
@@ -107601,45 +113765,12 @@ components:
- Ethernet Virtual Private LAN
- Ethernet Private Tree
- Ethernet Virtual Private Tree
- 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/NestedTenant'
- 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:
- - created
- display
- id
- - last_updated
- name
- slug
- url
@@ -107701,30 +113832,9 @@ components:
* `evp-tree` - Ethernet Virtual Private Tree'
x-spec-enum-id: dbaa4f996ec2d110
- 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/NestedTenantRequest'
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
- slug
@@ -107743,67 +113853,19 @@ components:
type: string
readOnly: true
l2vpn:
- $ref: '#/components/schemas/NestedL2VPN'
- 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
+ $ref: '#/components/schemas/L2VPN'
required:
- - assigned_object
- - assigned_object_id
- - assigned_object_type
- - created
- display
- id
- l2vpn
- - last_updated
- url
L2VPNTerminationRequest:
type: object
description: Adds support for custom fields and tags.
properties:
l2vpn:
- $ref: '#/components/schemas/NestedL2VPNRequest'
- 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: {}
+ $ref: '#/components/schemas/L2VPNRequest'
required:
- - assigned_object_id
- - assigned_object_type
- l2vpn
Location:
type: object
@@ -107826,85 +113888,23 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- site:
- $ref: '#/components/schemas/NestedSite'
- 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/NestedTenant'
- 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
rack_count:
type: integer
readOnly: true
- device_count:
- type: integer
- readOnly: true
+ default: 0
_depth:
type: integer
readOnly: true
title: ' depth'
required:
- _depth
- - created
- - device_count
- display
- id
- - last_updated
- name
- rack_count
- - site
- slug
- url
LocationRequest:
@@ -107920,47 +113920,11 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- site:
- $ref: '#/components/schemas/NestedSiteRequest'
- 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/NestedTenantRequest'
- nullable: true
description:
type: string
maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
- - site
- slug
Manufacturer:
type: object
@@ -107986,41 +113950,15 @@ 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
- readOnly: true
- inventoryitem_count:
- type: integer
- readOnly: true
- platform_count:
- type: integer
+ format: int64
readOnly: true
required:
- - created
- devicetype_count
- display
- id
- - inventoryitem_count
- - last_updated
- name
- - platform_count
- slug
- url
ManufacturerRequest:
@@ -108039,13 +113977,6 @@ components:
description:
type: string
maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
- slug
@@ -108064,83 +113995,14 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module_bay:
$ref: '#/components/schemas/NestedModuleBay'
- module_type:
- $ref: '#/components/schemas/NestedModuleType'
- 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:
- - created
- device
- display
- id
- - last_updated
- module_bay
- - module_type
- url
ModuleBay:
type: object
@@ -108157,13 +114019,13 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
name:
type: string
maxLength: 64
installed_module:
allOf:
- - $ref: '#/components/schemas/ModuleBayNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
label:
type: string
@@ -108248,14 +114110,14 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
name:
type: string
minLength: 1
maxLength: 64
installed_module:
allOf:
- - $ref: '#/components/schemas/ModuleBayNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
label:
type: string
@@ -108296,7 +114158,7 @@ components:
type: string
readOnly: true
device_type:
- $ref: '#/components/schemas/NestedDeviceType'
+ $ref: '#/components/schemas/DeviceType'
name:
type: string
description: '{module} is accepted as a substitution for the module bay
@@ -108339,7 +114201,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/NestedDeviceTypeRequest'
+ $ref: '#/components/schemas/DeviceTypeRequest'
name:
type: string
minLength: 1
@@ -108360,106 +114222,17 @@ components:
required:
- device_type
- name
- ModuleNestedModuleBay:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- ModuleNestedModuleBayRequest:
- 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: 64
- required:
- - name
ModuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module_bay:
$ref: '#/components/schemas/NestedModuleBayRequest'
- module_type:
- $ref: '#/components/schemas/NestedModuleTypeRequest'
- 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.
@@ -108475,76 +114248,16 @@ components:
type: string
readOnly: true
manufacturer:
- $ref: '#/components/schemas/NestedManufacturer'
+ $ref: '#/components/schemas/Manufacturer'
model:
type: string
maxLength: 100
- part_number:
- type: string
- description: Discrete part number (optional)
- maxLength: 50
- 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:
- - created
- display
- id
- - last_updated
- manufacturer
- model
- url
@@ -108553,56 +114266,18 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- $ref: '#/components/schemas/NestedManufacturerRequest'
+ $ref: '#/components/schemas/ManufacturerRequest'
model:
type: string
minLength: 1
maxLength: 100
- part_number:
- type: string
- description: Discrete part number (optional)
- maxLength: 50
- 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
- NestedCable:
+ NestedContactGroup:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108622,57 +114297,25 @@ components:
display:
type: string
readOnly: true
- label:
+ name:
type: string
maxLength: 100
- required:
- - display
- - id
- - url
- NestedCableRequest:
- 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:
- label:
+ slug:
type: string
maxLength: 100
- NestedCircuit:
- 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:
+ pattern: ^[-a-zA-Z0-9_]+$
+ _depth:
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
+ title: ' depth'
required:
- - cid
+ - _depth
- display
- id
+ - name
+ - slug
- url
- NestedCircuitRequest:
+ NestedContactGroupRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108682,15 +114325,19 @@ components:
subclassed to return a full representation of the related object on read.'
properties:
- cid:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ slug:
type: string
minLength: 1
- title: Circuit ID
- description: Unique circuit ID
maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
required:
- - cid
- NestedCircuitType:
+ - name
+ - slug
+ NestedDevice:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108712,18 +114359,13 @@ components:
readOnly: true
name:
type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ nullable: true
+ maxLength: 64
required:
- display
- id
- - name
- - slug
- url
- NestedCircuitTypeRequest:
+ NestedDeviceRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108735,17 +114377,9 @@ components:
properties:
name:
type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedCluster:
+ nullable: true
+ maxLength: 64
+ NestedGroup:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108767,13 +114401,13 @@ components:
readOnly: true
name:
type: string
- maxLength: 100
+ maxLength: 150
required:
- display
- id
- name
- url
- NestedClusterGroup:
+ NestedInterface:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108793,42 +114427,28 @@ components:
display:
type: string
readOnly: true
+ device:
+ allOf:
+ - $ref: '#/components/schemas/NestedDevice'
+ readOnly: true
name:
type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ maxLength: 64
+ cable:
+ type: integer
+ nullable: true
+ _occupied:
+ type: boolean
+ readOnly: true
+ title: ' occupied'
required:
+ - _occupied
+ - device
- display
- id
- name
- - slug
- url
- NestedClusterGroupRequest:
- 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
- NestedClusterRequest:
+ NestedInterfaceRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108841,10 +114461,13 @@ components:
name:
type: string
minLength: 1
- maxLength: 100
+ maxLength: 64
+ cable:
+ type: integer
+ nullable: true
required:
- name
- NestedClusterType:
+ NestedInterfaceTemplate:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108866,18 +114489,15 @@ components:
readOnly: true
name:
type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ description: '{module} is accepted as a substitution for the module bay
+ position when attached to a module type.'
+ maxLength: 64
required:
- display
- id
- name
- - slug
- url
- NestedClusterTypeRequest:
+ NestedInterfaceTemplateRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108890,16 +114510,12 @@ components:
name:
type: string
minLength: 1
- maxLength: 100
- slug:
- type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ description: '{module} is accepted as a substitution for the module bay
+ position when attached to a module type.'
+ maxLength: 64
required:
- name
- - slug
- NestedConfigTemplate:
+ NestedModuleBay:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108919,15 +114535,19 @@ components:
display:
type: string
readOnly: true
+ installed_module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleBayNestedModule'
+ nullable: true
name:
type: string
- maxLength: 100
+ maxLength: 64
required:
- display
- id
- name
- url
- NestedConfigTemplateRequest:
+ NestedModuleBayRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -108937,41 +114557,17 @@ 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: 100
- required:
- - name
- NestedContact:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
+ maxLength: 64
required:
- - display
- - id
- name
- - url
- NestedContactGroup:
+ NestedRegion:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109009,7 +114605,7 @@ components:
- name
- slug
- url
- NestedContactGroupRequest:
+ NestedRegionRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109031,23 +114627,7 @@ components:
required:
- name
- slug
- NestedContactRequest:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- required:
- - name
- NestedContactRole:
+ NestedSiteGroup:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109074,13 +114654,18 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
+ _depth:
+ type: integer
+ readOnly: true
+ title: ' depth'
required:
+ - _depth
- display
- id
- name
- slug
- url
- NestedContactRoleRequest:
+ NestedSiteGroupRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109102,7 +114687,7 @@ components:
required:
- name
- slug
- NestedCustomFieldChoiceSet:
+ NestedTag:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109125,89 +114710,21 @@ components:
name:
type: string
maxLength: 100
- choices_count:
- type: string
- readOnly: true
- required:
- - choices_count
- - display
- - id
- - name
- - url
- NestedCustomFieldChoiceSetRequest:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
+ slug:
type: string
- minLength: 1
+ pattern: ^[-\w]+$
maxLength: 100
- required:
- - name
- NestedDataFile:
- 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
- path:
- type: string
- readOnly: true
- description: File path relative to the data source's root
- required:
- - display
- - id
- - path
- - url
- NestedDataSource:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ color:
type: string
- maxLength: 100
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
required:
- display
- id
- name
+ - slug
- url
- NestedDataSourceRequest:
+ NestedTagRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109221,106 +114738,20 @@ components:
type: string
minLength: 1
maxLength: 100
- required:
- - name
- NestedDevice:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- nullable: true
- maxLength: 64
- required:
- - display
- - id
- - url
- NestedDeviceRequest:
- 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
- nullable: true
- maxLength: 64
- NestedDeviceRole:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedDeviceRoleRequest:
- 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
+ pattern: ^[-\w]+$
maxLength: 100
- slug:
+ color:
type: string
minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
required:
- name
- slug
- NestedDeviceType:
+ NestedTenantGroup:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109340,25 +114771,25 @@ components:
display:
type: string
readOnly: true
- manufacturer:
- allOf:
- - $ref: '#/components/schemas/NestedManufacturer'
- readOnly: true
- model:
+ 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
- - manufacturer
- - model
+ - name
- slug
- url
- NestedDeviceTypeRequest:
+ NestedTenantGroupRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109368,7 +114799,7 @@ components:
subclassed to return a full representation of the related object on read.'
properties:
- model:
+ name:
type: string
minLength: 1
maxLength: 100
@@ -109378,9 +114809,9 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
required:
- - model
+ - name
- slug
- NestedFHRPGroup:
+ NestedUser:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109400,82 +114831,18 @@ components:
display:
type: string
readOnly: true
- protocol:
- enum:
- - vrrp2
- - vrrp3
- - carp
- - clusterxl
- - hsrp
- - glbp
- - other
+ username:
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: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
+ only.
+ pattern: ^[\w.@+-]+$
+ maxLength: 150
required:
- display
- - group_id
- id
- - protocol
- url
- NestedFHRPGroupRequest:
- 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:
- 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
- required:
- - group_id
- - protocol
- NestedIKEPolicy:
+ - username
+ NestedVMInterface:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109495,15 +114862,20 @@ components:
display:
type: string
readOnly: true
+ virtual_machine:
+ allOf:
+ - $ref: '#/components/schemas/NestedVirtualMachine'
+ readOnly: true
name:
type: string
- maxLength: 100
+ maxLength: 64
required:
- display
- id
- name
- url
- NestedIKEPolicyRequest:
+ - virtual_machine
+ NestedVMInterfaceRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109516,10 +114888,10 @@ components:
name:
type: string
minLength: 1
- maxLength: 100
+ maxLength: 64
required:
- name
- NestedIPAddress:
+ NestedVirtualMachine:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109539,18 +114911,15 @@ components:
display:
type: string
readOnly: true
- family:
- type: integer
- readOnly: true
- address:
+ name:
type: string
+ maxLength: 64
required:
- - address
- display
- - family
- id
+ - name
- url
- NestedIPAddressRequest:
+ NestedVirtualMachineRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109560,12 +114929,13 @@ components:
subclassed to return a full representation of the related object on read.'
properties:
- address:
+ name:
type: string
minLength: 1
+ maxLength: 64
required:
- - address
- NestedIPSecPolicy:
+ - name
+ NestedWirelessLANGroupRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109575,41 +114945,19 @@ components:
subclassed to return a full representation of the related object on read.'
properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
name:
type: string
+ minLength: 1
maxLength: 100
- required:
- - display
- - id
- - name
- - url
- NestedIPSecPolicyRequest:
- 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:
+ slug:
type: string
minLength: 1
maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
required:
- name
- NestedIPSecProfile:
+ - slug
+ NestedWirelessLink:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109629,15 +114977,14 @@ components:
display:
type: string
readOnly: true
- name:
+ ssid:
type: string
- maxLength: 100
+ maxLength: 32
required:
- display
- id
- - name
- url
- NestedIPSecProfileRequest:
+ NestedWirelessLinkRequest:
type: object
description: 'Represents an object related through a ForeignKey field. On write,
it accepts a primary key (PK) value or a
@@ -109647,21 +114994,11 @@ components:
subclassed to return a full representation of the related object on read.'
properties:
- name:
+ ssid:
type: string
- minLength: 1
- maxLength: 100
- required:
- - name
- NestedInterface:
+ maxLength: 32
+ ObjectChange:
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
@@ -109673,103 +115010,82 @@ components:
display:
type: string
readOnly: true
- device:
+ time:
+ type: string
+ format: date-time
+ readOnly: true
+ user:
allOf:
- - $ref: '#/components/schemas/NestedDevice'
+ - $ref: '#/components/schemas/User'
readOnly: true
- name:
+ user_name:
type: string
- maxLength: 64
- cable:
- type: integer
- nullable: true
- _occupied:
- type: boolean
readOnly: true
- title: ' occupied'
- required:
- - _occupied
- - device
- - display
- - id
- - name
- - url
- NestedInterfaceRequest:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
+ request_id:
+ type: string
+ format: uuid
+ readOnly: true
+ action:
+ type: object
+ properties:
+ value:
+ enum:
+ - create
+ - update
+ - delete
+ type: string
+ description: '* `create` - Created
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
+ * `update` - Updated
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
+ * `delete` - Deleted'
+ x-spec-enum-id: 544f9b3b28b7ce6a
+ label:
+ type: string
+ enum:
+ - Created
+ - Updated
+ - Deleted
+ readOnly: true
+ changed_object_type:
type: string
- minLength: 1
- maxLength: 64
- cable:
+ readOnly: true
+ changed_object_id:
type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ changed_object:
nullable: true
- required:
- - name
- NestedInterfaceTemplate:
- 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
+ prechange_data:
readOnly: true
- display:
- type: string
+ nullable: true
+ title: Pre-change data
+ postchange_data:
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
+ nullable: true
+ title: Post-change data
required:
+ - action
+ - changed_object
+ - changed_object_id
+ - changed_object_type
- display
- id
- - name
+ - postchange_data
+ - prechange_data
+ - request_id
+ - time
- url
- NestedInterfaceTemplateRequest:
- 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
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
- maxLength: 64
- required:
- - name
- NestedInventoryItemRole:
+ - user
+ - user_name
+ ObjectPermission:
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
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
- subclassed to return a full representation of the related object on read.'
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
id:
type: integer
@@ -109784,47 +115100,85 @@ components:
name:
type: string
maxLength: 100
- slug:
+ description:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ maxLength: 200
+ enabled:
+ type: boolean
+ object_types:
+ type: array
+ items:
+ type: string
+ actions:
+ type: array
+ items:
+ type: string
+ maxLength: 30
+ description: The list of actions granted by this permission
+ constraints:
+ nullable: true
+ description: Queryset filter matching the applicable objects of the selected
+ type(s)
+ groups:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedGroup'
+ users:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedUser'
required:
+ - actions
- display
- id
- name
- - slug
+ - object_types
- url
- NestedInventoryItemRoleRequest:
+ ObjectPermissionRequest:
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
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
- subclassed to return a full representation of the related object on read.'
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
name:
type: string
minLength: 1
maxLength: 100
- slug:
+ description:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ maxLength: 200
+ enabled:
+ type: boolean
+ object_types:
+ type: array
+ items:
+ type: string
+ actions:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 30
+ description: The list of actions granted by this permission
+ constraints:
+ nullable: true
+ description: Queryset filter matching the applicable objects of the selected
+ type(s)
+ groups:
+ type: array
+ items:
+ type: integer
+ users:
+ type: array
+ items:
+ type: integer
required:
+ - actions
- name
- - slug
- NestedL2VPN:
+ - object_types
+ ObjectType:
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
@@ -109836,2106 +115190,1197 @@ components:
display:
type: string
readOnly: true
- identifier:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- name:
+ app_label:
type: string
maxLength: 100
- slug:
+ model:
type: string
+ title: Python model class name
maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- type:
- enum:
- - vpws
- - vpls
- - vxlan
- - vxlan-evpn
- - mpls-evpn
- - pbb-evpn
- - 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
-
- * `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: dbaa4f996ec2d110
required:
+ - app_label
- display
- id
- - name
- - slug
- - type
+ - model
- url
- NestedL2VPNRequest:
+ PaginatedASNList:
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.'
+ required:
+ - count
+ - results
properties:
- identifier:
+ count:
type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 100
- slug:
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- type:
- enum:
- - vpws
- - vpls
- - vxlan
- - vxlan-evpn
- - mpls-evpn
- - pbb-evpn
- - epl
- - evpl
- - ep-lan
- - evp-lan
- - ep-tree
- - evp-tree
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- description: '* `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'
- x-spec-enum-id: dbaa4f996ec2d110
- required:
- - name
- - slug
- - type
- NestedL2VPNTermination:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ASN'
+ PaginatedASNRangeList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- readOnly: true
- l2vpn:
- $ref: '#/components/schemas/NestedL2VPN'
- required:
- - display
- - id
- - l2vpn
- - url
- NestedL2VPNTerminationRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ASNRange'
+ PaginatedAggregateList:
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:
- l2vpn:
- $ref: '#/components/schemas/NestedL2VPNRequest'
required:
- - l2vpn
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
- required:
- - _depth
- - display
- - id
- - name
- - slug
- - url
- NestedLocationRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Aggregate'
+ PaginatedBookmarkList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedManufacturer:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Bookmark'
+ PaginatedCableList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedManufacturerRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Cable'
+ PaginatedCableTerminationList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedModuleBay:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CableTermination'
+ PaginatedCircuitList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- readOnly: true
- installed_module:
- allOf:
- - $ref: '#/components/schemas/ModuleBayNestedModule'
nullable: true
- name:
- type: string
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- NestedModuleBayRequest:
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Circuit'
+ PaginatedCircuitTerminationList:
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.'
+ required:
+ - count
+ - results
properties:
- installed_module:
- allOf:
- - $ref: '#/components/schemas/ModuleBayNestedModuleRequest'
+ count:
+ type: integer
+ example: 123
+ next:
+ type: string
nullable: true
- name:
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 64
- required:
- - name
- NestedModuleType:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CircuitTermination'
+ PaginatedCircuitTypeList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- manufacturer:
- allOf:
- - $ref: '#/components/schemas/NestedManufacturer'
- readOnly: true
- model:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- required:
- - display
- - id
- - manufacturer
- - model
- - url
- NestedModuleTypeRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CircuitType'
+ PaginatedClusterGroupList:
type: object
- 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:
- model:
- type: string
- minLength: 1
- maxLength: 100
required:
- - model
- NestedPlatform:
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedPlatformRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterGroup'
+ PaginatedClusterList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedPowerPanel:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Cluster'
+ PaginatedClusterTypeList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- required:
- - display
- - id
- - name
- - url
- NestedPowerPanelRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ClusterType'
+ PaginatedConfigContextList:
type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
required:
- - name
- NestedPowerPort:
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- device:
- allOf:
- - $ref: '#/components/schemas/NestedDevice'
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 64
- cable:
- type: integer
nullable: true
- _occupied:
- type: boolean
- readOnly: true
- title: ' occupied'
- required:
- - _occupied
- - device
- - display
- - id
- - name
- - url
- NestedPowerPortRequest:
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ConfigContext'
+ PaginatedConfigTemplateList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
- type: string
- minLength: 1
- maxLength: 64
- cable:
+ count:
type: integer
+ example: 123
+ next:
+ type: string
nullable: true
- required:
- - name
- NestedPowerPortTemplate:
+ 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/ConfigTemplate'
+ PaginatedConsolePortList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- NestedPowerPortTemplateRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ConsolePort'
+ PaginatedConsolePortTemplateList:
type: object
- 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
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
- maxLength: 64
required:
- - name
- NestedProvider:
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- description: Full name of the provider
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedProviderAccount:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ConsolePortTemplate'
+ PaginatedConsoleServerPortList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- account:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- title: Account ID
- maxLength: 100
- required:
- - account
- - display
- - id
- - url
- NestedProviderAccountRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ConsoleServerPort'
+ PaginatedConsoleServerPortTemplateList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- maxLength: 100
- account:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- title: Account ID
- maxLength: 100
- required:
- - account
- NestedProviderNetwork:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ConsoleServerPortTemplate'
+ PaginatedContactAssignmentList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- required:
- - display
- - id
- - name
- - url
- NestedProviderNetworkRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ContactAssignment'
+ PaginatedContactGroupList:
type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
required:
- - name
- NestedProviderRequest:
- 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.'
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- description: Full name of the provider
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedRIR:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ContactGroup'
+ PaginatedContactList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- readOnly: true
- name:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Contact'
+ PaginatedContactRoleList:
+ type: object
+ required:
+ - count
+ - results
+ properties:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedRIRRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ContactRole'
+ PaginatedCustomFieldChoiceSetList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedRack:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CustomFieldChoiceSet'
+ PaginatedCustomFieldList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- required:
- - display
- - id
- - name
- - url
- NestedRackRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CustomField'
+ PaginatedCustomLinkList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- required:
- - name
- NestedRackRole:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/CustomLink'
+ PaginatedDataFileList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- slug:
- type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedRackRoleRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DataFile'
+ PaginatedDataSourceList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedRearPortTemplate:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DataSource'
+ PaginatedDeviceBayList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- NestedRearPortTemplateRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DeviceBay'
+ PaginatedDeviceBayTemplateList:
type: object
- 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
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
- maxLength: 64
required:
- - name
- NestedRegion:
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
- required:
- - _depth
- - display
- - id
- - name
- - slug
- - url
- NestedRegionRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DeviceBayTemplate'
+ PaginatedDeviceRoleList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedRole:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DeviceRole'
+ PaginatedDeviceTypeList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedRoleRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DeviceType'
+ PaginatedDeviceWithConfigContextList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedSite:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/DeviceWithConfigContext'
+ PaginatedEventRuleList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- description: Full name of the site
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedSiteGroup:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/EventRule'
+ PaginatedExportTemplateList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
- required:
- - _depth
- - display
- - id
- - name
- - slug
- - url
- NestedSiteGroupRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ExportTemplate'
+ PaginatedFHRPGroupAssignmentList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedSiteRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/FHRPGroupAssignment'
+ PaginatedFHRPGroupList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- description: Full name of the site
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedTag:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/FHRPGroup'
+ PaginatedFrontPortList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
- type: string
- pattern: ^[-\w]+$
- maxLength: 100
- color:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedTagRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/FrontPort'
+ PaginatedFrontPortTemplateList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- slug:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- pattern: ^[-\w]+$
- maxLength: 100
- color:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- required:
- - name
- - slug
- NestedTenant:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/FrontPortTemplate'
+ PaginatedGroupList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedTenantGroup:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Group'
+ PaginatedIKEPolicyList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- _depth:
- type: integer
- readOnly: true
- title: ' depth'
- required:
- - _depth
- - display
- - id
- - name
- - slug
- - url
- NestedTenantGroupRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/IKEPolicy'
+ PaginatedIKEProposalList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedTenantRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/IKEProposal'
+ PaginatedIPAddressList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedTunnel:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPAddress'
+ PaginatedIPRangeList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- required:
- - display
- - id
- - name
- - url
- NestedTunnelGroup:
+ 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
- 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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedTunnelGroupRequest:
+ 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
- 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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedTunnelRequest:
+ 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
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
required:
- - name
- NestedUser:
- 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- username:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
- only.
- pattern: ^[\w.@+-]+$
- maxLength: 150
- required:
- - display
- - id
- - url
- - username
- NestedUserRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPSecProposal'
+ PaginatedImageAttachmentList:
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:
- username:
- type: string
- minLength: 1
- description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
- only.
- pattern: ^[\w.@+-]+$
- maxLength: 150
required:
- - 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.'
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
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:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- - vid
- NestedVLANGroup:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/ImageAttachment'
+ PaginatedInterfaceList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- slug:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - display
- - id
- - name
- - slug
- - url
- NestedVLANGroupRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/Interface'
+ PaginatedInterfaceTemplateList:
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.'
+ required:
+ - count
+ - results
properties:
- name:
+ count:
+ type: integer
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- required:
- - name
- - slug
- NestedVLANRequest:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/InterfaceTemplate'
+ PaginatedInventoryItemList:
type: object
- 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.'
+ required:
+ - count
+ - results
properties:
- vid:
+ count:
type: integer
- maximum: 4094
- minimum: 1
- title: VLAN ID
- description: Numeric VLAN ID (1-4094)
- name:
+ example: 123
+ next:
type: string
- minLength: 1
- maxLength: 64
- required:
- - name
- - vid
- NestedVMInterface:
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
+ type: string
+ nullable: true
+ format: uri
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
+ type: array
+ items:
+ $ref: '#/components/schemas/InventoryItem'
+ PaginatedInventoryItemRoleList:
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.'
+ required:
+ - count
+ - results
properties:
- id:
+ count:
type: integer
- readOnly: true
- url:
+ example: 123
+ next:
type: string
+ nullable: true
format: uri
- readOnly: true
- display:
+ example: http://api.example.org/accounts/?offset=400&limit=100
+ previous:
type: string
- readOnly: true
- virtual_machine:
- allOf:
- - $ref: '#/components/schemas/NestedVirtualMachine'
- readOnly: true
- name:
- type: string
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- - virtual_machine
- NestedVMInterfaceRequest:
- type: object
- description: '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: 64
- required:
- - name
- NestedVRF:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 100
- rd:
- type: string
- nullable: true
- title: Route distinguisher
- description: Unique route distinguisher (as defined in RFC 4364)
- maxLength: 21
- required:
- - display
- - id
- - name
- - url
- NestedVRFRequest:
- 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
- rd:
- type: string
- nullable: true
- title: Route distinguisher
- description: Unique route distinguisher (as defined in RFC 4364)
- maxLength: 21
- required:
- - name
- NestedVirtualChassis:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 64
- master:
- $ref: '#/components/schemas/NestedDevice'
- required:
- - display
- - id
- - master
- - name
- - url
- NestedVirtualChassisRequest:
- 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: 64
- master:
- $ref: '#/components/schemas/NestedDeviceRequest'
- required:
- - master
- - name
- NestedVirtualMachine:
- type: object
- description: 'Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a
-
- dictionary of attributes which can be used to uniquely identify the related
- object. This class should be
-
- subclassed to return a full representation of the related object on read.'
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- name:
- type: string
- maxLength: 64
- required:
- - display
- - id
- - name
- - url
- NestedVirtualMachineRequest:
- 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: 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:
- 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,
- 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
- NestedWirelessLink:
- 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
- ssid:
- type: string
- maxLength: 32
- required:
- - display
- - id
- - url
- NestedWirelessLinkRequest:
- 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:
- ssid:
- type: string
- maxLength: 32
- ObjectChange:
- type: object
- properties:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
- time:
- type: string
- format: date-time
- readOnly: true
- user:
- allOf:
- - $ref: '#/components/schemas/NestedUser'
- readOnly: true
- user_name:
- type: string
- readOnly: true
- request_id:
- type: string
- format: uuid
- readOnly: true
- action:
- type: object
- properties:
- value:
- enum:
- - create
- - update
- - delete
- type: string
- description: '* `create` - Created
-
- * `update` - Updated
-
- * `delete` - Deleted'
- x-spec-enum-id: 544f9b3b28b7ce6a
- label:
- type: string
- enum:
- - Created
- - Updated
- - Deleted
- readOnly: true
- changed_object_type:
- type: string
- readOnly: true
- changed_object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- changed_object:
- nullable: true
- readOnly: true
- 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
- - user
- - user_name
- ObjectPermission:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- 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
- enabled:
- type: boolean
- object_types:
- type: array
- items:
- type: string
- groups:
- type: array
- items:
- type: integer
- users:
- type: array
- items:
- type: integer
- actions:
+ example: http://api.example.org/accounts/?offset=200&limit=100
+ results:
type: array
items:
- type: string
- maxLength: 30
- description: The list of actions granted by this permission
- constraints:
- nullable: true
- description: Queryset filter matching the applicable objects of the selected
- type(s)
- required:
- - actions
- - display
- - id
- - name
- - object_types
- - url
- ObjectPermissionRequest:
+ $ref: '#/components/schemas/InventoryItemRole'
+ PaginatedInventoryItemTemplateList:
type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- enabled:
- type: boolean
- object_types:
- type: array
- items:
- type: string
- groups:
- type: array
- items:
- type: integer
- users:
- type: array
- items:
- type: integer
- actions:
- type: array
- items:
- type: string
- minLength: 1
- maxLength: 30
- description: The list of actions granted by this permission
- constraints:
- nullable: true
- description: Queryset filter matching the applicable objects of the selected
- type(s)
required:
- - actions
- - name
- - object_types
- PaginatedASNList:
- type: object
+ - count
+ - results
properties:
count:
type: integer
@@ -111953,9 +116398,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ASN'
- PaginatedASNRangeList:
+ $ref: '#/components/schemas/InventoryItemTemplate'
+ PaginatedJobList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -111973,9 +116421,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ASNRange'
- PaginatedAggregateList:
+ $ref: '#/components/schemas/Job'
+ PaginatedJournalEntryList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -111993,9 +116444,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Aggregate'
- PaginatedBookmarkList:
+ $ref: '#/components/schemas/JournalEntry'
+ PaginatedL2VPNList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112013,9 +116467,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Bookmark'
- PaginatedCableList:
+ $ref: '#/components/schemas/L2VPN'
+ PaginatedL2VPNTerminationList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112033,9 +116490,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Cable'
- PaginatedCableTerminationList:
+ $ref: '#/components/schemas/L2VPNTermination'
+ PaginatedLocationList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112053,9 +116513,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CableTermination'
- PaginatedCircuitList:
+ $ref: '#/components/schemas/Location'
+ PaginatedManufacturerList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112073,9 +116536,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Circuit'
- PaginatedCircuitTerminationList:
+ $ref: '#/components/schemas/Manufacturer'
+ PaginatedModuleBayList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112093,9 +116559,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CircuitTermination'
- PaginatedCircuitTypeList:
+ $ref: '#/components/schemas/ModuleBay'
+ PaginatedModuleBayTemplateList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112113,9 +116582,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CircuitType'
- PaginatedClusterGroupList:
+ $ref: '#/components/schemas/ModuleBayTemplate'
+ PaginatedModuleList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112133,9 +116605,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ClusterGroup'
- PaginatedClusterList:
+ $ref: '#/components/schemas/Module'
+ PaginatedModuleTypeList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112153,9 +116628,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Cluster'
- PaginatedClusterTypeList:
+ $ref: '#/components/schemas/ModuleType'
+ PaginatedObjectChangeList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112173,9 +116651,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ClusterType'
- PaginatedConfigContextList:
+ $ref: '#/components/schemas/ObjectChange'
+ PaginatedObjectPermissionList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112193,9 +116674,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConfigContext'
- PaginatedConfigTemplateList:
+ $ref: '#/components/schemas/ObjectPermission'
+ PaginatedObjectTypeList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112213,9 +116697,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConfigTemplate'
- PaginatedConsolePortList:
+ $ref: '#/components/schemas/ObjectType'
+ PaginatedPlatformList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112233,9 +116720,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConsolePort'
- PaginatedConsolePortTemplateList:
+ $ref: '#/components/schemas/Platform'
+ PaginatedPowerFeedList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112253,9 +116743,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConsolePortTemplate'
- PaginatedConsoleServerPortList:
+ $ref: '#/components/schemas/PowerFeed'
+ PaginatedPowerOutletList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112273,9 +116766,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConsoleServerPort'
- PaginatedConsoleServerPortTemplateList:
+ $ref: '#/components/schemas/PowerOutlet'
+ PaginatedPowerOutletTemplateList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112293,9 +116789,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ConsoleServerPortTemplate'
- PaginatedContactAssignmentList:
+ $ref: '#/components/schemas/PowerOutletTemplate'
+ PaginatedPowerPanelList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112313,9 +116812,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ContactAssignment'
- PaginatedContactGroupList:
+ $ref: '#/components/schemas/PowerPanel'
+ PaginatedPowerPortList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112333,9 +116835,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ContactGroup'
- PaginatedContactList:
+ $ref: '#/components/schemas/PowerPort'
+ PaginatedPowerPortTemplateList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112353,9 +116858,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Contact'
- PaginatedContactRoleList:
+ $ref: '#/components/schemas/PowerPortTemplate'
+ PaginatedPrefixList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112373,9 +116881,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ContactRole'
- PaginatedContentTypeList:
+ $ref: '#/components/schemas/Prefix'
+ PaginatedProviderAccountList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112393,9 +116904,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ContentType'
- PaginatedCustomFieldChoiceSetList:
+ $ref: '#/components/schemas/ProviderAccount'
+ PaginatedProviderList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112413,9 +116927,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CustomFieldChoiceSet'
- PaginatedCustomFieldList:
+ $ref: '#/components/schemas/Provider'
+ PaginatedProviderNetworkList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112433,9 +116950,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CustomField'
- PaginatedCustomLinkList:
+ $ref: '#/components/schemas/ProviderNetwork'
+ PaginatedRIRList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112453,9 +116973,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/CustomLink'
- PaginatedDataFileList:
+ $ref: '#/components/schemas/RIR'
+ PaginatedRackList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112473,9 +116996,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DataFile'
- PaginatedDataSourceList:
+ $ref: '#/components/schemas/Rack'
+ PaginatedRackReservationList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112493,9 +117019,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DataSource'
- PaginatedDeviceBayList:
+ $ref: '#/components/schemas/RackReservation'
+ PaginatedRackRoleList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112513,9 +117042,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DeviceBay'
- PaginatedDeviceBayTemplateList:
+ $ref: '#/components/schemas/RackRole'
+ PaginatedRackUnitList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112533,9 +117065,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DeviceBayTemplate'
- PaginatedDeviceRoleList:
+ $ref: '#/components/schemas/RackUnit'
+ PaginatedRearPortList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112553,9 +117088,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DeviceRole'
- PaginatedDeviceTypeList:
+ $ref: '#/components/schemas/RearPort'
+ PaginatedRearPortTemplateList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112573,9 +117111,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DeviceType'
- PaginatedDeviceWithConfigContextList:
+ $ref: '#/components/schemas/RearPortTemplate'
+ PaginatedRegionList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112593,9 +117134,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/DeviceWithConfigContext'
- PaginatedEventRuleList:
+ $ref: '#/components/schemas/Region'
+ PaginatedRoleList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112613,9 +117157,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/EventRule'
- PaginatedExportTemplateList:
+ $ref: '#/components/schemas/Role'
+ PaginatedRouteTargetList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112633,9 +117180,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ExportTemplate'
- PaginatedFHRPGroupAssignmentList:
+ $ref: '#/components/schemas/RouteTarget'
+ PaginatedSavedFilterList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112653,9 +117203,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/FHRPGroupAssignment'
- PaginatedFHRPGroupList:
+ $ref: '#/components/schemas/SavedFilter'
+ PaginatedScriptList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112673,9 +117226,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/FHRPGroup'
- PaginatedFrontPortList:
+ $ref: '#/components/schemas/Script'
+ PaginatedServiceList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112693,9 +117249,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/FrontPort'
- PaginatedFrontPortTemplateList:
+ $ref: '#/components/schemas/Service'
+ PaginatedServiceTemplateList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112713,9 +117272,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/FrontPortTemplate'
- PaginatedGroupList:
+ $ref: '#/components/schemas/ServiceTemplate'
+ PaginatedSiteGroupList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112733,9 +117295,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Group'
- PaginatedIKEPolicyList:
+ $ref: '#/components/schemas/SiteGroup'
+ PaginatedSiteList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112753,9 +117318,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IKEPolicy'
- PaginatedIKEProposalList:
+ $ref: '#/components/schemas/Site'
+ PaginatedTagList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112773,9 +117341,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IKEProposal'
- PaginatedIPAddressList:
+ $ref: '#/components/schemas/Tag'
+ PaginatedTenantGroupList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112793,9 +117364,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IPAddress'
- PaginatedIPRangeList:
+ $ref: '#/components/schemas/TenantGroup'
+ PaginatedTenantList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112813,9 +117387,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IPRange'
- PaginatedIPSecPolicyList:
+ $ref: '#/components/schemas/Tenant'
+ PaginatedTokenList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112833,9 +117410,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IPSecPolicy'
- PaginatedIPSecProfileList:
+ $ref: '#/components/schemas/Token'
+ PaginatedTunnelGroupList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112853,9 +117433,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IPSecProfile'
- PaginatedIPSecProposalList:
+ $ref: '#/components/schemas/TunnelGroup'
+ PaginatedTunnelList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112873,9 +117456,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/IPSecProposal'
- PaginatedImageAttachmentList:
+ $ref: '#/components/schemas/Tunnel'
+ PaginatedTunnelTerminationList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112893,9 +117479,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ImageAttachment'
- PaginatedInterfaceList:
+ $ref: '#/components/schemas/TunnelTermination'
+ PaginatedUserList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112913,9 +117502,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Interface'
- PaginatedInterfaceTemplateList:
+ $ref: '#/components/schemas/User'
+ PaginatedVLANGroupList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112933,9 +117525,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/InterfaceTemplate'
- PaginatedInventoryItemList:
+ $ref: '#/components/schemas/VLANGroup'
+ PaginatedVLANList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112953,9 +117548,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/InventoryItem'
- PaginatedInventoryItemRoleList:
+ $ref: '#/components/schemas/VLAN'
+ PaginatedVMInterfaceList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112973,9 +117571,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/InventoryItemRole'
- PaginatedInventoryItemTemplateList:
+ $ref: '#/components/schemas/VMInterface'
+ PaginatedVRFList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -112993,9 +117594,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/InventoryItemTemplate'
- PaginatedJobList:
+ $ref: '#/components/schemas/VRF'
+ PaginatedVirtualChassisList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113013,9 +117617,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Job'
- PaginatedJournalEntryList:
+ $ref: '#/components/schemas/VirtualChassis'
+ PaginatedVirtualDeviceContextList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113033,9 +117640,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/JournalEntry'
- PaginatedL2VPNList:
+ $ref: '#/components/schemas/VirtualDeviceContext'
+ PaginatedVirtualDiskList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113053,9 +117663,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/L2VPN'
- PaginatedL2VPNTerminationList:
+ $ref: '#/components/schemas/VirtualDisk'
+ PaginatedVirtualMachineWithConfigContextList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113073,9 +117686,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/L2VPNTermination'
- PaginatedLocationList:
+ $ref: '#/components/schemas/VirtualMachineWithConfigContext'
+ PaginatedWebhookList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113093,9 +117709,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Location'
- PaginatedManufacturerList:
+ $ref: '#/components/schemas/Webhook'
+ PaginatedWirelessLANGroupList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113113,9 +117732,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/Manufacturer'
- PaginatedModuleBayList:
+ $ref: '#/components/schemas/WirelessLANGroup'
+ PaginatedWirelessLANList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113133,9 +117755,12 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ModuleBay'
- PaginatedModuleBayTemplateList:
+ $ref: '#/components/schemas/WirelessLAN'
+ PaginatedWirelessLinkList:
type: object
+ required:
+ - count
+ - results
properties:
count:
type: integer
@@ -113153,1096 +117778,388 @@ components:
results:
type: array
items:
- $ref: '#/components/schemas/ModuleBayTemplate'
- PaginatedModuleList:
+ $ref: '#/components/schemas/WirelessLink'
+ PatchedASNRangeRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
- type: integer
- example: 123
- next:
+ name:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ 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
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ description:
+ type: string
+ maxLength: 200
+ tags:
type: array
items:
- $ref: '#/components/schemas/Module'
- PaginatedModuleTypeList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedASNRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
+ asn:
type: integer
- example: 123
- next:
- type: string
+ maximum: 4294967295
+ minimum: 1
+ format: int64
+ description: 16- or 32-bit autonomous system number
+ rir:
+ allOf:
+ - $ref: '#/components/schemas/RIRRequest'
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
type: array
items:
- $ref: '#/components/schemas/ModuleType'
- PaginatedObjectChangeList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedBookmarkRequest:
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:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ object_type:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/ObjectChange'
- PaginatedObjectPermissionList:
+ object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ user:
+ $ref: '#/components/schemas/UserRequest'
+ PatchedCableTerminationRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
+ cable:
type: integer
- example: 123
- next:
+ cable_end:
+ enum:
+ - A
+ - B
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ description: '* `A` - A
+
+ * `B` - B'
+ x-spec-enum-id: 1db84f9b93b261c8
+ title: End
+ termination_type:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/ObjectPermission'
- PaginatedPlatformList:
+ termination_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ PatchedCircuitTerminationRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
- type: integer
- example: 123
- next:
+ circuit:
+ $ref: '#/components/schemas/CircuitRequest'
+ term_side:
+ enum:
+ - A
+ - Z
type: string
+ description: '* `A` - A
+
+ * `Z` - Z'
+ x-spec-enum-id: 95b8fcc737f355d0
+ title: Termination
+ site:
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
+ provider_network:
+ allOf:
+ - $ref: '#/components/schemas/ProviderNetworkRequest'
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Platform'
- PaginatedPowerFeedList:
- type: object
- properties:
- count:
+ port_speed:
type: integer
- example: 123
- next:
- type: string
+ maximum: 2147483647
+ minimum: 0
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
+ title: Port speed (Kbps)
+ description: Physical circuit speed
+ upstream_speed:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ 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
+ pp_info:
+ type: string
+ title: Patch panel/port(s)
+ description: Patch panel ID and port number(s)
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ mark_connected:
+ type: boolean
+ description: Treat as if a cable is connected
+ tags:
type: array
items:
- $ref: '#/components/schemas/PowerFeed'
- PaginatedPowerOutletList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedCircuitTypeRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
- type: integer
- example: 123
- next:
+ name:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ minLength: 1
+ maxLength: 100
+ slug:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ 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/PowerOutlet'
- PaginatedPowerOutletTemplateList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedClusterGroupRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
- type: integer
- example: 123
- next:
+ name:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ minLength: 1
+ maxLength: 100
+ slug:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ minLength: 1
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
+ type: string
+ maxLength: 200
+ tags:
type: array
items:
- $ref: '#/components/schemas/PowerOutletTemplate'
- PaginatedPowerPanelList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedClusterTypeRequest:
type: object
+ description: Adds support for custom fields and tags.
properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/PowerPanel'
- PaginatedPowerPortList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/PowerPort'
- PaginatedPowerPortTemplateList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/PowerPortTemplate'
- PaginatedPrefixList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Prefix'
- PaginatedProviderAccountList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/ProviderAccount'
- PaginatedProviderList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Provider'
- PaginatedProviderNetworkList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/ProviderNetwork'
- PaginatedRIRList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RIR'
- PaginatedRackList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Rack'
- PaginatedRackReservationList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RackReservation'
- PaginatedRackRoleList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RackRole'
- PaginatedRackUnitList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RackUnit'
- PaginatedRearPortList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RearPort'
- PaginatedRearPortTemplateList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RearPortTemplate'
- PaginatedRegionList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Region'
- PaginatedRoleList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Role'
- PaginatedRouteTargetList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/RouteTarget'
- PaginatedSavedFilterList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/SavedFilter'
- PaginatedServiceList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Service'
- PaginatedServiceTemplateList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/ServiceTemplate'
- PaginatedSiteGroupList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/SiteGroup'
- PaginatedSiteList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Site'
- PaginatedTagList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Tag'
- PaginatedTenantGroupList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/TenantGroup'
- PaginatedTenantList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Tenant'
- PaginatedTokenList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/Token'
- PaginatedTunnelGroupList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ name:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/TunnelGroup'
- PaginatedTunnelList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
+ minLength: 1
+ maxLength: 100
+ slug:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ minLength: 1
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ description:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ maxLength: 200
+ tags:
type: array
items:
- $ref: '#/components/schemas/Tunnel'
- PaginatedTunnelTerminationList:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedConfigContextRequest:
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:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ name:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
- type: array
- items:
- $ref: '#/components/schemas/TunnelTermination'
- PaginatedUserList:
- type: object
- properties:
- count:
+ minLength: 1
+ maxLength: 100
+ weight:
type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
+ maximum: 32767
+ minimum: 0
+ description:
type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ maxLength: 200
+ is_active:
+ type: boolean
+ regions:
type: array
items:
- $ref: '#/components/schemas/User'
- PaginatedVLANGroupList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ site_groups:
type: array
items:
- $ref: '#/components/schemas/VLANGroup'
- PaginatedVLANList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ sites:
type: array
items:
- $ref: '#/components/schemas/VLAN'
- PaginatedVMInterfaceList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ locations:
type: array
items:
- $ref: '#/components/schemas/VMInterface'
- PaginatedVRFList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ device_types:
type: array
items:
- $ref: '#/components/schemas/VRF'
- PaginatedVirtualChassisList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ roles:
type: array
items:
- $ref: '#/components/schemas/VirtualChassis'
- PaginatedVirtualDeviceContextList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ platforms:
type: array
items:
- $ref: '#/components/schemas/VirtualDeviceContext'
- PaginatedVirtualDiskList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ cluster_types:
type: array
items:
- $ref: '#/components/schemas/VirtualDisk'
- PaginatedVirtualMachineWithConfigContextList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ cluster_groups:
type: array
items:
- $ref: '#/components/schemas/VirtualMachineWithConfigContext'
- PaginatedWebhookList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ clusters:
type: array
items:
- $ref: '#/components/schemas/Webhook'
- PaginatedWirelessLANGroupList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ tenant_groups:
type: array
items:
- $ref: '#/components/schemas/WirelessLANGroup'
- PaginatedWirelessLANList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ tenants:
type: array
items:
- $ref: '#/components/schemas/WirelessLAN'
- PaginatedWirelessLinkList:
- type: object
- properties:
- count:
- type: integer
- example: 123
- next:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=400&limit=100
- previous:
- type: string
- nullable: true
- format: uri
- example: http://api.example.org/accounts/?offset=200&limit=100
- results:
+ type: integer
+ tags:
type: array
items:
- $ref: '#/components/schemas/WirelessLink'
- PatchedCableTerminationRequest:
+ type: string
+ minLength: 1
+ data_source:
+ $ref: '#/components/schemas/DataSourceRequest'
+ data: {}
+ PatchedConfigTemplateRequest:
type: object
- description: Adds support for custom fields and tags.
- properties:
- cable:
- type: integer
- cable_end:
- enum:
- - A
- - B
- type: string
- description: '* `A` - A
+ description: 'Introduces support for Tag assignment. Adds `tags` serialization,
+ and handles tag assignment
- * `B` - B'
- x-spec-enum-id: 1db84f9b93b261c8
- title: End
- termination_type:
- type: string
- termination_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- PatchedCircuitTypeRequest:
- type: object
- description: Adds support for custom fields and tags.
+ on create() and update().'
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
+ 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/DataSourceRequest'
tags:
type: array
items:
$ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedClusterGroupRequest:
+ PatchedContactRequest:
type: object
description: Adds support for custom fields and tags.
properties:
+ group:
+ allOf:
+ - $ref: '#/components/schemas/ContactGroupRequest'
+ nullable: true
name:
type: string
minLength: 1
maxLength: 100
- slug:
+ title:
type: string
- minLength: 1
maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- description:
+ phone:
type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedClusterTypeRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
+ maxLength: 50
+ email:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ format: email
+ maxLength: 254
+ address:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
+ maxLength: 200
+ link:
+ type: string
+ format: uri
+ maxLength: 200
description:
type: string
maxLength: 200
+ comments:
+ type: string
tags:
type: array
items:
@@ -114280,7 +118197,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -114366,61 +118283,27 @@ components:
properties:
layout: {}
config: {}
- PatchedFHRPGroupRequest:
+ PatchedDeviceBayRequest:
type: object
description: Adds support for custom fields and tags.
properties:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
name:
type: string
- maxLength: 100
- 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
- auth_type:
- enum:
- - plaintext
- - md5
- - ''
- type: string
- description: '* `plaintext` - Plaintext
-
- * `md5` - MD5'
- x-spec-enum-id: 12b9faea3a45bf37
- title: Authentication type
- auth_key:
+ minLength: 1
+ maxLength: 64
+ label:
type: string
- title: Authentication key
- maxLength: 255
+ description: Physical label
+ maxLength: 64
description:
type: string
maxLength: 200
- comments:
- type: string
+ installed_device:
+ allOf:
+ - $ref: '#/components/schemas/DeviceRequest'
+ nullable: true
tags:
type: array
items:
@@ -114428,28 +118311,207 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedGroupRequest:
+ PatchedDeviceBayTemplateRequest:
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:
+ $ref: '#/components/schemas/DeviceTypeRequest'
name:
type: string
minLength: 1
- maxLength: 150
- PatchedImageAttachmentRequest:
+ 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
+ description:
+ type: string
+ maxLength: 200
+ PatchedDeviceRoleRequest:
type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ description: Adds support for custom fields and tags.
properties:
- content_type:
+ name:
type: string
- object_id:
- type: integer
+ minLength: 1
+ maxLength: 100
+ slug:
+ type: string
+ minLength: 1
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ color:
+ type: string
+ minLength: 1
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
+ vm_role:
+ type: boolean
+ description: Virtual machines may be assigned to this role
+ config_template:
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedExportTemplateRequest:
+ 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_types:
+ type: array
+ items:
+ type: string
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ template_code:
+ type: string
+ minLength: 1
+ description: Jinja2 template code. The list of objects being exported is
+ passed as a context variable named queryset
.
+ mime_type:
+ type: string
+ description: Defaults to text/plain; charset=utf-8
+ maxLength: 50
+ file_extension:
+ type: string
+ description: Extension to append to the rendered filename
+ maxLength: 15
+ as_attachment:
+ type: boolean
+ description: Download file as attachment
+ data_source:
+ $ref: '#/components/schemas/DataSourceRequest'
+ PatchedFHRPGroupAssignmentRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ group:
+ $ref: '#/components/schemas/FHRPGroupRequest'
+ interface_type:
+ type: string
+ interface_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ priority:
+ type: integer
+ maximum: 255
+ minimum: 0
+ PatchedFHRPGroupRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ maxLength: 100
+ 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
+ auth_type:
+ enum:
+ - plaintext
+ - md5
+ - ''
+ type: string
+ description: '* `plaintext` - Plaintext
+
+ * `md5` - MD5'
+ x-spec-enum-id: 12b9faea3a45bf37
+ 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: {}
+ PatchedGroupRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 150
+ description:
+ type: string
+ maxLength: 200
+ permissions:
+ type: array
+ items:
+ type: integer
+ PatchedImageAttachmentRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ object_type:
+ type: string
+ object_id:
+ type: integer
maximum: 9223372036854775807
minimum: 0
format: int64
@@ -114467,6 +118529,66 @@ components:
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.
@@ -114495,6 +118617,72 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedInventoryItemTemplateRequest:
+ 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:
+ $ref: '#/components/schemas/DeviceTypeRequest'
+ parent:
+ type: integer
+ 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
+ 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
+ description:
+ type: string
+ maxLength: 200
+ component_type:
+ type: string
+ nullable: true
+ component_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ nullable: true
+ PatchedL2VPNTerminationRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ l2vpn:
+ $ref: '#/components/schemas/L2VPNRequest'
+ 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: {}
PatchedManufacturerRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114518,6 +118706,246 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedModuleBayRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ installed_module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
+ nullable: true
+ label:
+ type: string
+ description: Physical label
+ maxLength: 64
+ position:
+ type: string
+ description: Identifier to reference when renaming installed components
+ maxLength: 30
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedModuleBayTemplateRequest:
+ 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:
+ $ref: '#/components/schemas/DeviceTypeRequest'
+ 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
+ position:
+ type: string
+ description: Identifier to reference when renaming installed components
+ maxLength: 30
+ description:
+ type: string
+ maxLength: 200
+ PatchedObjectPermissionRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ enabled:
+ type: boolean
+ object_types:
+ type: array
+ items:
+ type: string
+ actions:
+ type: array
+ items:
+ type: string
+ minLength: 1
+ maxLength: 30
+ description: The list of actions granted by this permission
+ constraints:
+ nullable: true
+ description: Queryset filter matching the applicable objects of the selected
+ type(s)
+ groups:
+ type: array
+ items:
+ type: integer
+ users:
+ type: array
+ items:
+ type: integer
+ PatchedPlatformRequest:
+ 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_]+$
+ manufacturer:
+ allOf:
+ - $ref: '#/components/schemas/ManufacturerRequest'
+ nullable: true
+ config_template:
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedPowerPanelRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ site:
+ $ref: '#/components/schemas/SiteRequest'
+ location:
+ allOf:
+ - $ref: '#/components/schemas/LocationRequest'
+ 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: {}
+ PatchedProviderAccountRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ provider:
+ $ref: '#/components/schemas/ProviderRequest'
+ name:
+ type: string
+ default: ''
+ maxLength: 100
+ account:
+ type: string
+ minLength: 1
+ title: Account ID
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedProviderNetworkRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ provider:
+ $ref: '#/components/schemas/ProviderRequest'
+ 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: {}
+ PatchedProviderRequest:
+ 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_]+$
+ 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: {}
PatchedRIRRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114545,6 +118973,37 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedRackReservationRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ rack:
+ $ref: '#/components/schemas/RackRequest'
+ units:
+ type: array
+ items:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ user:
+ $ref: '#/components/schemas/UserRequest'
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ description:
+ type: string
+ minLength: 1
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedRackRoleRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114600,6 +119059,31 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedRouteTargetRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ description: Route target value (formatted in accordance with RFC 4360)
+ maxLength: 21
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedSavedFilterRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -114607,7 +119091,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -114663,6 +119147,62 @@ components:
type: array
items:
type: string
+ PatchedTenantRequest:
+ 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_]+$
+ group:
+ allOf:
+ - $ref: '#/components/schemas/TenantGroupRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedTokenRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ user:
+ $ref: '#/components/schemas/UserRequest'
+ expires:
+ type: string
+ format: date-time
+ nullable: true
+ last_used:
+ type: string
+ format: date-time
+ nullable: true
+ key:
+ type: string
+ maxLength: 40
+ minLength: 40
+ write_enabled:
+ type: boolean
+ description: Permit create/update/delete operations using this key
+ description:
+ type: string
+ maxLength: 200
PatchedTunnelGroupRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114686,6 +119226,60 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedUserRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
+
+ validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
+ properties:
+ username:
+ type: string
+ minLength: 1
+ description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
+ only.
+ pattern: ^[\w.@+-]+$
+ maxLength: 150
+ password:
+ type: string
+ writeOnly: true
+ minLength: 1
+ maxLength: 128
+ first_name:
+ type: string
+ maxLength: 150
+ last_name:
+ type: string
+ maxLength: 150
+ email:
+ type: string
+ format: email
+ title: Email address
+ maxLength: 254
+ is_staff:
+ type: boolean
+ title: Staff status
+ description: Designates whether the user can log into this admin site.
+ is_active:
+ type: boolean
+ title: Active
+ description: Designates whether this user should be treated as active. Unselect
+ this instead of deleting accounts.
+ date_joined:
+ type: string
+ format: date-time
+ last_login:
+ type: string
+ format: date-time
+ nullable: true
+ groups:
+ type: array
+ items:
+ type: integer
+ permissions:
+ type: array
+ items:
+ type: integer
PatchedVLANGroupRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114727,6 +119321,73 @@ components:
custom_fields:
type: object
additionalProperties: {}
+ PatchedVRFRequest:
+ 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
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ 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: {}
+ PatchedVirtualDiskRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ virtual_machine:
+ $ref: '#/components/schemas/VirtualMachineRequest'
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ description:
+ type: string
+ maxLength: 200
+ size:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ title: Size (GB)
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
PatchedWebhookRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114804,72 +119465,6 @@ components:
type: array
items:
$ref: '#/components/schemas/NestedTagRequest'
- PatchedWritableASNRangeRequest:
- 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:
- type: integer
- start:
- type: integer
- maximum: 4294967295
- minimum: 1
- format: int64
- end:
- type: integer
- maximum: 4294967295
- minimum: 1
- format: int64
- tenant:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableASNRequest:
- 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:
- type: integer
- description: Regional Internet Registry responsible for this AS number space
- tenant:
- 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: {}
PatchedWritableAggregateRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114878,10 +119473,10 @@ components:
type: string
minLength: 1
rir:
- type: integer
- description: Regional Internet Registry responsible for this IP space
+ $ref: '#/components/schemas/RIRRequest'
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
date_added:
type: string
@@ -114899,22 +119494,6 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableBookmarkRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- object_type:
- type: string
- object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- user:
- type: integer
PatchedWritableCableRequest:
type: object
description: Adds support for custom fields and tags.
@@ -114946,3717 +119525,242 @@ components:
- 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)
-
- * `power` - Power'
- x-spec-enum-id: e671018e64196f8d
- 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:
- type: integer
- 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
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableCircuitRequest:
- 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:
- type: integer
- provider_account:
- type: integer
- nullable: true
- type:
- type: integer
- 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:
- type: integer
- 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
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableCircuitTerminationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- circuit:
- type: integer
- term_side:
- enum:
- - A
- - Z
- type: string
- description: '* `A` - A
-
- * `Z` - Z'
- x-spec-enum-id: 95b8fcc737f355d0
- title: Termination
- site:
- type: integer
- nullable: true
- provider_network:
- 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
- pp_info:
- type: string
- title: Patch panel/port(s)
- description: Patch panel ID and port number(s)
- maxLength: 100
- 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: {}
- PatchedWritableClusterRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- type:
- type: integer
- group:
- type: integer
- 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:
- type: integer
- nullable: true
- site:
- 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: {}
- PatchedWritableConfigContextRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- weight:
- type: integer
- maximum: 32767
- minimum: 0
- description:
- type: string
- maxLength: 200
- is_active:
- type: boolean
- regions:
- type: array
- items:
- type: integer
- site_groups:
- type: array
- items:
- type: integer
- sites:
- type: array
- items:
- type: integer
- locations:
- type: array
- items:
- type: integer
- device_types:
- type: array
- items:
- type: integer
- roles:
- type: array
- items:
- type: integer
- platforms:
- type: array
- items:
- type: integer
- cluster_types:
- type: array
- items:
- type: integer
- cluster_groups:
- type: array
- items:
- type: integer
- clusters:
- type: array
- items:
- type: integer
- tenant_groups:
- type: array
- items:
- type: integer
- tenants:
- type: array
- items:
- type: integer
- tags:
- type: array
- items:
- type: string
- minLength: 1
- data_source:
- type: integer
- nullable: true
- description: Remote data source
- data: {}
- PatchedWritableConfigTemplateRequest:
- 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
- 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:
- type: integer
- nullable: true
- description: Remote data source
- data_file:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- PatchedWritableConsolePortRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- module:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- type:
- enum:
- - 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
- - ''
- type: string
- x-spec-enum-id: c5f7197b7211818a
- description: 'Physical port type
-
-
- * `de-9` - DE-9
-
- * `db-25` - DB-25
-
- * `rj-11` - RJ-11
-
- * `rj-12` - RJ-12
-
- * `rj-45` - RJ-45
-
- * `mini-din-8` - Mini-DIN 8
-
- * `usb-a` - USB Type A
-
- * `usb-b` - USB Type B
-
- * `usb-c` - USB Type C
-
- * `usb-mini-a` - USB Mini A
-
- * `usb-mini-b` - USB Mini B
-
- * `usb-micro-a` - USB Micro A
-
- * `usb-micro-b` - USB Micro B
-
- * `usb-micro-ab` - USB Micro AB
-
- * `other` - Other'
- speed:
- enum:
- - 1200
- - 2400
- - 4800
- - 9600
- - 19200
- - 38400
- - 57600
- - 115200
- type: integer
- x-spec-enum-id: ab6d9635c131a378
- nullable: true
- 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'
- minimum: 0
- maximum: 2147483647
- 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: {}
- PatchedWritableConsolePortTemplateRequest:
- 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:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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:
- - 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
- - ''
- type: string
- description: '* `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'
- x-spec-enum-id: c5f7197b7211818a
- description:
- type: string
- maxLength: 200
- PatchedWritableConsoleServerPortRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- module:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- type:
- enum:
- - 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
- - ''
- type: string
- x-spec-enum-id: c5f7197b7211818a
- description: 'Physical port type
-
-
- * `de-9` - DE-9
-
- * `db-25` - DB-25
-
- * `rj-11` - RJ-11
-
- * `rj-12` - RJ-12
-
- * `rj-45` - RJ-45
-
- * `mini-din-8` - Mini-DIN 8
-
- * `usb-a` - USB Type A
-
- * `usb-b` - USB Type B
-
- * `usb-c` - USB Type C
-
- * `usb-mini-a` - USB Mini A
-
- * `usb-mini-b` - USB Mini B
-
- * `usb-micro-a` - USB Micro A
-
- * `usb-micro-b` - USB Micro B
-
- * `usb-micro-ab` - USB Micro AB
-
- * `other` - Other'
- speed:
- enum:
- - 1200
- - 2400
- - 4800
- - 9600
- - 19200
- - 38400
- - 57600
- - 115200
- type: integer
- x-spec-enum-id: ab6d9635c131a378
- nullable: true
- 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'
- minimum: 0
- maximum: 2147483647
- 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: {}
- PatchedWritableConsoleServerPortTemplateRequest:
- 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:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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:
- - 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
- - ''
- type: string
- description: '* `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'
- x-spec-enum-id: c5f7197b7211818a
- description:
- type: string
- maxLength: 200
- PatchedWritableContactAssignmentRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- content_type:
- type: string
- object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- contact:
- type: integer
- role:
- type: integer
- 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'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableContactGroupRequest:
- 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_]+$
- parent:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableContactRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- group:
- type: integer
- 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: {}
- PatchedWritableCustomFieldChoiceSetRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- base_choices:
- enum:
- - IATA
- - ISO_3166
- - UN_LOCODE
- - ''
- type: string
- x-spec-enum-id: cf0efb5195f85007
- description: 'Base set of predefined choices (optional)
-
-
- * `IATA` - IATA (Airport codes)
-
- * `ISO_3166` - ISO 3166 (Country codes)
-
- * `UN_LOCODE` - UN/LOCODE (Location codes)'
- extra_choices:
- type: array
- items:
- type: array
- items: {}
- maxItems: 2
- minItems: 2
- order_alphabetically:
- type: boolean
- description: Choices are automatically ordered alphabetically
- PatchedWritableCustomFieldRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- content_types:
- type: array
- items:
- type: string
- type:
- enum:
- - text
- - longtext
- - integer
- - decimal
- - boolean
- - date
- - datetime
- - url
- - json
- - select
- - multiselect
- - object
- - multiobject
- type: string
- x-spec-enum-id: 22e3a64138d10046
- description: 'The type of data this custom field holds
-
-
- * `text` - Text
-
- * `longtext` - Text (long)
-
- * `integer` - Integer
-
- * `decimal` - Decimal
-
- * `boolean` - Boolean (true/false)
-
- * `date` - Date
-
- * `datetime` - Date & time
-
- * `url` - URL
-
- * `json` - JSON
-
- * `select` - Selection
-
- * `multiselect` - Multiple selection
-
- * `object` - Object
-
- * `multiobject` - Multiple objects'
- object_type:
- type: string
- nullable: true
- name:
- type: string
- minLength: 1
- description: Internal field name
- pattern: ^[a-z0-9_]+$
- maxLength: 50
- label:
- type: string
- description: Name of the field as displayed to users (if not provided, 'the
- field's name will be used)
- maxLength: 50
- group_name:
- type: string
- description: Custom fields within the same group will be displayed together
- maxLength: 50
- description:
- type: string
- maxLength: 200
- required:
- type: boolean
- description: If true, this field is required when creating new objects or
- editing an existing object.
- search_weight:
- type: integer
- maximum: 32767
- minimum: 0
- description: Weighting for search. Lower values are considered more important.
- Fields with a search weight of zero will be ignored.
- filter_logic:
- enum:
- - disabled
- - loose
- - exact
- type: string
- x-spec-enum-id: a958350ae21c10ee
- description: 'Loose matches any instance of a given string; exact matches
- the entire field.
-
-
- * `disabled` - Disabled
-
- * `loose` - Loose
-
- * `exact` - Exact'
- ui_visible:
- enum:
- - always
- - if-set
- - hidden
- type: string
- x-spec-enum-id: cd2cf94af56de747
- description: 'Specifies whether the custom field is displayed in the UI
-
-
- * `always` - Always
-
- * `if-set` - If set
-
- * `hidden` - Hidden'
- ui_editable:
- enum:
- - 'yes'
- - 'no'
- - hidden
- type: string
- x-spec-enum-id: 1065673147e26bb5
- description: 'Specifies whether the custom field value can be edited in
- the UI
-
-
- * `yes` - Yes
-
- * `no` - No
-
- * `hidden` - Hidden'
- is_cloneable:
- type: boolean
- description: Replicate this value when cloning objects
- default:
- nullable: true
- description: Default value for the field (must be a JSON value). Encapsulate
- strings with double quotes (e.g. "Foo").
- weight:
- type: integer
- maximum: 32767
- minimum: 0
- title: Display weight
- description: Fields with higher weights appear lower in a form.
- validation_minimum:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- title: Minimum value
- description: Minimum allowed value (for numeric fields)
- validation_maximum:
- type: integer
- maximum: 9223372036854775807
- minimum: -9223372036854775808
- format: int64
- nullable: true
- title: Maximum value
- description: Maximum allowed value (for numeric fields)
- validation_regex:
- type: string
- description: Regular expression to enforce on text field values. Use ^ and
- $ to force matching of entire string. For example, ^[A-Z]{3}$
- will limit values to exactly three uppercase letters.
- maxLength: 500
- choice_set:
- type: integer
- nullable: true
- PatchedWritableDataSourceRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- type:
- type: string
- minLength: 1
- maxLength: 50
- source_url:
- type: string
- minLength: 1
- title: URL
- maxLength: 200
- enabled:
- type: boolean
- 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
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableDeviceBayRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- description:
- type: string
- maxLength: 200
- installed_device:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableDeviceBayTemplateRequest:
- 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:
- type: integer
- 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
- description:
- type: string
- maxLength: 200
- PatchedWritableDeviceRoleRequest:
- 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
- minLength: 1
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- vm_role:
- type: boolean
- description: Virtual machines may be assigned to this role
- config_template:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableDeviceTypeRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- manufacturer:
- type: integer
- default_platform:
- type: integer
- nullable: true
- model:
- type: string
- minLength: 1
- maxLength: 100
- slug:
- type: string
- 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
- x-spec-enum-id: d10d91f690a856c2
- 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.
-
-
- * `parent` - Parent
-
- * `child` - Child'
- airflow:
- enum:
- - front-to-rear
- - rear-to-front
- - left-to-right
- - right-to-left
- - side-to-rear
- - 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
-
- * `passive` - Passive
-
- * `mixed` - Mixed'
- x-spec-enum-id: 58e389e240a5e53d
- 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
- 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: {}
- PatchedWritableDeviceWithConfigContextRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- nullable: true
- maxLength: 64
- device_type:
- type: integer
- role:
- type: integer
- description: The function this device serves
- tenant:
- type: integer
- nullable: true
- platform:
- type: integer
- nullable: true
- serial:
- type: string
- title: Serial number
- description: Chassis serial number, assigned by the manufacturer
- maxLength: 50
- asset_tag:
- type: string
- nullable: true
- description: A unique tag used to identify this device
- maxLength: 50
- site:
- type: integer
- location:
- type: integer
- nullable: true
- rack:
- type: integer
- nullable: true
- position:
- type: number
- format: double
- maximum: 1000
- minimum: 0.5
- exclusiveMaximum: true
- nullable: true
- title: Position (U)
- face:
- enum:
- - front
- - rear
- - ''
- type: string
- description: '* `front` - Front
-
- * `rear` - Rear'
- x-spec-enum-id: d2fb9b3f75158b83
- title: Rack face
- latitude:
- type: number
- format: double
- maximum: 100
- minimum: -100
- exclusiveMaximum: true
- exclusiveMinimum: true
- nullable: true
- description: GPS coordinate in decimal format (xx.yyyyyy)
- longitude:
- type: number
- format: double
- maximum: 1000
- minimum: -1000
- exclusiveMaximum: true
- exclusiveMinimum: true
- nullable: true
- description: GPS coordinate in decimal format (xx.yyyyyy)
- status:
- enum:
- - offline
- - active
- - planned
- - staged
- - failed
- - inventory
- - decommissioning
- type: string
- description: '* `offline` - Offline
-
- * `active` - Active
-
- * `planned` - Planned
-
- * `staged` - Staged
-
- * `failed` - Failed
-
- * `inventory` - Inventory
-
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 8d8971779f16ee18
- airflow:
- enum:
- - front-to-rear
- - rear-to-front
- - left-to-right
- - right-to-left
- - side-to-rear
- - 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
-
- * `passive` - Passive
-
- * `mixed` - Mixed'
- x-spec-enum-id: 58e389e240a5e53d
- primary_ip4:
- type: integer
- nullable: true
- title: Primary IPv4
- primary_ip6:
- type: integer
- nullable: true
- title: Primary IPv6
- oob_ip:
- type: integer
- nullable: true
- title: Out-of-band IP
- cluster:
- type: integer
- nullable: true
- virtual_chassis:
- type: integer
- nullable: true
- vc_position:
- type: integer
- maximum: 255
- minimum: 0
- nullable: true
- vc_priority:
- type: integer
- maximum: 255
- minimum: 0
- nullable: true
- description: Virtual chassis master election priority
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- config_template:
- type: integer
- nullable: true
- local_context_data:
- nullable: true
- description: Local config context data takes precedence over source contexts
- in the final rendered config context
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableEventRuleRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- content_types:
- type: array
- items:
- type: string
- name:
- 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
- conditions:
- nullable: true
- description: A set of conditions which determine whether the event will
- be generated.
- action_type:
- enum:
- - webhook
- - script
- type: string
- description: '* `webhook` - Webhook
-
- * `script` - Script'
- x-spec-enum-id: a08300d86473de6e
- action_object_type:
- type: string
- action_object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- description:
- type: string
- maxLength: 200
- custom_fields:
- type: object
- additionalProperties: {}
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- PatchedWritableExportTemplateRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- content_types:
- type: array
- items:
- type: string
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- template_code:
- type: string
- minLength: 1
- description: Jinja2 template code. The list of objects being exported is
- passed as a context variable named queryset
.
- mime_type:
- type: string
- description: Defaults to text/plain; charset=utf-8
- maxLength: 50
- file_extension:
- type: string
- description: Extension to append to the rendered filename
- maxLength: 15
- as_attachment:
- type: boolean
- description: Download file as attachment
- data_source:
- type: integer
- nullable: true
- description: Remote data source
- PatchedWritableFHRPGroupAssignmentRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- group:
- type: integer
- interface_type:
- type: string
- interface_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- priority:
- type: integer
- maximum: 255
- minimum: 0
- PatchedWritableFrontPortRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- module:
- type: integer
- 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
- - 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
-
- * `other` - Other'
- x-spec-enum-id: 0276d1110ada597a
- color:
- type: string
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- rear_port:
- type: integer
- rear_port_position:
- type: integer
- maximum: 1024
- minimum: 1
- description: Mapped position on corresponding rear port
- 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: {}
- PatchedWritableFrontPortTemplateRequest:
- 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:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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
-
- * `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'
- x-spec-enum-id: 0276d1110ada597a
- color:
- type: string
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- rear_port:
- type: integer
- rear_port_position:
- type: integer
- maximum: 1024
- minimum: 1
- description:
- type: string
- maxLength: 200
- PatchedWritableIKEPolicyRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- version:
- enum:
- - 1
- - 2
- type: integer
- description: '* `1` - IKEv1
-
- * `2` - IKEv2'
- x-spec-enum-id: 00872b77916a1fde
- minimum: 0
- maximum: 32767
- mode:
- enum:
- - aggressive
- - main
- - ''
- type: string
- description: '* `aggressive` - Aggressive
-
- * `main` - Main'
- x-spec-enum-id: 64c1be7bdb2548ca
- proposals:
- type: array
- items:
- type: integer
- preshared_key:
- type: string
- title: Pre-shared key
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableIKEProposalRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- authentication_method:
- enum:
- - preshared-keys
- - certificates
- - rsa-signatures
- - dsa-signatures
- type: string
- description: '* `preshared-keys` - Pre-shared keys
-
- * `certificates` - Certificates
-
- * `rsa-signatures` - RSA signatures
-
- * `dsa-signatures` - DSA signatures'
- x-spec-enum-id: 92bb2f1103b3a262
- encryption_algorithm:
- enum:
- - aes-128-cbc
- - aes-128-gcm
- - aes-192-cbc
- - aes-192-gcm
- - aes-256-cbc
- - aes-256-gcm
- - 3des-cbc
- - des-cbc
- type: string
- description: '* `aes-128-cbc` - 128-bit AES (CBC)
-
- * `aes-128-gcm` - 128-bit AES (GCM)
-
- * `aes-192-cbc` - 192-bit AES (CBC)
-
- * `aes-192-gcm` - 192-bit AES (GCM)
-
- * `aes-256-cbc` - 256-bit AES (CBC)
-
- * `aes-256-gcm` - 256-bit AES (GCM)
-
- * `3des-cbc` - 3DES
-
- * `des-cbc` - DES'
- x-spec-enum-id: b022535cfdee79fe
- authentication_algorithm:
- enum:
- - hmac-sha1
- - hmac-sha256
- - hmac-sha384
- - hmac-sha512
- - hmac-md5
- - ''
- type: string
- description: '* `hmac-sha1` - SHA-1 HMAC
-
- * `hmac-sha256` - SHA-256 HMAC
-
- * `hmac-sha384` - SHA-384 HMAC
-
- * `hmac-sha512` - SHA-512 HMAC
-
- * `hmac-md5` - MD5 HMAC'
- x-spec-enum-id: 0830e8839f5dea4f
- group:
- enum:
- - 1
- - 2
- - 5
- - 14
- - 15
- - 16
- - 17
- - 18
- - 19
- - 20
- - 21
- - 22
- - 23
- - 24
- - 25
- - 26
- - 27
- - 28
- - 29
- - 30
- - 31
- - 32
- - 33
- - 34
- type: integer
- x-spec-enum-id: dbef43be795462a8
- description: 'Diffie-Hellman group ID
-
-
- * `1` - Group 1
-
- * `2` - Group 2
-
- * `5` - Group 5
-
- * `14` - Group 14
-
- * `15` - Group 15
-
- * `16` - Group 16
-
- * `17` - Group 17
-
- * `18` - Group 18
-
- * `19` - Group 19
-
- * `20` - Group 20
-
- * `21` - Group 21
-
- * `22` - Group 22
-
- * `23` - Group 23
-
- * `24` - Group 24
-
- * `25` - Group 25
-
- * `26` - Group 26
-
- * `27` - Group 27
-
- * `28` - Group 28
-
- * `29` - Group 29
-
- * `30` - Group 30
-
- * `31` - Group 31
-
- * `32` - Group 32
-
- * `33` - Group 33
-
- * `34` - Group 34'
- minimum: 0
- maximum: 32767
- sa_lifetime:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- description: Security association lifetime (in seconds)
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableIPAddressRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- address:
- type: string
- minLength: 1
- vrf:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- status:
- enum:
- - active
- - reserved
- - deprecated
- - dhcp
- - slaac
- type: string
- x-spec-enum-id: 24935cfee15bd268
- description: 'The operational status of this IP
-
-
- * `active` - Active
-
- * `reserved` - Reserved
-
- * `deprecated` - Deprecated
-
- * `dhcp` - DHCP
-
- * `slaac` - SLAAC'
- role:
- enum:
- - loopback
- - secondary
- - anycast
- - vip
- - vrrp
- - hsrp
- - glbp
- - carp
- - ''
- type: string
- x-spec-enum-id: 10fbcb4930889b0f
- description: 'The functional role of this IP
-
-
- * `loopback` - Loopback
-
- * `secondary` - Secondary
-
- * `anycast` - Anycast
-
- * `vip` - VIP
-
- * `vrrp` - VRRP
-
- * `hsrp` - HSRP
-
- * `glbp` - GLBP
-
- * `carp` - CARP'
- assigned_object_type:
- type: string
- nullable: true
- assigned_object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- nat_inside:
- type: integer
- nullable: true
- title: NAT (inside)
- description: The IP for which this address is the "outside" IP
- 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: {}
- PatchedWritableIPRangeRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- start_address:
- type: string
- minLength: 1
- end_address:
- type: string
- minLength: 1
- vrf:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- status:
- enum:
- - active
- - reserved
- - deprecated
- type: string
- x-spec-enum-id: 6388dfb94ca1cc15
- description: 'Operational status of this range
-
-
- * `active` - Active
-
- * `reserved` - Reserved
-
- * `deprecated` - Deprecated'
- role:
- type: integer
- nullable: true
- description: The primary function of this range
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- mark_utilized:
- type: boolean
- description: Treat as fully utilized
- PatchedWritableIPSecPolicyRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- proposals:
- type: array
- items:
- type: integer
- pfs_group:
- enum:
- - 1
- - 2
- - 5
- - 14
- - 15
- - 16
- - 17
- - 18
- - 19
- - 20
- - 21
- - 22
- - 23
- - 24
- - 25
- - 26
- - 27
- - 28
- - 29
- - 30
- - 31
- - 32
- - 33
- - 34
- type: integer
- x-spec-enum-id: dbef43be795462a8
- nullable: true
- description: 'Diffie-Hellman group for Perfect Forward Secrecy
-
-
- * `1` - Group 1
-
- * `2` - Group 2
-
- * `5` - Group 5
-
- * `14` - Group 14
-
- * `15` - Group 15
-
- * `16` - Group 16
-
- * `17` - Group 17
-
- * `18` - Group 18
-
- * `19` - Group 19
-
- * `20` - Group 20
-
- * `21` - Group 21
-
- * `22` - Group 22
-
- * `23` - Group 23
-
- * `24` - Group 24
-
- * `25` - Group 25
-
- * `26` - Group 26
-
- * `27` - Group 27
-
- * `28` - Group 28
-
- * `29` - Group 29
-
- * `30` - Group 30
-
- * `31` - Group 31
-
- * `32` - Group 32
-
- * `33` - Group 33
-
- * `34` - Group 34'
- minimum: 0
- maximum: 32767
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableIPSecProfileRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- mode:
- enum:
- - esp
- - ah
- type: string
- description: '* `esp` - ESP
-
- * `ah` - AH'
- x-spec-enum-id: 1136c2cdfee84436
- ike_policy:
- type: integer
- ipsec_policy:
- type: integer
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableIPSecProposalRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- encryption_algorithm:
- enum:
- - aes-128-cbc
- - aes-128-gcm
- - aes-192-cbc
- - aes-192-gcm
- - aes-256-cbc
- - aes-256-gcm
- - 3des-cbc
- - des-cbc
- - ''
- type: string
- description: '* `aes-128-cbc` - 128-bit AES (CBC)
-
- * `aes-128-gcm` - 128-bit AES (GCM)
-
- * `aes-192-cbc` - 192-bit AES (CBC)
-
- * `aes-192-gcm` - 192-bit AES (GCM)
-
- * `aes-256-cbc` - 256-bit AES (CBC)
-
- * `aes-256-gcm` - 256-bit AES (GCM)
-
- * `3des-cbc` - 3DES
-
- * `des-cbc` - DES'
- x-spec-enum-id: b022535cfdee79fe
- title: Encryption
- authentication_algorithm:
- enum:
- - hmac-sha1
- - hmac-sha256
- - hmac-sha384
- - hmac-sha512
- - hmac-md5
- - ''
- type: string
- description: '* `hmac-sha1` - SHA-1 HMAC
-
- * `hmac-sha256` - SHA-256 HMAC
-
- * `hmac-sha384` - SHA-384 HMAC
-
- * `hmac-sha512` - SHA-512 HMAC
-
- * `hmac-md5` - MD5 HMAC'
- x-spec-enum-id: 0830e8839f5dea4f
- title: Authentication
- sa_lifetime_seconds:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: SA lifetime (seconds)
- description: Security association lifetime (seconds)
- sa_lifetime_data:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: SA lifetime (KB)
- description: Security association lifetime (in kilobytes)
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableInterfaceRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- vdcs:
- type: array
- items:
- type: integer
- module:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- type:
- enum:
- - virtual
- - bridge
- - lag
- - 100base-fx
- - 100base-lfx
- - 100base-tx
- - 100base-t1
- - 1000base-t
- - 2.5gbase-t
- - 5gbase-t
- - 10gbase-t
- - 10gbase-cx4
- - 1000base-x-gbic
- - 1000base-x-sfp
- - 10gbase-x-sfpp
- - 10gbase-x-xfp
- - 10gbase-x-xenpak
- - 10gbase-x-x2
- - 25gbase-x-sfp28
- - 50gbase-x-sfp56
- - 40gbase-x-qsfpp
- - 50gbase-x-sfp28
- - 100gbase-x-cfp
- - 100gbase-x-cfp2
- - 200gbase-x-cfp2
- - 400gbase-x-cfp2
- - 100gbase-x-cfp4
- - 100gbase-x-cxp
- - 100gbase-x-cpak
- - 100gbase-x-dsfp
- - 100gbase-x-sfpdd
- - 100gbase-x-qsfp28
- - 100gbase-x-qsfpdd
- - 200gbase-x-qsfp56
- - 200gbase-x-qsfpdd
- - 400gbase-x-qsfp112
- - 400gbase-x-qsfpdd
- - 400gbase-x-osfp
- - 400gbase-x-osfp-rhs
- - 400gbase-x-cdfp
- - 400gbase-x-cfp8
- - 800gbase-x-qsfpdd
- - 800gbase-x-osfp
- - 1000base-kx
- - 10gbase-kr
- - 10gbase-kx4
- - 25gbase-kr
- - 40gbase-kr4
- - 50gbase-kr
- - 100gbase-kp4
- - 100gbase-kr2
- - 100gbase-kr4
- - ieee802.11a
- - ieee802.11g
- - ieee802.11n
- - ieee802.11ac
- - ieee802.11ad
- - ieee802.11ax
- - ieee802.11ay
- - ieee802.15.1
- - other-wireless
- - gsm
- - cdma
- - lte
- - sonet-oc3
- - sonet-oc12
- - sonet-oc48
- - sonet-oc192
- - sonet-oc768
- - sonet-oc1920
- - sonet-oc3840
- - 1gfc-sfp
- - 2gfc-sfp
- - 4gfc-sfp
- - 8gfc-sfpp
- - 16gfc-sfpp
- - 32gfc-sfp28
- - 32gfc-sfpp
- - 64gfc-qsfpp
- - 64gfc-sfpdd
- - 64gfc-sfpp
- - 128gfc-qsfp28
- - infiniband-sdr
- - infiniband-ddr
- - infiniband-qdr
- - infiniband-fdr10
- - infiniband-fdr
- - infiniband-edr
- - infiniband-hdr
- - infiniband-ndr
- - infiniband-xdr
- - t1
- - e1
- - t3
- - e3
- - xdsl
- - docsis
- - gpon
- - xg-pon
- - xgs-pon
- - ng-pon2
- - epon
- - 10g-epon
- - cisco-stackwise
- - cisco-stackwise-plus
- - cisco-flexstack
- - cisco-flexstack-plus
- - cisco-stackwise-80
- - cisco-stackwise-160
- - cisco-stackwise-320
- - cisco-stackwise-480
- - cisco-stackwise-1t
- - juniper-vcp
- - extreme-summitstack
- - extreme-summitstack-128
- - extreme-summitstack-256
- - extreme-summitstack-512
- - other
- type: string
- description: '* `virtual` - Virtual
-
- * `bridge` - Bridge
-
- * `lag` - Link Aggregation Group (LAG)
-
- * `100base-fx` - 100BASE-FX (10/100ME FIBER)
-
- * `100base-lfx` - 100BASE-LFX (10/100ME FIBER)
-
- * `100base-tx` - 100BASE-TX (10/100ME)
-
- * `100base-t1` - 100BASE-T1 (10/100ME Single Pair)
-
- * `1000base-t` - 1000BASE-T (1GE)
-
- * `2.5gbase-t` - 2.5GBASE-T (2.5GE)
-
- * `5gbase-t` - 5GBASE-T (5GE)
-
- * `10gbase-t` - 10GBASE-T (10GE)
-
- * `10gbase-cx4` - 10GBASE-CX4 (10GE)
-
- * `1000base-x-gbic` - GBIC (1GE)
-
- * `1000base-x-sfp` - SFP (1GE)
-
- * `10gbase-x-sfpp` - SFP+ (10GE)
-
- * `10gbase-x-xfp` - XFP (10GE)
-
- * `10gbase-x-xenpak` - XENPAK (10GE)
-
- * `10gbase-x-x2` - X2 (10GE)
-
- * `25gbase-x-sfp28` - SFP28 (25GE)
-
- * `50gbase-x-sfp56` - SFP56 (50GE)
-
- * `40gbase-x-qsfpp` - QSFP+ (40GE)
-
- * `50gbase-x-sfp28` - QSFP28 (50GE)
-
- * `100gbase-x-cfp` - CFP (100GE)
-
- * `100gbase-x-cfp2` - CFP2 (100GE)
-
- * `200gbase-x-cfp2` - CFP2 (200GE)
-
- * `400gbase-x-cfp2` - CFP2 (400GE)
-
- * `100gbase-x-cfp4` - CFP4 (100GE)
-
- * `100gbase-x-cxp` - CXP (100GE)
-
- * `100gbase-x-cpak` - Cisco CPAK (100GE)
-
- * `100gbase-x-dsfp` - DSFP (100GE)
-
- * `100gbase-x-sfpdd` - SFP-DD (100GE)
-
- * `100gbase-x-qsfp28` - QSFP28 (100GE)
-
- * `100gbase-x-qsfpdd` - QSFP-DD (100GE)
-
- * `200gbase-x-qsfp56` - QSFP56 (200GE)
-
- * `200gbase-x-qsfpdd` - QSFP-DD (200GE)
-
- * `400gbase-x-qsfp112` - QSFP112 (400GE)
-
- * `400gbase-x-qsfpdd` - QSFP-DD (400GE)
-
- * `400gbase-x-osfp` - OSFP (400GE)
-
- * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE)
-
- * `400gbase-x-cdfp` - CDFP (400GE)
-
- * `400gbase-x-cfp8` - CPF8 (400GE)
-
- * `800gbase-x-qsfpdd` - QSFP-DD (800GE)
-
- * `800gbase-x-osfp` - OSFP (800GE)
-
- * `1000base-kx` - 1000BASE-KX (1GE)
-
- * `10gbase-kr` - 10GBASE-KR (10GE)
-
- * `10gbase-kx4` - 10GBASE-KX4 (10GE)
-
- * `25gbase-kr` - 25GBASE-KR (25GE)
-
- * `40gbase-kr4` - 40GBASE-KR4 (40GE)
-
- * `50gbase-kr` - 50GBASE-KR (50GE)
-
- * `100gbase-kp4` - 100GBASE-KP4 (100GE)
-
- * `100gbase-kr2` - 100GBASE-KR2 (100GE)
-
- * `100gbase-kr4` - 100GBASE-KR4 (100GE)
-
- * `ieee802.11a` - IEEE 802.11a
-
- * `ieee802.11g` - IEEE 802.11b/g
-
- * `ieee802.11n` - IEEE 802.11n
-
- * `ieee802.11ac` - IEEE 802.11ac
-
- * `ieee802.11ad` - IEEE 802.11ad
-
- * `ieee802.11ax` - IEEE 802.11ax
-
- * `ieee802.11ay` - IEEE 802.11ay
-
- * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth)
-
- * `other-wireless` - Other (Wireless)
-
- * `gsm` - GSM
-
- * `cdma` - CDMA
-
- * `lte` - LTE
-
- * `sonet-oc3` - OC-3/STM-1
-
- * `sonet-oc12` - OC-12/STM-4
-
- * `sonet-oc48` - OC-48/STM-16
-
- * `sonet-oc192` - OC-192/STM-64
-
- * `sonet-oc768` - OC-768/STM-256
-
- * `sonet-oc1920` - OC-1920/STM-640
-
- * `sonet-oc3840` - OC-3840/STM-1234
-
- * `1gfc-sfp` - SFP (1GFC)
-
- * `2gfc-sfp` - SFP (2GFC)
-
- * `4gfc-sfp` - SFP (4GFC)
-
- * `8gfc-sfpp` - SFP+ (8GFC)
-
- * `16gfc-sfpp` - SFP+ (16GFC)
-
- * `32gfc-sfp28` - SFP28 (32GFC)
-
- * `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
-
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
-
- * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps)
-
- * `xgs-pon` - XGS-PON (10 Gbps)
-
- * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
-
- * `epon` - EPON (1 Gbps)
-
- * `10g-epon` - 10G-EPON (10 Gbps)
-
- * `cisco-stackwise` - Cisco StackWise
-
- * `cisco-stackwise-plus` - Cisco StackWise Plus
-
- * `cisco-flexstack` - Cisco FlexStack
-
- * `cisco-flexstack-plus` - Cisco FlexStack Plus
-
- * `cisco-stackwise-80` - Cisco StackWise-80
-
- * `cisco-stackwise-160` - Cisco StackWise-160
-
- * `cisco-stackwise-320` - Cisco StackWise-320
-
- * `cisco-stackwise-480` - Cisco StackWise-480
-
- * `cisco-stackwise-1t` - Cisco StackWise-1T
-
- * `juniper-vcp` - Juniper VCP
-
- * `extreme-summitstack` - Extreme SummitStack
-
- * `extreme-summitstack-128` - Extreme SummitStack-128
-
- * `extreme-summitstack-256` - Extreme SummitStack-256
-
- * `extreme-summitstack-512` - Extreme SummitStack-512
-
- * `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
- enabled:
- type: boolean
- parent:
- type: integer
- nullable: true
- title: Parent interface
- bridge:
- type: integer
- nullable: true
- title: Bridge interface
- lag:
- type: integer
- nullable: true
- title: Parent LAG
- mtu:
- type: integer
- maximum: 65536
- minimum: 1
- nullable: true
- mac_address:
- type: string
- nullable: true
- speed:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: Speed (Kbps)
- duplex:
- enum:
- - half
- - full
- - auto
- - ''
- type: string
- description: '* `half` - Half
-
- * `full` - Full
-
- * `auto` - Auto'
- x-spec-enum-id: 47eab9b1a65a1e21
- nullable: true
- wwn:
- type: string
- nullable: true
- mgmt_only:
- type: boolean
- title: Management only
- description: This interface is used only for out-of-band management
- description:
- type: string
- maxLength: 200
- mode:
- enum:
- - access
- - tagged
- - tagged-all
- - ''
- type: string
- x-spec-enum-id: 79109bd9dbb73a3c
- description: 'IEEE 802.1Q tagging strategy
-
-
- * `access` - Access
-
- * `tagged` - Tagged
-
- * `tagged-all` - Tagged (All)'
- rf_role:
- enum:
- - ap
- - station
- - ''
- type: string
- description: '* `ap` - Access point
-
- * `station` - Station'
- x-spec-enum-id: d2772dbea88b0fb1
- title: Wireless role
- rf_channel:
- enum:
- - 2.4g-1-2412-22
- - 2.4g-2-2417-22
- - 2.4g-3-2422-22
- - 2.4g-4-2427-22
- - 2.4g-5-2432-22
- - 2.4g-6-2437-22
- - 2.4g-7-2442-22
- - 2.4g-8-2447-22
- - 2.4g-9-2452-22
- - 2.4g-10-2457-22
- - 2.4g-11-2462-22
- - 2.4g-12-2467-22
- - 2.4g-13-2472-22
- - 5g-32-5160-20
- - 5g-34-5170-40
- - 5g-36-5180-20
- - 5g-38-5190-40
- - 5g-40-5200-20
- - 5g-42-5210-80
- - 5g-44-5220-20
- - 5g-46-5230-40
- - 5g-48-5240-20
- - 5g-50-5250-160
- - 5g-52-5260-20
- - 5g-54-5270-40
- - 5g-56-5280-20
- - 5g-58-5290-80
- - 5g-60-5300-20
- - 5g-62-5310-40
- - 5g-64-5320-20
- - 5g-100-5500-20
- - 5g-102-5510-40
- - 5g-104-5520-20
- - 5g-106-5530-80
- - 5g-108-5540-20
- - 5g-110-5550-40
- - 5g-112-5560-20
- - 5g-114-5570-160
- - 5g-116-5580-20
- - 5g-118-5590-40
- - 5g-120-5600-20
- - 5g-122-5610-80
- - 5g-124-5620-20
- - 5g-126-5630-40
- - 5g-128-5640-20
- - 5g-132-5660-20
- - 5g-134-5670-40
- - 5g-136-5680-20
- - 5g-138-5690-80
- - 5g-140-5700-20
- - 5g-142-5710-40
- - 5g-144-5720-20
- - 5g-149-5745-20
- - 5g-151-5755-40
- - 5g-153-5765-20
- - 5g-155-5775-80
- - 5g-157-5785-20
- - 5g-159-5795-40
- - 5g-161-5805-20
- - 5g-163-5815-160
- - 5g-165-5825-20
- - 5g-167-5835-40
- - 5g-169-5845-20
- - 5g-171-5855-80
- - 5g-173-5865-20
- - 5g-175-5875-40
- - 5g-177-5885-20
- - 6g-1-5955-20
- - 6g-3-5965-40
- - 6g-5-5975-20
- - 6g-7-5985-80
- - 6g-9-5995-20
- - 6g-11-6005-40
- - 6g-13-6015-20
- - 6g-15-6025-160
- - 6g-17-6035-20
- - 6g-19-6045-40
- - 6g-21-6055-20
- - 6g-23-6065-80
- - 6g-25-6075-20
- - 6g-27-6085-40
- - 6g-29-6095-20
- - 6g-31-6105-320
- - 6g-33-6115-20
- - 6g-35-6125-40
- - 6g-37-6135-20
- - 6g-39-6145-80
- - 6g-41-6155-20
- - 6g-43-6165-40
- - 6g-45-6175-20
- - 6g-47-6185-160
- - 6g-49-6195-20
- - 6g-51-6205-40
- - 6g-53-6215-20
- - 6g-55-6225-80
- - 6g-57-6235-20
- - 6g-59-6245-40
- - 6g-61-6255-20
- - 6g-65-6275-20
- - 6g-67-6285-40
- - 6g-69-6295-20
- - 6g-71-6305-80
- - 6g-73-6315-20
- - 6g-75-6325-40
- - 6g-77-6335-20
- - 6g-79-6345-160
- - 6g-81-6355-20
- - 6g-83-6365-40
- - 6g-85-6375-20
- - 6g-87-6385-80
- - 6g-89-6395-20
- - 6g-91-6405-40
- - 6g-93-6415-20
- - 6g-95-6425-320
- - 6g-97-6435-20
- - 6g-99-6445-40
- - 6g-101-6455-20
- - 6g-103-6465-80
- - 6g-105-6475-20
- - 6g-107-6485-40
- - 6g-109-6495-20
- - 6g-111-6505-160
- - 6g-113-6515-20
- - 6g-115-6525-40
- - 6g-117-6535-20
- - 6g-119-6545-80
- - 6g-121-6555-20
- - 6g-123-6565-40
- - 6g-125-6575-20
- - 6g-129-6595-20
- - 6g-131-6605-40
- - 6g-133-6615-20
- - 6g-135-6625-80
- - 6g-137-6635-20
- - 6g-139-6645-40
- - 6g-141-6655-20
- - 6g-143-6665-160
- - 6g-145-6675-20
- - 6g-147-6685-40
- - 6g-149-6695-20
- - 6g-151-6705-80
- - 6g-153-6715-20
- - 6g-155-6725-40
- - 6g-157-6735-20
- - 6g-159-6745-320
- - 6g-161-6755-20
- - 6g-163-6765-40
- - 6g-165-6775-20
- - 6g-167-6785-80
- - 6g-169-6795-20
- - 6g-171-6805-40
- - 6g-173-6815-20
- - 6g-175-6825-160
- - 6g-177-6835-20
- - 6g-179-6845-40
- - 6g-181-6855-20
- - 6g-183-6865-80
- - 6g-185-6875-20
- - 6g-187-6885-40
- - 6g-189-6895-20
- - 6g-193-6915-20
- - 6g-195-6925-40
- - 6g-197-6935-20
- - 6g-199-6945-80
- - 6g-201-6955-20
- - 6g-203-6965-40
- - 6g-205-6975-20
- - 6g-207-6985-160
- - 6g-209-6995-20
- - 6g-211-7005-40
- - 6g-213-7015-20
- - 6g-215-7025-80
- - 6g-217-7035-20
- - 6g-219-7045-40
- - 6g-221-7055-20
- - 6g-225-7075-20
- - 6g-227-7085-40
- - 6g-229-7095-20
- - 6g-233-7115-20
- - 60g-1-58320-2160
- - 60g-2-60480-2160
- - 60g-3-62640-2160
- - 60g-4-64800-2160
- - 60g-5-66960-2160
- - 60g-6-69120-2160
- - 60g-9-59400-4320
- - 60g-10-61560-4320
- - 60g-11-63720-4320
- - 60g-12-65880-4320
- - 60g-13-68040-4320
- - 60g-17-60480-6480
- - 60g-18-62640-6480
- - 60g-19-64800-6480
- - 60g-20-66960-6480
- - 60g-25-61560-6480
- - 60g-26-63720-6480
- - 60g-27-65880-6480
- - ''
- type: string
- description: '* `2.4g-1-2412-22` - 1 (2412 MHz)
-
- * `2.4g-2-2417-22` - 2 (2417 MHz)
-
- * `2.4g-3-2422-22` - 3 (2422 MHz)
-
- * `2.4g-4-2427-22` - 4 (2427 MHz)
-
- * `2.4g-5-2432-22` - 5 (2432 MHz)
-
- * `2.4g-6-2437-22` - 6 (2437 MHz)
-
- * `2.4g-7-2442-22` - 7 (2442 MHz)
-
- * `2.4g-8-2447-22` - 8 (2447 MHz)
-
- * `2.4g-9-2452-22` - 9 (2452 MHz)
-
- * `2.4g-10-2457-22` - 10 (2457 MHz)
-
- * `2.4g-11-2462-22` - 11 (2462 MHz)
-
- * `2.4g-12-2467-22` - 12 (2467 MHz)
-
- * `2.4g-13-2472-22` - 13 (2472 MHz)
-
- * `5g-32-5160-20` - 32 (5160/20 MHz)
-
- * `5g-34-5170-40` - 34 (5170/40 MHz)
-
- * `5g-36-5180-20` - 36 (5180/20 MHz)
-
- * `5g-38-5190-40` - 38 (5190/40 MHz)
-
- * `5g-40-5200-20` - 40 (5200/20 MHz)
-
- * `5g-42-5210-80` - 42 (5210/80 MHz)
-
- * `5g-44-5220-20` - 44 (5220/20 MHz)
-
- * `5g-46-5230-40` - 46 (5230/40 MHz)
-
- * `5g-48-5240-20` - 48 (5240/20 MHz)
-
- * `5g-50-5250-160` - 50 (5250/160 MHz)
-
- * `5g-52-5260-20` - 52 (5260/20 MHz)
-
- * `5g-54-5270-40` - 54 (5270/40 MHz)
-
- * `5g-56-5280-20` - 56 (5280/20 MHz)
-
- * `5g-58-5290-80` - 58 (5290/80 MHz)
-
- * `5g-60-5300-20` - 60 (5300/20 MHz)
-
- * `5g-62-5310-40` - 62 (5310/40 MHz)
-
- * `5g-64-5320-20` - 64 (5320/20 MHz)
-
- * `5g-100-5500-20` - 100 (5500/20 MHz)
-
- * `5g-102-5510-40` - 102 (5510/40 MHz)
-
- * `5g-104-5520-20` - 104 (5520/20 MHz)
-
- * `5g-106-5530-80` - 106 (5530/80 MHz)
-
- * `5g-108-5540-20` - 108 (5540/20 MHz)
-
- * `5g-110-5550-40` - 110 (5550/40 MHz)
-
- * `5g-112-5560-20` - 112 (5560/20 MHz)
-
- * `5g-114-5570-160` - 114 (5570/160 MHz)
-
- * `5g-116-5580-20` - 116 (5580/20 MHz)
-
- * `5g-118-5590-40` - 118 (5590/40 MHz)
-
- * `5g-120-5600-20` - 120 (5600/20 MHz)
-
- * `5g-122-5610-80` - 122 (5610/80 MHz)
-
- * `5g-124-5620-20` - 124 (5620/20 MHz)
-
- * `5g-126-5630-40` - 126 (5630/40 MHz)
-
- * `5g-128-5640-20` - 128 (5640/20 MHz)
-
- * `5g-132-5660-20` - 132 (5660/20 MHz)
-
- * `5g-134-5670-40` - 134 (5670/40 MHz)
-
- * `5g-136-5680-20` - 136 (5680/20 MHz)
-
- * `5g-138-5690-80` - 138 (5690/80 MHz)
-
- * `5g-140-5700-20` - 140 (5700/20 MHz)
-
- * `5g-142-5710-40` - 142 (5710/40 MHz)
-
- * `5g-144-5720-20` - 144 (5720/20 MHz)
-
- * `5g-149-5745-20` - 149 (5745/20 MHz)
-
- * `5g-151-5755-40` - 151 (5755/40 MHz)
-
- * `5g-153-5765-20` - 153 (5765/20 MHz)
-
- * `5g-155-5775-80` - 155 (5775/80 MHz)
-
- * `5g-157-5785-20` - 157 (5785/20 MHz)
-
- * `5g-159-5795-40` - 159 (5795/40 MHz)
-
- * `5g-161-5805-20` - 161 (5805/20 MHz)
-
- * `5g-163-5815-160` - 163 (5815/160 MHz)
-
- * `5g-165-5825-20` - 165 (5825/20 MHz)
-
- * `5g-167-5835-40` - 167 (5835/40 MHz)
-
- * `5g-169-5845-20` - 169 (5845/20 MHz)
-
- * `5g-171-5855-80` - 171 (5855/80 MHz)
-
- * `5g-173-5865-20` - 173 (5865/20 MHz)
-
- * `5g-175-5875-40` - 175 (5875/40 MHz)
-
- * `5g-177-5885-20` - 177 (5885/20 MHz)
-
- * `6g-1-5955-20` - 1 (5955/20 MHz)
-
- * `6g-3-5965-40` - 3 (5965/40 MHz)
-
- * `6g-5-5975-20` - 5 (5975/20 MHz)
-
- * `6g-7-5985-80` - 7 (5985/80 MHz)
-
- * `6g-9-5995-20` - 9 (5995/20 MHz)
-
- * `6g-11-6005-40` - 11 (6005/40 MHz)
-
- * `6g-13-6015-20` - 13 (6015/20 MHz)
-
- * `6g-15-6025-160` - 15 (6025/160 MHz)
-
- * `6g-17-6035-20` - 17 (6035/20 MHz)
-
- * `6g-19-6045-40` - 19 (6045/40 MHz)
-
- * `6g-21-6055-20` - 21 (6055/20 MHz)
-
- * `6g-23-6065-80` - 23 (6065/80 MHz)
-
- * `6g-25-6075-20` - 25 (6075/20 MHz)
-
- * `6g-27-6085-40` - 27 (6085/40 MHz)
-
- * `6g-29-6095-20` - 29 (6095/20 MHz)
-
- * `6g-31-6105-320` - 31 (6105/320 MHz)
-
- * `6g-33-6115-20` - 33 (6115/20 MHz)
-
- * `6g-35-6125-40` - 35 (6125/40 MHz)
-
- * `6g-37-6135-20` - 37 (6135/20 MHz)
-
- * `6g-39-6145-80` - 39 (6145/80 MHz)
-
- * `6g-41-6155-20` - 41 (6155/20 MHz)
-
- * `6g-43-6165-40` - 43 (6165/40 MHz)
-
- * `6g-45-6175-20` - 45 (6175/20 MHz)
-
- * `6g-47-6185-160` - 47 (6185/160 MHz)
-
- * `6g-49-6195-20` - 49 (6195/20 MHz)
-
- * `6g-51-6205-40` - 51 (6205/40 MHz)
-
- * `6g-53-6215-20` - 53 (6215/20 MHz)
-
- * `6g-55-6225-80` - 55 (6225/80 MHz)
-
- * `6g-57-6235-20` - 57 (6235/20 MHz)
-
- * `6g-59-6245-40` - 59 (6245/40 MHz)
-
- * `6g-61-6255-20` - 61 (6255/20 MHz)
-
- * `6g-65-6275-20` - 65 (6275/20 MHz)
-
- * `6g-67-6285-40` - 67 (6285/40 MHz)
-
- * `6g-69-6295-20` - 69 (6295/20 MHz)
-
- * `6g-71-6305-80` - 71 (6305/80 MHz)
-
- * `6g-73-6315-20` - 73 (6315/20 MHz)
-
- * `6g-75-6325-40` - 75 (6325/40 MHz)
-
- * `6g-77-6335-20` - 77 (6335/20 MHz)
-
- * `6g-79-6345-160` - 79 (6345/160 MHz)
-
- * `6g-81-6355-20` - 81 (6355/20 MHz)
-
- * `6g-83-6365-40` - 83 (6365/40 MHz)
-
- * `6g-85-6375-20` - 85 (6375/20 MHz)
-
- * `6g-87-6385-80` - 87 (6385/80 MHz)
-
- * `6g-89-6395-20` - 89 (6395/20 MHz)
-
- * `6g-91-6405-40` - 91 (6405/40 MHz)
-
- * `6g-93-6415-20` - 93 (6415/20 MHz)
-
- * `6g-95-6425-320` - 95 (6425/320 MHz)
-
- * `6g-97-6435-20` - 97 (6435/20 MHz)
-
- * `6g-99-6445-40` - 99 (6445/40 MHz)
-
- * `6g-101-6455-20` - 101 (6455/20 MHz)
-
- * `6g-103-6465-80` - 103 (6465/80 MHz)
-
- * `6g-105-6475-20` - 105 (6475/20 MHz)
-
- * `6g-107-6485-40` - 107 (6485/40 MHz)
-
- * `6g-109-6495-20` - 109 (6495/20 MHz)
-
- * `6g-111-6505-160` - 111 (6505/160 MHz)
-
- * `6g-113-6515-20` - 113 (6515/20 MHz)
-
- * `6g-115-6525-40` - 115 (6525/40 MHz)
-
- * `6g-117-6535-20` - 117 (6535/20 MHz)
-
- * `6g-119-6545-80` - 119 (6545/80 MHz)
-
- * `6g-121-6555-20` - 121 (6555/20 MHz)
-
- * `6g-123-6565-40` - 123 (6565/40 MHz)
-
- * `6g-125-6575-20` - 125 (6575/20 MHz)
-
- * `6g-129-6595-20` - 129 (6595/20 MHz)
-
- * `6g-131-6605-40` - 131 (6605/40 MHz)
-
- * `6g-133-6615-20` - 133 (6615/20 MHz)
-
- * `6g-135-6625-80` - 135 (6625/80 MHz)
-
- * `6g-137-6635-20` - 137 (6635/20 MHz)
-
- * `6g-139-6645-40` - 139 (6645/40 MHz)
-
- * `6g-141-6655-20` - 141 (6655/20 MHz)
-
- * `6g-143-6665-160` - 143 (6665/160 MHz)
-
- * `6g-145-6675-20` - 145 (6675/20 MHz)
-
- * `6g-147-6685-40` - 147 (6685/40 MHz)
-
- * `6g-149-6695-20` - 149 (6695/20 MHz)
-
- * `6g-151-6705-80` - 151 (6705/80 MHz)
-
- * `6g-153-6715-20` - 153 (6715/20 MHz)
-
- * `6g-155-6725-40` - 155 (6725/40 MHz)
-
- * `6g-157-6735-20` - 157 (6735/20 MHz)
-
- * `6g-159-6745-320` - 159 (6745/320 MHz)
-
- * `6g-161-6755-20` - 161 (6755/20 MHz)
-
- * `6g-163-6765-40` - 163 (6765/40 MHz)
-
- * `6g-165-6775-20` - 165 (6775/20 MHz)
-
- * `6g-167-6785-80` - 167 (6785/80 MHz)
-
- * `6g-169-6795-20` - 169 (6795/20 MHz)
-
- * `6g-171-6805-40` - 171 (6805/40 MHz)
-
- * `6g-173-6815-20` - 173 (6815/20 MHz)
-
- * `6g-175-6825-160` - 175 (6825/160 MHz)
-
- * `6g-177-6835-20` - 177 (6835/20 MHz)
-
- * `6g-179-6845-40` - 179 (6845/40 MHz)
-
- * `6g-181-6855-20` - 181 (6855/20 MHz)
-
- * `6g-183-6865-80` - 183 (6865/80 MHz)
-
- * `6g-185-6875-20` - 185 (6875/20 MHz)
-
- * `6g-187-6885-40` - 187 (6885/40 MHz)
-
- * `6g-189-6895-20` - 189 (6895/20 MHz)
-
- * `6g-193-6915-20` - 193 (6915/20 MHz)
-
- * `6g-195-6925-40` - 195 (6925/40 MHz)
-
- * `6g-197-6935-20` - 197 (6935/20 MHz)
-
- * `6g-199-6945-80` - 199 (6945/80 MHz)
-
- * `6g-201-6955-20` - 201 (6955/20 MHz)
-
- * `6g-203-6965-40` - 203 (6965/40 MHz)
-
- * `6g-205-6975-20` - 205 (6975/20 MHz)
-
- * `6g-207-6985-160` - 207 (6985/160 MHz)
+ description: '* `cat3` - CAT3
- * `6g-209-6995-20` - 209 (6995/20 MHz)
+ * `cat5` - CAT5
- * `6g-211-7005-40` - 211 (7005/40 MHz)
+ * `cat5e` - CAT5e
- * `6g-213-7015-20` - 213 (7015/20 MHz)
+ * `cat6` - CAT6
- * `6g-215-7025-80` - 215 (7025/80 MHz)
+ * `cat6a` - CAT6a
- * `6g-217-7035-20` - 217 (7035/20 MHz)
+ * `cat7` - CAT7
- * `6g-219-7045-40` - 219 (7045/40 MHz)
+ * `cat7a` - CAT7a
- * `6g-221-7055-20` - 221 (7055/20 MHz)
+ * `cat8` - CAT8
- * `6g-225-7075-20` - 225 (7075/20 MHz)
+ * `dac-active` - Direct Attach Copper (Active)
- * `6g-227-7085-40` - 227 (7085/40 MHz)
+ * `dac-passive` - Direct Attach Copper (Passive)
- * `6g-229-7095-20` - 229 (7095/20 MHz)
+ * `mrj21-trunk` - MRJ21 Trunk
- * `6g-233-7115-20` - 233 (7115/20 MHz)
+ * `coaxial` - Coaxial
- * `60g-1-58320-2160` - 1 (58.32/2.16 GHz)
+ * `mmf` - Multimode Fiber
- * `60g-2-60480-2160` - 2 (60.48/2.16 GHz)
+ * `mmf-om1` - Multimode Fiber (OM1)
- * `60g-3-62640-2160` - 3 (62.64/2.16 GHz)
+ * `mmf-om2` - Multimode Fiber (OM2)
- * `60g-4-64800-2160` - 4 (64.80/2.16 GHz)
+ * `mmf-om3` - Multimode Fiber (OM3)
- * `60g-5-66960-2160` - 5 (66.96/2.16 GHz)
+ * `mmf-om4` - Multimode Fiber (OM4)
- * `60g-6-69120-2160` - 6 (69.12/2.16 GHz)
+ * `mmf-om5` - Multimode Fiber (OM5)
- * `60g-9-59400-4320` - 9 (59.40/4.32 GHz)
+ * `smf` - Singlemode Fiber
- * `60g-10-61560-4320` - 10 (61.56/4.32 GHz)
+ * `smf-os1` - Singlemode Fiber (OS1)
- * `60g-11-63720-4320` - 11 (63.72/4.32 GHz)
+ * `smf-os2` - Singlemode Fiber (OS2)
- * `60g-12-65880-4320` - 12 (65.88/4.32 GHz)
+ * `aoc` - Active Optical Cabling (AOC)
- * `60g-13-68040-4320` - 13 (68.04/4.32 GHz)
+ * `power` - Power'
+ x-spec-enum-id: e671018e64196f8d
+ 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
- * `60g-17-60480-6480` - 17 (60.48/6.48 GHz)
+ * `planned` - Planned
- * `60g-18-62640-6480` - 18 (62.64/6.48 GHz)
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: fbc2f302c08be50d
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ 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
- * `60g-19-64800-6480` - 19 (64.80/6.48 GHz)
+ * `m` - Meters
- * `60g-20-66960-6480` - 20 (66.96/6.48 GHz)
+ * `cm` - Centimeters
- * `60g-25-61560-6480` - 25 (61.56/8.64 GHz)
+ * `mi` - Miles
- * `60g-26-63720-6480` - 26 (63.72/8.64 GHz)
+ * `ft` - Feet
- * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)'
- x-spec-enum-id: aac33cc237adc8f9
- title: Wireless channel
- poe_mode:
- enum:
- - pd
- - pse
- - ''
+ * `in` - Inches'
+ x-spec-enum-id: e64ce3a2c5997172
+ description:
type: string
- description: '* `pd` - PD
-
- * `pse` - PSE'
- x-spec-enum-id: 2f2fe6dcdc7772bd
- poe_type:
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableCircuitRequest:
+ 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/ProviderRequest'
+ provider_account:
+ allOf:
+ - $ref: '#/components/schemas/ProviderAccountRequest'
+ nullable: true
+ type:
+ $ref: '#/components/schemas/CircuitTypeRequest'
+ status:
enum:
- - type1-ieee802.3af
- - type2-ieee802.3at
- - type3-ieee802.3bt
- - type4-ieee802.3bt
- - passive-24v-2pair
- - passive-24v-4pair
- - passive-48v-2pair
- - passive-48v-4pair
- - ''
+ - planned
+ - provisioning
+ - active
+ - offline
+ - deprovisioning
+ - decommissioned
type: string
- description: '* `type1-ieee802.3af` - 802.3af (Type 1)
-
- * `type2-ieee802.3at` - 802.3at (Type 2)
-
- * `type3-ieee802.3bt` - 802.3bt (Type 3)
+ description: '* `planned` - Planned
- * `type4-ieee802.3bt` - 802.3bt (Type 4)
+ * `provisioning` - Provisioning
- * `passive-24v-2pair` - Passive 24V (2-pair)
+ * `active` - Active
- * `passive-24v-4pair` - Passive 24V (4-pair)
+ * `offline` - Offline
- * `passive-48v-2pair` - Passive 48V (2-pair)
+ * `deprovisioning` - Deprovisioning
- * `passive-48v-4pair` - Passive 48V (4-pair)'
- x-spec-enum-id: 74bd3be4012f6da9
- rf_channel_frequency:
- type: number
- format: double
- maximum: 100000
- minimum: -100000
- exclusiveMaximum: true
- exclusiveMinimum: true
+ * `decommissioned` - Decommissioned'
+ x-spec-enum-id: 63c838134a022200
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
- title: Channel frequency (MHz)
- description: Populated by selected channel (if set)
- rf_channel_width:
- type: number
- format: double
- maximum: 10000
- minimum: -10000
- exclusiveMaximum: true
- exclusiveMinimum: true
+ install_date:
+ type: string
+ format: date
nullable: true
- title: Channel width (MHz)
- description: Populated by selected channel (if set)
- tx_power:
- type: integer
- maximum: 127
- minimum: 0
+ title: Installed
+ termination_date:
+ type: string
+ format: date
nullable: true
- title: Transmit power (dBm)
- untagged_vlan:
+ title: Terminates
+ commit_rate:
type: integer
+ maximum: 2147483647
+ minimum: 0
nullable: true
- tagged_vlans:
- type: array
- items:
- type: integer
- title: Tagged VLANs
- mark_connected:
- type: boolean
- description: Treat as if a cable is connected
- wireless_lans:
+ title: Commit rate (Kbps)
+ description: Committed rate
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
type: array
items:
- type: integer
- title: Wireless LANs
- vrf:
- type: integer
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableClusterRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ type:
+ $ref: '#/components/schemas/ClusterTypeRequest'
+ group:
+ allOf:
+ - $ref: '#/components/schemas/ClusterGroupRequest'
+ 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/TenantRequest'
+ nullable: true
+ site:
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
tags:
type: array
items:
@@ -118664,24 +119768,19 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableInterfaceTemplateRequest:
+ PatchedWritableConsolePortRequest:
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:
- device_type:
- type: integer
- nullable: true
- module_type:
- type: integer
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
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
@@ -118689,473 +119788,288 @@ components:
maxLength: 64
type:
enum:
- - virtual
- - bridge
- - lag
- - 100base-fx
- - 100base-lfx
- - 100base-tx
- - 100base-t1
- - 1000base-t
- - 2.5gbase-t
- - 5gbase-t
- - 10gbase-t
- - 10gbase-cx4
- - 1000base-x-gbic
- - 1000base-x-sfp
- - 10gbase-x-sfpp
- - 10gbase-x-xfp
- - 10gbase-x-xenpak
- - 10gbase-x-x2
- - 25gbase-x-sfp28
- - 50gbase-x-sfp56
- - 40gbase-x-qsfpp
- - 50gbase-x-sfp28
- - 100gbase-x-cfp
- - 100gbase-x-cfp2
- - 200gbase-x-cfp2
- - 400gbase-x-cfp2
- - 100gbase-x-cfp4
- - 100gbase-x-cxp
- - 100gbase-x-cpak
- - 100gbase-x-dsfp
- - 100gbase-x-sfpdd
- - 100gbase-x-qsfp28
- - 100gbase-x-qsfpdd
- - 200gbase-x-qsfp56
- - 200gbase-x-qsfpdd
- - 400gbase-x-qsfp112
- - 400gbase-x-qsfpdd
- - 400gbase-x-osfp
- - 400gbase-x-osfp-rhs
- - 400gbase-x-cdfp
- - 400gbase-x-cfp8
- - 800gbase-x-qsfpdd
- - 800gbase-x-osfp
- - 1000base-kx
- - 10gbase-kr
- - 10gbase-kx4
- - 25gbase-kr
- - 40gbase-kr4
- - 50gbase-kr
- - 100gbase-kp4
- - 100gbase-kr2
- - 100gbase-kr4
- - ieee802.11a
- - ieee802.11g
- - ieee802.11n
- - ieee802.11ac
- - ieee802.11ad
- - ieee802.11ax
- - ieee802.11ay
- - ieee802.15.1
- - other-wireless
- - gsm
- - cdma
- - lte
- - sonet-oc3
- - sonet-oc12
- - sonet-oc48
- - sonet-oc192
- - sonet-oc768
- - sonet-oc1920
- - sonet-oc3840
- - 1gfc-sfp
- - 2gfc-sfp
- - 4gfc-sfp
- - 8gfc-sfpp
- - 16gfc-sfpp
- - 32gfc-sfp28
- - 32gfc-sfpp
- - 64gfc-qsfpp
- - 64gfc-sfpdd
- - 64gfc-sfpp
- - 128gfc-qsfp28
- - infiniband-sdr
- - infiniband-ddr
- - infiniband-qdr
- - infiniband-fdr10
- - infiniband-fdr
- - infiniband-edr
- - infiniband-hdr
- - infiniband-ndr
- - infiniband-xdr
- - t1
- - e1
- - t3
- - e3
- - xdsl
- - docsis
- - gpon
- - xg-pon
- - xgs-pon
- - ng-pon2
- - epon
- - 10g-epon
- - cisco-stackwise
- - cisco-stackwise-plus
- - cisco-flexstack
- - cisco-flexstack-plus
- - cisco-stackwise-80
- - cisco-stackwise-160
- - cisco-stackwise-320
- - cisco-stackwise-480
- - cisco-stackwise-1t
- - juniper-vcp
- - extreme-summitstack
- - extreme-summitstack-128
- - extreme-summitstack-256
- - extreme-summitstack-512
+ - 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
+ - ''
type: string
- description: '* `virtual` - Virtual
-
- * `bridge` - Bridge
-
- * `lag` - Link Aggregation Group (LAG)
-
- * `100base-fx` - 100BASE-FX (10/100ME FIBER)
-
- * `100base-lfx` - 100BASE-LFX (10/100ME FIBER)
-
- * `100base-tx` - 100BASE-TX (10/100ME)
-
- * `100base-t1` - 100BASE-T1 (10/100ME Single Pair)
-
- * `1000base-t` - 1000BASE-T (1GE)
-
- * `2.5gbase-t` - 2.5GBASE-T (2.5GE)
-
- * `5gbase-t` - 5GBASE-T (5GE)
-
- * `10gbase-t` - 10GBASE-T (10GE)
-
- * `10gbase-cx4` - 10GBASE-CX4 (10GE)
-
- * `1000base-x-gbic` - GBIC (1GE)
-
- * `1000base-x-sfp` - SFP (1GE)
-
- * `10gbase-x-sfpp` - SFP+ (10GE)
-
- * `10gbase-x-xfp` - XFP (10GE)
-
- * `10gbase-x-xenpak` - XENPAK (10GE)
-
- * `10gbase-x-x2` - X2 (10GE)
-
- * `25gbase-x-sfp28` - SFP28 (25GE)
-
- * `50gbase-x-sfp56` - SFP56 (50GE)
-
- * `40gbase-x-qsfpp` - QSFP+ (40GE)
-
- * `50gbase-x-sfp28` - QSFP28 (50GE)
-
- * `100gbase-x-cfp` - CFP (100GE)
-
- * `100gbase-x-cfp2` - CFP2 (100GE)
-
- * `200gbase-x-cfp2` - CFP2 (200GE)
-
- * `400gbase-x-cfp2` - CFP2 (400GE)
-
- * `100gbase-x-cfp4` - CFP4 (100GE)
-
- * `100gbase-x-cxp` - CXP (100GE)
-
- * `100gbase-x-cpak` - Cisco CPAK (100GE)
-
- * `100gbase-x-dsfp` - DSFP (100GE)
-
- * `100gbase-x-sfpdd` - SFP-DD (100GE)
-
- * `100gbase-x-qsfp28` - QSFP28 (100GE)
-
- * `100gbase-x-qsfpdd` - QSFP-DD (100GE)
-
- * `200gbase-x-qsfp56` - QSFP56 (200GE)
-
- * `200gbase-x-qsfpdd` - QSFP-DD (200GE)
-
- * `400gbase-x-qsfp112` - QSFP112 (400GE)
-
- * `400gbase-x-qsfpdd` - QSFP-DD (400GE)
-
- * `400gbase-x-osfp` - OSFP (400GE)
-
- * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE)
-
- * `400gbase-x-cdfp` - CDFP (400GE)
-
- * `400gbase-x-cfp8` - CPF8 (400GE)
-
- * `800gbase-x-qsfpdd` - QSFP-DD (800GE)
-
- * `800gbase-x-osfp` - OSFP (800GE)
-
- * `1000base-kx` - 1000BASE-KX (1GE)
-
- * `10gbase-kr` - 10GBASE-KR (10GE)
-
- * `10gbase-kx4` - 10GBASE-KX4 (10GE)
-
- * `25gbase-kr` - 25GBASE-KR (25GE)
-
- * `40gbase-kr4` - 40GBASE-KR4 (40GE)
-
- * `50gbase-kr` - 50GBASE-KR (50GE)
-
- * `100gbase-kp4` - 100GBASE-KP4 (100GE)
-
- * `100gbase-kr2` - 100GBASE-KR2 (100GE)
-
- * `100gbase-kr4` - 100GBASE-KR4 (100GE)
-
- * `ieee802.11a` - IEEE 802.11a
-
- * `ieee802.11g` - IEEE 802.11b/g
-
- * `ieee802.11n` - IEEE 802.11n
-
- * `ieee802.11ac` - IEEE 802.11ac
-
- * `ieee802.11ad` - IEEE 802.11ad
-
- * `ieee802.11ax` - IEEE 802.11ax
-
- * `ieee802.11ay` - IEEE 802.11ay
-
- * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth)
-
- * `other-wireless` - Other (Wireless)
-
- * `gsm` - GSM
+ x-spec-enum-id: c5f7197b7211818a
+ description: 'Physical port type
- * `cdma` - CDMA
- * `lte` - LTE
+ * `de-9` - DE-9
- * `sonet-oc3` - OC-3/STM-1
+ * `db-25` - DB-25
- * `sonet-oc12` - OC-12/STM-4
+ * `rj-11` - RJ-11
- * `sonet-oc48` - OC-48/STM-16
+ * `rj-12` - RJ-12
- * `sonet-oc192` - OC-192/STM-64
+ * `rj-45` - RJ-45
- * `sonet-oc768` - OC-768/STM-256
+ * `mini-din-8` - Mini-DIN 8
- * `sonet-oc1920` - OC-1920/STM-640
+ * `usb-a` - USB Type A
- * `sonet-oc3840` - OC-3840/STM-1234
+ * `usb-b` - USB Type B
- * `1gfc-sfp` - SFP (1GFC)
+ * `usb-c` - USB Type C
- * `2gfc-sfp` - SFP (2GFC)
+ * `usb-mini-a` - USB Mini A
- * `4gfc-sfp` - SFP (4GFC)
+ * `usb-mini-b` - USB Mini B
- * `8gfc-sfpp` - SFP+ (8GFC)
+ * `usb-micro-a` - USB Micro A
- * `16gfc-sfpp` - SFP+ (16GFC)
+ * `usb-micro-b` - USB Micro B
- * `32gfc-sfp28` - SFP28 (32GFC)
+ * `usb-micro-ab` - USB Micro AB
- * `32gfc-sfpp` - SFP+ (32GFC)
+ * `other` - Other'
+ speed:
+ enum:
+ - 1200
+ - 2400
+ - 4800
+ - 9600
+ - 19200
+ - 38400
+ - 57600
+ - 115200
+ type: integer
+ x-spec-enum-id: ab6d9635c131a378
+ nullable: true
+ description: 'Port speed in bits per second
- * `64gfc-qsfpp` - QSFP+ (64GFC)
- * `64gfc-sfpdd` - SFP-DD (64GFC)
+ * `1200` - 1200 bps
- * `64gfc-sfpp` - SFP+ (64GFC)
+ * `2400` - 2400 bps
- * `128gfc-qsfp28` - QSFP28 (128GFC)
+ * `4800` - 4800 bps
- * `infiniband-sdr` - SDR (2 Gbps)
+ * `9600` - 9600 bps
- * `infiniband-ddr` - DDR (4 Gbps)
+ * `19200` - 19.2 kbps
- * `infiniband-qdr` - QDR (8 Gbps)
+ * `38400` - 38.4 kbps
- * `infiniband-fdr10` - FDR10 (10 Gbps)
+ * `57600` - 57.6 kbps
- * `infiniband-fdr` - FDR (13.5 Gbps)
+ * `115200` - 115.2 kbps'
+ minimum: 0
+ maximum: 2147483647
+ 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: {}
+ PatchedWritableConsolePortTemplateRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
- * `infiniband-edr` - EDR (25 Gbps)
+ 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:
+ - 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
+ - ''
+ type: string
+ description: '* `de-9` - DE-9
- * `infiniband-hdr` - HDR (50 Gbps)
+ * `db-25` - DB-25
- * `infiniband-ndr` - NDR (100 Gbps)
+ * `rj-11` - RJ-11
- * `infiniband-xdr` - XDR (250 Gbps)
+ * `rj-12` - RJ-12
- * `t1` - T1 (1.544 Mbps)
+ * `rj-45` - RJ-45
- * `e1` - E1 (2.048 Mbps)
+ * `mini-din-8` - Mini-DIN 8
- * `t3` - T3 (45 Mbps)
+ * `usb-a` - USB Type A
- * `e3` - E3 (34 Mbps)
+ * `usb-b` - USB Type B
- * `xdsl` - xDSL
+ * `usb-c` - USB Type C
- * `docsis` - DOCSIS
+ * `usb-mini-a` - USB Mini A
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `usb-mini-b` - USB Mini B
- * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps)
+ * `usb-micro-a` - USB Micro A
- * `xgs-pon` - XGS-PON (10 Gbps)
+ * `usb-micro-b` - USB Micro B
- * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
+ * `usb-micro-ab` - USB Micro AB
- * `epon` - EPON (1 Gbps)
+ * `other` - Other'
+ x-spec-enum-id: c5f7197b7211818a
+ description:
+ type: string
+ maxLength: 200
+ PatchedWritableConsoleServerPortRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
+ nullable: true
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ label:
+ type: string
+ description: Physical label
+ maxLength: 64
+ type:
+ enum:
+ - 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
+ - ''
+ type: string
+ x-spec-enum-id: c5f7197b7211818a
+ description: 'Physical port type
- * `10g-epon` - 10G-EPON (10 Gbps)
- * `cisco-stackwise` - Cisco StackWise
+ * `de-9` - DE-9
- * `cisco-stackwise-plus` - Cisco StackWise Plus
+ * `db-25` - DB-25
- * `cisco-flexstack` - Cisco FlexStack
+ * `rj-11` - RJ-11
- * `cisco-flexstack-plus` - Cisco FlexStack Plus
+ * `rj-12` - RJ-12
- * `cisco-stackwise-80` - Cisco StackWise-80
+ * `rj-45` - RJ-45
- * `cisco-stackwise-160` - Cisco StackWise-160
+ * `mini-din-8` - Mini-DIN 8
- * `cisco-stackwise-320` - Cisco StackWise-320
+ * `usb-a` - USB Type A
- * `cisco-stackwise-480` - Cisco StackWise-480
+ * `usb-b` - USB Type B
- * `cisco-stackwise-1t` - Cisco StackWise-1T
+ * `usb-c` - USB Type C
- * `juniper-vcp` - Juniper VCP
+ * `usb-mini-a` - USB Mini A
- * `extreme-summitstack` - Extreme SummitStack
+ * `usb-mini-b` - USB Mini B
- * `extreme-summitstack-128` - Extreme SummitStack-128
+ * `usb-micro-a` - USB Micro A
- * `extreme-summitstack-256` - Extreme SummitStack-256
+ * `usb-micro-b` - USB Micro B
- * `extreme-summitstack-512` - Extreme SummitStack-512
+ * `usb-micro-ab` - USB Micro AB
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
- enabled:
- type: boolean
- mgmt_only:
- type: boolean
- title: Management only
- description:
- type: string
- maxLength: 200
- bridge:
+ speed:
+ enum:
+ - 1200
+ - 2400
+ - 4800
+ - 9600
+ - 19200
+ - 38400
+ - 57600
+ - 115200
type: integer
+ x-spec-enum-id: ab6d9635c131a378
nullable: true
- title: Bridge interface
- poe_mode:
- enum:
- - pd
- - pse
- - ''
- type: string
- description: '* `pd` - PD
+ description: 'Port speed in bits per second
- * `pse` - PSE'
- x-spec-enum-id: 2f2fe6dcdc7772bd
- poe_type:
- enum:
- - type1-ieee802.3af
- - type2-ieee802.3at
- - type3-ieee802.3bt
- - type4-ieee802.3bt
- - passive-24v-2pair
- - passive-24v-4pair
- - passive-48v-2pair
- - passive-48v-4pair
- - ''
- type: string
- description: '* `type1-ieee802.3af` - 802.3af (Type 1)
- * `type2-ieee802.3at` - 802.3at (Type 2)
+ * `1200` - 1200 bps
- * `type3-ieee802.3bt` - 802.3bt (Type 3)
+ * `2400` - 2400 bps
- * `type4-ieee802.3bt` - 802.3bt (Type 4)
+ * `4800` - 4800 bps
- * `passive-24v-2pair` - Passive 24V (2-pair)
+ * `9600` - 9600 bps
- * `passive-24v-4pair` - Passive 24V (4-pair)
+ * `19200` - 19.2 kbps
- * `passive-48v-2pair` - Passive 48V (2-pair)
+ * `38400` - 38.4 kbps
- * `passive-48v-4pair` - Passive 48V (4-pair)'
- x-spec-enum-id: 74bd3be4012f6da9
- rf_role:
- enum:
- - ap
- - station
- - ''
- type: string
- description: '* `ap` - Access point
+ * `57600` - 57.6 kbps
- * `station` - Station'
- x-spec-enum-id: d2772dbea88b0fb1
- title: Wireless role
- PatchedWritableInventoryItemRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- parent:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- role:
- type: integer
- nullable: true
- manufacturer:
- type: integer
- 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
+ * `115200` - 115.2 kbps'
+ minimum: 0
+ maximum: 2147483647
description:
type: string
maxLength: 200
- component_type:
- type: string
- nullable: true
- component_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
+ mark_connected:
+ type: boolean
+ description: Treat as if a cable is connected
tags:
type: array
items:
@@ -119163,7 +120077,7 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableInventoryItemTemplateRequest:
+ PatchedWritableConsoleServerPortTemplateRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
on a copy of the associated instance during
@@ -119171,9 +120085,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
- parent:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
+ nullable: true
+ module_type:
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -119185,161 +120102,91 @@ components:
type: string
description: Physical label
maxLength: 64
- role:
- type: integer
- nullable: true
- manufacturer:
- type: integer
- nullable: true
- part_id:
- type: string
- description: Manufacturer-assigned part identifier
- maxLength: 50
- description:
- type: string
- maxLength: 200
- component_type:
- type: string
- nullable: true
- component_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- PatchedWritableJournalEntryRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- assigned_object_type:
- type: string
- assigned_object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- created_by:
- type: integer
- nullable: true
- kind:
+ type:
enum:
- - info
- - success
- - warning
- - danger
+ - 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
+ - ''
type: string
- description: '* `info` - Info
+ description: '* `de-9` - DE-9
- * `success` - Success
+ * `db-25` - DB-25
- * `warning` - Warning
+ * `rj-11` - RJ-11
- * `danger` - Danger'
- x-spec-enum-id: a21af280f632fa34
- comments:
- type: string
- minLength: 1
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableL2VPNRequest:
- 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
- - epl
- - evpl
- - ep-lan
- - evp-lan
- - ep-tree
- - evp-tree
- type: string
- description: '* `vpws` - VPWS
+ * `rj-12` - RJ-12
- * `vpls` - VPLS
+ * `rj-45` - RJ-45
- * `vxlan` - VXLAN
+ * `mini-din-8` - Mini-DIN 8
- * `vxlan-evpn` - VXLAN-EVPN
+ * `usb-a` - USB Type A
- * `mpls-evpn` - MPLS EVPN
+ * `usb-b` - USB Type B
- * `pbb-evpn` - PBB EVPN
+ * `usb-c` - USB Type C
- * `epl` - EPL
+ * `usb-mini-a` - USB Mini A
- * `evpl` - EVPL
+ * `usb-mini-b` - USB Mini B
- * `ep-lan` - Ethernet Private LAN
+ * `usb-micro-a` - USB Micro A
- * `evp-lan` - Ethernet Virtual Private LAN
+ * `usb-micro-b` - USB Micro B
- * `ep-tree` - Ethernet Private Tree
+ * `usb-micro-ab` - USB Micro AB
- * `evp-tree` - Ethernet Virtual Private Tree'
- x-spec-enum-id: dbaa4f996ec2d110
- import_targets:
- type: array
- items:
- type: integer
- export_targets:
- type: array
- items:
- type: integer
+ * `other` - Other'
+ x-spec-enum-id: c5f7197b7211818a
description:
type: string
maxLength: 200
- comments:
- type: string
- tenant:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableL2VPNTerminationRequest:
+ PatchedWritableContactAssignmentRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- l2vpn:
- type: integer
- assigned_object_type:
+ object_type:
type: string
- assigned_object_id:
+ object_id:
type: integer
maximum: 9223372036854775807
minimum: 0
format: int64
+ contact:
+ $ref: '#/components/schemas/ContactRequest'
+ role:
+ allOf:
+ - $ref: '#/components/schemas/ContactRoleRequest'
+ nullable: true
+ 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:
@@ -119347,7 +120194,7 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableLocationRequest:
+ PatchedWritableContactGroupRequest:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
properties:
@@ -119360,32 +120207,9 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- site:
- type: integer
parent:
type: integer
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:
- type: integer
- nullable: true
description:
type: string
maxLength: 200
@@ -119396,128 +120220,330 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableModuleBayRequest:
+ PatchedWritableCustomFieldChoiceSetRequest:
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:
- type: integer
name:
type: string
minLength: 1
- maxLength: 64
- installed_module:
- type: integer
- label:
- type: string
- description: Physical label
- maxLength: 64
- position:
- type: string
- description: Identifier to reference when renaming installed components
- maxLength: 30
+ maxLength: 100
description:
type: string
maxLength: 200
- tags:
+ base_choices:
+ enum:
+ - IATA
+ - ISO_3166
+ - UN_LOCODE
+ - ''
+ type: string
+ x-spec-enum-id: cf0efb5195f85007
+ description: 'Base set of predefined choices (optional)
+
+
+ * `IATA` - IATA (Airport codes)
+
+ * `ISO_3166` - ISO 3166 (Country codes)
+
+ * `UN_LOCODE` - UN/LOCODE (Location codes)'
+ extra_choices:
type: array
items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableModuleBayTemplateRequest:
+ type: array
+ items: {}
+ maxItems: 2
+ minItems: 2
+ order_alphabetically:
+ type: boolean
+ description: Choices are automatically ordered alphabetically
+ PatchedWritableCustomFieldRequest:
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:
- type: integer
+ object_types:
+ type: array
+ items:
+ type: string
+ type:
+ enum:
+ - text
+ - longtext
+ - integer
+ - decimal
+ - boolean
+ - date
+ - datetime
+ - url
+ - json
+ - select
+ - multiselect
+ - object
+ - multiobject
+ type: string
+ x-spec-enum-id: 22e3a64138d10046
+ description: 'The type of data this custom field holds
+
+
+ * `text` - Text
+
+ * `longtext` - Text (long)
+
+ * `integer` - Integer
+
+ * `decimal` - Decimal
+
+ * `boolean` - Boolean (true/false)
+
+ * `date` - Date
+
+ * `datetime` - Date & time
+
+ * `url` - URL
+
+ * `json` - JSON
+
+ * `select` - Selection
+
+ * `multiselect` - Multiple selection
+
+ * `object` - Object
+
+ * `multiobject` - Multiple objects'
+ related_object_type:
+ type: string
+ 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
+ description: Internal field name
+ pattern: ^[a-z0-9_]+$
+ maxLength: 50
label:
type: string
- description: Physical label
- maxLength: 64
- position:
+ description: Name of the field as displayed to users (if not provided, 'the
+ field's name will be used)
+ maxLength: 50
+ group_name:
type: string
- description: Identifier to reference when renaming installed components
- maxLength: 30
+ description: Custom fields within the same group will be displayed together
+ maxLength: 50
description:
type: string
maxLength: 200
- PatchedWritableModuleRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- module_bay:
- type: integer
- module_type:
+ required:
+ type: boolean
+ description: If true, this field is required when creating new objects or
+ editing an existing object.
+ search_weight:
type: integer
- status:
+ maximum: 32767
+ minimum: 0
+ description: Weighting for search. Lower values are considered more important.
+ Fields with a search weight of zero will be ignored.
+ filter_logic:
enum:
- - offline
- - active
- - planned
- - staged
- - failed
- - decommissioning
+ - disabled
+ - loose
+ - exact
type: string
- description: '* `offline` - Offline
+ x-spec-enum-id: a958350ae21c10ee
+ description: 'Loose matches any instance of a given string; exact matches
+ the entire field.
- * `active` - Active
- * `planned` - Planned
+ * `disabled` - Disabled
- * `staged` - Staged
+ * `loose` - Loose
- * `failed` - Failed
+ * `exact` - Exact'
+ ui_visible:
+ enum:
+ - always
+ - if-set
+ - hidden
+ type: string
+ x-spec-enum-id: cd2cf94af56de747
+ description: 'Specifies whether the custom field is displayed in the UI
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
- serial:
+
+ * `always` - Always
+
+ * `if-set` - If set
+
+ * `hidden` - Hidden'
+ ui_editable:
+ enum:
+ - 'yes'
+ - 'no'
+ - hidden
type: string
- title: Serial number
- maxLength: 50
- asset_tag:
+ x-spec-enum-id: 1065673147e26bb5
+ description: 'Specifies whether the custom field value can be edited in
+ the UI
+
+
+ * `yes` - Yes
+
+ * `no` - No
+
+ * `hidden` - Hidden'
+ is_cloneable:
+ type: boolean
+ description: Replicate this value when cloning objects
+ default:
+ nullable: true
+ description: Default value for the field (must be a JSON value). Encapsulate
+ strings with double quotes (e.g. "Foo").
+ weight:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ title: Display weight
+ description: Fields with higher weights appear lower in a form.
+ validation_minimum:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ title: Minimum value
+ description: Minimum allowed value (for numeric fields)
+ validation_maximum:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
+ title: Maximum value
+ description: Maximum allowed value (for numeric fields)
+ validation_regex:
type: string
+ description: Regular expression to enforce on text field values. Use ^ and
+ $ to force matching of entire string. For example, ^[A-Z]{3}$
+ will limit values to exactly three uppercase letters.
+ maxLength: 500
+ choice_set:
+ allOf:
+ - $ref: '#/components/schemas/CustomFieldChoiceSetRequest'
nullable: true
- description: A unique tag used to identify this device
+ comments:
+ type: string
+ PatchedWritableDataSourceRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ type:
+ type: string
+ minLength: 1
maxLength: 50
+ source_url:
+ type: string
+ minLength: 1
+ title: URL
+ maxLength: 200
+ enabled:
+ type: boolean
description:
type: string
maxLength: 200
comments:
type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
+ parameters:
+ nullable: true
+ ignore_rules:
+ type: string
+ description: Patterns (one per line) matching files to ignore when syncing
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableModuleTypeRequest:
+ PatchedWritableDeviceTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
manufacturer:
- type: integer
+ $ref: '#/components/schemas/ManufacturerRequest'
+ default_platform:
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
+ nullable: true
model:
type: string
minLength: 1
maxLength: 100
+ slug:
+ type: string
+ 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
+ x-spec-enum-id: d10d91f690a856c2
+ 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.
+
+
+ * `parent` - Parent
+
+ * `child` - Child'
+ airflow:
+ enum:
+ - front-to-rear
+ - rear-to-front
+ - left-to-right
+ - right-to-left
+ - side-to-rear
+ - 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
+
+ * `passive` - Passive
+
+ * `mixed` - Mixed'
+ x-spec-enum-id: 58e389e240a5e53d
weight:
type: number
format: double
@@ -119542,6 +120568,12 @@ components:
* `oz` - Ounces'
x-spec-enum-id: 7c1876f422815884
+ front_image:
+ type: string
+ format: binary
+ rear_image:
+ type: string
+ format: binary
description:
type: string
maxLength: 200
@@ -119554,94 +120586,92 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableObjectPermissionRequest:
+ PatchedWritableDeviceWithConfigContextRequest:
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: 100
- description:
- type: string
- maxLength: 200
- enabled:
- type: boolean
- object_types:
- type: array
- items:
- type: string
- groups:
- type: array
- items:
- type: integer
- users:
- type: array
- items:
- type: integer
- actions:
- type: array
- items:
- type: string
- minLength: 1
- maxLength: 30
- description: The list of actions granted by this permission
- constraints:
nullable: true
- description: Queryset filter matching the applicable objects of the selected
- type(s)
- PatchedWritablePlatformRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
+ maxLength: 64
+ device_type:
+ $ref: '#/components/schemas/DeviceTypeRequest'
+ role:
+ $ref: '#/components/schemas/DeviceRoleRequest'
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
+ nullable: true
+ serial:
type: string
- minLength: 1
- maxLength: 100
- slug:
+ title: Serial number
+ description: Chassis serial number, assigned by the manufacturer
+ maxLength: 50
+ asset_tag:
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- manufacturer:
- type: integer
nullable: true
- description: Optionally limit this platform to devices of a certain manufacturer
- config_template:
- type: integer
+ description: A unique tag used to identify this device
+ maxLength: 50
+ site:
+ $ref: '#/components/schemas/SiteRequest'
+ location:
+ allOf:
+ - $ref: '#/components/schemas/LocationRequest'
nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritablePowerFeedRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- power_panel:
- type: integer
rack:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
- name:
+ position:
+ type: number
+ format: double
+ maximum: 1000
+ minimum: 0.5
+ exclusiveMaximum: true
+ nullable: true
+ title: Position (U)
+ face:
+ enum:
+ - front
+ - rear
+ - ''
type: string
- minLength: 1
- maxLength: 100
+ description: '* `front` - Front
+
+ * `rear` - Rear'
+ x-spec-enum-id: d2fb9b3f75158b83
+ title: Rack face
+ latitude:
+ type: number
+ format: double
+ maximum: 100
+ minimum: -100
+ exclusiveMaximum: true
+ exclusiveMinimum: true
+ nullable: true
+ description: GPS coordinate in decimal format (xx.yyyyyy)
+ longitude:
+ type: number
+ format: double
+ maximum: 1000
+ minimum: -1000
+ exclusiveMaximum: true
+ exclusiveMinimum: true
+ nullable: true
+ description: GPS coordinate in decimal format (xx.yyyyyy)
status:
enum:
- offline
- active
- planned
+ - staged
- failed
+ - inventory
+ - decommissioning
type: string
description: '* `offline` - Offline
@@ -119649,59 +120679,83 @@ components:
* `planned` - Planned
- * `failed` - Failed'
- x-spec-enum-id: b77fc919138c12f6
- type:
- enum:
- - primary
- - redundant
- type: string
- description: '* `primary` - Primary
+ * `staged` - Staged
- * `redundant` - Redundant'
- x-spec-enum-id: 093a164236819eb8
- supply:
- enum:
- - ac
- - dc
- type: string
- description: '* `ac` - AC
+ * `failed` - Failed
- * `dc` - DC'
- x-spec-enum-id: 1b6d99616ca6412b
- phase:
+ * `inventory` - Inventory
+
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 8d8971779f16ee18
+ airflow:
enum:
- - single-phase
- - three-phase
+ - front-to-rear
+ - rear-to-front
+ - left-to-right
+ - right-to-left
+ - side-to-rear
+ - passive
+ - mixed
+ - ''
type: string
- description: '* `single-phase` - Single phase
+ description: '* `front-to-rear` - Front to rear
- * `three-phase` - Three-phase'
- x-spec-enum-id: 994bc0696f4df57f
- voltage:
- type: integer
- maximum: 32767
- minimum: -32768
- amperage:
+ * `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'
+ x-spec-enum-id: 58e389e240a5e53d
+ primary_ip4:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ primary_ip6:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ oob_ip:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ cluster:
+ allOf:
+ - $ref: '#/components/schemas/ClusterRequest'
+ nullable: true
+ virtual_chassis:
+ allOf:
+ - $ref: '#/components/schemas/VirtualChassisRequest'
+ nullable: true
+ vc_position:
type: integer
- maximum: 32767
- minimum: 1
- max_utilization:
+ maximum: 255
+ minimum: 0
+ nullable: true
+ vc_priority:
type: integer
- maximum: 100
- minimum: 1
- description: Maximum permissible draw (percentage)
- mark_connected:
- type: boolean
- description: Treat as if a cable is connected
+ maximum: 255
+ minimum: 0
+ nullable: true
+ description: Virtual chassis master election priority
description:
type: string
maxLength: 200
- tenant:
- type: integer
- nullable: true
comments:
type: string
+ config_template:
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
+ nullable: true
+ local_context_data:
+ nullable: true
+ description: Local config context data takes precedence over source contexts
+ in the final rendered config context
tags:
type: array
items:
@@ -119709,14 +120763,80 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritablePowerOutletRequest:
+ PatchedWritableEventRuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- device:
+ object_types:
+ type: array
+ items:
+ type: string
+ name:
+ 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
+ conditions:
+ nullable: true
+ description: A set of conditions which determine whether the event will
+ be generated.
+ action_type:
+ enum:
+ - webhook
+ - script
+ type: string
+ description: '* `webhook` - Webhook
+
+ * `script` - Script'
+ x-spec-enum-id: a08300d86473de6e
+ action_object_type:
+ type: string
+ action_object_id:
type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ PatchedWritableFrontPortRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -119728,315 +120848,397 @@ components:
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-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
- - dc-terminal
- - hdot-cx
- - saf-d-grid
- - neutrik-powercon-20a
- - neutrik-powercon-32a
- - neutrik-powercon-true1
- - neutrik-powercon-true1-top
- - ubiquiti-smartpower
- - hardwired
+ - 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
- x-spec-enum-id: 5be1814581544db3
- description: 'Physical port type
-
+ description: '* `8p8c` - 8P8C
- * `iec-60320-c5` - C5
+ * `8p6c` - 8P6C
- * `iec-60320-c7` - C7
+ * `8p4c` - 8P4C
- * `iec-60320-c13` - C13
+ * `8p2c` - 8P2C
- * `iec-60320-c15` - C15
+ * `6p6c` - 6P6C
- * `iec-60320-c19` - C19
+ * `6p4c` - 6P4C
- * `iec-60320-c21` - C21
+ * `6p2c` - 6P2C
- * `iec-60309-p-n-e-4h` - P+N+E 4H
+ * `4p4c` - 4P4C
- * `iec-60309-p-n-e-6h` - P+N+E 6H
+ * `4p2c` - 4P2C
- * `iec-60309-p-n-e-9h` - P+N+E 9H
+ * `gg45` - GG45
- * `iec-60309-2p-e-4h` - 2P+E 4H
+ * `tera-4p` - TERA 4P
- * `iec-60309-2p-e-6h` - 2P+E 6H
+ * `tera-2p` - TERA 2P
- * `iec-60309-2p-e-9h` - 2P+E 9H
+ * `tera-1p` - TERA 1P
- * `iec-60309-3p-e-4h` - 3P+E 4H
+ * `110-punch` - 110 Punch
- * `iec-60309-3p-e-6h` - 3P+E 6H
+ * `bnc` - BNC
- * `iec-60309-3p-e-9h` - 3P+E 9H
+ * `f` - F Connector
- * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
+ * `n` - N Connector
- * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
+ * `mrj21` - MRJ21
- * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
+ * `fc` - FC
- * `iec-60906-1` - IEC 60906-1
+ * `lc` - LC
- * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
+ * `lc-pc` - LC/PC
- * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
+ * `lc-upc` - LC/UPC
- * `nema-1-15r` - NEMA 1-15R
+ * `lc-apc` - LC/APC
- * `nema-5-15r` - NEMA 5-15R
+ * `lsh` - LSH
- * `nema-5-20r` - NEMA 5-20R
+ * `lsh-pc` - LSH/PC
- * `nema-5-30r` - NEMA 5-30R
+ * `lsh-upc` - LSH/UPC
- * `nema-5-50r` - NEMA 5-50R
+ * `lsh-apc` - LSH/APC
- * `nema-6-15r` - NEMA 6-15R
+ * `lx5` - LX.5
- * `nema-6-20r` - NEMA 6-20R
+ * `lx5-pc` - LX.5/PC
- * `nema-6-30r` - NEMA 6-30R
+ * `lx5-upc` - LX.5/UPC
- * `nema-6-50r` - NEMA 6-50R
+ * `lx5-apc` - LX.5/APC
- * `nema-10-30r` - NEMA 10-30R
+ * `mpo` - MPO
- * `nema-10-50r` - NEMA 10-50R
+ * `mtrj` - MTRJ
- * `nema-14-20r` - NEMA 14-20R
+ * `sc` - SC
- * `nema-14-30r` - NEMA 14-30R
+ * `sc-pc` - SC/PC
- * `nema-14-50r` - NEMA 14-50R
+ * `sc-upc` - SC/UPC
- * `nema-14-60r` - NEMA 14-60R
+ * `sc-apc` - SC/APC
- * `nema-15-15r` - NEMA 15-15R
+ * `st` - ST
- * `nema-15-20r` - NEMA 15-20R
+ * `cs` - CS
- * `nema-15-30r` - NEMA 15-30R
+ * `sn` - SN
- * `nema-15-50r` - NEMA 15-50R
+ * `sma-905` - SMA 905
- * `nema-15-60r` - NEMA 15-60R
+ * `sma-906` - SMA 906
- * `nema-l1-15r` - NEMA L1-15R
+ * `urm-p2` - URM-P2
- * `nema-l5-15r` - NEMA L5-15R
+ * `urm-p4` - URM-P4
- * `nema-l5-20r` - NEMA L5-20R
+ * `urm-p8` - URM-P8
- * `nema-l5-30r` - NEMA L5-30R
+ * `splice` - Splice
- * `nema-l5-50r` - NEMA L5-50R
+ * `other` - Other'
+ x-spec-enum-id: 0276d1110ada597a
+ color:
+ type: string
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
+ rear_port:
+ type: integer
+ rear_port_position:
+ type: integer
+ maximum: 1024
+ minimum: 1
+ default: 1
+ description: Mapped position on corresponding rear port
+ 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: {}
+ PatchedWritableFrontPortTemplateRequest:
+ type: object
+ description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
+ on a copy of the associated instance during
- * `nema-l6-15r` - NEMA L6-15R
+ 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
- * `nema-l6-20r` - NEMA L6-20R
+ * `8p6c` - 8P6C
- * `nema-l6-30r` - NEMA L6-30R
+ * `8p4c` - 8P4C
- * `nema-l6-50r` - NEMA L6-50R
+ * `8p2c` - 8P2C
- * `nema-l10-30r` - NEMA L10-30R
+ * `6p6c` - 6P6C
- * `nema-l14-20r` - NEMA L14-20R
+ * `6p4c` - 6P4C
- * `nema-l14-30r` - NEMA L14-30R
+ * `6p2c` - 6P2C
- * `nema-l14-50r` - NEMA L14-50R
+ * `4p4c` - 4P4C
- * `nema-l14-60r` - NEMA L14-60R
+ * `4p2c` - 4P2C
- * `nema-l15-20r` - NEMA L15-20R
+ * `gg45` - GG45
- * `nema-l15-30r` - NEMA L15-30R
+ * `tera-4p` - TERA 4P
- * `nema-l15-50r` - NEMA L15-50R
+ * `tera-2p` - TERA 2P
- * `nema-l15-60r` - NEMA L15-60R
+ * `tera-1p` - TERA 1P
- * `nema-l21-20r` - NEMA L21-20R
+ * `110-punch` - 110 Punch
- * `nema-l21-30r` - NEMA L21-30R
+ * `bnc` - BNC
- * `nema-l22-30r` - NEMA L22-30R
+ * `f` - F Connector
- * `CS6360C` - CS6360C
+ * `n` - N Connector
- * `CS6364C` - CS6364C
+ * `mrj21` - MRJ21
- * `CS8164C` - CS8164C
+ * `fc` - FC
- * `CS8264C` - CS8264C
+ * `lc` - LC
- * `CS8364C` - CS8364C
+ * `lc-pc` - LC/PC
- * `CS8464C` - CS8464C
+ * `lc-upc` - LC/UPC
- * `ita-e` - ITA Type E (CEE 7/5)
+ * `lc-apc` - LC/APC
- * `ita-f` - ITA Type F (CEE 7/3)
+ * `lsh` - LSH
- * `ita-g` - ITA Type G (BS 1363)
+ * `lsh-pc` - LSH/PC
- * `ita-h` - ITA Type H
+ * `lsh-upc` - LSH/UPC
- * `ita-i` - ITA Type I
+ * `lsh-apc` - LSH/APC
- * `ita-j` - ITA Type J
+ * `lx5` - LX.5
- * `ita-k` - ITA Type K
+ * `lx5-pc` - LX.5/PC
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `lx5-upc` - LX.5/UPC
- * `ita-m` - ITA Type M (BS 546)
+ * `lx5-apc` - LX.5/APC
- * `ita-n` - ITA Type N
+ * `mpo` - MPO
- * `ita-o` - ITA Type O
+ * `mtrj` - MTRJ
- * `ita-multistandard` - ITA Multistandard
+ * `sc` - SC
- * `usb-a` - USB Type A
+ * `sc-pc` - SC/PC
- * `usb-micro-b` - USB Micro B
+ * `sc-upc` - SC/UPC
- * `usb-c` - USB Type C
+ * `sc-apc` - SC/APC
- * `dc-terminal` - DC Terminal
+ * `st` - ST
- * `hdot-cx` - HDOT Cx
+ * `cs` - CS
- * `saf-d-grid` - Saf-D-Grid
+ * `sn` - SN
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `sma-905` - SMA 905
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `sma-906` - SMA 906
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `urm-p2` - URM-P2
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `urm-p4` - URM-P4
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `urm-p8` - URM-P8
- * `hardwired` - Hardwired
+ * `splice` - Splice
* `other` - Other'
- power_port:
+ x-spec-enum-id: 0276d1110ada597a
+ color:
+ type: string
+ pattern: ^[0-9a-f]{6}$
+ maxLength: 6
+ rear_port:
+ $ref: '#/components/schemas/RearPortTemplateRequest'
+ rear_port_position:
type: integer
- nullable: true
- feed_leg:
+ maximum: 1024
+ minimum: 1
+ default: 1
+ description:
+ type: string
+ maxLength: 200
+ PatchedWritableIKEPolicyRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ version:
enum:
- - A
- - B
- - C
+ - 1
+ - 2
+ type: integer
+ description: '* `1` - IKEv1
+
+ * `2` - IKEv2'
+ x-spec-enum-id: 00872b77916a1fde
+ minimum: 0
+ maximum: 32767
+ mode:
+ enum:
+ - aggressive
+ - main
- ''
type: string
- x-spec-enum-id: a4902339df0b7c06
- description: 'Phase (for three-phase feeds)
-
-
- * `A` - A
-
- * `B` - B
+ description: '* `aggressive` - Aggressive
- * `C` - C'
- description:
+ * `main` - Main'
+ x-spec-enum-id: 64c1be7bdb2548ca
+ proposals:
+ type: array
+ items:
+ type: integer
+ preshared_key:
+ type: string
+ title: Pre-shared key
+ comments:
type: string
- maxLength: 200
- mark_connected:
- type: boolean
- description: Treat as if a cable is connected
tags:
type: array
items:
@@ -120044,350 +121246,535 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritablePowerOutletTemplateRequest:
+ PatchedWritableIKEProposalRequest:
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:
- device_type:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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:
+ maxLength: 100
+ description:
type: string
- description: Physical label
- maxLength: 64
- type:
+ maxLength: 200
+ authentication_method:
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-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
- - dc-terminal
- - hdot-cx
- - saf-d-grid
- - neutrik-powercon-20a
- - neutrik-powercon-32a
- - neutrik-powercon-true1
- - neutrik-powercon-true1-top
- - ubiquiti-smartpower
- - hardwired
- - other
- - ''
+ - preshared-keys
+ - certificates
+ - rsa-signatures
+ - dsa-signatures
type: string
- description: '* `iec-60320-c5` - C5
-
- * `iec-60320-c7` - C7
+ description: '* `preshared-keys` - Pre-shared keys
- * `iec-60320-c13` - C13
+ * `certificates` - Certificates
- * `iec-60320-c15` - C15
+ * `rsa-signatures` - RSA signatures
- * `iec-60320-c19` - C19
+ * `dsa-signatures` - DSA signatures'
+ x-spec-enum-id: 92bb2f1103b3a262
+ encryption_algorithm:
+ enum:
+ - aes-128-cbc
+ - aes-128-gcm
+ - aes-192-cbc
+ - aes-192-gcm
+ - aes-256-cbc
+ - aes-256-gcm
+ - 3des-cbc
+ - des-cbc
+ type: string
+ description: '* `aes-128-cbc` - 128-bit AES (CBC)
- * `iec-60320-c21` - C21
+ * `aes-128-gcm` - 128-bit AES (GCM)
- * `iec-60309-p-n-e-4h` - P+N+E 4H
+ * `aes-192-cbc` - 192-bit AES (CBC)
- * `iec-60309-p-n-e-6h` - P+N+E 6H
+ * `aes-192-gcm` - 192-bit AES (GCM)
- * `iec-60309-p-n-e-9h` - P+N+E 9H
+ * `aes-256-cbc` - 256-bit AES (CBC)
- * `iec-60309-2p-e-4h` - 2P+E 4H
+ * `aes-256-gcm` - 256-bit AES (GCM)
- * `iec-60309-2p-e-6h` - 2P+E 6H
+ * `3des-cbc` - 3DES
- * `iec-60309-2p-e-9h` - 2P+E 9H
+ * `des-cbc` - DES'
+ x-spec-enum-id: b022535cfdee79fe
+ authentication_algorithm:
+ enum:
+ - hmac-sha1
+ - hmac-sha256
+ - hmac-sha384
+ - hmac-sha512
+ - hmac-md5
+ - ''
+ type: string
+ description: '* `hmac-sha1` - SHA-1 HMAC
- * `iec-60309-3p-e-4h` - 3P+E 4H
+ * `hmac-sha256` - SHA-256 HMAC
- * `iec-60309-3p-e-6h` - 3P+E 6H
+ * `hmac-sha384` - SHA-384 HMAC
- * `iec-60309-3p-e-9h` - 3P+E 9H
+ * `hmac-sha512` - SHA-512 HMAC
- * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
+ * `hmac-md5` - MD5 HMAC'
+ x-spec-enum-id: 0830e8839f5dea4f
+ group:
+ enum:
+ - 1
+ - 2
+ - 5
+ - 14
+ - 15
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ x-spec-enum-id: dbef43be795462a8
+ description: 'Diffie-Hellman group ID
- * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
- * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
+ * `1` - Group 1
- * `iec-60906-1` - IEC 60906-1
+ * `2` - Group 2
- * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
+ * `5` - Group 5
- * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
+ * `14` - Group 14
- * `nema-1-15r` - NEMA 1-15R
+ * `15` - Group 15
- * `nema-5-15r` - NEMA 5-15R
+ * `16` - Group 16
- * `nema-5-20r` - NEMA 5-20R
+ * `17` - Group 17
- * `nema-5-30r` - NEMA 5-30R
+ * `18` - Group 18
- * `nema-5-50r` - NEMA 5-50R
+ * `19` - Group 19
- * `nema-6-15r` - NEMA 6-15R
+ * `20` - Group 20
- * `nema-6-20r` - NEMA 6-20R
+ * `21` - Group 21
- * `nema-6-30r` - NEMA 6-30R
+ * `22` - Group 22
- * `nema-6-50r` - NEMA 6-50R
+ * `23` - Group 23
- * `nema-10-30r` - NEMA 10-30R
+ * `24` - Group 24
- * `nema-10-50r` - NEMA 10-50R
+ * `25` - Group 25
- * `nema-14-20r` - NEMA 14-20R
+ * `26` - Group 26
- * `nema-14-30r` - NEMA 14-30R
+ * `27` - Group 27
- * `nema-14-50r` - NEMA 14-50R
+ * `28` - Group 28
- * `nema-14-60r` - NEMA 14-60R
+ * `29` - Group 29
- * `nema-15-15r` - NEMA 15-15R
+ * `30` - Group 30
- * `nema-15-20r` - NEMA 15-20R
+ * `31` - Group 31
- * `nema-15-30r` - NEMA 15-30R
+ * `32` - Group 32
- * `nema-15-50r` - NEMA 15-50R
+ * `33` - Group 33
- * `nema-15-60r` - NEMA 15-60R
+ * `34` - Group 34'
+ minimum: 0
+ maximum: 32767
+ sa_lifetime:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ nullable: true
+ description: Security association lifetime (in seconds)
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableIPAddressRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ address:
+ type: string
+ minLength: 1
+ vrf:
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ status:
+ enum:
+ - active
+ - reserved
+ - deprecated
+ - dhcp
+ - slaac
+ type: string
+ x-spec-enum-id: 24935cfee15bd268
+ description: 'The operational status of this IP
- * `nema-l1-15r` - NEMA L1-15R
- * `nema-l5-15r` - NEMA L5-15R
+ * `active` - Active
- * `nema-l5-20r` - NEMA L5-20R
+ * `reserved` - Reserved
- * `nema-l5-30r` - NEMA L5-30R
+ * `deprecated` - Deprecated
- * `nema-l5-50r` - NEMA L5-50R
+ * `dhcp` - DHCP
- * `nema-l6-15r` - NEMA L6-15R
+ * `slaac` - SLAAC'
+ role:
+ enum:
+ - loopback
+ - secondary
+ - anycast
+ - vip
+ - vrrp
+ - hsrp
+ - glbp
+ - carp
+ - ''
+ type: string
+ x-spec-enum-id: 10fbcb4930889b0f
+ description: 'The functional role of this IP
- * `nema-l6-20r` - NEMA L6-20R
- * `nema-l6-30r` - NEMA L6-30R
+ * `loopback` - Loopback
- * `nema-l6-50r` - NEMA L6-50R
+ * `secondary` - Secondary
- * `nema-l10-30r` - NEMA L10-30R
+ * `anycast` - Anycast
- * `nema-l14-20r` - NEMA L14-20R
+ * `vip` - VIP
- * `nema-l14-30r` - NEMA L14-30R
+ * `vrrp` - VRRP
- * `nema-l14-50r` - NEMA L14-50R
+ * `hsrp` - HSRP
- * `nema-l14-60r` - NEMA L14-60R
+ * `glbp` - GLBP
- * `nema-l15-20r` - NEMA L15-20R
+ * `carp` - CARP'
+ assigned_object_type:
+ type: string
+ nullable: true
+ assigned_object_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
+ nullable: true
+ nat_inside:
+ type: integer
+ nullable: true
+ title: NAT (inside)
+ description: The IP for which this address is the "outside" IP
+ 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: {}
+ PatchedWritableIPRangeRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ start_address:
+ type: string
+ minLength: 1
+ end_address:
+ type: string
+ minLength: 1
+ vrf:
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ status:
+ enum:
+ - active
+ - reserved
+ - deprecated
+ type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
+ description: 'Operational status of this range
- * `nema-l15-30r` - NEMA L15-30R
- * `nema-l15-50r` - NEMA L15-50R
+ * `active` - Active
- * `nema-l15-60r` - NEMA L15-60R
+ * `reserved` - Reserved
- * `nema-l21-20r` - NEMA L21-20R
+ * `deprecated` - Deprecated'
+ role:
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ mark_utilized:
+ type: boolean
+ description: Treat as fully utilized
+ PatchedWritableIPSecPolicyRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ proposals:
+ type: array
+ items:
+ type: integer
+ pfs_group:
+ enum:
+ - 1
+ - 2
+ - 5
+ - 14
+ - 15
+ - 16
+ - 17
+ - 18
+ - 19
+ - 20
+ - 21
+ - 22
+ - 23
+ - 24
+ - 25
+ - 26
+ - 27
+ - 28
+ - 29
+ - 30
+ - 31
+ - 32
+ - 33
+ - 34
+ type: integer
+ x-spec-enum-id: dbef43be795462a8
+ nullable: true
+ description: 'Diffie-Hellman group for Perfect Forward Secrecy
- * `nema-l21-30r` - NEMA L21-30R
- * `nema-l22-30r` - NEMA L22-30R
+ * `1` - Group 1
- * `CS6360C` - CS6360C
+ * `2` - Group 2
- * `CS6364C` - CS6364C
+ * `5` - Group 5
- * `CS8164C` - CS8164C
+ * `14` - Group 14
- * `CS8264C` - CS8264C
+ * `15` - Group 15
- * `CS8364C` - CS8364C
+ * `16` - Group 16
- * `CS8464C` - CS8464C
+ * `17` - Group 17
- * `ita-e` - ITA Type E (CEE 7/5)
+ * `18` - Group 18
- * `ita-f` - ITA Type F (CEE 7/3)
+ * `19` - Group 19
- * `ita-g` - ITA Type G (BS 1363)
+ * `20` - Group 20
- * `ita-h` - ITA Type H
+ * `21` - Group 21
- * `ita-i` - ITA Type I
+ * `22` - Group 22
- * `ita-j` - ITA Type J
+ * `23` - Group 23
- * `ita-k` - ITA Type K
+ * `24` - Group 24
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `25` - Group 25
- * `ita-m` - ITA Type M (BS 546)
+ * `26` - Group 26
- * `ita-n` - ITA Type N
+ * `27` - Group 27
- * `ita-o` - ITA Type O
+ * `28` - Group 28
- * `ita-multistandard` - ITA Multistandard
+ * `29` - Group 29
- * `usb-a` - USB Type A
+ * `30` - Group 30
- * `usb-micro-b` - USB Micro B
+ * `31` - Group 31
- * `usb-c` - USB Type C
+ * `32` - Group 32
- * `dc-terminal` - DC Terminal
+ * `33` - Group 33
- * `hdot-cx` - HDOT Cx
+ * `34` - Group 34'
+ minimum: 0
+ maximum: 32767
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableIPSecProfileRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ mode:
+ enum:
+ - esp
+ - ah
+ type: string
+ description: '* `esp` - ESP
- * `saf-d-grid` - Saf-D-Grid
+ * `ah` - AH'
+ x-spec-enum-id: 1136c2cdfee84436
+ ike_policy:
+ $ref: '#/components/schemas/IKEPolicyRequest'
+ ipsec_policy:
+ $ref: '#/components/schemas/IPSecPolicyRequest'
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableIPSecProposalRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ description:
+ type: string
+ maxLength: 200
+ encryption_algorithm:
+ enum:
+ - aes-128-cbc
+ - aes-128-gcm
+ - aes-192-cbc
+ - aes-192-gcm
+ - aes-256-cbc
+ - aes-256-gcm
+ - 3des-cbc
+ - des-cbc
+ - ''
+ type: string
+ description: '* `aes-128-cbc` - 128-bit AES (CBC)
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `aes-128-gcm` - 128-bit AES (GCM)
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `aes-192-cbc` - 192-bit AES (CBC)
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `aes-192-gcm` - 192-bit AES (GCM)
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `aes-256-cbc` - 256-bit AES (CBC)
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `aes-256-gcm` - 256-bit AES (GCM)
- * `hardwired` - Hardwired
+ * `3des-cbc` - 3DES
- * `other` - Other'
- x-spec-enum-id: 5be1814581544db3
- power_port:
- type: integer
- nullable: true
- feed_leg:
+ * `des-cbc` - DES'
+ x-spec-enum-id: b022535cfdee79fe
+ title: Encryption
+ authentication_algorithm:
enum:
- - A
- - B
- - C
+ - hmac-sha1
+ - hmac-sha256
+ - hmac-sha384
+ - hmac-sha512
+ - hmac-md5
- ''
type: string
- x-spec-enum-id: a4902339df0b7c06
- description: 'Phase (for three-phase feeds)
+ description: '* `hmac-sha1` - SHA-1 HMAC
+ * `hmac-sha256` - SHA-256 HMAC
- * `A` - A
+ * `hmac-sha384` - SHA-384 HMAC
- * `B` - B
+ * `hmac-sha512` - SHA-512 HMAC
- * `C` - C'
- description:
- type: string
- maxLength: 200
- PatchedWritablePowerPanelRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- site:
+ * `hmac-md5` - MD5 HMAC'
+ x-spec-enum-id: 0830e8839f5dea4f
+ title: Authentication
+ sa_lifetime_seconds:
type: integer
- location:
+ maximum: 2147483647
+ minimum: 0
+ nullable: true
+ title: SA lifetime (seconds)
+ description: Security association lifetime (seconds)
+ sa_lifetime_data:
type: integer
+ maximum: 2147483647
+ minimum: 0
nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
+ title: SA lifetime (KB)
+ description: Security association lifetime (in kilobytes)
comments:
type: string
tags:
@@ -120397,14 +121784,19 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritablePowerPortRequest:
+ PatchedWritableInterfaceRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
+ vdcs:
+ type: array
+ items:
+ type: integer
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -120416,1825 +121808,1139 @@ components:
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-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
- - dc-terminal
- - saf-d-grid
- - neutrik-powercon-20
- - neutrik-powercon-32
- - neutrik-powercon-true1
- - neutrik-powercon-true1-top
- - ubiquiti-smartpower
- - hardwired
+ - virtual
+ - bridge
+ - lag
+ - 100base-fx
+ - 100base-lfx
+ - 100base-tx
+ - 100base-t1
+ - 1000base-t
+ - 2.5gbase-t
+ - 5gbase-t
+ - 10gbase-t
+ - 10gbase-cx4
+ - 1000base-x-gbic
+ - 1000base-x-sfp
+ - 10gbase-x-sfpp
+ - 10gbase-x-xfp
+ - 10gbase-x-xenpak
+ - 10gbase-x-x2
+ - 25gbase-x-sfp28
+ - 50gbase-x-sfp56
+ - 40gbase-x-qsfpp
+ - 50gbase-x-sfp28
+ - 100gbase-x-cfp
+ - 100gbase-x-cfp2
+ - 200gbase-x-cfp2
+ - 400gbase-x-cfp2
+ - 100gbase-x-cfp4
+ - 100gbase-x-cxp
+ - 100gbase-x-cpak
+ - 100gbase-x-dsfp
+ - 100gbase-x-sfpdd
+ - 100gbase-x-qsfp28
+ - 100gbase-x-qsfpdd
+ - 200gbase-x-qsfp56
+ - 200gbase-x-qsfpdd
+ - 400gbase-x-qsfp112
+ - 400gbase-x-qsfpdd
+ - 400gbase-x-osfp
+ - 400gbase-x-osfp-rhs
+ - 400gbase-x-cdfp
+ - 400gbase-x-cfp8
+ - 800gbase-x-qsfpdd
+ - 800gbase-x-osfp
+ - 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
+ - 10gbase-kr
+ - 10gbase-kx4
+ - 25gbase-kr
+ - 40gbase-kr4
+ - 50gbase-kr
+ - 100gbase-kp4
+ - 100gbase-kr2
+ - 100gbase-kr4
+ - ieee802.11a
+ - ieee802.11g
+ - ieee802.11n
+ - ieee802.11ac
+ - ieee802.11ad
+ - ieee802.11ax
+ - ieee802.11ay
+ - ieee802.15.1
+ - other-wireless
+ - gsm
+ - cdma
+ - lte
+ - 4g
+ - 5g
+ - sonet-oc3
+ - sonet-oc12
+ - sonet-oc48
+ - sonet-oc192
+ - sonet-oc768
+ - sonet-oc1920
+ - sonet-oc3840
+ - 1gfc-sfp
+ - 2gfc-sfp
+ - 4gfc-sfp
+ - 8gfc-sfpp
+ - 16gfc-sfpp
+ - 32gfc-sfp28
+ - 32gfc-sfpp
+ - 64gfc-qsfpp
+ - 64gfc-sfpdd
+ - 64gfc-sfpp
+ - 128gfc-qsfp28
+ - infiniband-sdr
+ - infiniband-ddr
+ - infiniband-qdr
+ - infiniband-fdr10
+ - infiniband-fdr
+ - infiniband-edr
+ - infiniband-hdr
+ - infiniband-ndr
+ - infiniband-xdr
+ - t1
+ - e1
+ - t3
+ - e3
+ - xdsl
+ - docsis
+ - bpon
+ - epon
+ - 10g-epon
+ - gpon
+ - xg-pon
+ - xgs-pon
+ - ng-pon2
+ - 25g-pon
+ - 50g-pon
+ - cisco-stackwise
+ - cisco-stackwise-plus
+ - cisco-flexstack
+ - cisco-flexstack-plus
+ - cisco-stackwise-80
+ - cisco-stackwise-160
+ - cisco-stackwise-320
+ - cisco-stackwise-480
+ - cisco-stackwise-1t
+ - juniper-vcp
+ - extreme-summitstack
+ - extreme-summitstack-128
+ - extreme-summitstack-256
+ - extreme-summitstack-512
- other
- - ''
type: string
- x-spec-enum-id: 0612e2fb273da8ee
- description: '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
+ description: '* `virtual` - Virtual
- * `iec-60309-p-n-e-9h` - P+N+E 9H
+ * `bridge` - Bridge
- * `iec-60309-2p-e-4h` - 2P+E 4H
+ * `lag` - Link Aggregation Group (LAG)
- * `iec-60309-2p-e-6h` - 2P+E 6H
+ * `100base-fx` - 100BASE-FX (10/100ME FIBER)
- * `iec-60309-2p-e-9h` - 2P+E 9H
+ * `100base-lfx` - 100BASE-LFX (10/100ME FIBER)
- * `iec-60309-3p-e-4h` - 3P+E 4H
+ * `100base-tx` - 100BASE-TX (10/100ME)
- * `iec-60309-3p-e-6h` - 3P+E 6H
+ * `100base-t1` - 100BASE-T1 (10/100ME Single Pair)
- * `iec-60309-3p-e-9h` - 3P+E 9H
+ * `1000base-t` - 1000BASE-T (1GE)
- * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
+ * `2.5gbase-t` - 2.5GBASE-T (2.5GE)
- * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
+ * `5gbase-t` - 5GBASE-T (5GE)
- * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
+ * `10gbase-t` - 10GBASE-T (10GE)
- * `iec-60906-1` - IEC 60906-1
+ * `10gbase-cx4` - 10GBASE-CX4 (10GE)
- * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
+ * `1000base-x-gbic` - GBIC (1GE)
- * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
+ * `1000base-x-sfp` - SFP (1GE)
- * `nema-1-15p` - NEMA 1-15P
+ * `10gbase-x-sfpp` - SFP+ (10GE)
- * `nema-5-15p` - NEMA 5-15P
+ * `10gbase-x-xfp` - XFP (10GE)
- * `nema-5-20p` - NEMA 5-20P
+ * `10gbase-x-xenpak` - XENPAK (10GE)
- * `nema-5-30p` - NEMA 5-30P
+ * `10gbase-x-x2` - X2 (10GE)
- * `nema-5-50p` - NEMA 5-50P
+ * `25gbase-x-sfp28` - SFP28 (25GE)
- * `nema-6-15p` - NEMA 6-15P
+ * `50gbase-x-sfp56` - SFP56 (50GE)
- * `nema-6-20p` - NEMA 6-20P
+ * `40gbase-x-qsfpp` - QSFP+ (40GE)
- * `nema-6-30p` - NEMA 6-30P
+ * `50gbase-x-sfp28` - QSFP28 (50GE)
- * `nema-6-50p` - NEMA 6-50P
+ * `100gbase-x-cfp` - CFP (100GE)
- * `nema-10-30p` - NEMA 10-30P
+ * `100gbase-x-cfp2` - CFP2 (100GE)
- * `nema-10-50p` - NEMA 10-50P
+ * `200gbase-x-cfp2` - CFP2 (200GE)
- * `nema-14-20p` - NEMA 14-20P
+ * `400gbase-x-cfp2` - CFP2 (400GE)
- * `nema-14-30p` - NEMA 14-30P
+ * `100gbase-x-cfp4` - CFP4 (100GE)
- * `nema-14-50p` - NEMA 14-50P
+ * `100gbase-x-cxp` - CXP (100GE)
- * `nema-14-60p` - NEMA 14-60P
+ * `100gbase-x-cpak` - Cisco CPAK (100GE)
- * `nema-15-15p` - NEMA 15-15P
+ * `100gbase-x-dsfp` - DSFP (100GE)
- * `nema-15-20p` - NEMA 15-20P
+ * `100gbase-x-sfpdd` - SFP-DD (100GE)
- * `nema-15-30p` - NEMA 15-30P
+ * `100gbase-x-qsfp28` - QSFP28 (100GE)
- * `nema-15-50p` - NEMA 15-50P
+ * `100gbase-x-qsfpdd` - QSFP-DD (100GE)
- * `nema-15-60p` - NEMA 15-60P
+ * `200gbase-x-qsfp56` - QSFP56 (200GE)
- * `nema-l1-15p` - NEMA L1-15P
+ * `200gbase-x-qsfpdd` - QSFP-DD (200GE)
- * `nema-l5-15p` - NEMA L5-15P
+ * `400gbase-x-qsfp112` - QSFP112 (400GE)
- * `nema-l5-20p` - NEMA L5-20P
+ * `400gbase-x-qsfpdd` - QSFP-DD (400GE)
- * `nema-l5-30p` - NEMA L5-30P
+ * `400gbase-x-osfp` - OSFP (400GE)
- * `nema-l5-50p` - NEMA L5-50P
+ * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE)
- * `nema-l6-15p` - NEMA L6-15P
+ * `400gbase-x-cdfp` - CDFP (400GE)
- * `nema-l6-20p` - NEMA L6-20P
+ * `400gbase-x-cfp8` - CPF8 (400GE)
- * `nema-l6-30p` - NEMA L6-30P
+ * `800gbase-x-qsfpdd` - QSFP-DD (800GE)
- * `nema-l6-50p` - NEMA L6-50P
+ * `800gbase-x-osfp` - OSFP (800GE)
- * `nema-l10-30p` - NEMA L10-30P
+ * `1000base-kx` - 1000BASE-KX (1GE)
- * `nema-l14-20p` - NEMA L14-20P
+ * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE)
- * `nema-l14-30p` - NEMA L14-30P
+ * `5gbase-kr` - 5GBASE-KR (5GE)
- * `nema-l14-50p` - NEMA L14-50P
+ * `10gbase-kr` - 10GBASE-KR (10GE)
- * `nema-l14-60p` - NEMA L14-60P
+ * `10gbase-kx4` - 10GBASE-KX4 (10GE)
- * `nema-l15-20p` - NEMA L15-20P
+ * `25gbase-kr` - 25GBASE-KR (25GE)
- * `nema-l15-30p` - NEMA L15-30P
+ * `40gbase-kr4` - 40GBASE-KR4 (40GE)
- * `nema-l15-50p` - NEMA L15-50P
+ * `50gbase-kr` - 50GBASE-KR (50GE)
- * `nema-l15-60p` - NEMA L15-60P
+ * `100gbase-kp4` - 100GBASE-KP4 (100GE)
- * `nema-l21-20p` - NEMA L21-20P
+ * `100gbase-kr2` - 100GBASE-KR2 (100GE)
- * `nema-l21-30p` - NEMA L21-30P
+ * `100gbase-kr4` - 100GBASE-KR4 (100GE)
- * `nema-l22-30p` - NEMA L22-30P
+ * `ieee802.11a` - IEEE 802.11a
- * `cs6361c` - CS6361C
+ * `ieee802.11g` - IEEE 802.11b/g
- * `cs6365c` - CS6365C
+ * `ieee802.11n` - IEEE 802.11n
- * `cs8165c` - CS8165C
+ * `ieee802.11ac` - IEEE 802.11ac
- * `cs8265c` - CS8265C
+ * `ieee802.11ad` - IEEE 802.11ad
- * `cs8365c` - CS8365C
+ * `ieee802.11ax` - IEEE 802.11ax
- * `cs8465c` - CS8465C
+ * `ieee802.11ay` - IEEE 802.11ay
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth)
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `other-wireless` - Other (Wireless)
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `gsm` - GSM
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `cdma` - CDMA
- * `ita-g` - ITA Type G (BS 1363)
+ * `lte` - LTE
- * `ita-h` - ITA Type H
+ * `4g` - 4G
- * `ita-i` - ITA Type I
+ * `5g` - 5G
- * `ita-j` - ITA Type J
+ * `sonet-oc3` - OC-3/STM-1
- * `ita-k` - ITA Type K
+ * `sonet-oc12` - OC-12/STM-4
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `sonet-oc48` - OC-48/STM-16
- * `ita-m` - ITA Type M (BS 546)
+ * `sonet-oc192` - OC-192/STM-64
- * `ita-n` - ITA Type N
+ * `sonet-oc768` - OC-768/STM-256
- * `ita-o` - ITA Type O
+ * `sonet-oc1920` - OC-1920/STM-640
- * `usb-a` - USB Type A
+ * `sonet-oc3840` - OC-3840/STM-1234
- * `usb-b` - USB Type B
+ * `1gfc-sfp` - SFP (1GFC)
- * `usb-c` - USB Type C
+ * `2gfc-sfp` - SFP (2GFC)
- * `usb-mini-a` - USB Mini A
+ * `4gfc-sfp` - SFP (4GFC)
- * `usb-mini-b` - USB Mini B
+ * `8gfc-sfpp` - SFP+ (8GFC)
- * `usb-micro-a` - USB Micro A
+ * `16gfc-sfpp` - SFP+ (16GFC)
- * `usb-micro-b` - USB Micro B
+ * `32gfc-sfp28` - SFP28 (32GFC)
- * `usb-micro-ab` - USB Micro AB
+ * `32gfc-sfpp` - SFP+ (32GFC)
- * `usb-3-b` - USB 3.0 Type B
+ * `64gfc-qsfpp` - QSFP+ (64GFC)
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `64gfc-sfpdd` - SFP-DD (64GFC)
- * `dc-terminal` - DC Terminal
+ * `64gfc-sfpp` - SFP+ (64GFC)
- * `saf-d-grid` - Saf-D-Grid
+ * `128gfc-qsfp28` - QSFP28 (128GFC)
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `infiniband-sdr` - SDR (2 Gbps)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `infiniband-ddr` - DDR (4 Gbps)
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `infiniband-qdr` - QDR (8 Gbps)
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `infiniband-fdr10` - FDR10 (10 Gbps)
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `infiniband-fdr` - FDR (13.5 Gbps)
- * `hardwired` - Hardwired
+ * `infiniband-edr` - EDR (25 Gbps)
- * `other` - Other'
- 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
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritablePowerPortTemplateRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
+ * `infiniband-hdr` - HDR (50 Gbps)
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- device_type:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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:
- - 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-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
- - 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
+ * `infiniband-ndr` - NDR (100 Gbps)
- * `iec-60320-c8` - C8
+ * `infiniband-xdr` - XDR (250 Gbps)
- * `iec-60320-c14` - C14
+ * `t1` - T1 (1.544 Mbps)
- * `iec-60320-c16` - C16
+ * `e1` - E1 (2.048 Mbps)
- * `iec-60320-c20` - C20
+ * `t3` - T3 (45 Mbps)
- * `iec-60320-c22` - C22
+ * `e3` - E3 (34 Mbps)
- * `iec-60309-p-n-e-4h` - P+N+E 4H
+ * `xdsl` - xDSL
- * `iec-60309-p-n-e-6h` - P+N+E 6H
+ * `docsis` - DOCSIS
- * `iec-60309-p-n-e-9h` - P+N+E 9H
+ * `bpon` - BPON (622 Mbps / 155 Mbps)
- * `iec-60309-2p-e-4h` - 2P+E 4H
+ * `epon` - EPON (1 Gbps)
- * `iec-60309-2p-e-6h` - 2P+E 6H
+ * `10g-epon` - 10G-EPON (10 Gbps)
- * `iec-60309-2p-e-9h` - 2P+E 9H
+ * `gpon` - GPON (2.5 Gbps / 1.25 Gbps)
- * `iec-60309-3p-e-4h` - 3P+E 4H
+ * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps)
- * `iec-60309-3p-e-6h` - 3P+E 6H
+ * `xgs-pon` - XGS-PON (10 Gbps)
- * `iec-60309-3p-e-9h` - 3P+E 9H
+ * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
+ * `50g-pon` - 50G-PON (50 Gbps)
- * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
+ * `cisco-stackwise` - Cisco StackWise
- * `iec-60906-1` - IEC 60906-1
+ * `cisco-stackwise-plus` - Cisco StackWise Plus
- * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
+ * `cisco-flexstack` - Cisco FlexStack
- * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
+ * `cisco-flexstack-plus` - Cisco FlexStack Plus
- * `nema-1-15p` - NEMA 1-15P
+ * `cisco-stackwise-80` - Cisco StackWise-80
- * `nema-5-15p` - NEMA 5-15P
+ * `cisco-stackwise-160` - Cisco StackWise-160
- * `nema-5-20p` - NEMA 5-20P
+ * `cisco-stackwise-320` - Cisco StackWise-320
- * `nema-5-30p` - NEMA 5-30P
+ * `cisco-stackwise-480` - Cisco StackWise-480
- * `nema-5-50p` - NEMA 5-50P
+ * `cisco-stackwise-1t` - Cisco StackWise-1T
- * `nema-6-15p` - NEMA 6-15P
+ * `juniper-vcp` - Juniper VCP
- * `nema-6-20p` - NEMA 6-20P
+ * `extreme-summitstack` - Extreme SummitStack
- * `nema-6-30p` - NEMA 6-30P
+ * `extreme-summitstack-128` - Extreme SummitStack-128
- * `nema-6-50p` - NEMA 6-50P
+ * `extreme-summitstack-256` - Extreme SummitStack-256
- * `nema-10-30p` - NEMA 10-30P
+ * `extreme-summitstack-512` - Extreme SummitStack-512
- * `nema-10-50p` - NEMA 10-50P
+ * `other` - Other'
+ x-spec-enum-id: b9a351ea129ed754
+ enabled:
+ type: boolean
+ parent:
+ type: integer
+ nullable: true
+ title: Parent interface
+ bridge:
+ type: integer
+ nullable: true
+ title: Bridge interface
+ lag:
+ type: integer
+ nullable: true
+ title: Parent LAG
+ mtu:
+ type: integer
+ maximum: 65536
+ minimum: 1
+ nullable: true
+ mac_address:
+ type: string
+ nullable: true
+ speed:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ nullable: true
+ title: Speed (Kbps)
+ duplex:
+ enum:
+ - half
+ - full
+ - auto
+ - ''
+ type: string
+ description: '* `half` - Half
- * `nema-14-20p` - NEMA 14-20P
+ * `full` - Full
- * `nema-14-30p` - NEMA 14-30P
+ * `auto` - Auto'
+ x-spec-enum-id: 47eab9b1a65a1e21
+ nullable: true
+ wwn:
+ type: string
+ nullable: true
+ mgmt_only:
+ type: boolean
+ title: Management only
+ description: This interface is used only for out-of-band management
+ description:
+ type: string
+ maxLength: 200
+ mode:
+ enum:
+ - access
+ - tagged
+ - tagged-all
+ - ''
+ type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
+ description: 'IEEE 802.1Q tagging strategy
- * `nema-14-50p` - NEMA 14-50P
- * `nema-14-60p` - NEMA 14-60P
+ * `access` - Access
- * `nema-15-15p` - NEMA 15-15P
+ * `tagged` - Tagged
- * `nema-15-20p` - NEMA 15-20P
+ * `tagged-all` - Tagged (All)'
+ rf_role:
+ enum:
+ - ap
+ - station
+ - ''
+ type: string
+ description: '* `ap` - Access point
- * `nema-15-30p` - NEMA 15-30P
+ * `station` - Station'
+ x-spec-enum-id: d2772dbea88b0fb1
+ title: Wireless role
+ rf_channel:
+ enum:
+ - 2.4g-1-2412-22
+ - 2.4g-2-2417-22
+ - 2.4g-3-2422-22
+ - 2.4g-4-2427-22
+ - 2.4g-5-2432-22
+ - 2.4g-6-2437-22
+ - 2.4g-7-2442-22
+ - 2.4g-8-2447-22
+ - 2.4g-9-2452-22
+ - 2.4g-10-2457-22
+ - 2.4g-11-2462-22
+ - 2.4g-12-2467-22
+ - 2.4g-13-2472-22
+ - 5g-32-5160-20
+ - 5g-34-5170-40
+ - 5g-36-5180-20
+ - 5g-38-5190-40
+ - 5g-40-5200-20
+ - 5g-42-5210-80
+ - 5g-44-5220-20
+ - 5g-46-5230-40
+ - 5g-48-5240-20
+ - 5g-50-5250-160
+ - 5g-52-5260-20
+ - 5g-54-5270-40
+ - 5g-56-5280-20
+ - 5g-58-5290-80
+ - 5g-60-5300-20
+ - 5g-62-5310-40
+ - 5g-64-5320-20
+ - 5g-100-5500-20
+ - 5g-102-5510-40
+ - 5g-104-5520-20
+ - 5g-106-5530-80
+ - 5g-108-5540-20
+ - 5g-110-5550-40
+ - 5g-112-5560-20
+ - 5g-114-5570-160
+ - 5g-116-5580-20
+ - 5g-118-5590-40
+ - 5g-120-5600-20
+ - 5g-122-5610-80
+ - 5g-124-5620-20
+ - 5g-126-5630-40
+ - 5g-128-5640-20
+ - 5g-132-5660-20
+ - 5g-134-5670-40
+ - 5g-136-5680-20
+ - 5g-138-5690-80
+ - 5g-140-5700-20
+ - 5g-142-5710-40
+ - 5g-144-5720-20
+ - 5g-149-5745-20
+ - 5g-151-5755-40
+ - 5g-153-5765-20
+ - 5g-155-5775-80
+ - 5g-157-5785-20
+ - 5g-159-5795-40
+ - 5g-161-5805-20
+ - 5g-163-5815-160
+ - 5g-165-5825-20
+ - 5g-167-5835-40
+ - 5g-169-5845-20
+ - 5g-171-5855-80
+ - 5g-173-5865-20
+ - 5g-175-5875-40
+ - 5g-177-5885-20
+ - 6g-1-5955-20
+ - 6g-3-5965-40
+ - 6g-5-5975-20
+ - 6g-7-5985-80
+ - 6g-9-5995-20
+ - 6g-11-6005-40
+ - 6g-13-6015-20
+ - 6g-15-6025-160
+ - 6g-17-6035-20
+ - 6g-19-6045-40
+ - 6g-21-6055-20
+ - 6g-23-6065-80
+ - 6g-25-6075-20
+ - 6g-27-6085-40
+ - 6g-29-6095-20
+ - 6g-31-6105-320
+ - 6g-33-6115-20
+ - 6g-35-6125-40
+ - 6g-37-6135-20
+ - 6g-39-6145-80
+ - 6g-41-6155-20
+ - 6g-43-6165-40
+ - 6g-45-6175-20
+ - 6g-47-6185-160
+ - 6g-49-6195-20
+ - 6g-51-6205-40
+ - 6g-53-6215-20
+ - 6g-55-6225-80
+ - 6g-57-6235-20
+ - 6g-59-6245-40
+ - 6g-61-6255-20
+ - 6g-65-6275-20
+ - 6g-67-6285-40
+ - 6g-69-6295-20
+ - 6g-71-6305-80
+ - 6g-73-6315-20
+ - 6g-75-6325-40
+ - 6g-77-6335-20
+ - 6g-79-6345-160
+ - 6g-81-6355-20
+ - 6g-83-6365-40
+ - 6g-85-6375-20
+ - 6g-87-6385-80
+ - 6g-89-6395-20
+ - 6g-91-6405-40
+ - 6g-93-6415-20
+ - 6g-95-6425-320
+ - 6g-97-6435-20
+ - 6g-99-6445-40
+ - 6g-101-6455-20
+ - 6g-103-6465-80
+ - 6g-105-6475-20
+ - 6g-107-6485-40
+ - 6g-109-6495-20
+ - 6g-111-6505-160
+ - 6g-113-6515-20
+ - 6g-115-6525-40
+ - 6g-117-6535-20
+ - 6g-119-6545-80
+ - 6g-121-6555-20
+ - 6g-123-6565-40
+ - 6g-125-6575-20
+ - 6g-129-6595-20
+ - 6g-131-6605-40
+ - 6g-133-6615-20
+ - 6g-135-6625-80
+ - 6g-137-6635-20
+ - 6g-139-6645-40
+ - 6g-141-6655-20
+ - 6g-143-6665-160
+ - 6g-145-6675-20
+ - 6g-147-6685-40
+ - 6g-149-6695-20
+ - 6g-151-6705-80
+ - 6g-153-6715-20
+ - 6g-155-6725-40
+ - 6g-157-6735-20
+ - 6g-159-6745-320
+ - 6g-161-6755-20
+ - 6g-163-6765-40
+ - 6g-165-6775-20
+ - 6g-167-6785-80
+ - 6g-169-6795-20
+ - 6g-171-6805-40
+ - 6g-173-6815-20
+ - 6g-175-6825-160
+ - 6g-177-6835-20
+ - 6g-179-6845-40
+ - 6g-181-6855-20
+ - 6g-183-6865-80
+ - 6g-185-6875-20
+ - 6g-187-6885-40
+ - 6g-189-6895-20
+ - 6g-193-6915-20
+ - 6g-195-6925-40
+ - 6g-197-6935-20
+ - 6g-199-6945-80
+ - 6g-201-6955-20
+ - 6g-203-6965-40
+ - 6g-205-6975-20
+ - 6g-207-6985-160
+ - 6g-209-6995-20
+ - 6g-211-7005-40
+ - 6g-213-7015-20
+ - 6g-215-7025-80
+ - 6g-217-7035-20
+ - 6g-219-7045-40
+ - 6g-221-7055-20
+ - 6g-225-7075-20
+ - 6g-227-7085-40
+ - 6g-229-7095-20
+ - 6g-233-7115-20
+ - 60g-1-58320-2160
+ - 60g-2-60480-2160
+ - 60g-3-62640-2160
+ - 60g-4-64800-2160
+ - 60g-5-66960-2160
+ - 60g-6-69120-2160
+ - 60g-9-59400-4320
+ - 60g-10-61560-4320
+ - 60g-11-63720-4320
+ - 60g-12-65880-4320
+ - 60g-13-68040-4320
+ - 60g-17-60480-6480
+ - 60g-18-62640-6480
+ - 60g-19-64800-6480
+ - 60g-20-66960-6480
+ - 60g-25-61560-6480
+ - 60g-26-63720-6480
+ - 60g-27-65880-6480
+ - ''
+ type: string
+ description: '* `2.4g-1-2412-22` - 1 (2412 MHz)
- * `nema-15-50p` - NEMA 15-50P
+ * `2.4g-2-2417-22` - 2 (2417 MHz)
- * `nema-15-60p` - NEMA 15-60P
+ * `2.4g-3-2422-22` - 3 (2422 MHz)
- * `nema-l1-15p` - NEMA L1-15P
+ * `2.4g-4-2427-22` - 4 (2427 MHz)
- * `nema-l5-15p` - NEMA L5-15P
+ * `2.4g-5-2432-22` - 5 (2432 MHz)
- * `nema-l5-20p` - NEMA L5-20P
+ * `2.4g-6-2437-22` - 6 (2437 MHz)
- * `nema-l5-30p` - NEMA L5-30P
+ * `2.4g-7-2442-22` - 7 (2442 MHz)
- * `nema-l5-50p` - NEMA L5-50P
+ * `2.4g-8-2447-22` - 8 (2447 MHz)
- * `nema-l6-15p` - NEMA L6-15P
+ * `2.4g-9-2452-22` - 9 (2452 MHz)
- * `nema-l6-20p` - NEMA L6-20P
+ * `2.4g-10-2457-22` - 10 (2457 MHz)
- * `nema-l6-30p` - NEMA L6-30P
+ * `2.4g-11-2462-22` - 11 (2462 MHz)
- * `nema-l6-50p` - NEMA L6-50P
+ * `2.4g-12-2467-22` - 12 (2467 MHz)
- * `nema-l10-30p` - NEMA L10-30P
+ * `2.4g-13-2472-22` - 13 (2472 MHz)
- * `nema-l14-20p` - NEMA L14-20P
+ * `5g-32-5160-20` - 32 (5160/20 MHz)
- * `nema-l14-30p` - NEMA L14-30P
+ * `5g-34-5170-40` - 34 (5170/40 MHz)
- * `nema-l14-50p` - NEMA L14-50P
+ * `5g-36-5180-20` - 36 (5180/20 MHz)
- * `nema-l14-60p` - NEMA L14-60P
+ * `5g-38-5190-40` - 38 (5190/40 MHz)
- * `nema-l15-20p` - NEMA L15-20P
+ * `5g-40-5200-20` - 40 (5200/20 MHz)
- * `nema-l15-30p` - NEMA L15-30P
+ * `5g-42-5210-80` - 42 (5210/80 MHz)
- * `nema-l15-50p` - NEMA L15-50P
+ * `5g-44-5220-20` - 44 (5220/20 MHz)
- * `nema-l15-60p` - NEMA L15-60P
+ * `5g-46-5230-40` - 46 (5230/40 MHz)
- * `nema-l21-20p` - NEMA L21-20P
+ * `5g-48-5240-20` - 48 (5240/20 MHz)
- * `nema-l21-30p` - NEMA L21-30P
+ * `5g-50-5250-160` - 50 (5250/160 MHz)
- * `nema-l22-30p` - NEMA L22-30P
+ * `5g-52-5260-20` - 52 (5260/20 MHz)
- * `cs6361c` - CS6361C
+ * `5g-54-5270-40` - 54 (5270/40 MHz)
- * `cs6365c` - CS6365C
+ * `5g-56-5280-20` - 56 (5280/20 MHz)
- * `cs8165c` - CS8165C
+ * `5g-58-5290-80` - 58 (5290/80 MHz)
- * `cs8265c` - CS8265C
+ * `5g-60-5300-20` - 60 (5300/20 MHz)
- * `cs8365c` - CS8365C
+ * `5g-62-5310-40` - 62 (5310/40 MHz)
- * `cs8465c` - CS8465C
+ * `5g-64-5320-20` - 64 (5320/20 MHz)
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `5g-100-5500-20` - 100 (5500/20 MHz)
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `5g-102-5510-40` - 102 (5510/40 MHz)
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `5g-104-5520-20` - 104 (5520/20 MHz)
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `5g-106-5530-80` - 106 (5530/80 MHz)
- * `ita-g` - ITA Type G (BS 1363)
+ * `5g-108-5540-20` - 108 (5540/20 MHz)
- * `ita-h` - ITA Type H
+ * `5g-110-5550-40` - 110 (5550/40 MHz)
- * `ita-i` - ITA Type I
+ * `5g-112-5560-20` - 112 (5560/20 MHz)
- * `ita-j` - ITA Type J
+ * `5g-114-5570-160` - 114 (5570/160 MHz)
- * `ita-k` - ITA Type K
+ * `5g-116-5580-20` - 116 (5580/20 MHz)
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `5g-118-5590-40` - 118 (5590/40 MHz)
- * `ita-m` - ITA Type M (BS 546)
+ * `5g-120-5600-20` - 120 (5600/20 MHz)
- * `ita-n` - ITA Type N
+ * `5g-122-5610-80` - 122 (5610/80 MHz)
- * `ita-o` - ITA Type O
+ * `5g-124-5620-20` - 124 (5620/20 MHz)
- * `usb-a` - USB Type A
+ * `5g-126-5630-40` - 126 (5630/40 MHz)
- * `usb-b` - USB Type B
+ * `5g-128-5640-20` - 128 (5640/20 MHz)
- * `usb-c` - USB Type C
+ * `5g-132-5660-20` - 132 (5660/20 MHz)
- * `usb-mini-a` - USB Mini A
+ * `5g-134-5670-40` - 134 (5670/40 MHz)
- * `usb-mini-b` - USB Mini B
+ * `5g-136-5680-20` - 136 (5680/20 MHz)
- * `usb-micro-a` - USB Micro A
+ * `5g-138-5690-80` - 138 (5690/80 MHz)
- * `usb-micro-b` - USB Micro B
+ * `5g-140-5700-20` - 140 (5700/20 MHz)
- * `usb-micro-ab` - USB Micro AB
+ * `5g-142-5710-40` - 142 (5710/40 MHz)
- * `usb-3-b` - USB 3.0 Type B
+ * `5g-144-5720-20` - 144 (5720/20 MHz)
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `5g-149-5745-20` - 149 (5745/20 MHz)
- * `dc-terminal` - DC Terminal
+ * `5g-151-5755-40` - 151 (5755/40 MHz)
- * `saf-d-grid` - Saf-D-Grid
+ * `5g-153-5765-20` - 153 (5765/20 MHz)
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `5g-155-5775-80` - 155 (5775/80 MHz)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `5g-157-5785-20` - 157 (5785/20 MHz)
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `5g-159-5795-40` - 159 (5795/40 MHz)
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `5g-161-5805-20` - 161 (5805/20 MHz)
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `5g-163-5815-160` - 163 (5815/160 MHz)
- * `hardwired` - Hardwired
+ * `5g-165-5825-20` - 165 (5825/20 MHz)
- * `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
- 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
- PatchedWritablePrefixRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- prefix:
- type: string
- minLength: 1
- site:
- type: integer
- nullable: true
- vrf:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- vlan:
- type: integer
- nullable: true
- status:
- enum:
- - container
- - active
- - reserved
- - deprecated
- type: string
- x-spec-enum-id: d38bee5f512701d9
- description: 'Operational status of this prefix
+ * `5g-167-5835-40` - 167 (5835/40 MHz)
+ * `5g-169-5845-20` - 169 (5845/20 MHz)
- * `container` - Container
+ * `5g-171-5855-80` - 171 (5855/80 MHz)
- * `active` - Active
+ * `5g-173-5865-20` - 173 (5865/20 MHz)
- * `reserved` - Reserved
+ * `5g-175-5875-40` - 175 (5875/40 MHz)
- * `deprecated` - Deprecated'
- role:
- type: integer
- nullable: true
- description: The primary function of this prefix
- is_pool:
- type: boolean
- title: Is a pool
- description: All IP addresses within this prefix are considered usable
- mark_utilized:
- type: boolean
- description: Treat as fully utilized
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableProviderAccountRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- provider:
- type: integer
- name:
- type: string
- maxLength: 100
- account:
- type: string
- minLength: 1
- title: Account ID
- maxLength: 100
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableProviderNetworkRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- provider:
- type: integer
- 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: {}
- PatchedWritableProviderRequest:
- 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_]+$
- 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: {}
- PatchedWritableRackRequest:
- 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:
- type: integer
- location:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- status:
- enum:
- - reserved
- - available
- - planned
- - active
- - deprecated
- type: string
- description: '* `reserved` - Reserved
+ * `5g-177-5885-20` - 177 (5885/20 MHz)
- * `available` - Available
+ * `6g-1-5955-20` - 1 (5955/20 MHz)
- * `planned` - Planned
+ * `6g-3-5965-40` - 3 (5965/40 MHz)
- * `active` - Active
+ * `6g-5-5975-20` - 5 (5975/20 MHz)
- * `deprecated` - Deprecated'
- x-spec-enum-id: 0c556d55dc1baa13
- role:
- type: integer
- nullable: true
- description: Functional role
- 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
- type:
- 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
+ * `6g-7-5985-80` - 7 (5985/80 MHz)
- * `4-post-frame` - 4-post frame
+ * `6g-9-5995-20` - 9 (5995/20 MHz)
- * `4-post-cabinet` - 4-post cabinet
+ * `6g-11-6005-40` - 11 (6005/40 MHz)
- * `wall-frame` - Wall-mounted frame
+ * `6g-13-6015-20` - 13 (6015/20 MHz)
- * `wall-frame-vertical` - Wall-mounted frame (vertical)
+ * `6g-15-6025-160` - 15 (6025/160 MHz)
- * `wall-cabinet` - Wall-mounted cabinet
+ * `6g-17-6035-20` - 17 (6035/20 MHz)
- * `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
+ * `6g-19-6045-40` - 19 (6045/40 MHz)
+ * `6g-21-6055-20` - 21 (6055/20 MHz)
- * `10` - 10 inches
+ * `6g-23-6065-80` - 23 (6065/80 MHz)
- * `19` - 19 inches
+ * `6g-25-6075-20` - 25 (6075/20 MHz)
- * `21` - 21 inches
+ * `6g-27-6085-40` - 27 (6085/40 MHz)
- * `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
- 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
+ * `6g-29-6095-20` - 29 (6095/20 MHz)
- * `g` - Grams
+ * `6g-31-6105-320` - 31 (6105/320 MHz)
- * `lb` - Pounds
+ * `6g-33-6115-20` - 33 (6115/20 MHz)
- * `oz` - Ounces'
- x-spec-enum-id: 7c1876f422815884
- 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
+ * `6g-35-6125-40` - 35 (6125/40 MHz)
- * `in` - Inches'
- x-spec-enum-id: 86a846b6c40f495e
- 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.
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableRackReservationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- rack:
- type: integer
- units:
- type: array
- items:
- type: integer
- maximum: 32767
- minimum: 0
- user:
- type: integer
- tenant:
- type: integer
- nullable: true
- description:
- type: string
- minLength: 1
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableRearPortRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- module:
- type: integer
- 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
- - other
- type: string
- description: '* `8p8c` - 8P8C
+ * `6g-37-6135-20` - 37 (6135/20 MHz)
- * `8p6c` - 8P6C
+ * `6g-39-6145-80` - 39 (6145/80 MHz)
- * `8p4c` - 8P4C
+ * `6g-41-6155-20` - 41 (6155/20 MHz)
- * `8p2c` - 8P2C
+ * `6g-43-6165-40` - 43 (6165/40 MHz)
- * `6p6c` - 6P6C
+ * `6g-45-6175-20` - 45 (6175/20 MHz)
- * `6p4c` - 6P4C
+ * `6g-47-6185-160` - 47 (6185/160 MHz)
- * `6p2c` - 6P2C
+ * `6g-49-6195-20` - 49 (6195/20 MHz)
- * `4p4c` - 4P4C
+ * `6g-51-6205-40` - 51 (6205/40 MHz)
- * `4p2c` - 4P2C
+ * `6g-53-6215-20` - 53 (6215/20 MHz)
- * `gg45` - GG45
+ * `6g-55-6225-80` - 55 (6225/80 MHz)
- * `tera-4p` - TERA 4P
+ * `6g-57-6235-20` - 57 (6235/20 MHz)
- * `tera-2p` - TERA 2P
+ * `6g-59-6245-40` - 59 (6245/40 MHz)
- * `tera-1p` - TERA 1P
+ * `6g-61-6255-20` - 61 (6255/20 MHz)
- * `110-punch` - 110 Punch
+ * `6g-65-6275-20` - 65 (6275/20 MHz)
- * `bnc` - BNC
+ * `6g-67-6285-40` - 67 (6285/40 MHz)
- * `f` - F Connector
+ * `6g-69-6295-20` - 69 (6295/20 MHz)
- * `n` - N Connector
+ * `6g-71-6305-80` - 71 (6305/80 MHz)
- * `mrj21` - MRJ21
+ * `6g-73-6315-20` - 73 (6315/20 MHz)
- * `fc` - FC
+ * `6g-75-6325-40` - 75 (6325/40 MHz)
- * `lc` - LC
+ * `6g-77-6335-20` - 77 (6335/20 MHz)
- * `lc-pc` - LC/PC
+ * `6g-79-6345-160` - 79 (6345/160 MHz)
- * `lc-upc` - LC/UPC
+ * `6g-81-6355-20` - 81 (6355/20 MHz)
- * `lc-apc` - LC/APC
+ * `6g-83-6365-40` - 83 (6365/40 MHz)
- * `lsh` - LSH
+ * `6g-85-6375-20` - 85 (6375/20 MHz)
- * `lsh-pc` - LSH/PC
+ * `6g-87-6385-80` - 87 (6385/80 MHz)
- * `lsh-upc` - LSH/UPC
+ * `6g-89-6395-20` - 89 (6395/20 MHz)
- * `lsh-apc` - LSH/APC
+ * `6g-91-6405-40` - 91 (6405/40 MHz)
- * `lx5` - LX.5
+ * `6g-93-6415-20` - 93 (6415/20 MHz)
- * `lx5-pc` - LX.5/PC
+ * `6g-95-6425-320` - 95 (6425/320 MHz)
- * `lx5-upc` - LX.5/UPC
+ * `6g-97-6435-20` - 97 (6435/20 MHz)
- * `lx5-apc` - LX.5/APC
+ * `6g-99-6445-40` - 99 (6445/40 MHz)
- * `mpo` - MPO
+ * `6g-101-6455-20` - 101 (6455/20 MHz)
- * `mtrj` - MTRJ
+ * `6g-103-6465-80` - 103 (6465/80 MHz)
- * `sc` - SC
+ * `6g-105-6475-20` - 105 (6475/20 MHz)
- * `sc-pc` - SC/PC
+ * `6g-107-6485-40` - 107 (6485/40 MHz)
- * `sc-upc` - SC/UPC
+ * `6g-109-6495-20` - 109 (6495/20 MHz)
- * `sc-apc` - SC/APC
+ * `6g-111-6505-160` - 111 (6505/160 MHz)
- * `st` - ST
+ * `6g-113-6515-20` - 113 (6515/20 MHz)
- * `cs` - CS
+ * `6g-115-6525-40` - 115 (6525/40 MHz)
- * `sn` - SN
+ * `6g-117-6535-20` - 117 (6535/20 MHz)
- * `sma-905` - SMA 905
+ * `6g-119-6545-80` - 119 (6545/80 MHz)
- * `sma-906` - SMA 906
+ * `6g-121-6555-20` - 121 (6555/20 MHz)
- * `urm-p2` - URM-P2
+ * `6g-123-6565-40` - 123 (6565/40 MHz)
- * `urm-p4` - URM-P4
+ * `6g-125-6575-20` - 125 (6575/20 MHz)
- * `urm-p8` - URM-P8
+ * `6g-129-6595-20` - 129 (6595/20 MHz)
- * `splice` - Splice
+ * `6g-131-6605-40` - 131 (6605/40 MHz)
- * `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
+ * `6g-133-6615-20` - 133 (6615/20 MHz)
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- device_type:
- type: integer
- nullable: true
- module_type:
- type: integer
- 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
+ * `6g-135-6625-80` - 135 (6625/80 MHz)
- * `8p6c` - 8P6C
+ * `6g-137-6635-20` - 137 (6635/20 MHz)
- * `8p4c` - 8P4C
+ * `6g-139-6645-40` - 139 (6645/40 MHz)
- * `8p2c` - 8P2C
+ * `6g-141-6655-20` - 141 (6655/20 MHz)
- * `6p6c` - 6P6C
+ * `6g-143-6665-160` - 143 (6665/160 MHz)
- * `6p4c` - 6P4C
+ * `6g-145-6675-20` - 145 (6675/20 MHz)
- * `6p2c` - 6P2C
+ * `6g-147-6685-40` - 147 (6685/40 MHz)
- * `4p4c` - 4P4C
+ * `6g-149-6695-20` - 149 (6695/20 MHz)
- * `4p2c` - 4P2C
+ * `6g-151-6705-80` - 151 (6705/80 MHz)
- * `gg45` - GG45
+ * `6g-153-6715-20` - 153 (6715/20 MHz)
- * `tera-4p` - TERA 4P
+ * `6g-155-6725-40` - 155 (6725/40 MHz)
- * `tera-2p` - TERA 2P
+ * `6g-157-6735-20` - 157 (6735/20 MHz)
- * `tera-1p` - TERA 1P
+ * `6g-159-6745-320` - 159 (6745/320 MHz)
- * `110-punch` - 110 Punch
+ * `6g-161-6755-20` - 161 (6755/20 MHz)
- * `bnc` - BNC
+ * `6g-163-6765-40` - 163 (6765/40 MHz)
- * `f` - F Connector
+ * `6g-165-6775-20` - 165 (6775/20 MHz)
- * `n` - N Connector
+ * `6g-167-6785-80` - 167 (6785/80 MHz)
- * `mrj21` - MRJ21
+ * `6g-169-6795-20` - 169 (6795/20 MHz)
- * `fc` - FC
+ * `6g-171-6805-40` - 171 (6805/40 MHz)
- * `lc` - LC
+ * `6g-173-6815-20` - 173 (6815/20 MHz)
- * `lc-pc` - LC/PC
+ * `6g-175-6825-160` - 175 (6825/160 MHz)
- * `lc-upc` - LC/UPC
+ * `6g-177-6835-20` - 177 (6835/20 MHz)
- * `lc-apc` - LC/APC
+ * `6g-179-6845-40` - 179 (6845/40 MHz)
- * `lsh` - LSH
+ * `6g-181-6855-20` - 181 (6855/20 MHz)
- * `lsh-pc` - LSH/PC
+ * `6g-183-6865-80` - 183 (6865/80 MHz)
- * `lsh-upc` - LSH/UPC
+ * `6g-185-6875-20` - 185 (6875/20 MHz)
- * `lsh-apc` - LSH/APC
+ * `6g-187-6885-40` - 187 (6885/40 MHz)
- * `lx5` - LX.5
+ * `6g-189-6895-20` - 189 (6895/20 MHz)
- * `lx5-pc` - LX.5/PC
+ * `6g-193-6915-20` - 193 (6915/20 MHz)
- * `lx5-upc` - LX.5/UPC
+ * `6g-195-6925-40` - 195 (6925/40 MHz)
- * `lx5-apc` - LX.5/APC
+ * `6g-197-6935-20` - 197 (6935/20 MHz)
- * `mpo` - MPO
+ * `6g-199-6945-80` - 199 (6945/80 MHz)
- * `mtrj` - MTRJ
+ * `6g-201-6955-20` - 201 (6955/20 MHz)
- * `sc` - SC
+ * `6g-203-6965-40` - 203 (6965/40 MHz)
- * `sc-pc` - SC/PC
+ * `6g-205-6975-20` - 205 (6975/20 MHz)
- * `sc-upc` - SC/UPC
+ * `6g-207-6985-160` - 207 (6985/160 MHz)
- * `sc-apc` - SC/APC
+ * `6g-209-6995-20` - 209 (6995/20 MHz)
- * `st` - ST
+ * `6g-211-7005-40` - 211 (7005/40 MHz)
- * `cs` - CS
+ * `6g-213-7015-20` - 213 (7015/20 MHz)
- * `sn` - SN
+ * `6g-215-7025-80` - 215 (7025/80 MHz)
- * `sma-905` - SMA 905
+ * `6g-217-7035-20` - 217 (7035/20 MHz)
- * `sma-906` - SMA 906
+ * `6g-219-7045-40` - 219 (7045/40 MHz)
- * `urm-p2` - URM-P2
+ * `6g-221-7055-20` - 221 (7055/20 MHz)
- * `urm-p4` - URM-P4
+ * `6g-225-7075-20` - 225 (7075/20 MHz)
- * `urm-p8` - URM-P8
+ * `6g-227-7085-40` - 227 (7085/40 MHz)
- * `splice` - Splice
+ * `6g-229-7095-20` - 229 (7095/20 MHz)
- * `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:
- type: string
- maxLength: 200
- PatchedWritableRegionRequest:
- 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_]+$
- parent:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableRouteTargetRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- description: Route target value (formatted in accordance with RFC 4360)
- maxLength: 21
- tenant:
- 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: {}
- PatchedWritableServiceRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- nullable: true
- virtual_machine:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
- protocol:
- enum:
- - tcp
- - udp
- - sctp
- type: string
- description: '* `tcp` - TCP
+ * `6g-233-7115-20` - 233 (7115/20 MHz)
- * `udp` - UDP
+ * `60g-1-58320-2160` - 1 (58.32/2.16 GHz)
- * `sctp` - SCTP'
- x-spec-enum-id: 5521e084b1ad51de
- ipaddresses:
- type: array
- items:
- type: integer
- title: IP addresses
- title: IP addresses
- description: The specific IP addresses (if any) to which this service is
- bound
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableServiceTemplateRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
- protocol:
- enum:
- - tcp
- - udp
- - sctp
- type: string
- description: '* `tcp` - TCP
+ * `60g-2-60480-2160` - 2 (60.48/2.16 GHz)
- * `udp` - UDP
+ * `60g-3-62640-2160` - 3 (62.64/2.16 GHz)
- * `sctp` - SCTP'
- x-spec-enum-id: 5521e084b1ad51de
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableSiteGroupRequest:
- 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_]+$
- parent:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableSiteRequest:
- 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:
+ * `60g-4-64800-2160` - 4 (64.80/2.16 GHz)
+
+ * `60g-5-66960-2160` - 5 (66.96/2.16 GHz)
+
+ * `60g-6-69120-2160` - 6 (69.12/2.16 GHz)
+
+ * `60g-9-59400-4320` - 9 (59.40/4.32 GHz)
+
+ * `60g-10-61560-4320` - 10 (61.56/4.32 GHz)
+
+ * `60g-11-63720-4320` - 11 (63.72/4.32 GHz)
+
+ * `60g-12-65880-4320` - 12 (65.88/4.32 GHz)
+
+ * `60g-13-68040-4320` - 13 (68.04/4.32 GHz)
+
+ * `60g-17-60480-6480` - 17 (60.48/6.48 GHz)
+
+ * `60g-18-62640-6480` - 18 (62.64/6.48 GHz)
+
+ * `60g-19-64800-6480` - 19 (64.80/6.48 GHz)
+
+ * `60g-20-66960-6480` - 20 (66.96/6.48 GHz)
+
+ * `60g-25-61560-6480` - 25 (61.56/8.64 GHz)
+
+ * `60g-26-63720-6480` - 26 (63.72/8.64 GHz)
+
+ * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)'
+ x-spec-enum-id: aac33cc237adc8f9
+ title: Wireless channel
+ poe_mode:
+ enum:
+ - pd
+ - pse
+ - ''
type: string
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- status:
+ description: '* `pd` - PD
+
+ * `pse` - PSE'
+ x-spec-enum-id: 2f2fe6dcdc7772bd
+ poe_type:
enum:
- - planned
- - staging
- - active
- - decommissioning
- - retired
+ - type1-ieee802.3af
+ - type2-ieee802.3at
+ - type3-ieee802.3bt
+ - type4-ieee802.3bt
+ - passive-24v-2pair
+ - passive-24v-4pair
+ - passive-48v-2pair
+ - passive-48v-4pair
+ - ''
type: string
- description: '* `planned` - Planned
+ description: '* `type1-ieee802.3af` - 802.3af (Type 1)
- * `staging` - Staging
+ * `type2-ieee802.3at` - 802.3at (Type 2)
- * `active` - Active
+ * `type3-ieee802.3bt` - 802.3bt (Type 3)
- * `decommissioning` - Decommissioning
+ * `type4-ieee802.3bt` - 802.3bt (Type 4)
- * `retired` - Retired'
- x-spec-enum-id: e363a8ddb138be50
- region:
- type: integer
- nullable: true
- group:
- type: integer
- nullable: true
- tenant:
- type: integer
- 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:
+ * `passive-24v-2pair` - Passive 24V (2-pair)
+
+ * `passive-24v-4pair` - Passive 24V (4-pair)
+
+ * `passive-48v-2pair` - Passive 48V (2-pair)
+
+ * `passive-48v-4pair` - Passive 48V (4-pair)'
+ x-spec-enum-id: 74bd3be4012f6da9
+ rf_channel_frequency:
type: number
format: double
- maximum: 100
- minimum: -100
+ maximum: 100000
+ minimum: -100000
exclusiveMaximum: true
exclusiveMinimum: true
nullable: true
- description: GPS coordinate in decimal format (xx.yyyyyy)
- longitude:
+ title: Channel frequency (MHz)
+ description: Populated by selected channel (if set)
+ rf_channel_width:
type: number
format: double
- maximum: 1000
- minimum: -1000
+ maximum: 10000
+ minimum: -10000
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: {}
- PatchedWritableTenantGroupRequest:
- 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_]+$
- parent:
+ title: Channel width (MHz)
+ description: Populated by selected channel (if set)
+ tx_power:
type: integer
+ maximum: 127
+ minimum: 0
nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableTenantRequest:
- 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_]+$
- group:
- type: integer
+ title: Transmit power (dBm)
+ untagged_vlan:
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
+ tagged_vlans:
type: array
items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableTokenRequest:
- 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:
- user:
- type: integer
- expires:
- type: string
- format: date-time
- nullable: true
- last_used:
- type: string
- format: date-time
- nullable: true
- key:
- type: string
- maxLength: 40
- minLength: 40
- write_enabled:
+ type: integer
+ mark_connected:
type: boolean
- description: Permit create/update/delete operations using this key
- description:
- type: string
- maxLength: 200
- PatchedWritableTunnelRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- 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:
- type: integer
- nullable: true
- encapsulation:
- enum:
- - ipsec-transport
- - ipsec-tunnel
- - ip-ip
- - gre
- type: string
- description: '* `ipsec-transport` - IPsec - Transport
-
- * `ipsec-tunnel` - IPsec - Tunnel
-
- * `ip-ip` - IP-in-IP
-
- * `gre` - GRE'
- x-spec-enum-id: 5fc36bb745852746
- ipsec_profile:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- tunnel_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
+ description: Treat as if a cable is connected
+ wireless_lans:
type: array
items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableTunnelTerminationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- tunnel:
- type: integer
- role:
- enum:
- - peer
- - hub
- - spoke
- type: string
- description: '* `peer` - Peer
-
- * `hub` - Hub
-
- * `spoke` - Spoke'
- x-spec-enum-id: 52225cd60b867572
- termination_type:
- type: string
- termination_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- outside_ip:
- type: integer
+ type: integer
+ vrf:
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tags:
type: array
@@ -122243,292 +122949,502 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableUserRequest:
+ PatchedWritableInterfaceTemplateRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
on a copy of the associated instance during
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- username:
- type: string
- minLength: 1
- description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
- only.
- pattern: ^[\w.@+-]+$
- maxLength: 150
- password:
- type: string
- writeOnly: true
- minLength: 1
- maxLength: 128
- first_name:
- type: string
- maxLength: 150
- last_name:
- type: string
- maxLength: 150
- email:
- type: string
- format: email
- title: Email address
- maxLength: 254
- is_staff:
- type: boolean
- title: Staff status
- description: Designates whether the user can log into this admin site.
- is_active:
- type: boolean
- title: Active
- description: Designates whether this user should be treated as active. Unselect
- this instead of deleting accounts.
- date_joined:
- type: string
- format: date-time
- last_login:
- type: string
- format: date-time
- nullable: true
- groups:
- type: array
- items:
- type: integer
- description: The groups this user belongs to. A user will get all permissions
- granted to each of their groups.
- PatchedWritableVLANRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- site:
- type: integer
+ device_type:
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
- description: The specific site to which this VLAN is assigned (if any)
- group:
- type: integer
+ module_type:
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
- description: VLAN group (optional)
- vid:
- type: integer
- maximum: 4094
- minimum: 1
- title: VLAN ID
- description: Numeric VLAN ID (1-4094)
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
- tenant:
- type: integer
- nullable: true
- status:
+ label:
+ type: string
+ description: Physical label
+ maxLength: 64
+ type:
enum:
- - active
- - reserved
- - deprecated
+ - virtual
+ - bridge
+ - lag
+ - 100base-fx
+ - 100base-lfx
+ - 100base-tx
+ - 100base-t1
+ - 1000base-t
+ - 2.5gbase-t
+ - 5gbase-t
+ - 10gbase-t
+ - 10gbase-cx4
+ - 1000base-x-gbic
+ - 1000base-x-sfp
+ - 10gbase-x-sfpp
+ - 10gbase-x-xfp
+ - 10gbase-x-xenpak
+ - 10gbase-x-x2
+ - 25gbase-x-sfp28
+ - 50gbase-x-sfp56
+ - 40gbase-x-qsfpp
+ - 50gbase-x-sfp28
+ - 100gbase-x-cfp
+ - 100gbase-x-cfp2
+ - 200gbase-x-cfp2
+ - 400gbase-x-cfp2
+ - 100gbase-x-cfp4
+ - 100gbase-x-cxp
+ - 100gbase-x-cpak
+ - 100gbase-x-dsfp
+ - 100gbase-x-sfpdd
+ - 100gbase-x-qsfp28
+ - 100gbase-x-qsfpdd
+ - 200gbase-x-qsfp56
+ - 200gbase-x-qsfpdd
+ - 400gbase-x-qsfp112
+ - 400gbase-x-qsfpdd
+ - 400gbase-x-osfp
+ - 400gbase-x-osfp-rhs
+ - 400gbase-x-cdfp
+ - 400gbase-x-cfp8
+ - 800gbase-x-qsfpdd
+ - 800gbase-x-osfp
+ - 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
+ - 10gbase-kr
+ - 10gbase-kx4
+ - 25gbase-kr
+ - 40gbase-kr4
+ - 50gbase-kr
+ - 100gbase-kp4
+ - 100gbase-kr2
+ - 100gbase-kr4
+ - ieee802.11a
+ - ieee802.11g
+ - ieee802.11n
+ - ieee802.11ac
+ - ieee802.11ad
+ - ieee802.11ax
+ - ieee802.11ay
+ - ieee802.15.1
+ - other-wireless
+ - gsm
+ - cdma
+ - lte
+ - 4g
+ - 5g
+ - sonet-oc3
+ - sonet-oc12
+ - sonet-oc48
+ - sonet-oc192
+ - sonet-oc768
+ - sonet-oc1920
+ - sonet-oc3840
+ - 1gfc-sfp
+ - 2gfc-sfp
+ - 4gfc-sfp
+ - 8gfc-sfpp
+ - 16gfc-sfpp
+ - 32gfc-sfp28
+ - 32gfc-sfpp
+ - 64gfc-qsfpp
+ - 64gfc-sfpdd
+ - 64gfc-sfpp
+ - 128gfc-qsfp28
+ - infiniband-sdr
+ - infiniband-ddr
+ - infiniband-qdr
+ - infiniband-fdr10
+ - infiniband-fdr
+ - infiniband-edr
+ - infiniband-hdr
+ - infiniband-ndr
+ - infiniband-xdr
+ - t1
+ - e1
+ - t3
+ - e3
+ - xdsl
+ - docsis
+ - bpon
+ - epon
+ - 10g-epon
+ - gpon
+ - xg-pon
+ - xgs-pon
+ - ng-pon2
+ - 25g-pon
+ - 50g-pon
+ - cisco-stackwise
+ - cisco-stackwise-plus
+ - cisco-flexstack
+ - cisco-flexstack-plus
+ - cisco-stackwise-80
+ - cisco-stackwise-160
+ - cisco-stackwise-320
+ - cisco-stackwise-480
+ - cisco-stackwise-1t
+ - juniper-vcp
+ - extreme-summitstack
+ - extreme-summitstack-128
+ - extreme-summitstack-256
+ - extreme-summitstack-512
+ - other
type: string
- x-spec-enum-id: 6388dfb94ca1cc15
- description: 'Operational status of this VLAN
+ description: '* `virtual` - Virtual
+ * `bridge` - Bridge
- * `active` - Active
+ * `lag` - Link Aggregation Group (LAG)
- * `reserved` - Reserved
+ * `100base-fx` - 100BASE-FX (10/100ME FIBER)
- * `deprecated` - Deprecated'
- role:
- type: integer
- nullable: true
- description: The primary function of this VLAN
+ * `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'
+ x-spec-enum-id: b9a351ea129ed754
+ enabled:
+ type: boolean
+ mgmt_only:
+ type: boolean
+ title: Management only
description:
type: string
maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableVMInterfaceRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- virtual_machine:
- type: integer
- name:
- type: string
- minLength: 1
- maxLength: 64
- enabled:
- type: boolean
- parent:
- type: integer
- nullable: true
- title: Parent interface
bridge:
type: integer
nullable: true
title: Bridge interface
- mtu:
- type: integer
- maximum: 65536
- minimum: 1
- nullable: true
- mac_address:
- type: string
- nullable: true
- minLength: 1
- description:
+ poe_mode:
+ enum:
+ - pd
+ - pse
+ - ''
type: string
- maxLength: 200
- mode:
+ description: '* `pd` - PD
+
+ * `pse` - PSE'
+ x-spec-enum-id: 2f2fe6dcdc7772bd
+ poe_type:
enum:
- - access
- - tagged
- - tagged-all
+ - type1-ieee802.3af
+ - type2-ieee802.3at
+ - type3-ieee802.3bt
+ - type4-ieee802.3bt
+ - passive-24v-2pair
+ - passive-24v-4pair
+ - passive-48v-2pair
+ - passive-48v-4pair
- ''
type: string
- x-spec-enum-id: 79109bd9dbb73a3c
- description: 'IEEE 802.1Q tagging strategy
+ description: '* `type1-ieee802.3af` - 802.3af (Type 1)
+ * `type2-ieee802.3at` - 802.3at (Type 2)
- * `access` - Access
+ * `type3-ieee802.3bt` - 802.3bt (Type 3)
- * `tagged` - Tagged
+ * `type4-ieee802.3bt` - 802.3bt (Type 4)
- * `tagged-all` - Tagged (All)'
- untagged_vlan:
- type: integer
- nullable: true
- tagged_vlans:
- type: array
- items:
- type: integer
- title: Tagged VLANs
- vrf:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableVRFRequest:
- 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
- tenant:
- type: integer
- 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: {}
- 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
- comments:
+ * `passive-24v-2pair` - Passive 24V (2-pair)
+
+ * `passive-24v-4pair` - Passive 24V (4-pair)
+
+ * `passive-48v-2pair` - Passive 48V (2-pair)
+
+ * `passive-48v-4pair` - Passive 48V (4-pair)'
+ x-spec-enum-id: 74bd3be4012f6da9
+ rf_role:
+ enum:
+ - ap
+ - station
+ - ''
type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableVirtualDeviceContextRequest:
+ description: '* `ap` - Access point
+
+ * `station` - Station'
+ x-spec-enum-id: d2772dbea88b0fb1
+ title: Wireless role
+ PatchedWritableJournalEntryRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- name:
+ assigned_object_type:
type: string
- minLength: 1
- maxLength: 64
- device:
- type: integer
- nullable: true
- identifier:
+ assigned_object_id:
type: integer
- maximum: 32767
+ maximum: 9223372036854775807
minimum: 0
- nullable: true
- description: Numeric identifier unique to the parent device
- tenant:
- type: integer
- nullable: true
- primary_ip4:
- type: integer
- nullable: true
- title: Primary IPv4
- primary_ip6:
+ format: int64
+ created_by:
type: integer
nullable: true
- title: Primary IPv6
- status:
+ kind:
enum:
- - active
- - planned
- - offline
+ - info
+ - success
+ - warning
+ - danger
type: string
- description: '* `active` - Active
+ description: '* `info` - Info
- * `planned` - Planned
+ * `success` - Success
- * `offline` - Offline'
- x-spec-enum-id: ee1ef02def7a91ab
- description:
- type: string
- maxLength: 200
+ * `warning` - Warning
+
+ * `danger` - Danger'
+ x-spec-enum-id: a21af280f632fa34
comments:
type: string
+ minLength: 1
tags:
type: array
items:
@@ -122536,117 +123452,81 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableVirtualDiskRequest:
+ PatchedWritableL2VPNRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- virtual_machine:
+ identifier:
type: integer
+ maximum: 9223372036854775807
+ minimum: -9223372036854775808
+ format: int64
+ nullable: true
name:
type: string
minLength: 1
- maxLength: 64
- description:
- type: string
- maxLength: 200
- size:
- type: integer
- maximum: 2147483647
- minimum: 0
- title: Size (GB)
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableVirtualMachineWithConfigContextRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
+ maxLength: 100
+ slug:
type: string
minLength: 1
- maxLength: 64
- status:
+ maxLength: 100
+ pattern: ^[-a-zA-Z0-9_]+$
+ type:
enum:
- - offline
- - active
- - planned
- - staged
- - failed
- - decommissioning
+ - vpws
+ - vpls
+ - vxlan
+ - vxlan-evpn
+ - mpls-evpn
+ - pbb-evpn
+ - epl
+ - evpl
+ - ep-lan
+ - evp-lan
+ - ep-tree
+ - evp-tree
type: string
- description: '* `offline` - Offline
+ description: '* `vpws` - VPWS
- * `active` - Active
+ * `vpls` - VPLS
- * `planned` - Planned
+ * `vxlan` - VXLAN
- * `staged` - Staged
+ * `vxlan-evpn` - VXLAN-EVPN
- * `failed` - Failed
+ * `mpls-evpn` - MPLS EVPN
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: 2217e87d0c3efdda
- site:
- type: integer
- nullable: true
- cluster:
- type: integer
- nullable: true
- device:
- type: integer
- nullable: true
- role:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- platform:
- type: integer
- nullable: true
- primary_ip4:
- type: integer
- nullable: true
- title: Primary IPv4
- primary_ip6:
- type: integer
- nullable: true
- title: Primary IPv6
- vcpus:
- type: number
- format: double
- maximum: 10000
- minimum: 0.01
- exclusiveMaximum: true
- nullable: true
- memory:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: Memory (MB)
- disk:
- type: integer
- maximum: 2147483647
- minimum: 0
- nullable: true
- title: Disk (GB)
+ * `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'
+ x-spec-enum-id: dbaa4f996ec2d110
+ import_targets:
+ type: array
+ items:
+ type: integer
+ export_targets:
+ type: array
+ items:
+ type: integer
description:
type: string
maxLength: 200
comments:
type: string
- config_template:
- type: integer
- nullable: true
- local_context_data:
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
- description: Local config context data takes precedence over source contexts
- in the final rendered config context
tags:
type: array
items:
@@ -122654,7 +123534,7 @@ components:
custom_fields:
type: object
additionalProperties: {}
- PatchedWritableWirelessLANGroupRequest:
+ PatchedWritableLocationRequest:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
properties:
@@ -122667,164 +123547,40 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
+ site:
+ $ref: '#/components/schemas/SiteRequest'
parent:
type: integer
nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableWirelessLANRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- ssid:
- type: string
- minLength: 1
- maxLength: 32
- description:
- type: string
- maxLength: 200
- group:
- type: integer
- nullable: true
status:
enum:
+ - planned
+ - staging
- active
- - reserved
- - disabled
- - deprecated
- type: string
- description: '* `active` - Active
-
- * `reserved` - Reserved
-
- * `disabled` - Disabled
-
- * `deprecated` - Deprecated'
- x-spec-enum-id: 412ebdca597f609e
- vlan:
- type: integer
- nullable: true
- tenant:
- type: integer
- nullable: true
- auth_type:
- enum:
- - open
- - wep
- - wpa-personal
- - wpa-enterprise
- - ''
- type: string
- description: '* `open` - Open
-
- * `wep` - WEP
-
- * `wpa-personal` - WPA Personal (PSK)
-
- * `wpa-enterprise` - WPA Enterprise'
- x-spec-enum-id: a2043acb899b3954
- title: Authentication type
- auth_cipher:
- enum:
- - auto
- - tkip
- - aes
- - ''
+ - decommissioning
+ - retired
type: string
- description: '* `auto` - Auto
+ description: '* `planned` - Planned
- * `tkip` - TKIP
+ * `staging` - Staging
- * `aes` - AES'
- x-spec-enum-id: 8fdaefa727c26fdc
- title: Authentication cipher
- auth_psk:
- type: string
- title: Pre-shared key
- maxLength: 64
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- PatchedWritableWirelessLinkRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- interface_a:
- type: integer
- interface_b:
- type: integer
- ssid:
- type: string
- maxLength: 32
- status:
- enum:
- - connected
- - planned
- - decommissioning
- type: string
- description: '* `connected` - Connected
+ * `active` - Active
- * `planned` - Planned
+ * `decommissioning` - Decommissioning
- * `decommissioning` - Decommissioning'
- x-spec-enum-id: fbc2f302c08be50d
+ * `retired` - Retired'
+ x-spec-enum-id: e363a8ddb138be50
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
- auth_type:
- enum:
- - open
- - wep
- - wpa-personal
- - wpa-enterprise
- - ''
- type: string
- description: '* `open` - Open
-
- * `wep` - WEP
-
- * `wpa-personal` - WPA Personal (PSK)
-
- * `wpa-enterprise` - WPA Enterprise'
- x-spec-enum-id: a2043acb899b3954
- title: Authentication type
- auth_cipher:
- enum:
- - auto
- - tkip
- - aes
- - ''
- type: string
- description: '* `auto` - Auto
-
- * `tkip` - TKIP
-
- * `aes` - AES'
- x-spec-enum-id: 8fdaefa727c26fdc
- title: Authentication cipher
- auth_psk:
+ facility:
type: string
- title: Pre-shared key
- maxLength: 64
+ description: Local facility ID or description
+ maxLength: 50
description:
type: string
maxLength: 200
- comments:
- type: string
tags:
type: array
items:
@@ -122832,95 +123588,51 @@ components:
custom_fields:
type: object
additionalProperties: {}
- Platform:
+ PatchedWritableModuleRequest:
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_]+$
- manufacturer:
- allOf:
- - $ref: '#/components/schemas/NestedManufacturer'
- nullable: true
- config_template:
- allOf:
- - $ref: '#/components/schemas/NestedConfigTemplate'
- 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
- readOnly: true
- virtualmachine_count:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ module_bay:
type: integer
- readOnly: true
- required:
- - created
- - device_count
- - display
- - id
- - last_updated
- - name
- - slug
- - url
- - virtualmachine_count
- PlatformRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
+ module_type:
+ $ref: '#/components/schemas/ModuleTypeRequest'
+ status:
+ enum:
+ - offline
+ - active
+ - planned
+ - staged
+ - failed
+ - decommissioning
type: string
- minLength: 1
- maxLength: 100
- slug:
+ 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
- minLength: 1
- maxLength: 100
- pattern: ^[-a-zA-Z0-9_]+$
- manufacturer:
- allOf:
- - $ref: '#/components/schemas/NestedManufacturerRequest'
- nullable: true
- config_template:
- allOf:
- - $ref: '#/components/schemas/NestedConfigTemplateRequest'
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:
@@ -122928,205 +123640,65 @@ components:
custom_fields:
type: object
additionalProperties: {}
- required:
- - name
- - slug
- PowerFeed:
+ PatchedWritableModuleTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- id:
- type: integer
- readOnly: true
- url:
+ manufacturer:
+ $ref: '#/components/schemas/ManufacturerRequest'
+ model:
type: string
- format: uri
- readOnly: true
- display:
+ minLength: 1
+ maxLength: 100
+ part_number:
type: string
- readOnly: true
- power_panel:
- $ref: '#/components/schemas/NestedPowerPanel'
- rack:
- allOf:
- - $ref: '#/components/schemas/NestedRack'
+ description: Discrete part number (optional)
+ maxLength: 50
+ weight:
+ type: number
+ format: double
+ maximum: 1000000
+ minimum: -1000000
+ exclusiveMaximum: true
+ exclusiveMinimum: true
nullable: true
- name:
+ weight_unit:
+ enum:
+ - kg
+ - g
+ - lb
+ - oz
+ - ''
type: string
- maxLength: 100
- status:
- type: object
- properties:
- value:
- enum:
- - offline
- - active
- - planned
- - failed
- type: string
- description: '* `offline` - Offline
-
- * `active` - Active
-
- * `planned` - Planned
-
- * `failed` - Failed'
- x-spec-enum-id: b77fc919138c12f6
- label:
- type: string
- enum:
- - Offline
- - Active
- - Planned
- - Failed
- type:
- type: object
- properties:
- value:
- enum:
- - primary
- - redundant
- type: string
- description: '* `primary` - Primary
+ description: '* `kg` - Kilograms
- * `redundant` - Redundant'
- x-spec-enum-id: 093a164236819eb8
- label:
- type: string
- enum:
- - Primary
- - Redundant
- supply:
- type: object
- properties:
- value:
- enum:
- - ac
- - dc
- type: string
- description: '* `ac` - AC
+ * `g` - Grams
- * `dc` - DC'
- x-spec-enum-id: 1b6d99616ca6412b
- label:
- type: string
- enum:
- - AC
- - DC
- phase:
- type: object
- properties:
- value:
- enum:
- - single-phase
- - three-phase
- type: string
- description: '* `single-phase` - Single phase
+ * `lb` - Pounds
- * `three-phase` - Three-phase'
- x-spec-enum-id: 994bc0696f4df57f
- label:
- type: string
- enum:
- - Single phase
- - Three-phase
- voltage:
- type: integer
- maximum: 32767
- minimum: -32768
- amperage:
- type: integer
- maximum: 32767
- minimum: 1
- max_utilization:
- type: integer
- maximum: 100
- minimum: 1
- description: Maximum permissible draw (percentage)
- mark_connected:
- type: boolean
- description: Treat as if a cable is connected
- cable:
- allOf:
- - $ref: '#/components/schemas/NestedCable'
- 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
+ * `oz` - Ounces'
+ x-spec-enum-id: 7c1876f422815884
description:
type: string
maxLength: 200
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- nullable: true
comments:
type: string
tags:
type: array
items:
- $ref: '#/components/schemas/NestedTag'
+ $ref: '#/components/schemas/NestedTagRequest'
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
- - cable_end
- - connected_endpoints
- - connected_endpoints_reachable
- - connected_endpoints_type
- - created
- - display
- - id
- - last_updated
- - link_peers
- - link_peers_type
- - name
- - power_panel
- - url
- PowerFeedRequest:
+ PatchedWritablePowerFeedRequest:
type: object
description: Adds support for custom fields and tags.
properties:
power_panel:
- $ref: '#/components/schemas/NestedPowerPanelRequest'
+ $ref: '#/components/schemas/PowerPanelRequest'
rack:
allOf:
- - $ref: '#/components/schemas/NestedRackRequest'
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
name:
type: string
@@ -123195,7 +123767,7 @@ components:
maxLength: 200
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
comments:
type: string
@@ -123206,528 +123778,1071 @@ components:
custom_fields:
type: object
additionalProperties: {}
- required:
- - name
- - power_panel
- PowerOutlet:
+ PatchedWritablePowerOutletRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- id:
- type: integer
- readOnly: true
- url:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
+ nullable: true
+ name:
type: string
- format: uri
- readOnly: true
- display:
+ minLength: 1
+ maxLength: 64
+ label:
type: string
- readOnly: true
+ 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-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
+ - ''
+ type: string
+ x-spec-enum-id: 2ff919f516566857
+ description: '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'
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPortRequest'
+ nullable: true
+ feed_leg:
+ enum:
+ - A
+ - B
+ - C
+ - ''
+ type: string
+ x-spec-enum-id: a4902339df0b7c06
+ description: 'Phase (for three-phase feeds)
+
+
+ * `A` - A
+
+ * `B` - B
+
+ * `C` - C'
+ 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: {}
+ PatchedWritablePowerOutletTemplateRequest:
+ 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:
+ - 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
+ - ''
+ 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-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'
+ x-spec-enum-id: 2ff919f516566857
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPortTemplateRequest'
+ nullable: true
+ feed_leg:
+ enum:
+ - A
+ - B
+ - C
+ - ''
+ type: string
+ x-spec-enum-id: a4902339df0b7c06
+ description: 'Phase (for three-phase feeds)
+
+
+ * `A` - A
+
+ * `B` - B
+
+ * `C` - C'
+ description:
+ type: string
+ maxLength: 200
+ PatchedWritablePowerPortRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
+ minLength: 1
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-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
- - dc-terminal
- - 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
+ 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-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
+ x-spec-enum-id: 6d680dea031864ae
+ description: 'Physical port type
- * `iec-60320-c7` - C7
- * `iec-60320-c13` - C13
+ * `iec-60320-c6` - C6
- * `iec-60320-c15` - C15
+ * `iec-60320-c8` - C8
- * `iec-60320-c19` - C19
+ * `iec-60320-c14` - C14
- * `iec-60320-c21` - C21
+ * `iec-60320-c16` - C16
- * `iec-60309-p-n-e-4h` - P+N+E 4H
+ * `iec-60320-c20` - C20
- * `iec-60309-p-n-e-6h` - P+N+E 6H
+ * `iec-60320-c22` - C22
- * `iec-60309-p-n-e-9h` - P+N+E 9H
+ * `iec-60309-p-n-e-4h` - P+N+E 4H
- * `iec-60309-2p-e-4h` - 2P+E 4H
+ * `iec-60309-p-n-e-6h` - P+N+E 6H
- * `iec-60309-2p-e-6h` - 2P+E 6H
+ * `iec-60309-p-n-e-9h` - P+N+E 9H
- * `iec-60309-2p-e-9h` - 2P+E 9H
+ * `iec-60309-2p-e-4h` - 2P+E 4H
- * `iec-60309-3p-e-4h` - 3P+E 4H
+ * `iec-60309-2p-e-6h` - 2P+E 6H
- * `iec-60309-3p-e-6h` - 3P+E 6H
+ * `iec-60309-2p-e-9h` - 2P+E 9H
- * `iec-60309-3p-e-9h` - 3P+E 9H
+ * `iec-60309-3p-e-4h` - 3P+E 4H
- * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
+ * `iec-60309-3p-e-6h` - 3P+E 6H
- * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
+ * `iec-60309-3p-e-9h` - 3P+E 9H
- * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
+ * `iec-60309-3p-n-e-4h` - 3P+N+E 4H
- * `iec-60906-1` - IEC 60906-1
+ * `iec-60309-3p-n-e-6h` - 3P+N+E 6H
- * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
+ * `iec-60309-3p-n-e-9h` - 3P+N+E 9H
- * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
+ * `iec-60906-1` - IEC 60906-1
- * `nema-1-15r` - NEMA 1-15R
+ * `nbr-14136-10a` - 2P+T 10A (NBR 14136)
- * `nema-5-15r` - NEMA 5-15R
+ * `nbr-14136-20a` - 2P+T 20A (NBR 14136)
- * `nema-5-20r` - NEMA 5-20R
+ * `nema-1-15p` - NEMA 1-15P
- * `nema-5-30r` - NEMA 5-30R
+ * `nema-5-15p` - NEMA 5-15P
- * `nema-5-50r` - NEMA 5-50R
+ * `nema-5-20p` - NEMA 5-20P
- * `nema-6-15r` - NEMA 6-15R
+ * `nema-5-30p` - NEMA 5-30P
- * `nema-6-20r` - NEMA 6-20R
+ * `nema-5-50p` - NEMA 5-50P
- * `nema-6-30r` - NEMA 6-30R
+ * `nema-6-15p` - NEMA 6-15P
- * `nema-6-50r` - NEMA 6-50R
+ * `nema-6-20p` - NEMA 6-20P
- * `nema-10-30r` - NEMA 10-30R
+ * `nema-6-30p` - NEMA 6-30P
- * `nema-10-50r` - NEMA 10-50R
+ * `nema-6-50p` - NEMA 6-50P
- * `nema-14-20r` - NEMA 14-20R
+ * `nema-10-30p` - NEMA 10-30P
- * `nema-14-30r` - NEMA 14-30R
+ * `nema-10-50p` - NEMA 10-50P
- * `nema-14-50r` - NEMA 14-50R
+ * `nema-14-20p` - NEMA 14-20P
- * `nema-14-60r` - NEMA 14-60R
+ * `nema-14-30p` - NEMA 14-30P
- * `nema-15-15r` - NEMA 15-15R
+ * `nema-14-50p` - NEMA 14-50P
- * `nema-15-20r` - NEMA 15-20R
+ * `nema-14-60p` - NEMA 14-60P
- * `nema-15-30r` - NEMA 15-30R
+ * `nema-15-15p` - NEMA 15-15P
- * `nema-15-50r` - NEMA 15-50R
+ * `nema-15-20p` - NEMA 15-20P
- * `nema-15-60r` - NEMA 15-60R
+ * `nema-15-30p` - NEMA 15-30P
- * `nema-l1-15r` - NEMA L1-15R
+ * `nema-15-50p` - NEMA 15-50P
- * `nema-l5-15r` - NEMA L5-15R
+ * `nema-15-60p` - NEMA 15-60P
- * `nema-l5-20r` - NEMA L5-20R
+ * `nema-l1-15p` - NEMA L1-15P
- * `nema-l5-30r` - NEMA L5-30R
+ * `nema-l5-15p` - NEMA L5-15P
- * `nema-l5-50r` - NEMA L5-50R
+ * `nema-l5-20p` - NEMA L5-20P
- * `nema-l6-15r` - NEMA L6-15R
+ * `nema-l5-30p` - NEMA L5-30P
- * `nema-l6-20r` - NEMA L6-20R
+ * `nema-l5-50p` - NEMA L5-50P
- * `nema-l6-30r` - NEMA L6-30R
+ * `nema-l6-15p` - NEMA L6-15P
- * `nema-l6-50r` - NEMA L6-50R
+ * `nema-l6-20p` - NEMA L6-20P
- * `nema-l10-30r` - NEMA L10-30R
+ * `nema-l6-30p` - NEMA L6-30P
- * `nema-l14-20r` - NEMA L14-20R
+ * `nema-l6-50p` - NEMA L6-50P
- * `nema-l14-30r` - NEMA L14-30R
+ * `nema-l10-30p` - NEMA L10-30P
- * `nema-l14-50r` - NEMA L14-50R
+ * `nema-l14-20p` - NEMA L14-20P
- * `nema-l14-60r` - NEMA L14-60R
+ * `nema-l14-30p` - NEMA L14-30P
- * `nema-l15-20r` - NEMA L15-20R
+ * `nema-l14-50p` - NEMA L14-50P
- * `nema-l15-30r` - NEMA L15-30R
+ * `nema-l14-60p` - NEMA L14-60P
- * `nema-l15-50r` - NEMA L15-50R
+ * `nema-l15-20p` - NEMA L15-20P
- * `nema-l15-60r` - NEMA L15-60R
+ * `nema-l15-30p` - NEMA L15-30P
- * `nema-l21-20r` - NEMA L21-20R
+ * `nema-l15-50p` - NEMA L15-50P
- * `nema-l21-30r` - NEMA L21-30R
+ * `nema-l15-60p` - NEMA L15-60P
- * `nema-l22-30r` - NEMA L22-30R
+ * `nema-l21-20p` - NEMA L21-20P
- * `CS6360C` - CS6360C
+ * `nema-l21-30p` - NEMA L21-30P
- * `CS6364C` - CS6364C
+ * `nema-l22-30p` - NEMA L22-30P
- * `CS8164C` - CS8164C
+ * `cs6361c` - CS6361C
- * `CS8264C` - CS8264C
+ * `cs6365c` - CS6365C
- * `CS8364C` - CS8364C
+ * `cs8165c` - CS8165C
- * `CS8464C` - CS8464C
+ * `cs8265c` - CS8265C
- * `ita-e` - ITA Type E (CEE 7/5)
+ * `cs8365c` - CS8365C
- * `ita-f` - ITA Type F (CEE 7/3)
+ * `cs8465c` - CS8465C
- * `ita-g` - ITA Type G (BS 1363)
+ * `ita-c` - ITA Type C (CEE 7/16)
- * `ita-h` - ITA Type H
+ * `ita-e` - ITA Type E (CEE 7/6)
- * `ita-i` - ITA Type I
+ * `ita-f` - ITA Type F (CEE 7/4)
- * `ita-j` - ITA Type J
+ * `ita-ef` - ITA Type E/F (CEE 7/7)
- * `ita-k` - ITA Type K
+ * `ita-g` - ITA Type G (BS 1363)
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `ita-h` - ITA Type H
- * `ita-m` - ITA Type M (BS 546)
+ * `ita-i` - ITA Type I
- * `ita-n` - ITA Type N
+ * `ita-j` - ITA Type J
- * `ita-o` - ITA Type O
+ * `ita-k` - ITA Type K
- * `ita-multistandard` - ITA Multistandard
+ * `ita-l` - ITA Type L (CEI 23-50)
- * `usb-a` - USB Type A
+ * `ita-m` - ITA Type M (BS 546)
- * `usb-micro-b` - USB Micro B
+ * `ita-n` - ITA Type N
- * `usb-c` - USB Type C
+ * `ita-o` - ITA Type O
- * `dc-terminal` - DC Terminal
+ * `usb-a` - USB Type A
- * `hdot-cx` - HDOT Cx
+ * `usb-b` - USB Type B
- * `saf-d-grid` - Saf-D-Grid
+ * `usb-c` - USB Type C
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `usb-mini-a` - USB Mini A
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `usb-mini-b` - USB Mini B
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `usb-micro-a` - USB Micro A
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `usb-micro-b` - USB Micro B
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `usb-micro-ab` - USB Micro AB
- * `hardwired` - Hardwired
+ * `usb-3-b` - USB 3.0 Type B
- * `other` - Other'
- x-spec-enum-id: 5be1814581544db3
- 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-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
- - DC Terminal
- - HDOT Cx
- - Saf-D-Grid
- - Neutrik powerCON (20A)
- - Neutrik powerCON (32A)
- - Neutrik powerCON TRUE1
- - Neutrik powerCON TRUE1 TOP
- - Ubiquiti SmartPower
- - Hardwired
- - Other
- nullable: true
- power_port:
- allOf:
- - $ref: '#/components/schemas/NestedPowerPort'
- nullable: true
- feed_leg:
- type: object
- properties:
- value:
- enum:
- - A
- - B
- - C
- - ''
- type: string
- description: '* `A` - A
+ * `usb-3-micro-b` - USB 3.0 Micro B
- * `B` - B
+ * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2
- * `C` - C'
- x-spec-enum-id: a4902339df0b7c06
- label:
- type: string
- enum:
- - A
- - B
- - C
+ * `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'
+ 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/NestedCable'
- 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'
+ $ref: '#/components/schemas/NestedTagRequest'
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
- - cable_end
- - connected_endpoints
- - connected_endpoints_reachable
- - connected_endpoints_type
- - created
- - device
- - display
- - id
- - last_updated
- - link_peers
- - link_peers_type
- - name
- - url
- PowerOutletRequest:
+ PatchedWritablePowerPortTemplateRequest:
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/NestedDeviceRequest'
- module:
+ device_type:
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
+ nullable: true
+ module_type:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $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
@@ -123735,12 +124850,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
@@ -123756,55 +124871,57 @@ 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-30p
+ - cs6361c
+ - cs6365c
+ - cs8165c
+ - cs8265c
+ - cs8365c
+ - cs8465c
+ - ita-c
- ita-e
- ita-f
+ - ita-ef
- ita-g
- ita-h
- ita-i
@@ -123814,15 +124931,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
@@ -123830,17 +124955,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
@@ -123872,169 +124997,604 @@ 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-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'
+ x-spec-enum-id: 6d680dea031864ae
+ 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
+ PatchedWritablePrefixRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ prefix:
+ type: string
+ minLength: 1
+ site:
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
+ nullable: true
+ vrf:
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ vlan:
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
+ nullable: true
+ status:
+ enum:
+ - container
+ - active
+ - reserved
+ - deprecated
+ type: string
+ x-spec-enum-id: d38bee5f512701d9
+ description: 'Operational status of this prefix
+
+
+ * `container` - Container
+
+ * `active` - Active
+
+ * `reserved` - Reserved
+
+ * `deprecated` - Deprecated'
+ role:
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
+ nullable: true
+ is_pool:
+ type: boolean
+ title: Is a pool
+ description: All IP addresses within this prefix are considered usable
+ mark_utilized:
+ type: boolean
+ description: Treat as fully utilized
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableRackRequest:
+ 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/SiteRequest'
+ location:
+ allOf:
+ - $ref: '#/components/schemas/LocationRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ 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/RackRoleRequest'
+ 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
+ type:
+ 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
+ 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
+ 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
- * `nema-l6-15r` - NEMA L6-15R
+ * `in` - Inches'
+ x-spec-enum-id: 86a846b6c40f495e
+ 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.
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableRearPortRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ module:
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
+ 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
+ - other
+ type: string
+ description: '* `8p8c` - 8P8C
- * `nema-l6-20r` - NEMA L6-20R
+ * `8p6c` - 8P6C
- * `nema-l6-30r` - NEMA L6-30R
+ * `8p4c` - 8P4C
- * `nema-l6-50r` - NEMA L6-50R
+ * `8p2c` - 8P2C
- * `nema-l10-30r` - NEMA L10-30R
+ * `6p6c` - 6P6C
- * `nema-l14-20r` - NEMA L14-20R
+ * `6p4c` - 6P4C
- * `nema-l14-30r` - NEMA L14-30R
+ * `6p2c` - 6P2C
- * `nema-l14-50r` - NEMA L14-50R
+ * `4p4c` - 4P4C
- * `nema-l14-60r` - NEMA L14-60R
+ * `4p2c` - 4P2C
- * `nema-l15-20r` - NEMA L15-20R
+ * `gg45` - GG45
- * `nema-l15-30r` - NEMA L15-30R
+ * `tera-4p` - TERA 4P
- * `nema-l15-50r` - NEMA L15-50R
+ * `tera-2p` - TERA 2P
- * `nema-l15-60r` - NEMA L15-60R
+ * `tera-1p` - TERA 1P
- * `nema-l21-20r` - NEMA L21-20R
+ * `110-punch` - 110 Punch
- * `nema-l21-30r` - NEMA L21-30R
+ * `bnc` - BNC
- * `nema-l22-30r` - NEMA L22-30R
+ * `f` - F Connector
- * `CS6360C` - CS6360C
+ * `n` - N Connector
- * `CS6364C` - CS6364C
+ * `mrj21` - MRJ21
- * `CS8164C` - CS8164C
+ * `fc` - FC
- * `CS8264C` - CS8264C
+ * `lc` - LC
- * `CS8364C` - CS8364C
+ * `lc-pc` - LC/PC
- * `CS8464C` - CS8464C
+ * `lc-upc` - LC/UPC
- * `ita-e` - ITA Type E (CEE 7/5)
+ * `lc-apc` - LC/APC
- * `ita-f` - ITA Type F (CEE 7/3)
+ * `lsh` - LSH
- * `ita-g` - ITA Type G (BS 1363)
+ * `lsh-pc` - LSH/PC
- * `ita-h` - ITA Type H
+ * `lsh-upc` - LSH/UPC
- * `ita-i` - ITA Type I
+ * `lsh-apc` - LSH/APC
- * `ita-j` - ITA Type J
+ * `lx5` - LX.5
- * `ita-k` - ITA Type K
+ * `lx5-pc` - LX.5/PC
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `lx5-upc` - LX.5/UPC
- * `ita-m` - ITA Type M (BS 546)
+ * `lx5-apc` - LX.5/APC
- * `ita-n` - ITA Type N
+ * `mpo` - MPO
- * `ita-o` - ITA Type O
+ * `mtrj` - MTRJ
- * `ita-multistandard` - ITA Multistandard
+ * `sc` - SC
- * `usb-a` - USB Type A
+ * `sc-pc` - SC/PC
- * `usb-micro-b` - USB Micro B
+ * `sc-upc` - SC/UPC
- * `usb-c` - USB Type C
+ * `sc-apc` - SC/APC
- * `dc-terminal` - DC Terminal
+ * `st` - ST
- * `hdot-cx` - HDOT Cx
+ * `cs` - CS
- * `saf-d-grid` - Saf-D-Grid
+ * `sn` - SN
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `sma-905` - SMA 905
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `sma-906` - SMA 906
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `urm-p2` - URM-P2
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `urm-p4` - URM-P4
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `urm-p8` - URM-P8
- * `hardwired` - Hardwired
+ * `splice` - Splice
* `other` - Other'
- x-spec-enum-id: 5be1814581544db3
- nullable: true
- power_port:
- allOf:
- - $ref: '#/components/schemas/NestedPowerPortRequest'
- nullable: true
- feed_leg:
- enum:
- - A
- - B
- - C
- - ''
+ x-spec-enum-id: 0276d1110ada597a
+ color:
type: string
- description: '* `A` - A
-
- * `B` - B
-
- * `C` - C'
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
+ 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
@@ -124048,36 +125608,24 @@ components:
custom_fields:
type: object
additionalProperties: {}
- required:
- - device
- - name
- PowerOutletTemplate:
+ 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:
- id:
- type: integer
- readOnly: true
- url:
- type: string
- format: uri
- readOnly: true
- display:
- type: string
- readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $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
@@ -124086,768 +125634,1066 @@ components:
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-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
- - dc-terminal
- - 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
+ 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
- * `nema-14-20r` - NEMA 14-20R
+ * `8p6c` - 8P6C
- * `nema-14-30r` - NEMA 14-30R
+ * `8p4c` - 8P4C
- * `nema-14-50r` - NEMA 14-50R
+ * `8p2c` - 8P2C
- * `nema-14-60r` - NEMA 14-60R
+ * `6p6c` - 6P6C
- * `nema-15-15r` - NEMA 15-15R
+ * `6p4c` - 6P4C
- * `nema-15-20r` - NEMA 15-20R
+ * `6p2c` - 6P2C
- * `nema-15-30r` - NEMA 15-30R
+ * `4p4c` - 4P4C
- * `nema-15-50r` - NEMA 15-50R
+ * `4p2c` - 4P2C
- * `nema-15-60r` - NEMA 15-60R
+ * `gg45` - GG45
- * `nema-l1-15r` - NEMA L1-15R
+ * `tera-4p` - TERA 4P
- * `nema-l5-15r` - NEMA L5-15R
+ * `tera-2p` - TERA 2P
- * `nema-l5-20r` - NEMA L5-20R
+ * `tera-1p` - TERA 1P
- * `nema-l5-30r` - NEMA L5-30R
+ * `110-punch` - 110 Punch
- * `nema-l5-50r` - NEMA L5-50R
+ * `bnc` - BNC
- * `nema-l6-15r` - NEMA L6-15R
+ * `f` - F Connector
- * `nema-l6-20r` - NEMA L6-20R
+ * `n` - N Connector
- * `nema-l6-30r` - NEMA L6-30R
+ * `mrj21` - MRJ21
- * `nema-l6-50r` - NEMA L6-50R
+ * `fc` - FC
- * `nema-l10-30r` - NEMA L10-30R
+ * `lc` - LC
- * `nema-l14-20r` - NEMA L14-20R
+ * `lc-pc` - LC/PC
- * `nema-l14-30r` - NEMA L14-30R
+ * `lc-upc` - LC/UPC
- * `nema-l14-50r` - NEMA L14-50R
+ * `lc-apc` - LC/APC
- * `nema-l14-60r` - NEMA L14-60R
+ * `lsh` - LSH
- * `nema-l15-20r` - NEMA L15-20R
+ * `lsh-pc` - LSH/PC
- * `nema-l15-30r` - NEMA L15-30R
+ * `lsh-upc` - LSH/UPC
- * `nema-l15-50r` - NEMA L15-50R
+ * `lsh-apc` - LSH/APC
- * `nema-l15-60r` - NEMA L15-60R
+ * `lx5` - LX.5
- * `nema-l21-20r` - NEMA L21-20R
+ * `lx5-pc` - LX.5/PC
- * `nema-l21-30r` - NEMA L21-30R
+ * `lx5-upc` - LX.5/UPC
- * `nema-l22-30r` - NEMA L22-30R
+ * `lx5-apc` - LX.5/APC
- * `CS6360C` - CS6360C
+ * `mpo` - MPO
- * `CS6364C` - CS6364C
+ * `mtrj` - MTRJ
- * `CS8164C` - CS8164C
+ * `sc` - SC
- * `CS8264C` - CS8264C
+ * `sc-pc` - SC/PC
- * `CS8364C` - CS8364C
+ * `sc-upc` - SC/UPC
- * `CS8464C` - CS8464C
+ * `sc-apc` - SC/APC
- * `ita-e` - ITA Type E (CEE 7/5)
+ * `st` - ST
- * `ita-f` - ITA Type F (CEE 7/3)
+ * `cs` - CS
- * `ita-g` - ITA Type G (BS 1363)
+ * `sn` - SN
- * `ita-h` - ITA Type H
+ * `sma-905` - SMA 905
- * `ita-i` - ITA Type I
+ * `sma-906` - SMA 906
- * `ita-j` - ITA Type J
+ * `urm-p2` - URM-P2
- * `ita-k` - ITA Type K
+ * `urm-p4` - URM-P4
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `urm-p8` - URM-P8
- * `ita-m` - ITA Type M (BS 546)
+ * `splice` - Splice
- * `ita-n` - ITA Type N
+ * `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:
+ type: string
+ maxLength: 200
+ PatchedWritableRegionRequest:
+ 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_]+$
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableServiceRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ device:
+ allOf:
+ - $ref: '#/components/schemas/DeviceRequest'
+ nullable: true
+ virtual_machine:
+ allOf:
+ - $ref: '#/components/schemas/VirtualMachineRequest'
+ nullable: true
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ protocol:
+ enum:
+ - tcp
+ - udp
+ - sctp
+ type: string
+ description: '* `tcp` - TCP
- * `ita-o` - ITA Type O
+ * `udp` - UDP
- * `ita-multistandard` - ITA Multistandard
+ * `sctp` - SCTP'
+ x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
+ ipaddresses:
+ type: array
+ items:
+ type: integer
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableServiceTemplateRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ protocol:
+ enum:
+ - tcp
+ - udp
+ - sctp
+ type: string
+ description: '* `tcp` - TCP
- * `usb-a` - USB Type A
+ * `udp` - UDP
- * `usb-micro-b` - USB Micro B
+ * `sctp` - SCTP'
+ x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableSiteGroupRequest:
+ 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_]+$
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableSiteRequest:
+ 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_]+$
+ status:
+ enum:
+ - planned
+ - staging
+ - active
+ - decommissioning
+ - retired
+ type: string
+ description: '* `planned` - Planned
- * `usb-c` - USB Type C
+ * `staging` - Staging
- * `dc-terminal` - DC Terminal
+ * `active` - Active
- * `hdot-cx` - HDOT Cx
+ * `decommissioning` - Decommissioning
- * `saf-d-grid` - Saf-D-Grid
+ * `retired` - Retired'
+ x-spec-enum-id: e363a8ddb138be50
+ region:
+ allOf:
+ - $ref: '#/components/schemas/RegionRequest'
+ nullable: true
+ group:
+ allOf:
+ - $ref: '#/components/schemas/SiteGroupRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ 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:
+ type: integer
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableTenantGroupRequest:
+ 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_]+$
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableTunnelRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 100
+ status:
+ enum:
+ - planned
+ - active
+ - disabled
+ type: string
+ description: '* `planned` - Planned
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `active` - Active
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `disabled` - Disabled'
+ x-spec-enum-id: 0d65f7912cba74aa
+ group:
+ allOf:
+ - $ref: '#/components/schemas/TunnelGroupRequest'
+ nullable: true
+ encapsulation:
+ enum:
+ - ipsec-transport
+ - ipsec-tunnel
+ - ip-ip
+ - gre
+ type: string
+ description: '* `ipsec-transport` - IPsec - Transport
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `ipsec-tunnel` - IPsec - Tunnel
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `ip-ip` - IP-in-IP
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `gre` - GRE'
+ x-spec-enum-id: 5fc36bb745852746
+ ipsec_profile:
+ allOf:
+ - $ref: '#/components/schemas/IPSecProfileRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ 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: {}
+ PatchedWritableTunnelTerminationRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ tunnel:
+ $ref: '#/components/schemas/TunnelRequest'
+ role:
+ enum:
+ - peer
+ - hub
+ - spoke
+ type: string
+ description: '* `peer` - Peer
- * `hardwired` - Hardwired
+ * `hub` - Hub
- * `other` - Other'
- x-spec-enum-id: 5be1814581544db3
- 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-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
- - DC Terminal
- - HDOT Cx
- - Saf-D-Grid
- - Neutrik powerCON (20A)
- - Neutrik powerCON (32A)
- - Neutrik powerCON TRUE1
- - Neutrik powerCON TRUE1 TOP
- - Ubiquiti SmartPower
- - Hardwired
- - Other
+ * `spoke` - Spoke'
+ x-spec-enum-id: 52225cd60b867572
+ termination_type:
+ type: string
+ termination_id:
+ type: integer
+ maximum: 9223372036854775807
+ minimum: 0
+ format: int64
nullable: true
- power_port:
+ outside_ip:
allOf:
- - $ref: '#/components/schemas/NestedPowerPortTemplate'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- feed_leg:
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
type: object
- properties:
- value:
- enum:
- - A
- - B
- - C
- - ''
- type: string
- description: '* `A` - A
+ additionalProperties: {}
+ PatchedWritableVLANRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ site:
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
+ nullable: true
+ group:
+ allOf:
+ - $ref: '#/components/schemas/VLANGroupRequest'
+ nullable: true
+ vid:
+ type: integer
+ maximum: 4094
+ minimum: 1
+ title: VLAN ID
+ description: Numeric VLAN ID (1-4094)
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ status:
+ enum:
+ - active
+ - reserved
+ - deprecated
+ type: string
+ x-spec-enum-id: 6388dfb94ca1cc15
+ description: 'Operational status of this VLAN
- * `B` - B
- * `C` - C'
- x-spec-enum-id: a4902339df0b7c06
- label:
- type: string
- enum:
- - A
- - B
- - C
+ * `active` - Active
+
+ * `reserved` - Reserved
+
+ * `deprecated` - Deprecated'
+ role:
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
description:
type: string
maxLength: 200
- created:
+ comments:
type: string
- format: date-time
- readOnly: true
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableVMInterfaceRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ virtual_machine:
+ $ref: '#/components/schemas/VirtualMachineRequest'
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ enabled:
+ type: boolean
+ parent:
+ type: integer
nullable: true
- last_updated:
+ title: Parent interface
+ bridge:
+ type: integer
+ nullable: true
+ title: Bridge interface
+ mtu:
+ type: integer
+ maximum: 65536
+ minimum: 1
+ nullable: true
+ mac_address:
type: string
- format: date-time
- readOnly: true
nullable: true
- required:
- - created
- - display
- - id
- - last_updated
- - name
- - url
- PowerOutletTemplateRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
+ minLength: 1
+ description:
+ type: string
+ maxLength: 200
+ mode:
+ enum:
+ - access
+ - tagged
+ - tagged-all
+ - ''
+ type: string
+ x-spec-enum-id: 79109bd9dbb73a3c
+ description: 'IEEE 802.1Q tagging strategy
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- device_type:
+
+ * `access` - Access
+
+ * `tagged` - Tagged
+
+ * `tagged-all` - Tagged (All)'
+ untagged_vlan:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
- module_type:
+ tagged_vlans:
+ type: array
+ items:
+ type: integer
+ vrf:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/VRFRequest'
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
- description: '{module} is accepted as a substitution for the module bay
- position when attached to a module type.'
maxLength: 64
- label:
+ domain:
type: string
- description: Physical label
+ maxLength: 30
+ master:
+ 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: {}
+ PatchedWritableVirtualDeviceContextRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
maxLength: 64
- type:
+ device:
+ $ref: '#/components/schemas/DeviceRequest'
+ identifier:
+ type: integer
+ maximum: 32767
+ minimum: 0
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ primary_ip4:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ primary_ip6:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ status:
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-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
- - dc-terminal
- - hdot-cx
- - saf-d-grid
- - neutrik-powercon-20a
- - neutrik-powercon-32a
- - neutrik-powercon-true1
- - neutrik-powercon-true1-top
- - ubiquiti-smartpower
- - hardwired
- - other
- - ''
+ - active
+ - planned
+ - offline
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-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
+ description: '* `active` - Active
- * `ita-j` - ITA Type J
+ * `planned` - Planned
- * `ita-k` - ITA Type K
+ * `offline` - Offline'
+ x-spec-enum-id: ee1ef02def7a91ab
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableVirtualMachineWithConfigContextRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ name:
+ type: string
+ minLength: 1
+ maxLength: 64
+ status:
+ enum:
+ - offline
+ - active
+ - planned
+ - staged
+ - failed
+ - decommissioning
+ type: string
+ description: '* `offline` - Offline
- * `ita-l` - ITA Type L (CEI 23-50)
+ * `active` - Active
- * `ita-m` - ITA Type M (BS 546)
+ * `planned` - Planned
- * `ita-n` - ITA Type N
+ * `staged` - Staged
- * `ita-o` - ITA Type O
+ * `failed` - Failed
- * `ita-multistandard` - ITA Multistandard
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: 2217e87d0c3efdda
+ site:
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
+ nullable: true
+ cluster:
+ allOf:
+ - $ref: '#/components/schemas/ClusterRequest'
+ nullable: true
+ device:
+ allOf:
+ - $ref: '#/components/schemas/DeviceRequest'
+ nullable: true
+ role:
+ allOf:
+ - $ref: '#/components/schemas/DeviceRoleRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
+ nullable: true
+ primary_ip4:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ primary_ip6:
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
+ nullable: true
+ vcpus:
+ type: number
+ format: double
+ maximum: 10000
+ minimum: 0.01
+ exclusiveMaximum: true
+ nullable: true
+ memory:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ nullable: true
+ title: Memory (MB)
+ disk:
+ type: integer
+ maximum: 2147483647
+ minimum: 0
+ nullable: true
+ title: Disk (GB)
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ config_template:
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
+ nullable: true
+ local_context_data:
+ nullable: true
+ description: Local config context data takes precedence over source contexts
+ in the final rendered config context
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableWirelessLANGroupRequest:
+ 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_]+$
+ parent:
+ type: integer
+ nullable: true
+ description:
+ type: string
+ maxLength: 200
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableWirelessLANRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ ssid:
+ type: string
+ minLength: 1
+ maxLength: 32
+ description:
+ type: string
+ maxLength: 200
+ group:
+ allOf:
+ - $ref: '#/components/schemas/WirelessLANGroupRequest'
+ nullable: true
+ status:
+ enum:
+ - active
+ - reserved
+ - disabled
+ - deprecated
+ type: string
+ description: '* `active` - Active
- * `usb-a` - USB Type A
+ * `reserved` - Reserved
- * `usb-micro-b` - USB Micro B
+ * `disabled` - Disabled
- * `usb-c` - USB Type C
+ * `deprecated` - Deprecated'
+ x-spec-enum-id: 412ebdca597f609e
+ vlan:
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
+ nullable: true
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ auth_type:
+ enum:
+ - open
+ - wep
+ - wpa-personal
+ - wpa-enterprise
+ - ''
+ type: string
+ description: '* `open` - Open
- * `dc-terminal` - DC Terminal
+ * `wep` - WEP
- * `hdot-cx` - HDOT Cx
+ * `wpa-personal` - WPA Personal (PSK)
- * `saf-d-grid` - Saf-D-Grid
+ * `wpa-enterprise` - WPA Enterprise'
+ x-spec-enum-id: a2043acb899b3954
+ title: Authentication type
+ auth_cipher:
+ enum:
+ - auto
+ - tkip
+ - aes
+ - ''
+ type: string
+ description: '* `auto` - Auto
- * `neutrik-powercon-20a` - Neutrik powerCON (20A)
+ * `tkip` - TKIP
- * `neutrik-powercon-32a` - Neutrik powerCON (32A)
+ * `aes` - AES'
+ x-spec-enum-id: 8fdaefa727c26fdc
+ title: Authentication cipher
+ auth_psk:
+ type: string
+ title: Pre-shared key
+ maxLength: 64
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ PatchedWritableWirelessLinkRequest:
+ type: object
+ description: Adds support for custom fields and tags.
+ properties:
+ interface_a:
+ $ref: '#/components/schemas/InterfaceRequest'
+ interface_b:
+ $ref: '#/components/schemas/InterfaceRequest'
+ ssid:
+ type: string
+ maxLength: 32
+ status:
+ enum:
+ - connected
+ - planned
+ - decommissioning
+ type: string
+ description: '* `connected` - Connected
- * `neutrik-powercon-true1` - Neutrik powerCON TRUE1
+ * `planned` - Planned
- * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP
+ * `decommissioning` - Decommissioning'
+ x-spec-enum-id: fbc2f302c08be50d
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
+ nullable: true
+ auth_type:
+ enum:
+ - open
+ - wep
+ - wpa-personal
+ - wpa-enterprise
+ - ''
+ type: string
+ description: '* `open` - Open
- * `ubiquiti-smartpower` - Ubiquiti SmartPower
+ * `wep` - WEP
- * `hardwired` - Hardwired
+ * `wpa-personal` - WPA Personal (PSK)
- * `other` - Other'
- x-spec-enum-id: 5be1814581544db3
- nullable: true
- power_port:
- allOf:
- - $ref: '#/components/schemas/NestedPowerPortTemplateRequest'
- nullable: true
- feed_leg:
+ * `wpa-enterprise` - WPA Enterprise'
+ x-spec-enum-id: a2043acb899b3954
+ title: Authentication type
+ auth_cipher:
enum:
- - A
- - B
- - C
+ - auto
+ - tkip
+ - aes
- ''
type: string
- description: '* `A` - A
+ description: '* `auto` - Auto
- * `B` - B
+ * `tkip` - TKIP
- * `C` - C'
- x-spec-enum-id: a4902339df0b7c06
- nullable: true
+ * `aes` - AES'
+ x-spec-enum-id: 8fdaefa727c26fdc
+ title: Authentication cipher
+ auth_psk:
+ type: string
+ title: Pre-shared key
+ maxLength: 64
+ description:
+ type: string
+ maxLength: 200
+ comments:
+ type: string
+ tags:
+ type: array
+ items:
+ $ref: '#/components/schemas/NestedTagRequest'
+ custom_fields:
+ type: object
+ additionalProperties: {}
+ Platform:
+ 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:
+ - device_count
+ - display
+ - id
- name
- PowerPanel:
+ - slug
+ - url
+ - virtualmachine_count
+ PlatformRequest:
+ 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
+ PowerFeed:
type: object
description: Adds support for custom fields and tags.
properties:
@@ -124861,18 +126707,140 @@ components:
display:
type: string
readOnly: true
- site:
- $ref: '#/components/schemas/NestedSite'
- location:
+ power_panel:
+ $ref: '#/components/schemas/PowerPanel'
+ rack:
allOf:
- - $ref: '#/components/schemas/NestedLocation'
+ - $ref: '#/components/schemas/Rack'
nullable: true
name:
type: string
maxLength: 100
+ status:
+ type: object
+ properties:
+ value:
+ enum:
+ - offline
+ - active
+ - planned
+ - failed
+ type: string
+ description: '* `offline` - Offline
+
+ * `active` - Active
+
+ * `planned` - Planned
+
+ * `failed` - Failed'
+ x-spec-enum-id: b77fc919138c12f6
+ label:
+ type: string
+ enum:
+ - Offline
+ - Active
+ - Planned
+ - Failed
+ type:
+ type: object
+ properties:
+ value:
+ enum:
+ - primary
+ - redundant
+ type: string
+ description: '* `primary` - Primary
+
+ * `redundant` - Redundant'
+ x-spec-enum-id: 093a164236819eb8
+ label:
+ type: string
+ enum:
+ - Primary
+ - Redundant
+ supply:
+ type: object
+ properties:
+ value:
+ enum:
+ - ac
+ - dc
+ type: string
+ description: '* `ac` - AC
+
+ * `dc` - DC'
+ x-spec-enum-id: 1b6d99616ca6412b
+ label:
+ type: string
+ enum:
+ - AC
+ - DC
+ phase:
+ type: object
+ properties:
+ value:
+ enum:
+ - single-phase
+ - three-phase
+ type: string
+ description: '* `single-phase` - Single phase
+
+ * `three-phase` - Three-phase'
+ x-spec-enum-id: 994bc0696f4df57f
+ label:
+ type: string
+ enum:
+ - Single phase
+ - Three-phase
+ voltage:
+ type: integer
+ maximum: 32767
+ minimum: -32768
+ amperage:
+ type: integer
+ maximum: 32767
+ minimum: 1
+ max_utilization:
+ type: integer
+ maximum: 100
+ minimum: 1
+ description: Maximum permissible draw (percentage)
+ 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
description:
type: string
maxLength: 200
+ tenant:
+ allOf:
+ - $ref: '#/components/schemas/Tenant'
+ nullable: true
comments:
type: string
tags:
@@ -124882,9 +126850,6 @@ components:
custom_fields:
type: object
additionalProperties: {}
- powerfeed_count:
- type: integer
- readOnly: true
created:
type: string
format: date-time
@@ -124895,32 +126860,105 @@ 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
- display
- id
- last_updated
+ - link_peers
+ - link_peers_type
- name
- - powerfeed_count
- - site
+ - power_panel
- url
- PowerPanelRequest:
+ PowerFeedRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- site:
- $ref: '#/components/schemas/NestedSiteRequest'
- location:
+ power_panel:
+ $ref: '#/components/schemas/PowerPanelRequest'
+ rack:
allOf:
- - $ref: '#/components/schemas/NestedLocationRequest'
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
name:
type: string
minLength: 1
maxLength: 100
+ status:
+ enum:
+ - offline
+ - active
+ - planned
+ - failed
+ type: string
+ description: '* `offline` - Offline
+
+ * `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/TenantRequest'
+ nullable: true
comments:
type: string
tags:
@@ -124932,8 +126970,8 @@ components:
additionalProperties: {}
required:
- name
- - site
- PowerPort:
+ - power_panel
+ PowerOutlet:
type: object
description: Adds support for custom fields and tags.
properties:
@@ -124948,10 +126986,10 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -124965,12 +127003,12 @@ components:
properties:
value:
enum:
- - iec-60320-c6
- - iec-60320-c8
- - iec-60320-c14
- - iec-60320-c16
- - iec-60320-c20
- - iec-60320-c22
+ - 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
@@ -124986,57 +127024,55 @@ components:
- 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-30p
- - cs6361c
- - cs6365c
- - cs8165c
- - cs8265c
- - cs8365c
- - cs8465c
- - ita-c
+ - 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-ef
- ita-g
- ita-h
- ita-i
@@ -125046,20 +127082,18 @@ components:
- ita-m
- ita-n
- ita-o
+ - ita-multistandard
- 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
+ - usb-c
+ - molex-micro-fit-1x2
+ - molex-micro-fit-2x2
+ - molex-micro-fit-2x4
- dc-terminal
+ - hdot-cx
- saf-d-grid
- - neutrik-powercon-20
- - neutrik-powercon-32
+ - neutrik-powercon-20a
+ - neutrik-powercon-32a
- neutrik-powercon-true1
- neutrik-powercon-true1-top
- ubiquiti-smartpower
@@ -125067,17 +127101,17 @@ components:
- other
- ''
type: string
- description: '* `iec-60320-c6` - C6
+ description: '* `iec-60320-c5` - C5
- * `iec-60320-c8` - C8
+ * `iec-60320-c7` - C7
- * `iec-60320-c14` - C14
+ * `iec-60320-c13` - C13
- * `iec-60320-c16` - C16
+ * `iec-60320-c15` - C15
- * `iec-60320-c20` - C20
+ * `iec-60320-c19` - C19
- * `iec-60320-c22` - C22
+ * `iec-60320-c21` - C21
* `iec-60309-p-n-e-4h` - P+N+E 4H
@@ -125109,107 +127143,103 @@ components:
* `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-1-15r` - NEMA 1-15R
- * `nema-5-30p` - NEMA 5-30P
+ * `nema-5-15r` - NEMA 5-15R
- * `nema-5-50p` - NEMA 5-50P
+ * `nema-5-20r` - NEMA 5-20R
- * `nema-6-15p` - NEMA 6-15P
+ * `nema-5-30r` - NEMA 5-30R
- * `nema-6-20p` - NEMA 6-20P
+ * `nema-5-50r` - NEMA 5-50R
- * `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-30p` - NEMA L22-30P
+ * `nema-l21-20r` - NEMA L21-20R
- * `cs6361c` - CS6361C
+ * `nema-l21-30r` - NEMA L21-30R
- * `cs6365c` - CS6365C
+ * `nema-l22-30r` - NEMA L22-30R
- * `cs8165c` - CS8165C
+ * `CS6360C` - CS6360C
- * `cs8265c` - CS8265C
+ * `CS6364C` - CS6364C
- * `cs8365c` - CS8365C
+ * `CS8164C` - CS8164C
- * `cs8465c` - CS8465C
+ * `CS8264C` - CS8264C
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `CS8364C` - CS8364C
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `CS8464C` - CS8464C
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `ita-e` - ITA Type E (CEE 7/5)
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `ita-f` - ITA Type F (CEE 7/3)
* `ita-g` - ITA Type G (BS 1363)
@@ -125229,33 +127259,29 @@ components:
* `ita-o` - ITA Type O
+ * `ita-multistandard` - ITA Multistandard
+
* `usb-a` - USB Type A
- * `usb-b` - USB Type B
+ * `usb-micro-b` - USB Micro 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
+ * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2
- * `usb-3-b` - USB 3.0 Type B
+ * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4
* `dc-terminal` - DC Terminal
+ * `hdot-cx` - HDOT Cx
+
* `saf-d-grid` - Saf-D-Grid
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `neutrik-powercon-20a` - Neutrik powerCON (20A)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `neutrik-powercon-32a` - Neutrik powerCON (32A)
* `neutrik-powercon-true1` - Neutrik powerCON TRUE1
@@ -125266,16 +127292,16 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 2ff919f516566857
label:
type: string
enum:
- - C6
- - C8
- - C14
- - C16
- - C20
- - C22
+ - C5
+ - C7
+ - C13
+ - C15
+ - C19
+ - C21
- P+N+E 4H
- P+N+E 6H
- P+N+E 9H
@@ -125291,57 +127317,55 @@ components:
- 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-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)
+ - 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)
- ITA Type G (BS 1363)
- ITA Type H
- ITA Type I
@@ -125351,17 +127375,15 @@ components:
- ITA Type M (BS 546)
- ITA Type N
- ITA Type O
+ - ITA Multistandard
- 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
+ - USB Type 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)
@@ -125371,18 +127393,33 @@ components:
- Hardwired
- Other
nullable: true
- maximum_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPort'
nullable: true
- description: Maximum power draw (watts)
- allocated_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ 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: Allocated power draw (watts)
description:
type: string
maxLength: 200
@@ -125391,7 +127428,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -125452,15 +127489,15 @@ components:
- link_peers_type
- name
- url
- PowerPortRequest:
+ PowerOutletRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -125472,12 +127509,12 @@ components:
maxLength: 64
type:
enum:
- - iec-60320-c6
- - iec-60320-c8
- - iec-60320-c14
- - iec-60320-c16
- - iec-60320-c20
- - iec-60320-c22
+ - 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
@@ -125493,57 +127530,55 @@ components:
- 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-30p
- - cs6361c
- - cs6365c
- - cs8165c
- - cs8265c
- - cs8365c
- - cs8465c
- - ita-c
+ - 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-ef
- ita-g
- ita-h
- ita-i
@@ -125553,20 +127588,18 @@ components:
- ita-m
- ita-n
- ita-o
+ - ita-multistandard
- 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
+ - usb-c
+ - molex-micro-fit-1x2
+ - molex-micro-fit-2x2
+ - molex-micro-fit-2x4
- dc-terminal
+ - hdot-cx
- saf-d-grid
- - neutrik-powercon-20
- - neutrik-powercon-32
+ - neutrik-powercon-20a
+ - neutrik-powercon-32a
- neutrik-powercon-true1
- neutrik-powercon-true1-top
- ubiquiti-smartpower
@@ -125574,17 +127607,17 @@ components:
- other
- ''
type: string
- description: '* `iec-60320-c6` - C6
+ description: '* `iec-60320-c5` - C5
- * `iec-60320-c8` - C8
+ * `iec-60320-c7` - C7
- * `iec-60320-c14` - C14
+ * `iec-60320-c13` - C13
- * `iec-60320-c16` - C16
+ * `iec-60320-c15` - C15
- * `iec-60320-c20` - C20
+ * `iec-60320-c19` - C19
- * `iec-60320-c22` - C22
+ * `iec-60320-c21` - C21
* `iec-60309-p-n-e-4h` - P+N+E 4H
@@ -125616,107 +127649,103 @@ components:
* `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-1-15r` - NEMA 1-15R
- * `nema-5-30p` - NEMA 5-30P
+ * `nema-5-15r` - NEMA 5-15R
- * `nema-5-50p` - NEMA 5-50P
+ * `nema-5-20r` - NEMA 5-20R
- * `nema-6-15p` - NEMA 6-15P
+ * `nema-5-30r` - NEMA 5-30R
- * `nema-6-20p` - NEMA 6-20P
+ * `nema-5-50r` - NEMA 5-50R
- * `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-30p` - NEMA L22-30P
+ * `nema-l21-20r` - NEMA L21-20R
- * `cs6361c` - CS6361C
+ * `nema-l21-30r` - NEMA L21-30R
- * `cs6365c` - CS6365C
+ * `nema-l22-30r` - NEMA L22-30R
- * `cs8165c` - CS8165C
+ * `CS6360C` - CS6360C
- * `cs8265c` - CS8265C
+ * `CS6364C` - CS6364C
- * `cs8365c` - CS8365C
+ * `CS8164C` - CS8164C
- * `cs8465c` - CS8465C
+ * `CS8264C` - CS8264C
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `CS8364C` - CS8364C
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `CS8464C` - CS8464C
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `ita-e` - ITA Type E (CEE 7/5)
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `ita-f` - ITA Type F (CEE 7/3)
* `ita-g` - ITA Type G (BS 1363)
@@ -125736,33 +127765,29 @@ components:
* `ita-o` - ITA Type O
+ * `ita-multistandard` - ITA Multistandard
+
* `usb-a` - USB Type A
- * `usb-b` - USB Type B
+ * `usb-micro-b` - USB Micro 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
+ * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2
- * `usb-3-b` - USB 3.0 Type B
+ * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4
* `dc-terminal` - DC Terminal
+ * `hdot-cx` - HDOT Cx
+
* `saf-d-grid` - Saf-D-Grid
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `neutrik-powercon-20a` - Neutrik powerCON (20A)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `neutrik-powercon-32a` - Neutrik powerCON (32A)
* `neutrik-powercon-true1` - Neutrik powerCON TRUE1
@@ -125773,20 +127798,26 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 2ff919f516566857
nullable: true
- maximum_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPortRequest'
nullable: true
- description: Maximum power draw (watts)
- allocated_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ feed_leg:
+ enum:
+ - A
+ - B
+ - C
+ - ''
+ type: string
+ description: '* `A` - A
+
+ * `B` - B
+
+ * `C` - C'
+ x-spec-enum-id: a4902339df0b7c06
nullable: true
- description: Allocated power draw (watts)
description:
type: string
maxLength: 200
@@ -125803,7 +127834,7 @@ components:
required:
- device
- name
- PowerPortTemplate:
+ PowerOutletTemplate:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
on a copy of the associated instance during
@@ -125822,11 +127853,11 @@ components:
readOnly: true
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceType'
+ - $ref: '#/components/schemas/DeviceType'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleType'
+ - $ref: '#/components/schemas/ModuleType'
nullable: true
name:
type: string
@@ -125842,12 +127873,12 @@ components:
properties:
value:
enum:
- - iec-60320-c6
- - iec-60320-c8
- - iec-60320-c14
- - iec-60320-c16
- - iec-60320-c20
- - iec-60320-c22
+ - 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
@@ -125863,57 +127894,55 @@ components:
- 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-30p
- - cs6361c
- - cs6365c
- - cs8165c
- - cs8265c
- - cs8365c
- - cs8465c
- - ita-c
+ - 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-ef
- ita-g
- ita-h
- ita-i
@@ -125923,20 +127952,18 @@ components:
- ita-m
- ita-n
- ita-o
+ - ita-multistandard
- 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
+ - usb-c
+ - molex-micro-fit-1x2
+ - molex-micro-fit-2x2
+ - molex-micro-fit-2x4
- dc-terminal
+ - hdot-cx
- saf-d-grid
- - neutrik-powercon-20
- - neutrik-powercon-32
+ - neutrik-powercon-20a
+ - neutrik-powercon-32a
- neutrik-powercon-true1
- neutrik-powercon-true1-top
- ubiquiti-smartpower
@@ -125944,17 +127971,17 @@ components:
- other
- ''
type: string
- description: '* `iec-60320-c6` - C6
+ description: '* `iec-60320-c5` - C5
- * `iec-60320-c8` - C8
+ * `iec-60320-c7` - C7
- * `iec-60320-c14` - C14
+ * `iec-60320-c13` - C13
- * `iec-60320-c16` - C16
+ * `iec-60320-c15` - C15
- * `iec-60320-c20` - C20
+ * `iec-60320-c19` - C19
- * `iec-60320-c22` - C22
+ * `iec-60320-c21` - C21
* `iec-60309-p-n-e-4h` - P+N+E 4H
@@ -125986,107 +128013,103 @@ components:
* `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-1-15r` - NEMA 1-15R
- * `nema-5-30p` - NEMA 5-30P
+ * `nema-5-15r` - NEMA 5-15R
- * `nema-5-50p` - NEMA 5-50P
+ * `nema-5-20r` - NEMA 5-20R
- * `nema-6-15p` - NEMA 6-15P
+ * `nema-5-30r` - NEMA 5-30R
- * `nema-6-20p` - NEMA 6-20P
+ * `nema-5-50r` - NEMA 5-50R
- * `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-30p` - NEMA L22-30P
+ * `nema-l21-20r` - NEMA L21-20R
- * `cs6361c` - CS6361C
+ * `nema-l21-30r` - NEMA L21-30R
- * `cs6365c` - CS6365C
+ * `nema-l22-30r` - NEMA L22-30R
- * `cs8165c` - CS8165C
+ * `CS6360C` - CS6360C
- * `cs8265c` - CS8265C
+ * `CS6364C` - CS6364C
- * `cs8365c` - CS8365C
+ * `CS8164C` - CS8164C
- * `cs8465c` - CS8465C
+ * `CS8264C` - CS8264C
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `CS8364C` - CS8364C
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `CS8464C` - CS8464C
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `ita-e` - ITA Type E (CEE 7/5)
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `ita-f` - ITA Type F (CEE 7/3)
* `ita-g` - ITA Type G (BS 1363)
@@ -126106,33 +128129,29 @@ components:
* `ita-o` - ITA Type O
+ * `ita-multistandard` - ITA Multistandard
+
* `usb-a` - USB Type A
- * `usb-b` - USB Type B
+ * `usb-micro-b` - USB Micro 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
+ * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2
- * `usb-3-b` - USB 3.0 Type B
+ * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4
* `dc-terminal` - DC Terminal
+ * `hdot-cx` - HDOT Cx
+
* `saf-d-grid` - Saf-D-Grid
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `neutrik-powercon-20a` - Neutrik powerCON (20A)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `neutrik-powercon-32a` - Neutrik powerCON (32A)
* `neutrik-powercon-true1` - Neutrik powerCON TRUE1
@@ -126143,16 +128162,16 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 2ff919f516566857
label:
type: string
enum:
- - C6
- - C8
- - C14
- - C16
- - C20
- - C22
+ - C5
+ - C7
+ - C13
+ - C15
+ - C19
+ - C21
- P+N+E 4H
- P+N+E 6H
- P+N+E 9H
@@ -126168,57 +128187,55 @@ components:
- 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-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)
+ - 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)
- ITA Type G (BS 1363)
- ITA Type H
- ITA Type I
@@ -126228,17 +128245,15 @@ components:
- ITA Type M (BS 546)
- ITA Type N
- ITA Type O
+ - ITA Multistandard
- 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
+ - USB Type 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)
@@ -126248,18 +128263,33 @@ components:
- Hardwired
- Other
nullable: true
- maximum_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPortTemplate'
nullable: true
- description: Maximum power draw (watts)
- allocated_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ 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: Allocated power draw (watts)
description:
type: string
maxLength: 200
@@ -126280,7 +128310,7 @@ components:
- last_updated
- name
- url
- PowerPortTemplateRequest:
+ PowerOutletTemplateRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
on a copy of the associated instance during
@@ -126289,11 +128319,11 @@ components:
properties:
device_type:
allOf:
- - $ref: '#/components/schemas/NestedDeviceTypeRequest'
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -126307,12 +128337,12 @@ components:
maxLength: 64
type:
enum:
- - iec-60320-c6
- - iec-60320-c8
- - iec-60320-c14
- - iec-60320-c16
- - iec-60320-c20
- - iec-60320-c22
+ - 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
@@ -126328,57 +128358,55 @@ components:
- 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-30p
- - cs6361c
- - cs6365c
- - cs8165c
- - cs8265c
- - cs8365c
- - cs8465c
- - ita-c
+ - 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-ef
- ita-g
- ita-h
- ita-i
@@ -126388,20 +128416,18 @@ components:
- ita-m
- ita-n
- ita-o
+ - ita-multistandard
- 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
+ - usb-c
+ - molex-micro-fit-1x2
+ - molex-micro-fit-2x2
+ - molex-micro-fit-2x4
- dc-terminal
+ - hdot-cx
- saf-d-grid
- - neutrik-powercon-20
- - neutrik-powercon-32
+ - neutrik-powercon-20a
+ - neutrik-powercon-32a
- neutrik-powercon-true1
- neutrik-powercon-true1-top
- ubiquiti-smartpower
@@ -126409,17 +128435,17 @@ components:
- other
- ''
type: string
- description: '* `iec-60320-c6` - C6
+ description: '* `iec-60320-c5` - C5
- * `iec-60320-c8` - C8
+ * `iec-60320-c7` - C7
- * `iec-60320-c14` - C14
+ * `iec-60320-c13` - C13
- * `iec-60320-c16` - C16
+ * `iec-60320-c15` - C15
- * `iec-60320-c20` - C20
+ * `iec-60320-c19` - C19
- * `iec-60320-c22` - C22
+ * `iec-60320-c21` - C21
* `iec-60309-p-n-e-4h` - P+N+E 4H
@@ -126451,107 +128477,103 @@ components:
* `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-1-15r` - NEMA 1-15R
- * `nema-5-30p` - NEMA 5-30P
+ * `nema-5-15r` - NEMA 5-15R
- * `nema-5-50p` - NEMA 5-50P
+ * `nema-5-20r` - NEMA 5-20R
- * `nema-6-15p` - NEMA 6-15P
+ * `nema-5-30r` - NEMA 5-30R
- * `nema-6-20p` - NEMA 6-20P
+ * `nema-5-50r` - NEMA 5-50R
- * `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-30p` - NEMA L22-30P
+ * `nema-l21-20r` - NEMA L21-20R
- * `cs6361c` - CS6361C
+ * `nema-l21-30r` - NEMA L21-30R
- * `cs6365c` - CS6365C
+ * `nema-l22-30r` - NEMA L22-30R
- * `cs8165c` - CS8165C
+ * `CS6360C` - CS6360C
- * `cs8265c` - CS8265C
+ * `CS6364C` - CS6364C
- * `cs8365c` - CS8365C
+ * `CS8164C` - CS8164C
- * `cs8465c` - CS8465C
+ * `CS8264C` - CS8264C
- * `ita-c` - ITA Type C (CEE 7/16)
+ * `CS8364C` - CS8364C
- * `ita-e` - ITA Type E (CEE 7/6)
+ * `CS8464C` - CS8464C
- * `ita-f` - ITA Type F (CEE 7/4)
+ * `ita-e` - ITA Type E (CEE 7/5)
- * `ita-ef` - ITA Type E/F (CEE 7/7)
+ * `ita-f` - ITA Type F (CEE 7/3)
* `ita-g` - ITA Type G (BS 1363)
@@ -126571,33 +128593,29 @@ components:
* `ita-o` - ITA Type O
+ * `ita-multistandard` - ITA Multistandard
+
* `usb-a` - USB Type A
- * `usb-b` - USB Type B
+ * `usb-micro-b` - USB Micro 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
+ * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2
- * `usb-3-b` - USB 3.0 Type B
+ * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2
- * `usb-3-micro-b` - USB 3.0 Micro B
+ * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4
* `dc-terminal` - DC Terminal
+ * `hdot-cx` - HDOT Cx
+
* `saf-d-grid` - Saf-D-Grid
- * `neutrik-powercon-20` - Neutrik powerCON (20A)
+ * `neutrik-powercon-20a` - Neutrik powerCON (20A)
- * `neutrik-powercon-32` - Neutrik powerCON (32A)
+ * `neutrik-powercon-32a` - Neutrik powerCON (32A)
* `neutrik-powercon-true1` - Neutrik powerCON TRUE1
@@ -126608,20 +128626,172 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 2ff919f516566857
nullable: true
- maximum_draw:
- type: integer
- maximum: 2147483647
- minimum: 1
+ power_port:
+ allOf:
+ - $ref: '#/components/schemas/PowerPortTemplateRequest'
nullable: true
- description: Maximum power draw (watts)
- allocated_draw:
+ feed_leg:
+ enum:
+ - A
+ - B
+ - C
+ - ''
+ type: string
+ description: '* `A` - A
+
+ * `B` - B
+
+ * `C` - C'
+ x-spec-enum-id: a4902339df0b7c06
+ 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:
+ 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:
type: integer
- maximum: 2147483647
- minimum: 1
+ 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
nullable: true
- description: Allocated power draw (watts)
+ _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:
+ type: string
+ maxLength: 200
+ required:
+ - device
+ - name
+ PowerPortTemplate:
+ 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
+ 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
@@ -126663,19 +128833,19 @@ components:
type: string
site:
allOf:
- - $ref: '#/components/schemas/NestedSite'
+ - $ref: '#/components/schemas/Site'
nullable: true
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLAN'
+ - $ref: '#/components/schemas/VLAN'
nullable: true
status:
type: object
@@ -126704,7 +128874,7 @@ components:
- Deprecated
role:
allOf:
- - $ref: '#/components/schemas/NestedRole'
+ - $ref: '#/components/schemas/Role'
nullable: true
is_pool:
type: boolean
@@ -126761,19 +128931,19 @@ components:
minLength: 1
site:
allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRFRequest'
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLANRequest'
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
status:
enum:
@@ -126792,7 +128962,7 @@ components:
x-spec-enum-id: d38bee5f512701d9
role:
allOf:
- - $ref: '#/components/schemas/NestedRoleRequest'
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
is_pool:
type: boolean
@@ -126837,45 +129007,17 @@ components:
type: string
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/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
- - created
- display
- id
- - last_updated
- name
- slug
- url
@@ -126894,9 +129036,10 @@ components:
type: string
readOnly: true
provider:
- $ref: '#/components/schemas/NestedProvider'
+ $ref: '#/components/schemas/Provider'
name:
type: string
+ default: ''
maxLength: 100
account:
type: string
@@ -126936,10 +129079,9 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- provider:
- $ref: '#/components/schemas/NestedProviderRequest'
name:
type: string
+ default: ''
maxLength: 100
account:
type: string
@@ -126949,18 +129091,8 @@ 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.
@@ -126975,72 +129107,30 @@ components:
display:
type: string
readOnly: true
- provider:
- $ref: '#/components/schemas/NestedProvider'
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:
- - created
- display
- id
- - last_updated
- name
- - provider
- url
ProviderNetworkRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- provider:
- $ref: '#/components/schemas/NestedProviderRequest'
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.
@@ -127055,26 +129145,9 @@ 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
@@ -127099,39 +129172,17 @@ 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
readOnly: true
required:
- aggregate_count
- - created
- display
- id
- - last_updated
- name
- slug
- url
@@ -127148,20 +129199,9 @@ 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
@@ -127182,257 +129222,18 @@ components:
name:
type: string
maxLength: 100
- facility_id:
- type: string
- nullable: true
- maxLength: 50
- site:
- $ref: '#/components/schemas/NestedSite'
- location:
- allOf:
- - $ref: '#/components/schemas/NestedLocation'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- 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/NestedRackRole'
- 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
- type:
- 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.
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
- readOnly: true
- powerfeed_count:
- type: integer
+ format: int64
readOnly: true
required:
- - created
- device_count
- display
- id
- - last_updated
- name
- - powerfeed_count
- - site
- url
RackRequest:
type: object
@@ -127442,183 +129243,11 @@ components:
type: string
minLength: 1
maxLength: 100
- facility_id:
- type: string
- nullable: true
- maxLength: 50
- site:
- $ref: '#/components/schemas/NestedSiteRequest'
- location:
- allOf:
- - $ref: '#/components/schemas/NestedLocationRequest'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- 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/NestedRackRoleRequest'
- 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
- type:
- 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
- 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
- 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
- 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.
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.
@@ -127634,7 +129263,7 @@ components:
type: string
readOnly: true
rack:
- $ref: '#/components/schemas/NestedRack'
+ $ref: '#/components/schemas/Rack'
units:
type: array
items:
@@ -127652,10 +129281,10 @@ components:
readOnly: true
nullable: true
user:
- $ref: '#/components/schemas/NestedUser'
+ $ref: '#/components/schemas/User'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
description:
type: string
@@ -127684,7 +129313,7 @@ components:
description: Adds support for custom fields and tags.
properties:
rack:
- $ref: '#/components/schemas/NestedRackRequest'
+ $ref: '#/components/schemas/RackRequest'
units:
type: array
items:
@@ -127692,10 +129321,10 @@ components:
maximum: 32767
minimum: 0
user:
- $ref: '#/components/schemas/NestedUserRequest'
+ $ref: '#/components/schemas/UserRequest'
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
description:
type: string
@@ -127762,6 +129391,7 @@ components:
nullable: true
rack_count:
type: integer
+ format: int64
readOnly: true
required:
- created
@@ -127839,7 +129469,7 @@ components:
readOnly: true
device:
allOf:
- - $ref: '#/components/schemas/NestedDevice'
+ - $ref: '#/components/schemas/Device'
readOnly: true
occupied:
type: boolean
@@ -127869,10 +129499,10 @@ components:
type: string
readOnly: true
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModule'
+ - $ref: '#/components/schemas/Module'
nullable: true
name:
type: string
@@ -128095,7 +129725,7 @@ components:
description: Treat as if a cable is connected
cable:
allOf:
- - $ref: '#/components/schemas/NestedCable'
+ - $ref: '#/components/schemas/Cable'
readOnly: true
nullable: true
cable_end:
@@ -128149,469 +129779,14 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
module:
allOf:
- - $ref: '#/components/schemas/ComponentNestedModuleRequest'
- 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
- - 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
-
- * `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
- 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/NestedDeviceType'
- nullable: true
- module_type:
- allOf:
- - $ref: '#/components/schemas/NestedModuleType'
- 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
- - 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
-
- * `other` - Other'
- x-spec-enum-id: 0276d1110ada597a
- 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
- - 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:
- - created
- - display
- - id
- - last_updated
- - 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/NestedDeviceTypeRequest'
- nullable: true
- module_type:
- allOf:
- - $ref: '#/components/schemas/NestedModuleTypeRequest'
+ - $ref: '#/components/schemas/ModuleRequest'
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
@@ -128769,12 +129944,72 @@ 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:
+ 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
+ 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.
@@ -128823,6 +130058,7 @@ components:
site_count:
type: integer
readOnly: true
+ default: 0
_depth:
type: integer
readOnly: true
@@ -128888,41 +130124,20 @@ 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
readOnly: true
vlan_count:
type: integer
+ format: int64
readOnly: true
required:
- - created
- display
- id
- - last_updated
- name
- prefix_count
- slug
@@ -128941,20 +130156,9 @@ 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
@@ -128978,7 +130182,7 @@ components:
maxLength: 21
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
description:
type: string
@@ -129020,7 +130224,7 @@ components:
maxLength: 21
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
description:
type: string
@@ -129053,7 +130257,7 @@ components:
display:
type: string
readOnly: true
- content_types:
+ object_types:
type: array
items:
type: string
@@ -129090,12 +130294,12 @@ components:
readOnly: true
nullable: true
required:
- - content_types
- created
- display
- id
- last_updated
- name
+ - object_types
- parameters
- slug
- url
@@ -129106,7 +130310,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -129135,10 +130339,56 @@ components:
type: boolean
parameters: {}
required:
- - content_types
- name
+ - object_types
- parameters
- slug
+ Script:
+ 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
+ module:
+ type: integer
+ readOnly: true
+ name:
+ type: string
+ readOnly: true
+ description:
+ type: string
+ readOnly: true
+ vars:
+ nullable: true
+ readOnly: true
+ result:
+ allOf:
+ - $ref: '#/components/schemas/Job'
+ readOnly: true
+ display:
+ type: string
+ readOnly: true
+ is_executable:
+ type: boolean
+ readOnly: true
+ required:
+ - description
+ - display
+ - id
+ - is_executable
+ - module
+ - name
+ - result
+ - url
+ - vars
Service:
type: object
description: Adds support for custom fields and tags.
@@ -129155,22 +130405,15 @@ components:
readOnly: true
device:
allOf:
- - $ref: '#/components/schemas/NestedDevice'
+ - $ref: '#/components/schemas/Device'
nullable: true
virtual_machine:
allOf:
- - $ref: '#/components/schemas/NestedVirtualMachine'
+ - $ref: '#/components/schemas/VirtualMachine'
nullable: true
name:
type: string
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
type: object
properties:
@@ -129192,10 +130435,17 @@ components:
- TCP
- UDP
- SCTP
- ipaddresses:
+ ports:
type: array
items:
type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
+ ipaddresses:
+ type: array
+ items:
+ $ref: '#/components/schemas/IPAddress'
description:
type: string
maxLength: 200
@@ -129232,23 +130482,16 @@ components:
properties:
device:
allOf:
- - $ref: '#/components/schemas/NestedDeviceRequest'
+ - $ref: '#/components/schemas/DeviceRequest'
nullable: true
virtual_machine:
allOf:
- - $ref: '#/components/schemas/NestedVirtualMachineRequest'
+ - $ref: '#/components/schemas/VirtualMachineRequest'
nullable: true
name:
type: string
minLength: 1
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
enum:
- tcp
@@ -129261,6 +130504,13 @@ components:
* `sctp` - SCTP'
x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
ipaddresses:
type: array
items:
@@ -129297,13 +130547,6 @@ components:
name:
type: string
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
type: object
properties:
@@ -129325,6 +130568,13 @@ components:
- TCP
- UDP
- SCTP
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
description:
type: string
maxLength: 200
@@ -129363,13 +130613,6 @@ components:
type: string
minLength: 1
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
enum:
- tcp
@@ -129382,6 +130625,13 @@ components:
* `sctp` - SCTP'
x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
description:
type: string
maxLength: 200
@@ -129419,138 +130669,15 @@ 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/NestedRegion'
- nullable: true
- group:
- allOf:
- - $ref: '#/components/schemas/NestedSiteGroup'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- 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/NestedASN'
- 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
- readOnly: true
- device_count:
- type: integer
- readOnly: true
- prefix_count:
- type: integer
- readOnly: true
- rack_count:
- type: integer
- readOnly: true
- virtualmachine_count:
- type: integer
- readOnly: true
- vlan_count:
- type: integer
- readOnly: true
required:
- - circuit_count
- - created
- - device_count
- display
- id
- - last_updated
- name
- - prefix_count
- - rack_count
- slug
- url
- - virtualmachine_count
- - vlan_count
SiteGroup:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -129599,6 +130726,7 @@ components:
site_count:
type: integer
readOnly: true
+ default: 0
_depth:
type: integer
readOnly: true
@@ -129657,85 +130785,9 @@ 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/NestedRegionRequest'
- nullable: true
- group:
- allOf:
- - $ref: '#/components/schemas/NestedSiteGroupRequest'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- 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:
- type: integer
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
- slug
@@ -129776,6 +130828,7 @@ components:
type: string
tagged_items:
type: integer
+ format: int64
readOnly: true
created:
type: string
@@ -129848,80 +130901,15 @@ components:
type: string
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- group:
- allOf:
- - $ref: '#/components/schemas/NestedTenantGroup'
- 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
- readOnly: true
- device_count:
- type: integer
- readOnly: true
- ipaddress_count:
- type: integer
- readOnly: true
- prefix_count:
- type: integer
- readOnly: true
- rack_count:
- type: integer
- readOnly: true
- site_count:
- type: integer
- readOnly: true
- virtualmachine_count:
- type: integer
- readOnly: true
- vlan_count:
- type: integer
- readOnly: true
- vrf_count:
- type: integer
- readOnly: true
- cluster_count:
- type: integer
- readOnly: true
required:
- - circuit_count
- - cluster_count
- - created
- - device_count
- display
- id
- - ipaddress_count
- - last_updated
- name
- - prefix_count
- - rack_count
- - site_count
- slug
- url
- - virtualmachine_count
- - vlan_count
- - vrf_count
TenantGroup:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -129970,6 +130958,7 @@ components:
tenant_count:
type: integer
readOnly: true
+ default: 0
_depth:
type: integer
readOnly: true
@@ -130027,22 +131016,9 @@ components:
minLength: 1
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
- group:
- allOf:
- - $ref: '#/components/schemas/NestedTenantGroupRequest'
- 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
@@ -130064,7 +131040,7 @@ components:
type: string
readOnly: true
user:
- $ref: '#/components/schemas/NestedUser'
+ $ref: '#/components/schemas/User'
created:
type: string
format: date-time
@@ -130112,7 +131088,7 @@ components:
readOnly: true
user:
allOf:
- - $ref: '#/components/schemas/NestedUser'
+ - $ref: '#/components/schemas/User'
readOnly: true
created:
type: string
@@ -130179,7 +131155,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/NestedUserRequest'
+ $ref: '#/components/schemas/UserRequest'
expires:
type: string
format: date-time
@@ -130217,100 +131193,13 @@ components:
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/NestedTunnelGroup'
- nullable: true
- encapsulation:
- type: object
- properties:
- value:
- enum:
- - ipsec-transport
- - ipsec-tunnel
- - ip-ip
- - gre
- type: string
- description: '* `ipsec-transport` - IPsec - Transport
-
- * `ipsec-tunnel` - IPsec - Tunnel
-
- * `ip-ip` - IP-in-IP
-
- * `gre` - GRE'
- x-spec-enum-id: 5fc36bb745852746
- label:
- type: string
- enum:
- - IPsec - Transport
- - IPsec - Tunnel
- - IP-in-IP
- - GRE
- ipsec_profile:
- allOf:
- - $ref: '#/components/schemas/NestedIPSecProfile'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- 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
required:
- - created
- display
- - encapsulation
- id
- - last_updated
- name
- - status
- url
TunnelGroup:
type: object
@@ -130355,6 +131244,7 @@ components:
nullable: true
tunnel_count:
type: integer
+ format: int64
readOnly: true
required:
- created
@@ -130399,67 +131289,11 @@ 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/NestedTunnelGroupRequest'
- nullable: true
- encapsulation:
- enum:
- - ipsec-transport
- - ipsec-tunnel
- - ip-ip
- - gre
- type: string
- description: '* `ipsec-transport` - IPsec - Transport
-
- * `ipsec-tunnel` - IPsec - Tunnel
-
- * `ip-ip` - IP-in-IP
-
- * `gre` - GRE'
- x-spec-enum-id: 5fc36bb745852746
- ipsec_profile:
- allOf:
- - $ref: '#/components/schemas/NestedIPSecProfileRequest'
- nullable: true
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- 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.
@@ -130475,7 +131309,7 @@ components:
type: string
readOnly: true
tunnel:
- $ref: '#/components/schemas/NestedTunnel'
+ $ref: '#/components/schemas/Tunnel'
role:
type: object
properties:
@@ -130510,7 +131344,7 @@ components:
readOnly: true
outside_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
tags:
type: array
@@ -130536,6 +131370,7 @@ components:
- last_updated
- role
- termination
+ - termination_id
- termination_type
- tunnel
- url
@@ -130544,7 +131379,7 @@ components:
description: Adds support for custom fields and tags.
properties:
tunnel:
- $ref: '#/components/schemas/NestedTunnelRequest'
+ $ref: '#/components/schemas/TunnelRequest'
role:
enum:
- peer
@@ -130567,7 +131402,7 @@ components:
nullable: true
outside_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
tags:
type: array
@@ -130578,6 +131413,7 @@ components:
additionalProperties: {}
required:
- role
+ - termination_id
- termination_type
- tunnel
User:
@@ -130603,37 +131439,6 @@ 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:
- type: integer
required:
- display
- id
@@ -130653,44 +131458,7 @@ 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
required:
- - password
- username
VLAN:
type: object
@@ -130706,14 +131474,6 @@ components:
display:
type: string
readOnly: true
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSite'
- nullable: true
- group:
- allOf:
- - $ref: '#/components/schemas/NestedVLANGroup'
- nullable: true
vid:
type: integer
maximum: 4094
@@ -130723,73 +131483,13 @@ components:
name:
type: string
maxLength: 64
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- 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/NestedRole'
- nullable: true
description:
type: string
maxLength: 200
- comments:
- type: string
- l2vpn_termination:
- allOf:
- - $ref: '#/components/schemas/NestedL2VPNTermination'
- 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
- readOnly: true
required:
- - created
- display
- id
- - l2vpn_termination
- - last_updated
- name
- - prefix_count
- url
- vid
VLANGroup:
@@ -130856,6 +131556,7 @@ components:
nullable: true
vlan_count:
type: integer
+ format: int64
readOnly: true
utilization:
type: string
@@ -130919,14 +131620,6 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- site:
- allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
- nullable: true
- group:
- allOf:
- - $ref: '#/components/schemas/NestedVLANGroupRequest'
- nullable: true
vid:
type: integer
maximum: 4094
@@ -130937,38 +131630,9 @@ components:
type: string
minLength: 1
maxLength: 64
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- 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/NestedRoleRequest'
- 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
- vid
@@ -130987,7 +131651,7 @@ components:
type: string
readOnly: true
virtual_machine:
- $ref: '#/components/schemas/NestedVirtualMachine'
+ $ref: '#/components/schemas/VirtualMachine'
name:
type: string
maxLength: 64
@@ -131036,19 +131700,19 @@ components:
- Tagged (All)
untagged_vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLAN'
+ - $ref: '#/components/schemas/VLAN'
nullable: true
tagged_vlans:
type: array
items:
- type: integer
+ $ref: '#/components/schemas/VLAN'
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRF'
+ - $ref: '#/components/schemas/VRF'
nullable: true
l2vpn_termination:
allOf:
- - $ref: '#/components/schemas/NestedL2VPNTermination'
+ - $ref: '#/components/schemas/L2VPNTermination'
readOnly: true
nullable: true
tags:
@@ -131090,7 +131754,7 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/NestedVirtualMachineRequest'
+ $ref: '#/components/schemas/VirtualMachineRequest'
name:
type: string
minLength: 1
@@ -131132,7 +131796,7 @@ components:
x-spec-enum-id: 79109bd9dbb73a3c
untagged_vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLANRequest'
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tagged_vlans:
type: array
@@ -131140,7 +131804,7 @@ components:
type: integer
vrf:
allOf:
- - $ref: '#/components/schemas/NestedVRFRequest'
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tags:
type: array
@@ -131175,56 +131839,16 @@ components:
title: Route distinguisher
description: Unique route distinguisher (as defined in RFC 4364)
maxLength: 21
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenant'
- nullable: true
- enforce_unique:
- type: boolean
- title: Enforce unique space
- description: Prevent duplicate prefixes/IP addresses within this VRF
description:
type: string
maxLength: 200
- comments:
- type: string
- import_targets:
- type: array
- items:
- type: integer
- export_targets:
- type: array
- items:
- type: integer
- 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
- readOnly: true
prefix_count:
type: integer
+ format: int64
readOnly: true
required:
- - created
- display
- id
- - ipaddress_count
- - last_updated
- name
- prefix_count
- url
@@ -131242,34 +131866,9 @@ components:
title: Route distinguisher
description: Unique route distinguisher (as defined in RFC 4364)
maxLength: 21
- tenant:
- allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
- nullable: true
- enforce_unique:
- type: boolean
- title: Enforce unique space
- description: Prevent duplicate prefixes/IP addresses within this VRF
description:
type: string
maxLength: 200
- 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:
@@ -131289,9 +131888,6 @@ components:
name:
type: string
maxLength: 64
- domain:
- type: string
- maxLength: 30
master:
allOf:
- $ref: '#/components/schemas/NestedDevice'
@@ -131299,33 +131895,12 @@ 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
required:
- - created
- display
- id
- - last_updated
- member_count
- name
- url
@@ -131337,9 +131912,6 @@ components:
type: string
minLength: 1
maxLength: 64
- domain:
- type: string
- maxLength: 30
master:
allOf:
- $ref: '#/components/schemas/NestedDeviceRequest'
@@ -131347,15 +131919,6 @@ components:
description:
type: string
maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
required:
- name
VirtualDeviceContext:
@@ -131376,29 +131939,28 @@ components:
type: string
maxLength: 64
device:
- $ref: '#/components/schemas/NestedDevice'
+ $ref: '#/components/schemas/Device'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
- description: Numeric identifier unique to the parent device
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
primary_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
readOnly: true
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
status:
type: object
@@ -131445,6 +132007,7 @@ components:
nullable: true
interface_count:
type: integer
+ format: int64
readOnly: true
required:
- created
@@ -131466,24 +132029,23 @@ components:
minLength: 1
maxLength: 64
device:
- $ref: '#/components/schemas/NestedDeviceRequest'
+ $ref: '#/components/schemas/DeviceRequest'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
- description: Numeric identifier unique to the parent device
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
status:
enum:
@@ -131528,7 +132090,7 @@ components:
type: string
readOnly: true
virtual_machine:
- $ref: '#/components/schemas/NestedVirtualMachine'
+ $ref: '#/components/schemas/VirtualMachine'
name:
type: string
maxLength: 64
@@ -131571,7 +132133,7 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- $ref: '#/components/schemas/NestedVirtualMachineRequest'
+ $ref: '#/components/schemas/VirtualMachineRequest'
name:
type: string
minLength: 1
@@ -131595,6 +132157,44 @@ components:
- name
- size
- virtual_machine
+ VirtualMachine:
+ 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
+ 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.
@@ -131647,40 +132247,40 @@ components:
- Decommissioning
site:
allOf:
- - $ref: '#/components/schemas/NestedSite'
+ - $ref: '#/components/schemas/Site'
nullable: true
cluster:
allOf:
- - $ref: '#/components/schemas/NestedCluster'
+ - $ref: '#/components/schemas/Cluster'
nullable: true
device:
allOf:
- - $ref: '#/components/schemas/NestedDevice'
+ - $ref: '#/components/schemas/Device'
nullable: true
role:
allOf:
- - $ref: '#/components/schemas/NestedDeviceRole'
+ - $ref: '#/components/schemas/DeviceRole'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
platform:
allOf:
- - $ref: '#/components/schemas/NestedPlatform'
+ - $ref: '#/components/schemas/Platform'
nullable: true
primary_ip:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
readOnly: true
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddress'
+ - $ref: '#/components/schemas/IPAddress'
nullable: true
vcpus:
type: number
@@ -131708,7 +132308,7 @@ components:
type: string
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplate'
+ - $ref: '#/components/schemas/ConfigTemplate'
nullable: true
local_context_data:
nullable: true
@@ -131782,35 +132382,35 @@ components:
x-spec-enum-id: 2217e87d0c3efdda
site:
allOf:
- - $ref: '#/components/schemas/NestedSiteRequest'
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
cluster:
allOf:
- - $ref: '#/components/schemas/NestedClusterRequest'
+ - $ref: '#/components/schemas/ClusterRequest'
nullable: true
device:
allOf:
- - $ref: '#/components/schemas/NestedDeviceRequest'
+ - $ref: '#/components/schemas/DeviceRequest'
nullable: true
role:
allOf:
- - $ref: '#/components/schemas/NestedDeviceRoleRequest'
+ - $ref: '#/components/schemas/DeviceRoleRequest'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
platform:
allOf:
- - $ref: '#/components/schemas/NestedPlatformRequest'
+ - $ref: '#/components/schemas/PlatformRequest'
nullable: true
primary_ip4:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
primary_ip6:
allOf:
- - $ref: '#/components/schemas/NestedIPAddressRequest'
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
vcpus:
type: number
@@ -131838,7 +132438,7 @@ components:
type: string
config_template:
allOf:
- - $ref: '#/components/schemas/NestedConfigTemplateRequest'
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
nullable: true
local_context_data:
nullable: true
@@ -132057,7 +132657,7 @@ components:
maxLength: 200
group:
allOf:
- - $ref: '#/components/schemas/NestedWirelessLANGroup'
+ - $ref: '#/components/schemas/WirelessLANGroup'
nullable: true
status:
type: object
@@ -132087,11 +132687,11 @@ components:
- Deprecated
vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLAN'
+ - $ref: '#/components/schemas/VLAN'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
auth_type:
type: object
@@ -132192,43 +132792,21 @@ 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
+ default: 0
_depth:
type: integer
readOnly: true
title: ' depth'
required:
- _depth
- - created
- display
- id
- - last_updated
- name
- slug
- url
@@ -132276,7 +132854,7 @@ components:
maxLength: 200
group:
allOf:
- - $ref: '#/components/schemas/NestedWirelessLANGroupRequest'
+ - $ref: '#/components/schemas/WirelessLANGroupRequest'
nullable: true
status:
enum:
@@ -132296,11 +132874,11 @@ components:
x-spec-enum-id: 412ebdca597f609e
vlan:
allOf:
- - $ref: '#/components/schemas/NestedVLANRequest'
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
auth_type:
enum:
@@ -132361,9 +132939,9 @@ components:
type: string
readOnly: true
interface_a:
- $ref: '#/components/schemas/NestedInterface'
+ $ref: '#/components/schemas/Interface'
interface_b:
- $ref: '#/components/schemas/NestedInterface'
+ $ref: '#/components/schemas/Interface'
ssid:
type: string
maxLength: 32
@@ -132390,7 +132968,7 @@ components:
- Decommissioning
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenant'
+ - $ref: '#/components/schemas/Tenant'
nullable: true
auth_type:
type: object
@@ -132479,9 +133057,9 @@ components:
description: Adds support for custom fields and tags.
properties:
interface_a:
- $ref: '#/components/schemas/NestedInterfaceRequest'
+ $ref: '#/components/schemas/InterfaceRequest'
interface_b:
- $ref: '#/components/schemas/NestedInterfaceRequest'
+ $ref: '#/components/schemas/InterfaceRequest'
ssid:
type: string
maxLength: 32
@@ -132499,7 +133077,7 @@ components:
x-spec-enum-id: fbc2f302c08be50d
tenant:
allOf:
- - $ref: '#/components/schemas/NestedTenantRequest'
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
auth_type:
enum:
@@ -132549,81 +133127,6 @@ components:
required:
- interface_a
- interface_b
- WritableASNRangeRequest:
- 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:
- type: integer
- start:
- type: integer
- maximum: 4294967295
- minimum: 1
- format: int64
- end:
- type: integer
- maximum: 4294967295
- minimum: 1
- format: int64
- tenant:
- type: integer
- 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
- WritableASNRequest:
- 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:
- type: integer
- description: Regional Internet Registry responsible for this AS number space
- tenant:
- 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:
- - asn
- - rir
WritableAggregateRequest:
type: object
description: Adds support for custom fields and tags.
@@ -132632,10 +133135,10 @@ components:
type: string
minLength: 1
rir:
- type: integer
- description: Regional Internet Registry responsible for this IP space
+ $ref: '#/components/schemas/RIRRequest'
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
date_added:
type: string
@@ -132656,26 +133159,6 @@ components:
required:
- prefix
- rir
- WritableBookmarkRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- object_type:
- type: string
- object_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- user:
- type: integer
- required:
- - object_id
- - object_type
- - user
WritableCableRequest:
type: object
description: Adds support for custom fields and tags.
@@ -132774,7 +133257,8 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
label:
type: string
@@ -132836,12 +133320,13 @@ components:
description: Unique circuit ID
maxLength: 100
provider:
- type: integer
+ $ref: '#/components/schemas/ProviderRequest'
provider_account:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ProviderAccountRequest'
nullable: true
type:
- type: integer
+ $ref: '#/components/schemas/CircuitTypeRequest'
status:
enum:
- planned
@@ -132864,7 +133349,8 @@ components:
* `decommissioned` - Decommissioned'
x-spec-enum-id: 63c838134a022200
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
install_date:
type: string
@@ -132899,68 +133385,6 @@ components:
- cid
- provider
- type
- WritableCircuitTerminationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- circuit:
- type: integer
- term_side:
- enum:
- - A
- - Z
- type: string
- description: '* `A` - A
-
- * `Z` - Z'
- x-spec-enum-id: 95b8fcc737f355d0
- title: Termination
- site:
- type: integer
- nullable: true
- provider_network:
- 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
- pp_info:
- type: string
- title: Patch panel/port(s)
- description: Patch panel ID and port number(s)
- maxLength: 100
- 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:
- - circuit
- - term_side
WritableClusterRequest:
type: object
description: Adds support for custom fields and tags.
@@ -132970,9 +133394,10 @@ components:
minLength: 1
maxLength: 100
type:
- type: integer
+ $ref: '#/components/schemas/ClusterTypeRequest'
group:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ClusterGroupRequest'
nullable: true
status:
enum:
@@ -132993,10 +133418,12 @@ components:
* `offline` - Offline'
x-spec-enum-id: 79d20a734d0eecbb
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
site:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
description:
type: string
@@ -133013,132 +133440,15 @@ components:
required:
- name
- type
- WritableConfigContextRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- weight:
- type: integer
- maximum: 32767
- minimum: 0
- description:
- type: string
- maxLength: 200
- is_active:
- type: boolean
- regions:
- type: array
- items:
- type: integer
- site_groups:
- type: array
- items:
- type: integer
- sites:
- type: array
- items:
- type: integer
- locations:
- type: array
- items:
- type: integer
- device_types:
- type: array
- items:
- type: integer
- roles:
- type: array
- items:
- type: integer
- platforms:
- type: array
- items:
- type: integer
- cluster_types:
- type: array
- items:
- type: integer
- cluster_groups:
- type: array
- items:
- type: integer
- clusters:
- type: array
- items:
- type: integer
- tenant_groups:
- type: array
- items:
- type: integer
- tenants:
- type: array
- items:
- type: integer
- tags:
- type: array
- items:
- type: string
- minLength: 1
- data_source:
- type: integer
- nullable: true
- description: Remote data source
- data: {}
- required:
- - data
- - name
- WritableConfigTemplateRequest:
- 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
- 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:
- type: integer
- nullable: true
- description: Remote data source
- data_file:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- required:
- - name
- - template_code
WritableConsolePortRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -133257,10 +133567,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -133331,9 +133643,10 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -133452,10 +133765,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -133525,7 +133840,7 @@ components:
type: object
description: Adds support for custom fields and tags.
properties:
- content_type:
+ object_type:
type: string
object_id:
type: integer
@@ -133533,9 +133848,11 @@ components:
minimum: 0
format: int64
contact:
- type: integer
+ $ref: '#/components/schemas/ContactRequest'
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ContactRoleRequest'
+ nullable: true
priority:
enum:
- primary
@@ -133561,9 +133878,8 @@ components:
additionalProperties: {}
required:
- contact
- - content_type
- object_id
- - role
+ - object_type
WritableContactGroupRequest:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -133592,49 +133908,8 @@ components:
additionalProperties: {}
required:
- name
+ - parent
- slug
- WritableContactRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- group:
- type: integer
- 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
WritableCustomFieldChoiceSetRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -133685,7 +133960,7 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -133734,7 +134009,7 @@ components:
* `object` - Object
* `multiobject` - Multiple objects'
- object_type:
+ related_object_type:
type: string
nullable: true
name:
@@ -133848,11 +134123,14 @@ components:
will limit values to exactly three uppercase letters.
maxLength: 500
choice_set:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/CustomFieldChoiceSetRequest'
nullable: true
+ comments:
+ type: string
required:
- - content_types
- name
+ - object_types
WritableDataSourceRequest:
type: object
description: Adds support for custom fields and tags.
@@ -133889,106 +134167,15 @@ components:
- name
- source_url
- type
- WritableDeviceBayRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- description:
- type: string
- maxLength: 200
- installed_device:
- type: integer
- nullable: true
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - device
- - name
- WritableDeviceBayTemplateRequest:
- 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:
- type: integer
- 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
- description:
- type: string
- maxLength: 200
- required:
- - device_type
- - name
- WritableDeviceRoleRequest:
- 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
- minLength: 1
- pattern: ^[0-9a-f]{6}$
- maxLength: 6
- vm_role:
- type: boolean
- description: Virtual machines may be assigned to this role
- config_template:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - name
- - slug
WritableDeviceTypeRequest:
type: object
description: Adds support for custom fields and tags.
properties:
manufacturer:
- type: integer
+ $ref: '#/components/schemas/ManufacturerRequest'
default_platform:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
nullable: true
model:
type: string
@@ -134112,15 +134299,16 @@ components:
nullable: true
maxLength: 64
device_type:
- type: integer
+ $ref: '#/components/schemas/DeviceTypeRequest'
role:
- type: integer
- description: The function this device serves
+ $ref: '#/components/schemas/DeviceRoleRequest'
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
platform:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
nullable: true
serial:
type: string
@@ -134133,12 +134321,14 @@ components:
description: A unique tag used to identify this device
maxLength: 50
site:
- type: integer
+ $ref: '#/components/schemas/SiteRequest'
location:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/LocationRequest'
nullable: true
rack:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
position:
type: number
@@ -134227,22 +134417,24 @@ components:
* `mixed` - Mixed'
x-spec-enum-id: 58e389e240a5e53d
primary_ip4:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv4
primary_ip6:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv6
oob_ip:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Out-of-band IP
cluster:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ClusterRequest'
nullable: true
virtual_chassis:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VirtualChassisRequest'
nullable: true
vc_position:
type: integer
@@ -134261,7 +134453,8 @@ components:
comments:
type: string
config_template:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
nullable: true
local_context_data:
nullable: true
@@ -134276,13 +134469,14 @@ components:
additionalProperties: {}
required:
- device_type
+ - face
- role
- site
WritableEventRuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
- content_types:
+ object_types:
type: array
items:
type: string
@@ -134345,80 +134539,17 @@ components:
$ref: '#/components/schemas/NestedTagRequest'
required:
- action_object_type
- - content_types
- - name
- WritableExportTemplateRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- content_types:
- type: array
- items:
- type: string
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- template_code:
- type: string
- minLength: 1
- description: Jinja2 template code. The list of objects being exported is
- passed as a context variable named queryset
.
- mime_type:
- type: string
- description: Defaults to text/plain; charset=utf-8
- maxLength: 50
- file_extension:
- type: string
- description: Extension to append to the rendered filename
- maxLength: 15
- as_attachment:
- type: boolean
- description: Download file as attachment
- data_source:
- type: integer
- nullable: true
- description: Remote data source
- required:
- - content_types
- name
- - template_code
- WritableFHRPGroupAssignmentRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- group:
- type: integer
- interface_type:
- type: string
- interface_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- priority:
- type: integer
- maximum: 255
- minimum: 0
- required:
- - group
- - interface_id
- - interface_type
- - priority
+ - object_types
WritableFrontPortRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -134582,6 +134713,7 @@ components:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description: Mapped position on corresponding rear port
description:
type: string
@@ -134609,10 +134741,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -134773,11 +134907,12 @@ components:
pattern: ^[0-9a-f]{6}$
maxLength: 6
rear_port:
- type: integer
+ $ref: '#/components/schemas/RearPortTemplateRequest'
rear_port_position:
type: integer
maximum: 1024
minimum: 1
+ default: 1
description:
type: string
maxLength: 200
@@ -134835,7 +134970,6 @@ components:
additionalProperties: {}
required:
- name
- - proposals
WritableIKEProposalRequest:
type: object
description: Adds support for custom fields and tags.
@@ -135016,10 +135150,12 @@ components:
type: string
minLength: 1
vrf:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
status:
enum:
@@ -135117,10 +135253,12 @@ components:
type: string
minLength: 1
vrf:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
status:
enum:
@@ -135138,9 +135276,9 @@ components:
* `deprecated` - Deprecated'
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
- description: The primary function of this range
description:
type: string
maxLength: 200
@@ -135266,7 +135404,6 @@ components:
additionalProperties: {}
required:
- name
- - proposals
WritableIPSecProfileRequest:
type: object
description: Adds support for custom fields and tags.
@@ -135288,9 +135425,9 @@ components:
* `ah` - AH'
x-spec-enum-id: 1136c2cdfee84436
ike_policy:
- type: integer
+ $ref: '#/components/schemas/IKEPolicyRequest'
ipsec_policy:
- type: integer
+ $ref: '#/components/schemas/IPSecPolicyRequest'
comments:
type: string
tags:
@@ -135395,13 +135532,14 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
vdcs:
type: array
items:
type: integer
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -135457,6 +135595,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -135477,6 +135617,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -135510,12 +135652,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -135620,6 +135765,10 @@ components:
* `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)
@@ -135660,6 +135809,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -135726,7 +135879,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -135734,9 +135893,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -135767,7 +135926,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
enabled:
type: boolean
parent:
@@ -136508,13 +136667,13 @@ components:
nullable: true
title: Transmit power (dBm)
untagged_vlan:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tagged_vlans:
type: array
items:
type: integer
- title: Tagged VLANs
mark_connected:
type: boolean
description: Treat as if a cable is connected
@@ -136522,9 +136681,9 @@ components:
type: array
items:
type: integer
- title: Wireless LANs
vrf:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tags:
type: array
@@ -136537,7 +136696,6 @@ components:
- device
- name
- type
- - vdcs
WritableInterfaceTemplateRequest:
type: object
description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
@@ -136546,10 +136704,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -136607,6 +136767,8 @@ components:
- 800gbase-x-qsfpdd
- 800gbase-x-osfp
- 1000base-kx
+ - 2.5gbase-kx
+ - 5gbase-kr
- 10gbase-kr
- 10gbase-kx4
- 25gbase-kr
@@ -136627,6 +136789,8 @@ components:
- gsm
- cdma
- lte
+ - 4g
+ - 5g
- sonet-oc3
- sonet-oc12
- sonet-oc48
@@ -136660,12 +136824,15 @@ components:
- e3
- xdsl
- docsis
+ - bpon
+ - epon
+ - 10g-epon
- gpon
- xg-pon
- xgs-pon
- ng-pon2
- - epon
- - 10g-epon
+ - 25g-pon
+ - 50g-pon
- cisco-stackwise
- cisco-stackwise-plus
- cisco-flexstack
@@ -136770,6 +136937,10 @@ components:
* `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)
@@ -136810,6 +136981,10 @@ components:
* `lte` - LTE
+ * `4g` - 4G
+
+ * `5g` - 5G
+
* `sonet-oc3` - OC-3/STM-1
* `sonet-oc12` - OC-12/STM-4
@@ -136876,7 +137051,13 @@ components:
* `docsis` - DOCSIS
- * `gpon` - GPON (2.5 Gbps / 1.25 Gps)
+ * `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)
@@ -136884,9 +137065,9 @@ components:
* `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps)
- * `epon` - EPON (1 Gbps)
+ * `25g-pon` - 25G-PON (25 Gbps)
- * `10g-epon` - 10G-EPON (10 Gbps)
+ * `50g-pon` - 50G-PON (50 Gbps)
* `cisco-stackwise` - Cisco StackWise
@@ -136917,7 +137098,7 @@ components:
* `extreme-summitstack-512` - Extreme SummitStack-512
* `other` - Other'
- x-spec-enum-id: 939e9432238e40f7
+ x-spec-enum-id: b9a351ea129ed754
enabled:
type: boolean
mgmt_only:
@@ -136982,114 +137163,6 @@ components:
required:
- name
- type
- WritableInventoryItemRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- parent:
- type: integer
- nullable: true
- name:
- type: string
- minLength: 1
- maxLength: 64
- label:
- type: string
- description: Physical label
- maxLength: 64
- role:
- type: integer
- nullable: true
- manufacturer:
- type: integer
- 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
- WritableInventoryItemTemplateRequest:
- 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:
- type: integer
- parent:
- type: integer
- 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
- role:
- type: integer
- nullable: true
- manufacturer:
- type: integer
- nullable: true
- part_id:
- type: string
- description: Manufacturer-assigned part identifier
- maxLength: 50
- description:
- type: string
- maxLength: 200
- component_type:
- type: string
- nullable: true
- component_id:
- type: integer
- maximum: 9223372036854775807
- minimum: 0
- format: int64
- nullable: true
- required:
- - device_type
- - name
WritableJournalEntryRequest:
type: object
description: Adds support for custom fields and tags.
@@ -137205,7 +137278,8 @@ components:
comments:
type: string
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
tags:
type: array
@@ -137218,30 +137292,6 @@ components:
- name
- slug
- type
- WritableL2VPNTerminationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- l2vpn:
- type: integer
- 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
WritableLocationRequest:
type: object
description: Extends PrimaryModelSerializer to include MPTT support.
@@ -137256,7 +137306,7 @@ components:
maxLength: 100
pattern: ^[-a-zA-Z0-9_]+$
site:
- type: integer
+ $ref: '#/components/schemas/SiteRequest'
parent:
type: integer
nullable: true
@@ -137279,8 +137329,13 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
+ facility:
+ type: string
+ description: Local facility ID or description
+ maxLength: 50
description:
type: string
maxLength: 200
@@ -137293,81 +137348,19 @@ components:
additionalProperties: {}
required:
- name
+ - parent
- site
- slug
- WritableModuleBayRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- device:
- type: integer
- name:
- type: string
- minLength: 1
- maxLength: 64
- installed_module:
- type: integer
- label:
- type: string
- description: Physical label
- maxLength: 64
- position:
- type: string
- description: Identifier to reference when renaming installed components
- maxLength: 30
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - device
- - installed_module
- - name
- WritableModuleBayTemplateRequest:
- 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:
- type: integer
- 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
- position:
- type: string
- description: Identifier to reference when renaming installed components
- maxLength: 30
- description:
- type: string
- maxLength: 200
- required:
- - device_type
- - name
WritableModuleRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module_bay:
type: integer
module_type:
- type: integer
+ $ref: '#/components/schemas/ModuleTypeRequest'
status:
enum:
- offline
@@ -137419,7 +137412,7 @@ components:
description: Adds support for custom fields and tags.
properties:
manufacturer:
- type: integer
+ $ref: '#/components/schemas/ManufacturerRequest'
model:
type: string
minLength: 1
@@ -137467,90 +137460,15 @@ components:
required:
- manufacturer
- model
- WritableObjectPermissionRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- name:
- type: string
- minLength: 1
- maxLength: 100
- description:
- type: string
- maxLength: 200
- enabled:
- type: boolean
- object_types:
- type: array
- items:
- type: string
- groups:
- type: array
- items:
- type: integer
- users:
- type: array
- items:
- type: integer
- actions:
- type: array
- items:
- type: string
- minLength: 1
- maxLength: 30
- description: The list of actions granted by this permission
- constraints:
- nullable: true
- description: Queryset filter matching the applicable objects of the selected
- type(s)
- required:
- - actions
- - name
- - object_types
- WritablePlatformRequest:
- 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_]+$
- manufacturer:
- type: integer
- nullable: true
- description: Optionally limit this platform to devices of a certain manufacturer
- config_template:
- type: integer
- nullable: true
- description:
- type: string
- maxLength: 200
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - name
- - slug
WritablePowerFeedRequest:
type: object
description: Adds support for custom fields and tags.
properties:
power_panel:
- type: integer
+ $ref: '#/components/schemas/PowerPanelRequest'
rack:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RackRequest'
nullable: true
name:
type: string
@@ -137618,7 +137536,8 @@ components:
type: string
maxLength: 200
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
comments:
type: string
@@ -137637,9 +137556,10 @@ components:
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -137734,6 +137654,9 @@ components:
- 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
@@ -137746,7 +137669,7 @@ components:
- other
- ''
type: string
- x-spec-enum-id: 5be1814581544db3
+ x-spec-enum-id: 2ff919f516566857
description: 'Physical port type
@@ -137916,6 +137839,12 @@ components:
* `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
@@ -137936,7 +137865,8 @@ components:
* `other` - Other'
power_port:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/PowerPortRequest'
nullable: true
feed_leg:
enum:
@@ -137978,10 +137908,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -138078,6 +138010,9 @@ components:
- 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
@@ -138256,6 +138191,12 @@ components:
* `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
@@ -138275,9 +138216,10 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 5be1814581544db3
+ x-spec-enum-id: 2ff919f516566857
power_port:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/PowerPortTemplateRequest'
nullable: true
feed_leg:
enum:
@@ -138300,42 +138242,15 @@ components:
maxLength: 200
required:
- name
- WritablePowerPanelRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- site:
- type: integer
- location:
- type: integer
- 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
WritablePowerPortRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -138438,6 +138353,9 @@ components:
- 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
@@ -138449,7 +138367,7 @@ components:
- other
- ''
type: string
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 6d680dea031864ae
description: 'Physical port type
@@ -138635,6 +138553,12 @@ components:
* `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
@@ -138688,10 +138612,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -138796,6 +138722,9 @@ components:
- 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
@@ -138989,6 +138918,12 @@ components:
* `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
@@ -139006,7 +138941,7 @@ components:
* `hardwired` - Hardwired
* `other` - Other'
- x-spec-enum-id: 0612e2fb273da8ee
+ x-spec-enum-id: 6d680dea031864ae
maximum_draw:
type: integer
maximum: 2147483647
@@ -139032,16 +138967,20 @@ components:
type: string
minLength: 1
site:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
vrf:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
vlan:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
status:
enum:
@@ -139062,9 +139001,9 @@ components:
* `deprecated` - Deprecated'
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
- description: The primary function of this prefix
is_pool:
type: boolean
title: Is a pool
@@ -139086,101 +139025,6 @@ components:
additionalProperties: {}
required:
- prefix
- WritableProviderAccountRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- provider:
- type: integer
- name:
- type: string
- maxLength: 100
- account:
- type: string
- minLength: 1
- title: Account ID
- maxLength: 100
- description:
- type: string
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - account
- - provider
- WritableProviderNetworkRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- provider:
- type: integer
- 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
- WritableProviderRequest:
- 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_]+$
- 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:
- - accounts
- - name
- - slug
WritableRackRequest:
type: object
description: Adds support for custom fields and tags.
@@ -139194,12 +139038,14 @@ components:
nullable: true
maxLength: 50
site:
- type: integer
+ $ref: '#/components/schemas/SiteRequest'
location:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/LocationRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
status:
enum:
@@ -139220,9 +139066,9 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 0c556d55dc1baa13
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RackRoleRequest'
nullable: true
- description: Functional role
serial:
type: string
title: Serial number
@@ -139366,49 +139212,15 @@ components:
required:
- name
- site
- WritableRackReservationRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- rack:
- type: integer
- units:
- type: array
- items:
- type: integer
- maximum: 32767
- minimum: 0
- user:
- type: integer
- tenant:
- type: integer
- nullable: true
- description:
- type: string
- minLength: 1
- maxLength: 200
- comments:
- type: string
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - description
- - rack
- - units
- - user
WritableRearPortRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ $ref: '#/components/schemas/DeviceRequest'
module:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleRequest'
nullable: true
name:
type: string
@@ -139596,10 +139408,12 @@ components:
validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
properties:
device_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceTypeRequest'
nullable: true
module_type:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ModuleTypeRequest'
nullable: true
name:
type: string
@@ -139797,54 +139611,24 @@ components:
additionalProperties: {}
required:
- name
+ - parent
- slug
- WritableRouteTargetRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- name:
- type: string
- minLength: 1
- description: Route target value (formatted in accordance with RFC 4360)
- maxLength: 21
- tenant:
- 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
WritableServiceRequest:
type: object
description: Adds support for custom fields and tags.
properties:
device:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceRequest'
nullable: true
virtual_machine:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VirtualMachineRequest'
nullable: true
name:
type: string
minLength: 1
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
enum:
- tcp
@@ -139857,14 +139641,17 @@ components:
* `sctp` - SCTP'
x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
ipaddresses:
type: array
items:
type: integer
- title: IP addresses
- title: IP addresses
- description: The specific IP addresses (if any) to which this service is
- bound
description:
type: string
maxLength: 200
@@ -139889,13 +139676,6 @@ components:
type: string
minLength: 1
maxLength: 100
- ports:
- type: array
- items:
- type: integer
- maximum: 65535
- minimum: 1
- title: Port numbers
protocol:
enum:
- tcp
@@ -139908,6 +139688,13 @@ components:
* `sctp` - SCTP'
x-spec-enum-id: 5521e084b1ad51de
+ ports:
+ type: array
+ items:
+ type: integer
+ maximum: 65535
+ minimum: 1
+ title: Port numbers
description:
type: string
maxLength: 200
@@ -139952,6 +139739,7 @@ components:
additionalProperties: {}
required:
- name
+ - parent
- slug
WritableSiteRequest:
type: object
@@ -139986,13 +139774,16 @@ components:
* `retired` - Retired'
x-spec-enum-id: e363a8ddb138be50
region:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RegionRequest'
nullable: true
group:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/SiteGroupRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
facility:
type: string
@@ -140075,66 +139866,6 @@ components:
required:
- name
- slug
- WritableTenantRequest:
- 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_]+$
- group:
- 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
- - slug
- WritableTokenRequest:
- 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:
- user:
- type: integer
- expires:
- type: string
- format: date-time
- nullable: true
- last_used:
- type: string
- format: date-time
- nullable: true
- key:
- type: string
- maxLength: 40
- minLength: 40
- write_enabled:
- type: boolean
- description: Permit create/update/delete operations using this key
- description:
- type: string
- maxLength: 200
- required:
- - user
WritableTunnelRequest:
type: object
description: Adds support for custom fields and tags.
@@ -140156,7 +139887,8 @@ components:
* `disabled` - Disabled'
x-spec-enum-id: 0d65f7912cba74aa
group:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TunnelGroupRequest'
nullable: true
encapsulation:
enum:
@@ -140174,10 +139906,12 @@ components:
* `gre` - GRE'
x-spec-enum-id: 5fc36bb745852746
ipsec_profile:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPSecProfileRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
tunnel_id:
type: integer
@@ -140205,7 +139939,7 @@ components:
description: Adds support for custom fields and tags.
properties:
tunnel:
- type: integer
+ $ref: '#/components/schemas/TunnelRequest'
role:
enum:
- peer
@@ -140227,7 +139961,8 @@ components:
format: int64
nullable: true
outside_ip:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
tags:
type: array
@@ -140237,75 +139972,21 @@ components:
type: object
additionalProperties: {}
required:
+ - termination_id
- termination_type
- tunnel
- WritableUserRequest:
- type: object
- description: 'Extends the built-in ModelSerializer to enforce calling full_clean()
- on a copy of the associated instance during
-
- validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)'
- properties:
- username:
- type: string
- minLength: 1
- description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
- only.
- pattern: ^[\w.@+-]+$
- maxLength: 150
- password:
- type: string
- writeOnly: true
- minLength: 1
- maxLength: 128
- first_name:
- type: string
- maxLength: 150
- last_name:
- type: string
- maxLength: 150
- email:
- type: string
- format: email
- title: Email address
- maxLength: 254
- is_staff:
- type: boolean
- title: Staff status
- description: Designates whether the user can log into this admin site.
- is_active:
- type: boolean
- title: Active
- description: Designates whether this user should be treated as active. Unselect
- this instead of deleting accounts.
- date_joined:
- type: string
- format: date-time
- last_login:
- type: string
- format: date-time
- nullable: true
- groups:
- type: array
- items:
- type: integer
- description: The groups this user belongs to. A user will get all permissions
- granted to each of their groups.
- required:
- - password
- - username
WritableVLANRequest:
type: object
description: Adds support for custom fields and tags.
properties:
site:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
- description: The specific site to which this VLAN is assigned (if any)
group:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VLANGroupRequest'
nullable: true
- description: VLAN group (optional)
vid:
type: integer
maximum: 4094
@@ -140317,7 +139998,8 @@ components:
minLength: 1
maxLength: 64
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
status:
enum:
@@ -140335,9 +140017,9 @@ components:
* `deprecated` - Deprecated'
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/RoleRequest'
nullable: true
- description: The primary function of this VLAN
description:
type: string
maxLength: 200
@@ -140358,7 +140040,7 @@ components:
description: Adds support for custom fields and tags.
properties:
virtual_machine:
- type: integer
+ $ref: '#/components/schemas/VirtualMachineRequest'
name:
type: string
minLength: 1
@@ -140402,15 +140084,16 @@ components:
* `tagged-all` - Tagged (All)'
untagged_vlan:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tagged_vlans:
type: array
items:
type: integer
- title: Tagged VLANs
vrf:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VRFRequest'
nullable: true
tags:
type: array
@@ -140422,49 +140105,6 @@ components:
required:
- name
- virtual_machine
- WritableVRFRequest:
- 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
- tenant:
- type: integer
- 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
WritableVirtualChassisRequest:
type: object
description: Adds support for custom fields and tags.
@@ -140502,25 +140142,24 @@ components:
minLength: 1
maxLength: 64
device:
- type: integer
- nullable: true
+ $ref: '#/components/schemas/DeviceRequest'
identifier:
type: integer
maximum: 32767
minimum: 0
nullable: true
- description: Numeric identifier unique to the parent device
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
primary_ip4:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv4
primary_ip6:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv6
status:
enum:
- active
@@ -140546,37 +140185,9 @@ components:
type: object
additionalProperties: {}
required:
+ - device
- name
- status
- WritableVirtualDiskRequest:
- type: object
- description: Adds support for custom fields and tags.
- properties:
- virtual_machine:
- type: integer
- name:
- type: string
- minLength: 1
- maxLength: 64
- description:
- type: string
- maxLength: 200
- size:
- type: integer
- maximum: 2147483647
- minimum: 0
- title: Size (GB)
- tags:
- type: array
- items:
- $ref: '#/components/schemas/NestedTagRequest'
- custom_fields:
- type: object
- additionalProperties: {}
- required:
- - name
- - size
- - virtual_machine
WritableVirtualMachineWithConfigContextRequest:
type: object
description: Adds support for custom fields and tags.
@@ -140607,31 +140218,37 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: 2217e87d0c3efdda
site:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/SiteRequest'
nullable: true
cluster:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ClusterRequest'
nullable: true
device:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceRequest'
nullable: true
role:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/DeviceRoleRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
platform:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/PlatformRequest'
nullable: true
primary_ip4:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv4
primary_ip6:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/IPAddressRequest'
nullable: true
- title: Primary IPv6
vcpus:
type: number
format: double
@@ -140657,7 +140274,8 @@ components:
comments:
type: string
config_template:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/ConfigTemplateRequest'
nullable: true
local_context_data:
nullable: true
@@ -140700,6 +140318,7 @@ components:
additionalProperties: {}
required:
- name
+ - parent
- slug
WritableWirelessLANRequest:
type: object
@@ -140713,7 +140332,8 @@ components:
type: string
maxLength: 200
group:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/WirelessLANGroupRequest'
nullable: true
status:
enum:
@@ -140731,10 +140351,12 @@ components:
* `deprecated` - Deprecated'
x-spec-enum-id: 412ebdca597f609e
vlan:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/VLANRequest'
nullable: true
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
auth_type:
enum:
@@ -140787,9 +140409,9 @@ components:
description: Adds support for custom fields and tags.
properties:
interface_a:
- type: integer
+ $ref: '#/components/schemas/InterfaceRequest'
interface_b:
- type: integer
+ $ref: '#/components/schemas/InterfaceRequest'
ssid:
type: string
maxLength: 32
@@ -140806,7 +140428,8 @@ components:
* `decommissioning` - Decommissioning'
x-spec-enum-id: fbc2f302c08be50d
tenant:
- type: integer
+ allOf:
+ - $ref: '#/components/schemas/TenantRequest'
nullable: true
auth_type:
enum:
@@ -140858,35 +140481,6 @@ components:
required:
- interface_a
- interface_b
- NestedASN:
- type: object
- description: "Represents an object related through a ForeignKey field. On write,
- it accepts a primary key (PK) value or a\n dictionary of attributes
- which can be used to uniquely identify the related object. This class should
- be\n 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
- asn:
- type: integer
- maximum: 4294967295
- minimum: 1
- format: int64
- description: 16- or 32-bit autonomous system number
- required:
- - asn
- - display
- - id
- - url
securitySchemes:
cookieAuth:
type: apiKey
diff --git a/api_circuits.go b/api_circuits.go
index 8f4cc2c558..7e493535bb 100644
--- a/api_circuits.go
+++ b/api_circuits.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -388,13 +388,13 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiC
}
type ApiCircuitsCircuitTerminationsCreateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- writableCircuitTerminationRequest *WritableCircuitTerminationRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ circuitTerminationRequest *CircuitTerminationRequest
}
-func (r ApiCircuitsCircuitTerminationsCreateRequest) WritableCircuitTerminationRequest(writableCircuitTerminationRequest WritableCircuitTerminationRequest) ApiCircuitsCircuitTerminationsCreateRequest {
- r.writableCircuitTerminationRequest = &writableCircuitTerminationRequest
+func (r ApiCircuitsCircuitTerminationsCreateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsCreateRequest {
+ r.circuitTerminationRequest = &circuitTerminationRequest
return r
}
@@ -438,8 +438,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircu
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableCircuitTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("writableCircuitTerminationRequest is required and must be specified")
+ if r.circuitTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -460,7 +460,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircu
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableCircuitTerminationRequest
+ localVarPostBody = r.circuitTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -621,8 +621,10 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCirc
type ApiCircuitsCircuitTerminationsListRequest struct {
ctx context.Context
ApiService *CircuitsAPIService
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
circuitId *[]int32
circuitIdN *[]int32
@@ -660,6 +662,7 @@ type ApiCircuitsCircuitTerminationsListRequest struct {
lastUpdatedLte *[]time.Time
lastUpdatedN *[]time.Time
limit *int32
+ markConnected *bool
modifiedByRequest *string
occupied *bool
offset *int32
@@ -671,6 +674,21 @@ type ApiCircuitsCircuitTerminationsListRequest struct {
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
@@ -680,8 +698,8 @@ type ApiCircuitsCircuitTerminationsListRequest struct {
siteIdN *[]*int32
tag *[]string
tagN *[]string
- termSide *string
- termSideN *string
+ termSide *Termination
+ termSideN *Termination
updatedByRequest *string
upstreamSpeed *[]int32
upstreamSpeedEmpty *bool
@@ -703,16 +721,30 @@ type ApiCircuitsCircuitTerminationsListRequest struct {
xconnectIdNisw *[]string
}
-func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd string) ApiCircuitsCircuitTerminationsListRequest {
+// * `A` - A * `B` - B
+func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiCircuitsCircuitTerminationsListRequest) CableEndN(cableEndN string) ApiCircuitsCircuitTerminationsListRequest {
+// * `A` - A * `B` - B
+func (r ApiCircuitsCircuitTerminationsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest {
r.cableEndN = &cableEndN
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
@@ -901,6 +933,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) Limit(limit int32) ApiCircuit
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
@@ -958,6 +995,85 @@ func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedN(portSpeedN []int32
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
@@ -1010,12 +1126,14 @@ func (r ApiCircuitsCircuitTerminationsListRequest) TagN(tagN []string) ApiCircui
return r
}
-func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide string) ApiCircuitsCircuitTerminationsListRequest {
+// * `A` - A * `Z` - Z
+func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide Termination) ApiCircuitsCircuitTerminationsListRequest {
r.termSide = &termSide
return r
}
-func (r ApiCircuitsCircuitTerminationsListRequest) TermSideN(termSideN string) ApiCircuitsCircuitTerminationsListRequest {
+// * `A` - A * `Z` - Z
+func (r ApiCircuitsCircuitTerminationsListRequest) TermSideN(termSideN Termination) ApiCircuitsCircuitTerminationsListRequest {
r.termSideN = &termSideN
return r
}
@@ -1162,6 +1280,28 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
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, "")
}
@@ -1529,6 +1669,9 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
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, "")
}
@@ -1610,6 +1753,163 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info", t, "multi")
+ }
+ }
+ if r.ppInfoEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__empty", r.ppInfoEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ic", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ie", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__iew", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__isw", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nic", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nie", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__niew", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nisw", t, "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(), "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")
+ }
+ }
if r.providerNetworkId != nil {
t := *r.providerNetworkId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -1961,14 +2261,14 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit
}
type ApiCircuitsCircuitTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- patchedWritableCircuitTerminationRequest *PatchedWritableCircuitTerminationRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ patchedCircuitTerminationRequest *PatchedCircuitTerminationRequest
}
-func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest PatchedWritableCircuitTerminationRequest) ApiCircuitsCircuitTerminationsPartialUpdateRequest {
- r.patchedWritableCircuitTerminationRequest = &patchedWritableCircuitTerminationRequest
+func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest PatchedCircuitTerminationRequest) ApiCircuitsCircuitTerminationsPartialUpdateRequest {
+ r.patchedCircuitTerminationRequest = &patchedCircuitTerminationRequest
return r
}
@@ -2034,7 +2334,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r A
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableCircuitTerminationRequest
+ localVarPostBody = r.patchedCircuitTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -2323,14 +2623,14 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCir
}
type ApiCircuitsCircuitTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- writableCircuitTerminationRequest *WritableCircuitTerminationRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ circuitTerminationRequest *CircuitTerminationRequest
}
-func (r ApiCircuitsCircuitTerminationsUpdateRequest) WritableCircuitTerminationRequest(writableCircuitTerminationRequest WritableCircuitTerminationRequest) ApiCircuitsCircuitTerminationsUpdateRequest {
- r.writableCircuitTerminationRequest = &writableCircuitTerminationRequest
+func (r ApiCircuitsCircuitTerminationsUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsUpdateRequest {
+ r.circuitTerminationRequest = &circuitTerminationRequest
return r
}
@@ -2377,8 +2677,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableCircuitTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("writableCircuitTerminationRequest is required and must be specified")
+ if r.circuitTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -2399,7 +2699,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableCircuitTerminationRequest
+ localVarPostBody = r.circuitTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5365,6 +5665,8 @@ type ApiCircuitsCircuitsListRequest struct {
ordering *string
provider *[]string
providerN *[]string
+ providerAccount *[]string
+ providerAccountN *[]string
providerAccountId *[]int32
providerAccountIdN *[]int32
providerId *[]int32
@@ -5396,6 +5698,8 @@ type ApiCircuitsCircuitsListRequest struct {
tenantGroupIdN *[]int32
tenantId *[]*int32
tenantIdN *[]*int32
+ terminationAId *[]*int32
+ terminationAIdN *[]*int32
terminationDate *[]string
terminationDateEmpty *bool
terminationDateGt *[]string
@@ -5403,6 +5707,8 @@ type ApiCircuitsCircuitsListRequest struct {
terminationDateLt *[]string
terminationDateLte *[]string
terminationDateN *[]string
+ terminationZId *[]*int32
+ terminationZIdN *[]*int32
type_ *[]string
typeN *[]string
typeId *[]int32
@@ -5771,6 +6077,18 @@ func (r ApiCircuitsCircuitsListRequest) ProviderN(providerN []string) ApiCircuit
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
@@ -5953,6 +6271,18 @@ func (r ApiCircuitsCircuitsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuit
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
@@ -5988,6 +6318,18 @@ func (r ApiCircuitsCircuitsListRequest) TerminationDateN(terminationDateN []stri
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_
@@ -6748,6 +7090,28 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", t, "multi")
+ }
+ }
if r.providerAccountId != nil {
t := *r.providerAccountId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -7081,6 +7445,28 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id__n", t, "multi")
+ }
+ }
if r.terminationDate != nil {
t := *r.terminationDate
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -7150,6 +7536,28 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi
parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id__n", t, "multi")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8002,13 +8410,13 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCirc
}
type ApiCircuitsProviderAccountsCreateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- writableProviderAccountRequest *WritableProviderAccountRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ providerAccountRequest *ProviderAccountRequest
}
-func (r ApiCircuitsProviderAccountsCreateRequest) WritableProviderAccountRequest(writableProviderAccountRequest WritableProviderAccountRequest) ApiCircuitsProviderAccountsCreateRequest {
- r.writableProviderAccountRequest = &writableProviderAccountRequest
+func (r ApiCircuitsProviderAccountsCreateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsCreateRequest {
+ r.providerAccountRequest = &providerAccountRequest
return r
}
@@ -8052,8 +8460,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuits
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderAccountRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderAccountRequest 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
@@ -8074,7 +8482,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuits
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderAccountRequest
+ localVarPostBody = r.providerAccountRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9406,14 +9814,14 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr
}
type ApiCircuitsProviderAccountsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- patchedWritableProviderAccountRequest *PatchedWritableProviderAccountRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ patchedProviderAccountRequest *PatchedProviderAccountRequest
}
-func (r ApiCircuitsProviderAccountsPartialUpdateRequest) PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest PatchedWritableProviderAccountRequest) ApiCircuitsProviderAccountsPartialUpdateRequest {
- r.patchedWritableProviderAccountRequest = &patchedWritableProviderAccountRequest
+func (r ApiCircuitsProviderAccountsPartialUpdateRequest) PatchedProviderAccountRequest(patchedProviderAccountRequest PatchedProviderAccountRequest) ApiCircuitsProviderAccountsPartialUpdateRequest {
+ r.patchedProviderAccountRequest = &patchedProviderAccountRequest
return r
}
@@ -9479,7 +9887,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableProviderAccountRequest
+ localVarPostBody = r.patchedProviderAccountRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9650,14 +10058,14 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircui
}
type ApiCircuitsProviderAccountsUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- writableProviderAccountRequest *WritableProviderAccountRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ providerAccountRequest *ProviderAccountRequest
}
-func (r ApiCircuitsProviderAccountsUpdateRequest) WritableProviderAccountRequest(writableProviderAccountRequest WritableProviderAccountRequest) ApiCircuitsProviderAccountsUpdateRequest {
- r.writableProviderAccountRequest = &writableProviderAccountRequest
+func (r ApiCircuitsProviderAccountsUpdateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsUpdateRequest {
+ r.providerAccountRequest = &providerAccountRequest
return r
}
@@ -9704,8 +10112,8 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderAccountRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderAccountRequest 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
@@ -9726,7 +10134,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderAccountRequest
+ localVarPostBody = r.providerAccountRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -10142,13 +10550,13 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCirc
}
type ApiCircuitsProviderNetworksCreateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- writableProviderNetworkRequest *WritableProviderNetworkRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ providerNetworkRequest *ProviderNetworkRequest
}
-func (r ApiCircuitsProviderNetworksCreateRequest) WritableProviderNetworkRequest(writableProviderNetworkRequest WritableProviderNetworkRequest) ApiCircuitsProviderNetworksCreateRequest {
- r.writableProviderNetworkRequest = &writableProviderNetworkRequest
+func (r ApiCircuitsProviderNetworksCreateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksCreateRequest {
+ r.providerNetworkRequest = &providerNetworkRequest
return r
}
@@ -10192,8 +10600,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuits
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderNetworkRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderNetworkRequest 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
@@ -10214,7 +10622,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuits
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderNetworkRequest
+ localVarPostBody = r.providerNetworkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11546,14 +11954,14 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr
}
type ApiCircuitsProviderNetworksPartialUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- patchedWritableProviderNetworkRequest *PatchedWritableProviderNetworkRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ patchedProviderNetworkRequest *PatchedProviderNetworkRequest
}
-func (r ApiCircuitsProviderNetworksPartialUpdateRequest) PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest PatchedWritableProviderNetworkRequest) ApiCircuitsProviderNetworksPartialUpdateRequest {
- r.patchedWritableProviderNetworkRequest = &patchedWritableProviderNetworkRequest
+func (r ApiCircuitsProviderNetworksPartialUpdateRequest) PatchedProviderNetworkRequest(patchedProviderNetworkRequest PatchedProviderNetworkRequest) ApiCircuitsProviderNetworksPartialUpdateRequest {
+ r.patchedProviderNetworkRequest = &patchedProviderNetworkRequest
return r
}
@@ -11619,7 +12027,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiC
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableProviderNetworkRequest
+ localVarPostBody = r.patchedProviderNetworkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11790,14 +12198,14 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircui
}
type ApiCircuitsProviderNetworksUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- writableProviderNetworkRequest *WritableProviderNetworkRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ providerNetworkRequest *ProviderNetworkRequest
}
-func (r ApiCircuitsProviderNetworksUpdateRequest) WritableProviderNetworkRequest(writableProviderNetworkRequest WritableProviderNetworkRequest) ApiCircuitsProviderNetworksUpdateRequest {
- r.writableProviderNetworkRequest = &writableProviderNetworkRequest
+func (r ApiCircuitsProviderNetworksUpdateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksUpdateRequest {
+ r.providerNetworkRequest = &providerNetworkRequest
return r
}
@@ -11844,8 +12252,8 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderNetworkRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderNetworkRequest 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
@@ -11866,7 +12274,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderNetworkRequest
+ localVarPostBody = r.providerNetworkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -12282,13 +12690,13 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsPro
}
type ApiCircuitsProvidersCreateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- writableProviderRequest *WritableProviderRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ providerRequest *ProviderRequest
}
-func (r ApiCircuitsProvidersCreateRequest) WritableProviderRequest(writableProviderRequest WritableProviderRequest) ApiCircuitsProvidersCreateRequest {
- r.writableProviderRequest = &writableProviderRequest
+func (r ApiCircuitsProvidersCreateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersCreateRequest {
+ r.providerRequest = &providerRequest
return r
}
@@ -12332,8 +12740,8 @@ func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderRequest 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
@@ -12354,7 +12762,7 @@ func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderRequest
+ localVarPostBody = r.providerRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -14010,14 +14418,14 @@ func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProviders
}
type ApiCircuitsProvidersPartialUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- patchedWritableProviderRequest *PatchedWritableProviderRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ patchedProviderRequest *PatchedProviderRequest
}
-func (r ApiCircuitsProvidersPartialUpdateRequest) PatchedWritableProviderRequest(patchedWritableProviderRequest PatchedWritableProviderRequest) ApiCircuitsProvidersPartialUpdateRequest {
- r.patchedWritableProviderRequest = &patchedWritableProviderRequest
+func (r ApiCircuitsProvidersPartialUpdateRequest) PatchedProviderRequest(patchedProviderRequest PatchedProviderRequest) ApiCircuitsProvidersPartialUpdateRequest {
+ r.patchedProviderRequest = &patchedProviderRequest
return r
}
@@ -14083,7 +14491,7 @@ func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuits
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableProviderRequest
+ localVarPostBody = r.patchedProviderRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -14254,14 +14662,14 @@ func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvi
}
type ApiCircuitsProvidersUpdateRequest struct {
- ctx context.Context
- ApiService *CircuitsAPIService
- id int32
- writableProviderRequest *WritableProviderRequest
+ ctx context.Context
+ ApiService *CircuitsAPIService
+ id int32
+ providerRequest *ProviderRequest
}
-func (r ApiCircuitsProvidersUpdateRequest) WritableProviderRequest(writableProviderRequest WritableProviderRequest) ApiCircuitsProvidersUpdateRequest {
- r.writableProviderRequest = &writableProviderRequest
+func (r ApiCircuitsProvidersUpdateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersUpdateRequest {
+ r.providerRequest = &providerRequest
return r
}
@@ -14308,8 +14716,8 @@ func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvide
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableProviderRequest == nil {
- return localVarReturnValue, nil, reportError("writableProviderRequest 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
@@ -14330,7 +14738,7 @@ func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvide
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableProviderRequest
+ localVarPostBody = r.providerRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
diff --git a/api_core.go b/api_core.go
index b64177a728..73022d4199 100644
--- a/api_core.go
+++ b/api_core.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -1836,6 +1836,13 @@ type ApiCoreDataSourcesListRequest struct {
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
@@ -1859,6 +1866,17 @@ type ApiCoreDataSourcesListRequest struct {
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
@@ -2003,6 +2021,41 @@ func (r ApiCoreDataSourcesListRequest) IdN(idN []int32) ApiCoreDataSourcesListRe
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
@@ -2122,6 +2175,61 @@ func (r ApiCoreDataSourcesListRequest) Q(q string) ApiCoreDataSourcesListRequest
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
@@ -2463,6 +2571,75 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lte", t, "multi")
+ }
+ }
+ 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, "last_synced__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2668,6 +2845,119 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
+ 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, "source_url", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url", t, "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.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, "source_url__ie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ie", t, "multi")
+ }
+ }
+ 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, "source_url__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__iew", t, "multi")
+ }
+ }
+ 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, "source_url__isw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__isw", t, "multi")
+ }
+ }
+ 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, "source_url__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__n", t, "multi")
+ }
+ }
+ 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, "source_url__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nic", t, "multi")
+ }
+ }
+ 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, "source_url__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nie", t, "multi")
+ }
+ }
+ 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, "source_url__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__niew", t, "multi")
+ }
+ }
+ 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, "source_url__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nisw", t, "multi")
+ }
+ }
if r.status != nil {
t := *r.status
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -3330,6 +3620,7 @@ type ApiCoreJobsListRequest struct {
intervalLt *[]int32
intervalLte *[]int32
intervalN *[]int32
+ jobId *string
limit *int32
name *[]string
nameEmpty *bool
@@ -3466,6 +3757,11 @@ func (r ApiCoreJobsListRequest) IntervalN(intervalN []int32) ApiCoreJobsListRequ
return r
}
+func (r ApiCoreJobsListRequest) JobId(jobId string) ApiCoreJobsListRequest {
+ r.jobId = &jobId
+ return r
+}
+
// Number of results to return per page.
func (r ApiCoreJobsListRequest) Limit(limit int32) ApiCoreJobsListRequest {
r.limit = &limit
@@ -3837,6 +4133,9 @@ func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat
parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", t, "multi")
}
}
+ if r.jobId != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "job_id", r.jobId, "")
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
diff --git a/api_dcim.go b/api_dcim.go
index 72f4bd25f0..0427ae7cc5 100644
--- a/api_dcim.go
+++ b/api_dcim.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -623,8 +623,16 @@ type ApiDcimCableTerminationsListRequest struct {
ApiService *DcimAPIService
cable *int32
cableN *int32
- cableEnd *string
- cableEndN *string
+ 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
@@ -632,7 +640,15 @@ type ApiDcimCableTerminationsListRequest struct {
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
@@ -644,6 +660,7 @@ type ApiDcimCableTerminationsListRequest struct {
terminationIdN *[]int32
terminationType *string
terminationTypeN *string
+ updatedByRequest *string
}
func (r ApiDcimCableTerminationsListRequest) Cable(cable int32) ApiDcimCableTerminationsListRequest {
@@ -656,16 +673,58 @@ func (r ApiDcimCableTerminationsListRequest) CableN(cableN int32) ApiDcimCableTe
return r
}
-func (r ApiDcimCableTerminationsListRequest) CableEnd(cableEnd string) ApiDcimCableTerminationsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimCableTerminationsListRequest) CableEnd(cableEnd End) ApiDcimCableTerminationsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimCableTerminationsListRequest) CableEndN(cableEndN string) ApiDcimCableTerminationsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimCableTerminationsListRequest) CableEndN(cableEndN End) ApiDcimCableTerminationsListRequest {
r.cableEndN = &cableEndN
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
@@ -701,12 +760,52 @@ func (r ApiDcimCableTerminationsListRequest) IdN(idN []int32) ApiDcimCableTermin
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
@@ -764,6 +863,11 @@ func (r ApiDcimCableTerminationsListRequest) TerminationTypeN(terminationTypeN s
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)
}
@@ -817,6 +921,86 @@ func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat
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 {
@@ -886,9 +1070,89 @@ func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat
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, "")
}
@@ -970,6 +1234,9 @@ func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat
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{}
@@ -2065,8 +2332,8 @@ type ApiDcimCablesListRequest struct {
lengthLt *[]float64
lengthLte *[]float64
lengthN *[]float64
- lengthUnit *string
- lengthUnitN *string
+ lengthUnit *DcimCablesListLengthUnitParameter
+ lengthUnitN *DcimCablesListLengthUnitParameter
limit *int32
location *[]string
locationId *[]int32
@@ -2406,12 +2673,14 @@ func (r ApiDcimCablesListRequest) LengthN(lengthN []float64) ApiDcimCablesListRe
return r
}
-func (r ApiDcimCablesListRequest) LengthUnit(lengthUnit string) ApiDcimCablesListRequest {
+// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
+func (r ApiDcimCablesListRequest) LengthUnit(lengthUnit DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest {
r.lengthUnit = &lengthUnit
return r
}
-func (r ApiDcimCablesListRequest) LengthUnitN(lengthUnitN string) ApiDcimCablesListRequest {
+// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches
+func (r ApiDcimCablesListRequest) LengthUnitN(lengthUnitN DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest {
r.lengthUnitN = &lengthUnitN
return r
}
@@ -4795,6 +5064,8 @@ type ApiDcimConsolePortTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -4804,6 +5075,17 @@ type ApiDcimConsolePortTemplatesListRequest struct {
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
@@ -4813,6 +5095,8 @@ type ApiDcimConsolePortTemplatesListRequest struct {
lastUpdatedN *[]time.Time
limit *int32
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -4829,8 +5113,8 @@ type ApiDcimConsolePortTemplatesListRequest struct {
offset *int32
ordering *string
q *string
- type_ *string
- typeN *string
+ type_ *DcimConsolePortTemplatesListTypeParameter
+ typeN *DcimConsolePortTemplatesListTypeParameter
updatedByRequest *string
}
@@ -4929,6 +5213,18 @@ func (r ApiDcimConsolePortTemplatesListRequest) 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
+}
+
// Device type (ID)
func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -4976,6 +5272,61 @@ func (r ApiDcimConsolePortTemplatesListRequest) IdN(idN []int32) ApiDcimConsoleP
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
@@ -5022,6 +5373,18 @@ func (r ApiDcimConsolePortTemplatesListRequest) ModifiedByRequest(modifiedByRequ
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
+}
+
// Module type (ID)
func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest {
r.moduletypeId = &moduletypeId
@@ -5107,12 +5470,14 @@ func (r ApiDcimConsolePortTemplatesListRequest) Q(q string) ApiDcimConsolePortTe
return r
}
-func (r ApiDcimConsolePortTemplatesListRequest) Type_(type_ string) ApiDcimConsolePortTemplatesListRequest {
+// * `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) TypeN(typeN string) ApiDcimConsolePortTemplatesListRequest {
+// * `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 {
r.typeN = &typeN
return r
}
@@ -5356,6 +5721,28 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor
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 {
@@ -5447,6 +5834,119 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5530,6 +6030,28 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor
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 {
@@ -6721,8 +7243,10 @@ func (a *DcimAPIService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDes
type ApiDcimConsolePortsListRequest struct {
ctx context.Context
ApiService *DcimAPIService
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
connected *bool
created *[]time.Time
@@ -6748,10 +7272,6 @@ type ApiDcimConsolePortsListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -6786,6 +7306,7 @@ type ApiDcimConsolePortsListRequest struct {
locationN *[]string
locationId *[]int32
locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
moduleId *[]*int32
moduleIdN *[]*int32
@@ -6824,6 +7345,8 @@ type ApiDcimConsolePortsListRequest struct {
siteGroupIdN *[]int32
siteId *[]int32
siteIdN *[]int32
+ speed *DcimConsolePortsListSpeedParameter
+ speedN *DcimConsolePortsListSpeedParameter
tag *[]string
tagN *[]string
type_ *[]string
@@ -6835,16 +7358,30 @@ type ApiDcimConsolePortsListRequest struct {
virtualChassisIdN *[]int32
}
-func (r ApiDcimConsolePortsListRequest) CableEnd(cableEnd string) ApiDcimConsolePortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimConsolePortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimConsolePortsListRequest) CableEndN(cableEndN string) ApiDcimConsolePortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimConsolePortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest {
r.cableEndN = &cableEndN
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
@@ -6974,30 +7511,6 @@ func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimCons
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
-}
-
// Device type (model)
func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest {
r.deviceType = &deviceType
@@ -7177,6 +7690,11 @@ func (r ApiDcimConsolePortsListRequest) LocationIdN(locationIdN []int32) ApiDcim
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
@@ -7392,6 +7910,18 @@ func (r ApiDcimConsolePortsListRequest) SiteIdN(siteIdN []int32) ApiDcimConsoleP
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
+}
+
+// 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
+ return r
+}
+
func (r ApiDcimConsolePortsListRequest) Tag(tag []string) ApiDcimConsolePortsListRequest {
r.tag = &tag
return r
@@ -7490,6 +8020,28 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
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, "")
}
@@ -7733,50 +8285,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8127,6 +8635,9 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi")
}
}
+ if r.markConnected != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "")
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -8497,6 +9008,12 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "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 reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -9763,6 +10280,8 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -9772,6 +10291,17 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct {
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
@@ -9781,6 +10311,8 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct {
lastUpdatedN *[]time.Time
limit *int32
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -9797,8 +10329,8 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct {
offset *int32
ordering *string
q *string
- type_ *string
- typeN *string
+ type_ *DcimConsolePortTemplatesListTypeParameter
+ typeN *DcimConsolePortTemplatesListTypeParameter
updatedByRequest *string
}
@@ -9897,6 +10429,18 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNisw(descriptio
return r
}
+// Device type (ID)
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.deviceTypeId = &deviceTypeId
+ return r
+}
+
+// Device type (ID)
+func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.deviceTypeIdN = &deviceTypeIdN
+ return r
+}
+
// Device type (ID)
func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -9944,6 +10488,61 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) IdN(idN []int32) ApiDcimCo
return r
}
+func (r ApiDcimConsoleServerPortTemplatesListRequest) Label(label []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsoleServerPortTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -9990,6 +10589,18 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) ModifiedByRequest(modified
return r
}
+// Module type (ID)
+func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.moduleTypeId = &moduleTypeId
+ return r
+}
+
+// Module type (ID)
+func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
+ r.moduleTypeIdN = &moduleTypeIdN
+ return r
+}
+
// Module type (ID)
func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest {
r.moduletypeId = &moduletypeId
@@ -10075,12 +10686,14 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) Q(q string) ApiDcimConsole
return r
}
-func (r ApiDcimConsoleServerPortTemplatesListRequest) Type_(type_ string) ApiDcimConsoleServerPortTemplatesListRequest {
+// * `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
}
-func (r ApiDcimConsoleServerPortTemplatesListRequest) TypeN(typeN string) ApiDcimConsoleServerPortTemplatesListRequest {
+// * `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 {
r.typeN = &typeN
return r
}
@@ -10324,6 +10937,28 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons
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 {
@@ -10415,6 +11050,119 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -10498,6 +11246,28 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons
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 {
@@ -11689,8 +12459,10 @@ func (a *DcimAPIService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleSe
type ApiDcimConsoleServerPortsListRequest struct {
ctx context.Context
ApiService *DcimAPIService
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
connected *bool
created *[]time.Time
@@ -11716,10 +12488,6 @@ type ApiDcimConsoleServerPortsListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -11754,6 +12522,7 @@ type ApiDcimConsoleServerPortsListRequest struct {
locationN *[]string
locationId *[]int32
locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
moduleId *[]*int32
moduleIdN *[]*int32
@@ -11792,6 +12561,8 @@ type ApiDcimConsoleServerPortsListRequest struct {
siteGroupIdN *[]int32
siteId *[]int32
siteIdN *[]int32
+ speed *DcimConsolePortsListSpeedParameter
+ speedN *DcimConsolePortsListSpeedParameter
tag *[]string
tagN *[]string
type_ *[]string
@@ -11803,16 +12574,30 @@ type ApiDcimConsoleServerPortsListRequest struct {
virtualChassisIdN *[]int32
}
-func (r ApiDcimConsoleServerPortsListRequest) CableEnd(cableEnd string) ApiDcimConsoleServerPortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimConsoleServerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsoleServerPortsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimConsoleServerPortsListRequest) CableEndN(cableEndN string) ApiDcimConsoleServerPortsListRequest {
+// * `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
@@ -11942,30 +12727,6 @@ func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDc
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
-}
-
// Device type (model)
func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest {
r.deviceType = &deviceType
@@ -12145,6 +12906,11 @@ func (r ApiDcimConsoleServerPortsListRequest) LocationIdN(locationIdN []int32) A
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
@@ -12360,6 +13126,18 @@ func (r ApiDcimConsoleServerPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimCo
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
+}
+
+// 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
+ return r
+}
+
func (r ApiDcimConsoleServerPortsListRequest) Tag(tag []string) ApiDcimConsoleServerPortsListRequest {
r.tag = &tag
return r
@@ -12458,6 +13236,28 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
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, "")
}
@@ -12701,50 +13501,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -13095,6 +13851,9 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi")
}
}
+ if r.markConnected != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "")
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -13465,6 +14224,12 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe
parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "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 reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -14479,13 +15244,13 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDevice
}
type ApiDcimDeviceBayTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableDeviceBayTemplateRequest *WritableDeviceBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ deviceBayTemplateRequest *DeviceBayTemplateRequest
}
-func (r ApiDcimDeviceBayTemplatesCreateRequest) WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest WritableDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesCreateRequest {
- r.writableDeviceBayTemplateRequest = &writableDeviceBayTemplateRequest
+func (r ApiDcimDeviceBayTemplatesCreateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesCreateRequest {
+ r.deviceBayTemplateRequest = &deviceBayTemplateRequest
return r
}
@@ -14529,8 +15294,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceBayTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceBayTemplateRequest 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
@@ -14551,7 +15316,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceBayTemplateRequest
+ localVarPostBody = r.deviceBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -14731,6 +15496,8 @@ type ApiDcimDeviceBayTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -14740,6 +15507,17 @@ type ApiDcimDeviceBayTemplatesListRequest struct {
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
@@ -14861,6 +15639,18 @@ func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNisw(descriptionNisw []
return r
}
+// Device type (ID)
+func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDeviceBayTemplatesListRequest {
+ r.deviceTypeId = &deviceTypeId
+ return r
+}
+
+// Device type (ID)
+func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest {
+ r.deviceTypeIdN = &deviceTypeIdN
+ return r
+}
+
// Device type (ID)
func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -14908,6 +15698,61 @@ func (r ApiDcimDeviceBayTemplatesListRequest) IdN(idN []int32) ApiDcimDeviceBayT
return r
}
+func (r ApiDcimDeviceBayTemplatesListRequest) Label(label []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelIc(labelIc []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelIe(labelIe []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelIew(labelIew []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelN(labelN []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelNic(labelNic []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelNie(labelNie []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimDeviceBayTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimDeviceBayTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceBayTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -15266,6 +16111,28 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem
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 {
@@ -15357,6 +16224,119 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15634,14 +16614,14 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem
}
type ApiDcimDeviceBayTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableDeviceBayTemplateRequest *PatchedWritableDeviceBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedDeviceBayTemplateRequest *PatchedDeviceBayTemplateRequest
}
-func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest PatchedWritableDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesPartialUpdateRequest {
- r.patchedWritableDeviceBayTemplateRequest = &patchedWritableDeviceBayTemplateRequest
+func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) PatchedDeviceBayTemplateRequest(patchedDeviceBayTemplateRequest PatchedDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesPartialUpdateRequest {
+ r.patchedDeviceBayTemplateRequest = &patchedDeviceBayTemplateRequest
return r
}
@@ -15707,7 +16687,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDev
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableDeviceBayTemplateRequest
+ localVarPostBody = r.patchedDeviceBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -15878,14 +16858,14 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBa
}
type ApiDcimDeviceBayTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableDeviceBayTemplateRequest *WritableDeviceBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ deviceBayTemplateRequest *DeviceBayTemplateRequest
}
-func (r ApiDcimDeviceBayTemplatesUpdateRequest) WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest WritableDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesUpdateRequest {
- r.writableDeviceBayTemplateRequest = &writableDeviceBayTemplateRequest
+func (r ApiDcimDeviceBayTemplatesUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesUpdateRequest {
+ r.deviceBayTemplateRequest = &deviceBayTemplateRequest
return r
}
@@ -15932,8 +16912,8 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceBayTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceBayTemplateRequest 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
@@ -15954,7 +16934,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceBayTemplateRequest
+ localVarPostBody = r.deviceBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -16370,13 +17350,13 @@ func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulk
}
type ApiDcimDeviceBaysCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableDeviceBayRequest *WritableDeviceBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ deviceBayRequest *DeviceBayRequest
}
-func (r ApiDcimDeviceBaysCreateRequest) WritableDeviceBayRequest(writableDeviceBayRequest WritableDeviceBayRequest) ApiDcimDeviceBaysCreateRequest {
- r.writableDeviceBayRequest = &writableDeviceBayRequest
+func (r ApiDcimDeviceBaysCreateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysCreateRequest {
+ r.deviceBayRequest = &deviceBayRequest
return r
}
@@ -16420,8 +17400,8 @@ func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceBayRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceBayRequest 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
@@ -16442,7 +17422,7 @@ func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceBayRequest
+ localVarPostBody = r.deviceBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -16601,111 +17581,111 @@ func (a *DcimAPIService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroy
}
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
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]int32
- regionN *[]int32
- regionId *[]int32
- regionIdN *[]int32
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- site *[]string
- siteN *[]string
- siteGroup *[]int32
- siteGroupN *[]int32
- siteGroupId *[]int32
- siteGroupIdN *[]int32
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ 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 {
@@ -16827,30 +17807,6 @@ func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDevice
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
-}
-
// Device type (model)
func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest {
r.deviceType = &deviceType
@@ -16910,6 +17866,30 @@ func (r ApiDcimDeviceBaysListRequest) IdN(idN []int32) ApiDcimDeviceBaysListRequ
return r
}
+// 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
@@ -17545,50 +18525,6 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -17702,6 +18638,50 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id__n", t, "multi")
+ }
+ }
if r.label != nil {
t := *r.label
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -18422,14 +19402,14 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques
}
type ApiDcimDeviceBaysPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableDeviceBayRequest *PatchedWritableDeviceBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedDeviceBayRequest *PatchedDeviceBayRequest
}
-func (r ApiDcimDeviceBaysPartialUpdateRequest) PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest PatchedWritableDeviceBayRequest) ApiDcimDeviceBaysPartialUpdateRequest {
- r.patchedWritableDeviceBayRequest = &patchedWritableDeviceBayRequest
+func (r ApiDcimDeviceBaysPartialUpdateRequest) PatchedDeviceBayRequest(patchedDeviceBayRequest PatchedDeviceBayRequest) ApiDcimDeviceBaysPartialUpdateRequest {
+ r.patchedDeviceBayRequest = &patchedDeviceBayRequest
return r
}
@@ -18495,7 +19475,7 @@ func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysP
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableDeviceBayRequest
+ localVarPostBody = r.patchedDeviceBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -18666,14 +19646,14 @@ func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrie
}
type ApiDcimDeviceBaysUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableDeviceBayRequest *WritableDeviceBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ deviceBayRequest *DeviceBayRequest
}
-func (r ApiDcimDeviceBaysUpdateRequest) WritableDeviceBayRequest(writableDeviceBayRequest WritableDeviceBayRequest) ApiDcimDeviceBaysUpdateRequest {
- r.writableDeviceBayRequest = &writableDeviceBayRequest
+func (r ApiDcimDeviceBaysUpdateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysUpdateRequest {
+ r.deviceBayRequest = &deviceBayRequest
return r
}
@@ -18720,8 +19700,8 @@ func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceBayRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceBayRequest 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
@@ -18742,7 +19722,7 @@ func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceBayRequest
+ localVarPostBody = r.deviceBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -19158,13 +20138,13 @@ func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu
}
type ApiDcimDeviceRolesCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableDeviceRoleRequest *WritableDeviceRoleRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ deviceRoleRequest *DeviceRoleRequest
}
-func (r ApiDcimDeviceRolesCreateRequest) WritableDeviceRoleRequest(writableDeviceRoleRequest WritableDeviceRoleRequest) ApiDcimDeviceRolesCreateRequest {
- r.writableDeviceRoleRequest = &writableDeviceRoleRequest
+func (r ApiDcimDeviceRolesCreateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesCreateRequest {
+ r.deviceRoleRequest = &deviceRoleRequest
return r
}
@@ -19208,8 +20188,8 @@ func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceRoleRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceRoleRequest 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
@@ -19230,7 +20210,7 @@ func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceRoleRequest
+ localVarPostBody = r.deviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -20714,14 +21694,14 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ
}
type ApiDcimDeviceRolesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableDeviceRoleRequest *PatchedWritableDeviceRoleRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedDeviceRoleRequest *PatchedDeviceRoleRequest
}
-func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest PatchedWritableDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest {
- r.patchedWritableDeviceRoleRequest = &patchedWritableDeviceRoleRequest
+func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedDeviceRoleRequest(patchedDeviceRoleRequest PatchedDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest {
+ r.patchedDeviceRoleRequest = &patchedDeviceRoleRequest
return r
}
@@ -20787,7 +21767,7 @@ func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableDeviceRoleRequest
+ localVarPostBody = r.patchedDeviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -20958,14 +21938,14 @@ func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetr
}
type ApiDcimDeviceRolesUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableDeviceRoleRequest *WritableDeviceRoleRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ deviceRoleRequest *DeviceRoleRequest
}
-func (r ApiDcimDeviceRolesUpdateRequest) WritableDeviceRoleRequest(writableDeviceRoleRequest WritableDeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest {
- r.writableDeviceRoleRequest = &writableDeviceRoleRequest
+func (r ApiDcimDeviceRolesUpdateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest {
+ r.deviceRoleRequest = &deviceRoleRequest
return r
}
@@ -21012,8 +21992,8 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableDeviceRoleRequest == nil {
- return localVarReturnValue, nil, reportError("writableDeviceRoleRequest 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
@@ -21034,7 +22014,7 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableDeviceRoleRequest
+ localVarPostBody = r.deviceRoleRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -21681,141 +22661,283 @@ func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestr
}
type ApiDcimDeviceTypesListRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- airflow *string
- airflowN *string
- 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
- 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
- deviceBays *bool
- excludeFromUtilization *bool
- hasFrontImage *bool
- hasRearImage *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaces *bool
- inventoryItems *bool
- isFullDepth *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelEmpty *bool
- modelIc *[]string
- modelIe *[]string
- modelIew *[]string
- modelIsw *[]string
- modelN *[]string
- modelNic *[]string
- modelNie *[]string
- modelNiew *[]string
- modelNisw *[]string
- modifiedByRequest *string
- moduleBays *bool
- offset *int32
- ordering *string
- partNumber *[]string
- partNumberEmpty *bool
- partNumberIc *[]string
- partNumberIe *[]string
- partNumberIew *[]string
- partNumberIsw *[]string
- partNumberN *[]string
- partNumberNic *[]string
- partNumberNie *[]string
- partNumberNiew *[]string
- partNumberNisw *[]string
- passThroughPorts *bool
- powerOutlets *bool
- powerPorts *bool
- q *string
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- subdeviceRole *string
- subdeviceRoleN *string
- tag *[]string
- tagN *[]string
- uHeight *[]float64
- uHeightEmpty *bool
- uHeightGt *[]float64
- uHeightGte *[]float64
- uHeightLt *[]float64
- uHeightLte *[]float64
- uHeightN *[]float64
- updatedByRequest *string
- weight *[]float64
- weightEmpty *bool
- weightGt *[]float64
- weightGte *[]float64
- weightLt *[]float64
- weightLte *[]float64
- weightN *[]float64
- weightUnit *string
- weightUnitN *string
-}
-
-func (r ApiDcimDeviceTypesListRequest) Airflow(airflow string) ApiDcimDeviceTypesListRequest {
+ 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
return r
}
-func (r ApiDcimDeviceTypesListRequest) AirflowN(airflowN string) ApiDcimDeviceTypesListRequest {
+// * `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
return r
}
+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
@@ -21941,6 +23063,41 @@ func (r ApiDcimDeviceTypesListRequest) DescriptionNisw(descriptionNisw []string)
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
@@ -21952,6 +23109,41 @@ func (r ApiDcimDeviceTypesListRequest) ExcludeFromUtilization(excludeFromUtiliza
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
@@ -21999,12 +23191,82 @@ func (r ApiDcimDeviceTypesListRequest) IdN(idN []int32) ApiDcimDeviceTypesListRe
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 ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGt(inventoryItemTemplateCountGt []int32) ApiDcimDeviceTypesListRequest {
+ r.inventoryItemTemplateCountGt = &inventoryItemTemplateCountGt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGte(inventoryItemTemplateCountGte []int32) ApiDcimDeviceTypesListRequest {
+ r.inventoryItemTemplateCountGte = &inventoryItemTemplateCountGte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLt(inventoryItemTemplateCountLt []int32) ApiDcimDeviceTypesListRequest {
+ r.inventoryItemTemplateCountLt = &inventoryItemTemplateCountLt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLte(inventoryItemTemplateCountLte []int32) ApiDcimDeviceTypesListRequest {
+ r.inventoryItemTemplateCountLte = &inventoryItemTemplateCountLte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountN(inventoryItemTemplateCountN []int32) ApiDcimDeviceTypesListRequest {
+ r.inventoryItemTemplateCountN = &inventoryItemTemplateCountN
+ return r
+}
+
// Has inventory items
func (r ApiDcimDeviceTypesListRequest) InventoryItems(inventoryItems bool) ApiDcimDeviceTypesListRequest {
r.inventoryItems = &inventoryItems
@@ -22141,6 +23403,41 @@ func (r ApiDcimDeviceTypesListRequest) ModifiedByRequest(modifiedByRequest strin
return r
}
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCount(moduleBayTemplateCount []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCount = &moduleBayTemplateCount
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountEmpty = &moduleBayTemplateCountEmpty
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGt(moduleBayTemplateCountGt []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountGt = &moduleBayTemplateCountGt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGte(moduleBayTemplateCountGte []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountGte = &moduleBayTemplateCountGte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLt(moduleBayTemplateCountLt []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountLt = &moduleBayTemplateCountLt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLte(moduleBayTemplateCountLte []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountLte = &moduleBayTemplateCountLte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountN(moduleBayTemplateCountN []int32) ApiDcimDeviceTypesListRequest {
+ r.moduleBayTemplateCountN = &moduleBayTemplateCountN
+ return r
+}
+
// Has module bays
func (r ApiDcimDeviceTypesListRequest) ModuleBays(moduleBays bool) ApiDcimDeviceTypesListRequest {
r.moduleBays = &moduleBays
@@ -22220,12 +23517,82 @@ func (r ApiDcimDeviceTypesListRequest) PassThroughPorts(passThroughPorts bool) A
return r
}
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCount(powerOutletTemplateCount []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCount = &powerOutletTemplateCount
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountEmpty = &powerOutletTemplateCountEmpty
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGt(powerOutletTemplateCountGt []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountGt = &powerOutletTemplateCountGt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGte(powerOutletTemplateCountGte []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountGte = &powerOutletTemplateCountGte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLt(powerOutletTemplateCountLt []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountLt = &powerOutletTemplateCountLt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLte(powerOutletTemplateCountLte []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountLte = &powerOutletTemplateCountLte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountN(powerOutletTemplateCountN []int32) ApiDcimDeviceTypesListRequest {
+ r.powerOutletTemplateCountN = &powerOutletTemplateCountN
+ return r
+}
+
// Has power outlets
func (r ApiDcimDeviceTypesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDeviceTypesListRequest {
r.powerOutlets = &powerOutlets
return r
}
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCount(powerPortTemplateCount []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCount = &powerPortTemplateCount
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountEmpty = &powerPortTemplateCountEmpty
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGt(powerPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountGt = &powerPortTemplateCountGt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGte(powerPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountGte = &powerPortTemplateCountGte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLt(powerPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountLt = &powerPortTemplateCountLt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLte(powerPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountLte = &powerPortTemplateCountLte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountN(powerPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest {
+ r.powerPortTemplateCountN = &powerPortTemplateCountN
+ return r
+}
+
// Has power ports
func (r ApiDcimDeviceTypesListRequest) PowerPorts(powerPorts bool) ApiDcimDeviceTypesListRequest {
r.powerPorts = &powerPorts
@@ -22238,6 +23605,41 @@ func (r ApiDcimDeviceTypesListRequest) Q(q string) ApiDcimDeviceTypesListRequest
return r
}
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCount(rearPortTemplateCount []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCount = &rearPortTemplateCount
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountEmpty(rearPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountEmpty = &rearPortTemplateCountEmpty
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGt(rearPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountGt = &rearPortTemplateCountGt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGte(rearPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountGte = &rearPortTemplateCountGte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLt(rearPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountLt = &rearPortTemplateCountLt
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLte(rearPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountLte = &rearPortTemplateCountLte
+ return r
+}
+
+func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountN(rearPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest {
+ r.rearPortTemplateCountN = &rearPortTemplateCountN
+ return r
+}
+
func (r ApiDcimDeviceTypesListRequest) Slug(slug []string) ApiDcimDeviceTypesListRequest {
r.slug = &slug
return r
@@ -22293,14 +23695,14 @@ func (r ApiDcimDeviceTypesListRequest) SlugNisw(slugNisw []string) ApiDcimDevice
return r
}
-// Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child.
-func (r ApiDcimDeviceTypesListRequest) SubdeviceRole(subdeviceRole string) ApiDcimDeviceTypesListRequest {
+// 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
}
-// Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child.
-func (r ApiDcimDeviceTypesListRequest) SubdeviceRoleN(subdeviceRoleN string) ApiDcimDeviceTypesListRequest {
+// 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
return r
}
@@ -22390,12 +23792,14 @@ func (r ApiDcimDeviceTypesListRequest) WeightN(weightN []float64) ApiDcimDeviceT
return r
}
-func (r ApiDcimDeviceTypesListRequest) WeightUnit(weightUnit string) ApiDcimDeviceTypesListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimDeviceTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest {
r.weightUnit = &weightUnit
return r
}
-func (r ApiDcimDeviceTypesListRequest) WeightUnitN(weightUnitN string) ApiDcimDeviceTypesListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimDeviceTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest {
r.weightUnitN = &weightUnitN
return r
}
@@ -22447,9 +23851,147 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
if r.airflowN != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count", t, "multi")
+ }
+ }
+ if r.consolePortTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__empty", r.consolePortTemplateCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__n", t, "multi")
+ }
+ }
if r.consolePorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count", t, "multi")
+ }
+ }
+ if r.consoleServerPortTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__empty", r.consoleServerPortTemplateCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__n", t, "multi")
+ }
+ }
if r.consoleServerPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "")
}
@@ -22690,12 +24232,150 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count", t, "multi")
+ }
+ }
+ if r.deviceBayTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__empty", r.deviceBayTemplateCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__n", t, "multi")
+ }
+ }
if r.deviceBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "")
}
if r.excludeFromUtilization != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_from_utilization", r.excludeFromUtilization, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count", t, "multi")
+ }
+ }
+ if r.frontPortTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__empty", r.frontPortTemplateCountEmpty, "")
+ }
+ 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, "front_port_template_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gt", t, "multi")
+ }
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gte", t, "multi")
+ }
+ }
+ 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, "front_port_template_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lt", t, "multi")
+ }
+ }
+ 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, "front_port_template_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lte", t, "multi")
+ }
+ }
+ 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, "front_port_template_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__n", t, "multi")
+ }
+ }
if r.hasFrontImage != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "has_front_image", r.hasFrontImage, "")
}
@@ -22771,9 +24451,147 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ 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, "interface_template_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count", t, "multi")
+ }
+ }
+ if r.interfaceTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__empty", r.interfaceTemplateCountEmpty, "")
+ }
+ 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, "interface_template_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gt", t, "multi")
+ }
+ }
+ 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, "interface_template_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gte", t, "multi")
+ }
+ }
+ 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, "interface_template_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lt", t, "multi")
+ }
+ }
+ 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, "interface_template_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lte", t, "multi")
+ }
+ }
+ 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, "interface_template_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__n", t, "multi")
+ }
+ }
if r.interfaces != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "")
}
+ 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, "inventory_item_template_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count", t, "multi")
+ }
+ }
+ if r.inventoryItemTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__empty", r.inventoryItemTemplateCountEmpty, "")
+ }
+ 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, "inventory_item_template_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gt", t, "multi")
+ }
+ }
+ 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, "inventory_item_template_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gte", t, "multi")
+ }
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lt", t, "multi")
+ }
+ }
+ 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, "inventory_item_template_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lte", t, "multi")
+ }
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__n", t, "multi")
+ }
+ }
if r.inventoryItems != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_items", r.inventoryItems, "")
}
@@ -23020,6 +24838,75 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count", t, "multi")
+ }
+ }
+ if r.moduleBayTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__empty", r.moduleBayTemplateCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__n", t, "multi")
+ }
+ }
if r.moduleBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "")
}
@@ -23145,15 +25032,222 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ
if r.passThroughPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count", t, "multi")
+ }
+ }
+ if r.powerOutletTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__empty", r.powerOutletTemplateCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lte", t, "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, "power_outlet_template_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__n", t, "multi")
+ }
+ }
if r.powerOutlets != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "")
}
+ 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, "power_port_template_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count", t, "multi")
+ }
+ }
+ if r.powerPortTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__empty", r.powerPortTemplateCountEmpty, "")
+ }
+ 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, "power_port_template_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gt", t, "multi")
+ }
+ }
+ 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, "power_port_template_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gte", t, "multi")
+ }
+ }
+ 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, "power_port_template_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lt", t, "multi")
+ }
+ }
+ 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, "power_port_template_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lte", t, "multi")
+ }
+ }
+ 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, "power_port_template_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__n", t, "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 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count", t, "multi")
+ }
+ }
+ if r.rearPortTemplateCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__empty", r.rearPortTemplateCountEmpty, "")
+ }
+ 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, "rear_port_template_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gt", t, "multi")
+ }
+ }
+ 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, "rear_port_template_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gte", t, "multi")
+ }
+ }
+ 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, "rear_port_template_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lt", t, "multi")
+ }
+ }
+ 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, "rear_port_template_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lte", t, "multi")
+ }
+ }
+ 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, "rear_port_template_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__n", t, "multi")
+ }
+ }
if r.slug != nil {
t := *r.slug
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -24478,216 +26572,291 @@ func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques
}
type ApiDcimDevicesListRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- airflow *string
- airflowN *string
- assetTag *[]string
- assetTagEmpty *bool
- assetTagIc *[]string
- assetTagIe *[]string
- assetTagIew *[]string
- assetTagIsw *[]string
- assetTagN *[]string
- assetTagNic *[]string
- assetTagNie *[]string
- assetTagNiew *[]string
- assetTagNisw *[]string
- clusterId *[]*int32
- clusterIdN *[]*int32
- configTemplateId *[]*int32
- configTemplateIdN *[]*int32
- consolePorts *bool
- consoleServerPorts *bool
- contact *[]int32
- contactN *[]int32
- contactGroup *[]int32
- contactGroupN *[]int32
- contactRole *[]int32
- contactRoleN *[]int32
- created *[]time.Time
- 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
- deviceBays *bool
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- face *string
- faceN *string
- hasOobIp *bool
- hasPrimaryIp *bool
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- interfaces *bool
- isFullDepth *bool
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- latitude *[]float64
- latitudeEmpty *bool
- latitudeGt *[]float64
- latitudeGte *[]float64
- latitudeLt *[]float64
- latitudeLte *[]float64
- latitudeN *[]float64
- limit *int32
- localContextData *bool
- locationId *[]int32
- locationIdN *[]int32
- longitude *[]float64
- longitudeEmpty *bool
- longitudeGt *[]float64
- longitudeGte *[]float64
- longitudeLt *[]float64
- longitudeLte *[]float64
- longitudeN *[]float64
- macAddress *[]string
- macAddressIc *[]string
- macAddressIe *[]string
- macAddressIew *[]string
- macAddressIsw *[]string
- macAddressN *[]string
- macAddressNic *[]string
- macAddressNie *[]string
- macAddressNiew *[]string
- macAddressNisw *[]string
- manufacturer *[]string
- manufacturerN *[]string
- manufacturerId *[]int32
- manufacturerIdN *[]int32
- model *[]string
- modelN *[]string
- modifiedByRequest *string
- moduleBays *bool
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- oobIpId *[]int32
- oobIpIdN *[]int32
- ordering *string
- parentDeviceId *[]int32
- parentDeviceIdN *[]int32
- passThroughPorts *bool
- platform *[]string
- platformN *[]string
- platformId *[]*int32
- platformIdN *[]*int32
- position *[]float64
- positionEmpty *bool
- positionGt *[]float64
- positionGte *[]float64
- positionLt *[]float64
- positionLte *[]float64
- positionN *[]float64
- powerOutlets *bool
- powerPorts *bool
- primaryIp4Id *[]int32
- primaryIp4IdN *[]int32
- primaryIp6Id *[]int32
- primaryIp6IdN *[]int32
- q *string
- rackId *[]int32
- rackIdN *[]int32
- region *[]int32
- regionN *[]int32
- regionId *[]int32
- regionIdN *[]int32
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- serial *[]string
- serialEmpty *bool
- serialIc *[]string
- serialIe *[]string
- serialIew *[]string
- serialIsw *[]string
- serialN *[]string
- serialNic *[]string
- serialNie *[]string
- serialNiew *[]string
- serialNisw *[]string
- site *[]string
- siteN *[]string
- siteGroup *[]int32
- siteGroupN *[]int32
- siteGroupId *[]int32
- siteGroupIdN *[]int32
- siteId *[]int32
- siteIdN *[]int32
- status *[]string
- statusN *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]int32
- tenantGroupN *[]int32
- tenantGroupId *[]int32
- tenantGroupIdN *[]int32
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- vcPosition *[]int32
- vcPositionEmpty *bool
- vcPositionGt *[]int32
- vcPositionGte *[]int32
- vcPositionLt *[]int32
- vcPositionLte *[]int32
- vcPositionN *[]int32
- vcPriority *[]int32
- vcPriorityEmpty *bool
- vcPriorityGt *[]int32
- vcPriorityGte *[]int32
- vcPriorityLt *[]int32
- vcPriorityLte *[]int32
- vcPriorityN *[]int32
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
- virtualChassisMember *bool
-}
-
-func (r ApiDcimDevicesListRequest) Airflow(airflow string) ApiDcimDevicesListRequest {
+ 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
}
-func (r ApiDcimDevicesListRequest) AirflowN(airflowN string) ApiDcimDevicesListRequest {
+// * `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
}
@@ -24771,12 +26940,82 @@ func (r ApiDcimDevicesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32)
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
@@ -24914,6 +27153,41 @@ func (r ApiDcimDevicesListRequest) DescriptionNisw(descriptionNisw []string) Api
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
@@ -24944,16 +27218,53 @@ func (r ApiDcimDevicesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimD
return r
}
-func (r ApiDcimDevicesListRequest) Face(face string) ApiDcimDevicesListRequest {
+// * `front` - Front * `rear` - Rear
+func (r ApiDcimDevicesListRequest) Face(face RackFace) ApiDcimDevicesListRequest {
r.face = &face
return r
}
-func (r ApiDcimDevicesListRequest) FaceN(faceN string) ApiDcimDevicesListRequest {
+// * `front` - Front * `rear` - Rear
+func (r ApiDcimDevicesListRequest) FaceN(faceN RackFace) ApiDcimDevicesListRequest {
r.faceN = &faceN
return r
}
+func (r ApiDcimDevicesListRequest) FrontPortCount(frontPortCount []int32) ApiDcimDevicesListRequest {
+ r.frontPortCount = &frontPortCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountEmpty(frontPortCountEmpty bool) ApiDcimDevicesListRequest {
+ r.frontPortCountEmpty = &frontPortCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountGt(frontPortCountGt []int32) ApiDcimDevicesListRequest {
+ r.frontPortCountGt = &frontPortCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountGte(frontPortCountGte []int32) ApiDcimDevicesListRequest {
+ r.frontPortCountGte = &frontPortCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountLt(frontPortCountLt []int32) ApiDcimDevicesListRequest {
+ r.frontPortCountLt = &frontPortCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountLte(frontPortCountLte []int32) ApiDcimDevicesListRequest {
+ r.frontPortCountLte = &frontPortCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) FrontPortCountN(frontPortCountN []int32) ApiDcimDevicesListRequest {
+ r.frontPortCountN = &frontPortCountN
+ return r
+}
+
// Has an out-of-band IP
func (r ApiDcimDevicesListRequest) HasOobIp(hasOobIp bool) ApiDcimDevicesListRequest {
r.hasOobIp = &hasOobIp
@@ -24966,6 +27277,12 @@ func (r ApiDcimDevicesListRequest) HasPrimaryIp(hasPrimaryIp bool) ApiDcimDevice
return r
}
+// Has virtual device context
+func (r ApiDcimDevicesListRequest) HasVirtualDeviceContext(hasVirtualDeviceContext bool) ApiDcimDevicesListRequest {
+ r.hasVirtualDeviceContext = &hasVirtualDeviceContext
+ return r
+}
+
func (r ApiDcimDevicesListRequest) Id(id []int32) ApiDcimDevicesListRequest {
r.id = &id
return r
@@ -25001,12 +27318,82 @@ func (r ApiDcimDevicesListRequest) IdN(idN []int32) ApiDcimDevicesListRequest {
return r
}
+func (r ApiDcimDevicesListRequest) InterfaceCount(interfaceCount []int32) ApiDcimDevicesListRequest {
+ r.interfaceCount = &interfaceCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountEmpty(interfaceCountEmpty bool) ApiDcimDevicesListRequest {
+ r.interfaceCountEmpty = &interfaceCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountGt(interfaceCountGt []int32) ApiDcimDevicesListRequest {
+ r.interfaceCountGt = &interfaceCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountGte(interfaceCountGte []int32) ApiDcimDevicesListRequest {
+ r.interfaceCountGte = &interfaceCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountLt(interfaceCountLt []int32) ApiDcimDevicesListRequest {
+ r.interfaceCountLt = &interfaceCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountLte(interfaceCountLte []int32) ApiDcimDevicesListRequest {
+ r.interfaceCountLte = &interfaceCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InterfaceCountN(interfaceCountN []int32) ApiDcimDevicesListRequest {
+ r.interfaceCountN = &interfaceCountN
+ return r
+}
+
// Has interfaces
func (r ApiDcimDevicesListRequest) Interfaces(interfaces bool) ApiDcimDevicesListRequest {
r.interfaces = &interfaces
return r
}
+func (r ApiDcimDevicesListRequest) InventoryItemCount(inventoryItemCount []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCount = &inventoryItemCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountEmpty(inventoryItemCountEmpty bool) ApiDcimDevicesListRequest {
+ r.inventoryItemCountEmpty = &inventoryItemCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountGt(inventoryItemCountGt []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCountGt = &inventoryItemCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountGte(inventoryItemCountGte []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCountGte = &inventoryItemCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountLt(inventoryItemCountLt []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCountLt = &inventoryItemCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountLte(inventoryItemCountLte []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCountLte = &inventoryItemCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) InventoryItemCountN(inventoryItemCountN []int32) ApiDcimDevicesListRequest {
+ r.inventoryItemCountN = &inventoryItemCountN
+ return r
+}
+
// Is full depth
func (r ApiDcimDevicesListRequest) IsFullDepth(isFullDepth bool) ApiDcimDevicesListRequest {
r.isFullDepth = &isFullDepth
@@ -25233,6 +27620,41 @@ func (r ApiDcimDevicesListRequest) ModifiedByRequest(modifiedByRequest string) A
return r
}
+func (r ApiDcimDevicesListRequest) ModuleBayCount(moduleBayCount []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCount = &moduleBayCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountEmpty(moduleBayCountEmpty bool) ApiDcimDevicesListRequest {
+ r.moduleBayCountEmpty = &moduleBayCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountGt(moduleBayCountGt []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCountGt = &moduleBayCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountGte(moduleBayCountGte []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCountGte = &moduleBayCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountLt(moduleBayCountLt []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCountLt = &moduleBayCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountLte(moduleBayCountLte []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCountLte = &moduleBayCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) ModuleBayCountN(moduleBayCountN []int32) ApiDcimDevicesListRequest {
+ r.moduleBayCountN = &moduleBayCountN
+ return r
+}
+
// Has module bays
func (r ApiDcimDevicesListRequest) ModuleBays(moduleBays bool) ApiDcimDevicesListRequest {
r.moduleBays = &moduleBays
@@ -25318,6 +27740,18 @@ func (r ApiDcimDevicesListRequest) Ordering(ordering string) ApiDcimDevicesListR
return r
}
+// Parent bay (ID)
+func (r ApiDcimDevicesListRequest) ParentBayId(parentBayId []int32) ApiDcimDevicesListRequest {
+ r.parentBayId = &parentBayId
+ return r
+}
+
+// Parent bay (ID)
+func (r ApiDcimDevicesListRequest) ParentBayIdN(parentBayIdN []int32) ApiDcimDevicesListRequest {
+ r.parentBayIdN = &parentBayIdN
+ return r
+}
+
// Parent Device (ID)
func (r ApiDcimDevicesListRequest) ParentDeviceId(parentDeviceId []int32) ApiDcimDevicesListRequest {
r.parentDeviceId = &parentDeviceId
@@ -25395,12 +27829,82 @@ func (r ApiDcimDevicesListRequest) PositionN(positionN []float64) ApiDcimDevices
return r
}
+func (r ApiDcimDevicesListRequest) PowerOutletCount(powerOutletCount []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCount = &powerOutletCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountEmpty(powerOutletCountEmpty bool) ApiDcimDevicesListRequest {
+ r.powerOutletCountEmpty = &powerOutletCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountGt(powerOutletCountGt []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCountGt = &powerOutletCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountGte(powerOutletCountGte []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCountGte = &powerOutletCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountLt(powerOutletCountLt []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCountLt = &powerOutletCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountLte(powerOutletCountLte []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCountLte = &powerOutletCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerOutletCountN(powerOutletCountN []int32) ApiDcimDevicesListRequest {
+ r.powerOutletCountN = &powerOutletCountN
+ return r
+}
+
// Has power outlets
func (r ApiDcimDevicesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDevicesListRequest {
r.powerOutlets = &powerOutlets
return r
}
+func (r ApiDcimDevicesListRequest) PowerPortCount(powerPortCount []int32) ApiDcimDevicesListRequest {
+ r.powerPortCount = &powerPortCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountEmpty(powerPortCountEmpty bool) ApiDcimDevicesListRequest {
+ r.powerPortCountEmpty = &powerPortCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountGt(powerPortCountGt []int32) ApiDcimDevicesListRequest {
+ r.powerPortCountGt = &powerPortCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountGte(powerPortCountGte []int32) ApiDcimDevicesListRequest {
+ r.powerPortCountGte = &powerPortCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountLt(powerPortCountLt []int32) ApiDcimDevicesListRequest {
+ r.powerPortCountLt = &powerPortCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountLte(powerPortCountLte []int32) ApiDcimDevicesListRequest {
+ r.powerPortCountLte = &powerPortCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) PowerPortCountN(powerPortCountN []int32) ApiDcimDevicesListRequest {
+ r.powerPortCountN = &powerPortCountN
+ return r
+}
+
// Has power ports
func (r ApiDcimDevicesListRequest) PowerPorts(powerPorts bool) ApiDcimDevicesListRequest {
r.powerPorts = &powerPorts
@@ -25449,6 +27953,41 @@ func (r ApiDcimDevicesListRequest) RackIdN(rackIdN []int32) ApiDcimDevicesListRe
return r
}
+func (r ApiDcimDevicesListRequest) RearPortCount(rearPortCount []int32) ApiDcimDevicesListRequest {
+ r.rearPortCount = &rearPortCount
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountEmpty(rearPortCountEmpty bool) ApiDcimDevicesListRequest {
+ r.rearPortCountEmpty = &rearPortCountEmpty
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountGt(rearPortCountGt []int32) ApiDcimDevicesListRequest {
+ r.rearPortCountGt = &rearPortCountGt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountGte(rearPortCountGte []int32) ApiDcimDevicesListRequest {
+ r.rearPortCountGte = &rearPortCountGte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountLt(rearPortCountLt []int32) ApiDcimDevicesListRequest {
+ r.rearPortCountLt = &rearPortCountLt
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountLte(rearPortCountLte []int32) ApiDcimDevicesListRequest {
+ r.rearPortCountLte = &rearPortCountLte
+ return r
+}
+
+func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDcimDevicesListRequest {
+ r.rearPortCountN = &rearPortCountN
+ return r
+}
+
// Region (slug)
func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest {
r.region = ®ion
@@ -25965,9 +28504,147 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count", t, "multi")
+ }
+ }
+ if r.consolePortCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__empty", r.consolePortCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__n", t, "multi")
+ }
+ }
if r.consolePorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "")
}
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count", t, "multi")
+ }
+ }
+ if r.consoleServerPortCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__empty", r.consoleServerPortCountEmpty, "")
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lt", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lte", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__n", t, "multi")
+ }
+ }
if r.consoleServerPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "")
}
@@ -26230,6 +28907,75 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count", t, "multi")
+ }
+ }
+ if r.deviceBayCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__empty", r.deviceBayCountEmpty, "")
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
if r.deviceBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "")
}
@@ -26283,12 +29029,84 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.faceN != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "face__n", r.faceN, "")
}
+ 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")
+ }
+ }
+ if r.frontPortCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__empty", r.frontPortCountEmpty, "")
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
if r.hasOobIp != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "has_oob_ip", r.hasOobIp, "")
}
if r.hasPrimaryIp != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "")
}
+ if r.hasVirtualDeviceContext != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "has_virtual_device_context", r.hasVirtualDeviceContext, "")
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -26358,9 +29176,147 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
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")
+ }
+ }
+ if r.interfaceCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "")
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
if r.interfaces != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "")
}
+ 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")
+ }
+ }
+ if r.inventoryItemCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__empty", r.inventoryItemCountEmpty, "")
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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 r.isFullDepth != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "is_full_depth", r.isFullDepth, "")
}
@@ -26786,6 +29742,75 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
+ 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, "module_bay_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count", t, "multi")
+ }
+ }
+ if r.moduleBayCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__empty", r.moduleBayCountEmpty, "")
+ }
+ 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, "module_bay_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gt", t, "multi")
+ }
+ }
+ 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, "module_bay_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gte", t, "multi")
+ }
+ }
+ 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, "module_bay_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lt", t, "multi")
+ }
+ }
+ 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, "module_bay_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lte", t, "multi")
+ }
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__n", t, "multi")
+ }
+ }
if r.moduleBays != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "")
}
@@ -26930,6 +29955,28 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
}
+ 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, "parent_bay_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id", t, "multi")
+ }
+ }
+ 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, "parent_bay_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id__n", t, "multi")
+ }
+ }
if r.parentDeviceId != nil {
t := *r.parentDeviceId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -27068,9 +30115,147 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "multi")
}
}
+ 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, "power_outlet_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count", t, "multi")
+ }
+ }
+ if r.powerOutletCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__empty", r.powerOutletCountEmpty, "")
+ }
+ 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, "power_outlet_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gt", t, "multi")
+ }
+ }
+ 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, "power_outlet_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gte", t, "multi")
+ }
+ }
+ 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, "power_outlet_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lt", t, "multi")
+ }
+ }
+ 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, "power_outlet_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lte", t, "multi")
+ }
+ }
+ 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, "power_outlet_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__n", t, "multi")
+ }
+ }
if r.powerOutlets != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "")
}
+ 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, "power_port_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count", t, "multi")
+ }
+ }
+ if r.powerPortCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__empty", r.powerPortCountEmpty, "")
+ }
+ 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, "power_port_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gt", t, "multi")
+ }
+ }
+ 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, "power_port_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gte", t, "multi")
+ }
+ }
+ 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, "power_port_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lt", t, "multi")
+ }
+ }
+ 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, "power_port_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lte", t, "multi")
+ }
+ }
+ 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, "power_port_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__n", t, "multi")
+ }
+ }
if r.powerPorts != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "")
}
@@ -27143,6 +30328,75 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P
parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi")
}
}
+ 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, "rear_port_count", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count", t, "multi")
+ }
+ }
+ if r.rearPortCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__empty", r.rearPortCountEmpty, "")
+ }
+ 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, "rear_port_count__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gt", t, "multi")
+ }
+ }
+ 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, "rear_port_count__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gte", t, "multi")
+ }
+ }
+ 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, "rear_port_count__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lt", t, "multi")
+ }
+ }
+ 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, "rear_port_count__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lte", t, "multi")
+ }
+ }
+ 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, "rear_port_count__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__n", t, "multi")
+ }
+ }
if r.region != nil {
t := *r.region
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -28904,75 +32158,99 @@ func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPort
}
type ApiDcimFrontPortTemplatesListRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- 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
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- modifiedByRequest *string
- moduletypeId *[]*int32
- moduletypeIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- type_ *[]string
- typeN *[]string
- updatedByRequest *string
+ 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
}
func (r ApiDcimFrontPortTemplatesListRequest) Color(color []string) ApiDcimFrontPortTemplatesListRequest {
@@ -29125,6 +32403,18 @@ func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNisw(descriptionNisw []
return r
}
+// Device type (ID)
+func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimFrontPortTemplatesListRequest {
+ r.deviceTypeId = &deviceTypeId
+ return r
+}
+
+// Device type (ID)
+func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest {
+ r.deviceTypeIdN = &deviceTypeIdN
+ return r
+}
+
// Device type (ID)
func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -29172,6 +32462,61 @@ func (r ApiDcimFrontPortTemplatesListRequest) IdN(idN []int32) ApiDcimFrontPortT
return r
}
+func (r ApiDcimFrontPortTemplatesListRequest) Label(label []string) ApiDcimFrontPortTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimFrontPortTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelN(labelN []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimFrontPortTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimFrontPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimFrontPortTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -29218,6 +32563,18 @@ func (r ApiDcimFrontPortTemplatesListRequest) ModifiedByRequest(modifiedByReques
return r
}
+// Module type (ID)
+func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimFrontPortTemplatesListRequest {
+ r.moduleTypeId = &moduleTypeId
+ return r
+}
+
+// Module type (ID)
+func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest {
+ r.moduleTypeIdN = &moduleTypeIdN
+ return r
+}
+
// Module type (ID)
func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest {
r.moduletypeId = &moduletypeId
@@ -29303,6 +32660,51 @@ func (r ApiDcimFrontPortTemplatesListRequest) Q(q string) ApiDcimFrontPortTempla
return r
}
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortId(rearPortId []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortId = &rearPortId
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortIdN(rearPortIdN []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortIdN = &rearPortIdN
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPosition(rearPortPosition []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPosition = &rearPortPosition
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionEmpty(rearPortPositionEmpty bool) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionEmpty = &rearPortPositionEmpty
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGt(rearPortPositionGt []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionGt = &rearPortPositionGt
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGte(rearPortPositionGte []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionGte = &rearPortPositionGte
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLt(rearPortPositionLt []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionLt = &rearPortPositionLt
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLte(rearPortPositionLte []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionLte = &rearPortPositionLte
+ return r
+}
+
+func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionN(rearPortPositionN []int32) ApiDcimFrontPortTemplatesListRequest {
+ r.rearPortPositionN = &rearPortPositionN
+ return r
+}
+
func (r ApiDcimFrontPortTemplatesListRequest) Type_(type_ []string) ApiDcimFrontPortTemplatesListRequest {
r.type_ = &type_
return r
@@ -29665,6 +33067,28 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
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 {
@@ -29756,6 +33180,119 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -29839,6 +33376,28 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
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 {
@@ -29983,6 +33542,97 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
if r.type_ != nil {
t := *r.type_
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -31044,142 +34694,164 @@ func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroy
}
type ApiDcimFrontPortsListRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- cableEnd *string
- cableEndN *string
- cabled *bool
- color *[]string
- colorEmpty *bool
- colorIc *[]string
- colorIe *[]string
- colorIew *[]string
- colorIsw *[]string
- colorN *[]string
- colorNic *[]string
- colorNie *[]string
- colorNiew *[]string
- colorNisw *[]string
- created *[]time.Time
- createdEmpty *[]time.Time
- createdGt *[]time.Time
- createdGte *[]time.Time
- createdLt *[]time.Time
- createdLte *[]time.Time
- createdN *[]time.Time
- createdByRequest *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- device *[]*string
- deviceN *[]*string
- deviceId *[]int32
- deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- modifiedByRequest *string
- moduleId *[]*int32
- moduleIdN *[]*int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- occupied *bool
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]int32
- regionN *[]int32
- regionId *[]int32
- regionIdN *[]int32
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- site *[]string
- siteN *[]string
- siteGroup *[]int32
- siteGroupN *[]int32
- siteGroupId *[]int32
- siteGroupIdN *[]int32
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- type_ *[]string
- typeN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
-}
-
-func (r ApiDcimFrontPortsListRequest) CableEnd(cableEnd string) ApiDcimFrontPortsListRequest {
+ 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
+}
+
+// * `A` - A * `B` - B
+func (r ApiDcimFrontPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimFrontPortsListRequest) CableEndN(cableEndN string) ApiDcimFrontPortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimFrontPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest {
r.cableEndN = &cableEndN
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
@@ -31359,30 +35031,6 @@ func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontP
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
-}
-
// Device type (model)
func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest {
r.deviceType = &deviceType
@@ -31562,6 +35210,11 @@ func (r ApiDcimFrontPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimFr
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
@@ -31681,6 +35334,51 @@ func (r ApiDcimFrontPortsListRequest) RackIdN(rackIdN []int32) ApiDcimFrontPorts
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
+}
+
// Region (slug)
func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest {
r.region = ®ion
@@ -31873,6 +35571,28 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
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, "")
}
@@ -32226,50 +35946,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -32620,6 +36296,9 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi")
}
}
+ if r.markConnected != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "")
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -32814,6 +36493,97 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "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, "rear_port_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", t, "multi")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
if r.region != nil {
t := *r.region
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -34258,6 +38028,8 @@ type ApiDcimInterfaceTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
enabled *bool
@@ -34268,6 +38040,17 @@ type ApiDcimInterfaceTemplatesListRequest struct {
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
@@ -34278,6 +38061,8 @@ type ApiDcimInterfaceTemplatesListRequest struct {
limit *int32
mgmtOnly *bool
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -34410,6 +38195,18 @@ func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNisw(descriptionNisw []
return r
}
+// Device type (ID)
+func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimInterfaceTemplatesListRequest {
+ r.deviceTypeId = &deviceTypeId
+ return r
+}
+
+// Device type (ID)
+func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest {
+ r.deviceTypeIdN = &deviceTypeIdN
+ return r
+}
+
// Device type (ID)
func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -34462,6 +38259,61 @@ func (r ApiDcimInterfaceTemplatesListRequest) IdN(idN []int32) ApiDcimInterfaceT
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
@@ -34513,6 +38365,18 @@ func (r ApiDcimInterfaceTemplatesListRequest) ModifiedByRequest(modifiedByReques
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
@@ -34899,6 +38763,28 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem
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 {
@@ -34993,6 +38879,119 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -35079,6 +39078,28 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem
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 {
@@ -36354,8 +40375,10 @@ type ApiDcimInterfacesListRequest struct {
ApiService *DcimAPIService
bridgeId *[]int32
bridgeIdN *[]int32
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
connected *bool
created *[]time.Time
@@ -36381,10 +40404,6 @@ type ApiDcimInterfacesListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -36439,9 +40458,10 @@ type ApiDcimInterfacesListRequest struct {
macAddressNie *[]string
macAddressNiew *[]string
macAddressNisw *[]string
+ markConnected *bool
mgmtOnly *bool
- mode *string
- modeN *string
+ mode *DcimInterfacesListModeParameter
+ modeN *DcimInterfacesListModeParameter
modifiedByRequest *string
moduleId *[]*int32
moduleIdN *[]*int32
@@ -36548,6 +40568,10 @@ type ApiDcimInterfacesListRequest struct {
vrfN *[]*string
vrfId *[]int32
vrfIdN *[]int32
+ wirelessLanId *[]int32
+ wirelessLanIdN *[]int32
+ wirelessLinkId *[]*int32
+ wirelessLinkIdN *[]*int32
wwn *[]string
wwnIc *[]string
wwnIe *[]string
@@ -36572,16 +40596,30 @@ func (r ApiDcimInterfacesListRequest) BridgeIdN(bridgeIdN []int32) ApiDcimInterf
return r
}
-func (r ApiDcimInterfacesListRequest) CableEnd(cableEnd string) ApiDcimInterfacesListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimInterfacesListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimInterfacesListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimInterfacesListRequest) CableEndN(cableEndN string) ApiDcimInterfacesListRequest {
+// * `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
@@ -36711,30 +40749,6 @@ func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterf
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
-}
-
// Device type (model)
func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest {
r.deviceType = &deviceType
@@ -37021,19 +41035,24 @@ func (r ApiDcimInterfacesListRequest) MacAddressNisw(macAddressNisw []string) Ap
return r
}
+func (r ApiDcimInterfacesListRequest) MarkConnected(markConnected bool) ApiDcimInterfacesListRequest {
+ r.markConnected = &markConnected
+ return r
+}
+
func (r ApiDcimInterfacesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfacesListRequest {
r.mgmtOnly = &mgmtOnly
return r
}
-// IEEE 802.1Q tagging strategy
-func (r ApiDcimInterfacesListRequest) Mode(mode string) ApiDcimInterfacesListRequest {
+// 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
}
-// IEEE 802.1Q tagging strategy
-func (r ApiDcimInterfacesListRequest) ModeN(modeN string) ApiDcimInterfacesListRequest {
+// 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
}
@@ -37611,6 +41630,30 @@ func (r ApiDcimInterfacesListRequest) VrfIdN(vrfIdN []int32) ApiDcimInterfacesLi
return r
}
+// Wireless LAN
+func (r ApiDcimInterfacesListRequest) WirelessLanId(wirelessLanId []int32) ApiDcimInterfacesListRequest {
+ r.wirelessLanId = &wirelessLanId
+ return r
+}
+
+// Wireless LAN
+func (r ApiDcimInterfacesListRequest) WirelessLanIdN(wirelessLanIdN []int32) ApiDcimInterfacesListRequest {
+ r.wirelessLanIdN = &wirelessLanIdN
+ return r
+}
+
+// Wireless link
+func (r ApiDcimInterfacesListRequest) WirelessLinkId(wirelessLinkId []*int32) ApiDcimInterfacesListRequest {
+ r.wirelessLinkId = &wirelessLinkId
+ return r
+}
+
+// Wireless link
+func (r ApiDcimInterfacesListRequest) WirelessLinkIdN(wirelessLinkIdN []*int32) ApiDcimInterfacesListRequest {
+ r.wirelessLinkIdN = &wirelessLinkIdN
+ return r
+}
+
func (r ApiDcimInterfacesListRequest) Wwn(wwn []string) ApiDcimInterfacesListRequest {
r.wwn = &wwn
return r
@@ -37730,6 +41773,28 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
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, "")
}
@@ -37973,50 +42038,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -38571,6 +42592,9 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
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, "")
}
@@ -39642,6 +43666,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques
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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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 r.wwn != nil {
t := *r.wwn
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -42922,13 +46990,13 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimIn
}
type ApiDcimInventoryItemTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableInventoryItemTemplateRequest *WritableInventoryItemTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ inventoryItemTemplateRequest *InventoryItemTemplateRequest
}
-func (r ApiDcimInventoryItemTemplatesCreateRequest) WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest WritableInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesCreateRequest {
- r.writableInventoryItemTemplateRequest = &writableInventoryItemTemplateRequest
+func (r ApiDcimInventoryItemTemplatesCreateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesCreateRequest {
+ r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest
return r
}
@@ -42972,8 +47040,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableInventoryItemTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableInventoryItemTemplateRequest is required and must be specified")
+ if r.inventoryItemTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -42994,7 +47062,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableInventoryItemTemplateRequest
+ localVarPostBody = r.inventoryItemTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -43183,6 +47251,8 @@ type ApiDcimInventoryItemTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -43390,6 +47460,18 @@ func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNisw(descriptionNis
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
@@ -44048,6 +48130,28 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor
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 {
@@ -44752,14 +48856,14 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor
}
type ApiDcimInventoryItemTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableInventoryItemTemplateRequest *PatchedWritableInventoryItemTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedInventoryItemTemplateRequest *PatchedInventoryItemTemplateRequest
}
-func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest PatchedWritableInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesPartialUpdateRequest {
- r.patchedWritableInventoryItemTemplateRequest = &patchedWritableInventoryItemTemplateRequest
+func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) PatchedInventoryItemTemplateRequest(patchedInventoryItemTemplateRequest PatchedInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesPartialUpdateRequest {
+ r.patchedInventoryItemTemplateRequest = &patchedInventoryItemTemplateRequest
return r
}
@@ -44825,7 +48929,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDci
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableInventoryItemTemplateRequest
+ localVarPostBody = r.patchedInventoryItemTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -44996,14 +49100,14 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInve
}
type ApiDcimInventoryItemTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableInventoryItemTemplateRequest *WritableInventoryItemTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ inventoryItemTemplateRequest *InventoryItemTemplateRequest
}
-func (r ApiDcimInventoryItemTemplatesUpdateRequest) WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest WritableInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesUpdateRequest {
- r.writableInventoryItemTemplateRequest = &writableInventoryItemTemplateRequest
+func (r ApiDcimInventoryItemTemplatesUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesUpdateRequest {
+ r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest
return r
}
@@ -45050,8 +49154,8 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInvent
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableInventoryItemTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableInventoryItemTemplateRequest is required and must be specified")
+ if r.inventoryItemTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -45072,7 +49176,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInvent
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableInventoryItemTemplateRequest
+ localVarPostBody = r.inventoryItemTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -45488,13 +49592,13 @@ func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryI
}
type ApiDcimInventoryItemsCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableInventoryItemRequest *WritableInventoryItemRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ inventoryItemRequest *InventoryItemRequest
}
-func (r ApiDcimInventoryItemsCreateRequest) WritableInventoryItemRequest(writableInventoryItemRequest WritableInventoryItemRequest) ApiDcimInventoryItemsCreateRequest {
- r.writableInventoryItemRequest = &writableInventoryItemRequest
+func (r ApiDcimInventoryItemsCreateRequest) InventoryItemRequest(inventoryItemRequest InventoryItemRequest) ApiDcimInventoryItemsCreateRequest {
+ r.inventoryItemRequest = &inventoryItemRequest
return r
}
@@ -45538,8 +49642,8 @@ func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItems
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.inventoryItemRequest == nil {
+ return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -45560,7 +49664,7 @@ func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItems
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableInventoryItemRequest
+ localVarPostBody = r.inventoryItemRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -45749,14 +49853,21 @@ type ApiDcimInventoryItemsListRequest struct {
createdLte *[]time.Time
createdN *[]time.Time
createdByRequest *string
+ description *[]string
+ descriptionEmpty *bool
+ descriptionIc *[]string
+ descriptionIe *[]string
+ descriptionIew *[]string
+ descriptionIsw *[]string
+ descriptionN *[]string
+ descriptionNic *[]string
+ descriptionNie *[]string
+ descriptionNiew *[]string
+ descriptionNisw *[]string
device *[]*string
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -46004,51 +50115,82 @@ func (r ApiDcimInventoryItemsListRequest) CreatedByRequest(createdByRequest stri
return r
}
-// Device (name)
-func (r ApiDcimInventoryItemsListRequest) Device(device []*string) ApiDcimInventoryItemsListRequest {
- r.device = &device
+func (r ApiDcimInventoryItemsListRequest) Description(description []string) ApiDcimInventoryItemsListRequest {
+ r.description = &description
return r
}
-// Device (name)
-func (r ApiDcimInventoryItemsListRequest) DeviceN(deviceN []*string) ApiDcimInventoryItemsListRequest {
- r.deviceN = &deviceN
+func (r ApiDcimInventoryItemsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
return r
}
-// Device (ID)
-func (r ApiDcimInventoryItemsListRequest) DeviceId(deviceId []int32) ApiDcimInventoryItemsListRequest {
- r.deviceId = &deviceId
+func (r ApiDcimInventoryItemsListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemsListRequest {
+ r.descriptionIc = &descriptionIc
return r
}
-// Device (ID)
-func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInventoryItemsListRequest {
- r.deviceIdN = &deviceIdN
+func (r ApiDcimInventoryItemsListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemsListRequest {
+ r.descriptionIe = &descriptionIe
return r
}
-// Device role (slug)
-func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest {
- r.deviceRole = &deviceRole
+func (r ApiDcimInventoryItemsListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemsListRequest {
+ r.descriptionIew = &descriptionIew
return r
}
-// Device role (slug)
-func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest {
- r.deviceRoleN = &deviceRoleN
+func (r ApiDcimInventoryItemsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemsListRequest {
+ r.descriptionIsw = &descriptionIsw
return r
}
-// Device role (ID)
-func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest {
- r.deviceRoleId = &deviceRoleId
+func (r ApiDcimInventoryItemsListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemsListRequest {
+ r.descriptionN = &descriptionN
return r
}
-// Device role (ID)
-func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest {
- r.deviceRoleIdN = &deviceRoleIdN
+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
}
@@ -46936,92 +51078,161 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi
if r.createdByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
- if r.device != nil {
- t := *r.device
+ 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, "device", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi")
}
}
- if r.deviceN != nil {
- t := *r.deviceN
+ 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, "device__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi")
}
}
- if r.deviceId != nil {
- t := *r.deviceId
+ 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, "device_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi")
}
}
- if r.deviceIdN != nil {
- t := *r.deviceIdN
+ 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, "device_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
+ 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, "device_role", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi")
}
}
- if r.deviceRoleN != nil {
- t := *r.deviceRoleN
+ 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, "device_role__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi")
}
}
- if r.deviceRoleId != nil {
- t := *r.deviceRoleId
+ 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, "device_role_id", s.Index(i).Interface(), "multi")
+ 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, "device_role_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
}
}
- if r.deviceRoleIdN != nil {
- t := *r.deviceRoleIdN
+ 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_role_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
+ 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 {
@@ -48152,14 +52363,14 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi
}
type ApiDcimInventoryItemsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableInventoryItemRequest *PatchedWritableInventoryItemRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedInventoryItemRequest *PatchedInventoryItemRequest
}
-func (r ApiDcimInventoryItemsPartialUpdateRequest) PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest PatchedWritableInventoryItemRequest) ApiDcimInventoryItemsPartialUpdateRequest {
- r.patchedWritableInventoryItemRequest = &patchedWritableInventoryItemRequest
+func (r ApiDcimInventoryItemsPartialUpdateRequest) PatchedInventoryItemRequest(patchedInventoryItemRequest PatchedInventoryItemRequest) ApiDcimInventoryItemsPartialUpdateRequest {
+ r.patchedInventoryItemRequest = &patchedInventoryItemRequest
return r
}
@@ -48225,7 +52436,7 @@ func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInvento
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableInventoryItemRequest
+ localVarPostBody = r.patchedInventoryItemRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -48396,14 +52607,14 @@ func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryIte
}
type ApiDcimInventoryItemsUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableInventoryItemRequest *WritableInventoryItemRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ inventoryItemRequest *InventoryItemRequest
}
-func (r ApiDcimInventoryItemsUpdateRequest) WritableInventoryItemRequest(writableInventoryItemRequest WritableInventoryItemRequest) ApiDcimInventoryItemsUpdateRequest {
- r.writableInventoryItemRequest = &writableInventoryItemRequest
+func (r ApiDcimInventoryItemsUpdateRequest) InventoryItemRequest(inventoryItemRequest InventoryItemRequest) ApiDcimInventoryItemsUpdateRequest {
+ r.inventoryItemRequest = &inventoryItemRequest
return r
}
@@ -48450,8 +52661,8 @@ func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems
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.inventoryItemRequest == nil {
+ return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -48472,7 +52683,7 @@ func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableInventoryItemRequest
+ localVarPostBody = r.inventoryItemRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -49121,6 +53332,10 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe
type ApiDcimLocationsListRequest struct {
ctx context.Context
ApiService *DcimAPIService
+ ancestor *[]int32
+ ancestorN *[]int32
+ ancestorId *[]int32
+ ancestorIdN *[]int32
contact *[]int32
contactN *[]int32
contactGroup *[]int32
@@ -49146,6 +53361,17 @@ type ApiDcimLocationsListRequest struct {
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
@@ -49175,10 +53401,10 @@ type ApiDcimLocationsListRequest struct {
nameNisw *[]string
offset *int32
ordering *string
- parent *[]int32
- parentN *[]int32
- parentId *[]int32
- parentIdN *[]int32
+ parent *[]string
+ parentN *[]string
+ parentId *[]*int32
+ parentIdN *[]*int32
q *string
region *[]int32
regionN *[]int32
@@ -49218,6 +53444,30 @@ type ApiDcimLocationsListRequest struct {
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
+}
+
// Contact
func (r ApiDcimLocationsListRequest) Contact(contact []int32) ApiDcimLocationsListRequest {
r.contact = &contact
@@ -49349,6 +53599,61 @@ func (r ApiDcimLocationsListRequest) DescriptionNisw(descriptionNisw []string) A
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
+ return r
+}
+
func (r ApiDcimLocationsListRequest) Id(id []int32) ApiDcimLocationsListRequest {
r.id = &id
return r
@@ -49497,26 +53802,26 @@ func (r ApiDcimLocationsListRequest) Ordering(ordering string) ApiDcimLocationsL
return r
}
-// Location (slug)
-func (r ApiDcimLocationsListRequest) Parent(parent []int32) ApiDcimLocationsListRequest {
+// Parent location (slug)
+func (r ApiDcimLocationsListRequest) Parent(parent []string) ApiDcimLocationsListRequest {
r.parent = &parent
return r
}
-// Location (slug)
-func (r ApiDcimLocationsListRequest) ParentN(parentN []int32) ApiDcimLocationsListRequest {
+// Parent location (slug)
+func (r ApiDcimLocationsListRequest) ParentN(parentN []string) ApiDcimLocationsListRequest {
r.parentN = &parentN
return r
}
-// Location (ID)
-func (r ApiDcimLocationsListRequest) ParentId(parentId []int32) ApiDcimLocationsListRequest {
+// Parent location (ID)
+func (r ApiDcimLocationsListRequest) ParentId(parentId []*int32) ApiDcimLocationsListRequest {
r.parentId = &parentId
return r
}
-// Location (ID)
-func (r ApiDcimLocationsListRequest) ParentIdN(parentIdN []int32) ApiDcimLocationsListRequest {
+// Parent location (ID)
+func (r ApiDcimLocationsListRequest) ParentIdN(parentIdN []*int32) ApiDcimLocationsListRequest {
r.parentIdN = &parentIdN
return r
}
@@ -49768,6 +54073,50 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest)
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 {
@@ -50027,6 +54376,119 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest)
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "multi")
+ }
+ }
if r.id != nil {
t := *r.id
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -53706,13 +58168,13 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModule
}
type ApiDcimModuleBayTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableModuleBayTemplateRequest *WritableModuleBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ moduleBayTemplateRequest *ModuleBayTemplateRequest
}
-func (r ApiDcimModuleBayTemplatesCreateRequest) WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest WritableModuleBayTemplateRequest) ApiDcimModuleBayTemplatesCreateRequest {
- r.writableModuleBayTemplateRequest = &writableModuleBayTemplateRequest
+func (r ApiDcimModuleBayTemplatesCreateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesCreateRequest {
+ r.moduleBayTemplateRequest = &moduleBayTemplateRequest
return r
}
@@ -53756,8 +58218,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableModuleBayTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableModuleBayTemplateRequest 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
@@ -53778,7 +58240,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableModuleBayTemplateRequest
+ localVarPostBody = r.moduleBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -53958,6 +58420,8 @@ type ApiDcimModuleBayTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]int32
+ deviceTypeIdN *[]int32
devicetypeId *[]int32
devicetypeIdN *[]int32
id *[]int32
@@ -53967,6 +58431,17 @@ type ApiDcimModuleBayTemplatesListRequest struct {
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
@@ -53989,6 +58464,17 @@ type ApiDcimModuleBayTemplatesListRequest struct {
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
}
@@ -54088,6 +58574,18 @@ func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw []
return r
}
+// 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
+}
+
// Device type (ID)
func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -54135,6 +58633,61 @@ func (r ApiDcimModuleBayTemplatesListRequest) IdN(idN []int32) ApiDcimModuleBayT
return r
}
+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
@@ -54248,6 +58801,61 @@ func (r ApiDcimModuleBayTemplatesListRequest) Ordering(ordering string) ApiDcimM
return r
}
+func (r ApiDcimModuleBayTemplatesListRequest) Position(position []string) ApiDcimModuleBayTemplatesListRequest {
+ r.position = &position
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBayTemplatesListRequest {
+ r.positionEmpty = &positionEmpty
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionIc(positionIc []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionIc = &positionIc
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionIe(positionIe []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionIe = &positionIe
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionIew(positionIew []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionIew = &positionIew
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionIsw = &positionIsw
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionN(positionN []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionN = &positionN
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionNic(positionNic []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionNic = &positionNic
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionNie(positionNie []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionNie = &positionNie
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionNiew(positionNiew []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionNiew = &positionNiew
+ return r
+}
+
+func (r ApiDcimModuleBayTemplatesListRequest) PositionNisw(positionNisw []string) ApiDcimModuleBayTemplatesListRequest {
+ r.positionNisw = &positionNisw
+ return r
+}
+
// Search
func (r ApiDcimModuleBayTemplatesListRequest) Q(q string) ApiDcimModuleBayTemplatesListRequest {
r.q = &q
@@ -54493,6 +59101,28 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
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 {
@@ -54584,6 +59214,119 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -54786,6 +59529,119 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
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")
+ }
+ }
+ 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, "")
}
@@ -54861,14 +59717,14 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem
}
type ApiDcimModuleBayTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableModuleBayTemplateRequest *PatchedWritableModuleBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedModuleBayTemplateRequest *PatchedModuleBayTemplateRequest
}
-func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest PatchedWritableModuleBayTemplateRequest) ApiDcimModuleBayTemplatesPartialUpdateRequest {
- r.patchedWritableModuleBayTemplateRequest = &patchedWritableModuleBayTemplateRequest
+func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest PatchedModuleBayTemplateRequest) ApiDcimModuleBayTemplatesPartialUpdateRequest {
+ r.patchedModuleBayTemplateRequest = &patchedModuleBayTemplateRequest
return r
}
@@ -54934,7 +59790,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimMod
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableModuleBayTemplateRequest
+ localVarPostBody = r.patchedModuleBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -55105,14 +59961,14 @@ func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBa
}
type ApiDcimModuleBayTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableModuleBayTemplateRequest *WritableModuleBayTemplateRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ moduleBayTemplateRequest *ModuleBayTemplateRequest
}
-func (r ApiDcimModuleBayTemplatesUpdateRequest) WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest WritableModuleBayTemplateRequest) ApiDcimModuleBayTemplatesUpdateRequest {
- r.writableModuleBayTemplateRequest = &writableModuleBayTemplateRequest
+func (r ApiDcimModuleBayTemplatesUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesUpdateRequest {
+ r.moduleBayTemplateRequest = &moduleBayTemplateRequest
return r
}
@@ -55159,8 +60015,8 @@ func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableModuleBayTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableModuleBayTemplateRequest 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
@@ -55181,7 +60037,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableModuleBayTemplateRequest
+ localVarPostBody = r.moduleBayTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -55597,13 +60453,13 @@ func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulk
}
type ApiDcimModuleBaysCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableModuleBayRequest *WritableModuleBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ moduleBayRequest *ModuleBayRequest
}
-func (r ApiDcimModuleBaysCreateRequest) WritableModuleBayRequest(writableModuleBayRequest WritableModuleBayRequest) ApiDcimModuleBaysCreateRequest {
- r.writableModuleBayRequest = &writableModuleBayRequest
+func (r ApiDcimModuleBaysCreateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysCreateRequest {
+ r.moduleBayRequest = &moduleBayRequest
return r
}
@@ -55647,8 +60503,8 @@ func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableModuleBayRequest == nil {
- return localVarReturnValue, nil, reportError("writableModuleBayRequest 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
@@ -55669,7 +60525,7 @@ func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableModuleBayRequest
+ localVarPostBody = r.moduleBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -55828,111 +60684,120 @@ func (a *DcimAPIService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroy
}
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
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
- deviceType *[]string
- deviceTypeN *[]string
- deviceTypeId *[]int32
- deviceTypeIdN *[]int32
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- label *[]string
- labelEmpty *bool
- labelIc *[]string
- labelIe *[]string
- labelIew *[]string
- labelIsw *[]string
- labelN *[]string
- labelNic *[]string
- labelNie *[]string
- labelNiew *[]string
- labelNisw *[]string
- lastUpdated *[]time.Time
- lastUpdatedEmpty *[]time.Time
- lastUpdatedGt *[]time.Time
- lastUpdatedGte *[]time.Time
- lastUpdatedLt *[]time.Time
- lastUpdatedLte *[]time.Time
- lastUpdatedN *[]time.Time
- limit *int32
- location *[]string
- locationN *[]string
- locationId *[]int32
- locationIdN *[]int32
- modifiedByRequest *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- rack *[]string
- rackN *[]string
- rackId *[]int32
- rackIdN *[]int32
- region *[]int32
- regionN *[]int32
- regionId *[]int32
- regionIdN *[]int32
- role *[]string
- roleN *[]string
- roleId *[]int32
- roleIdN *[]int32
- site *[]string
- siteN *[]string
- siteGroup *[]int32
- siteGroupN *[]int32
- siteGroupId *[]int32
- siteGroupIdN *[]int32
- siteId *[]int32
- siteIdN *[]int32
- tag *[]string
- tagN *[]string
- updatedByRequest *string
- virtualChassis *[]string
- virtualChassisN *[]string
- virtualChassisId *[]int32
- virtualChassisIdN *[]int32
+ 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
}
func (r ApiDcimModuleBaysListRequest) Created(created []time.Time) ApiDcimModuleBaysListRequest {
@@ -56054,30 +60919,6 @@ func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModule
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
-}
-
// Device type (model)
func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest {
r.deviceType = &deviceType
@@ -56137,6 +60978,18 @@ func (r ApiDcimModuleBaysListRequest) IdN(idN []int32) ApiDcimModuleBaysListRequ
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
@@ -56329,6 +61182,61 @@ func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBay
return r
}
+func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest {
+ r.position = &position
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBaysListRequest {
+ r.positionEmpty = &positionEmpty
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionIc(positionIc []string) ApiDcimModuleBaysListRequest {
+ r.positionIc = &positionIc
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionIe(positionIe []string) ApiDcimModuleBaysListRequest {
+ r.positionIe = &positionIe
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionIew(positionIew []string) ApiDcimModuleBaysListRequest {
+ r.positionIew = &positionIew
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBaysListRequest {
+ r.positionIsw = &positionIsw
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionN(positionN []string) ApiDcimModuleBaysListRequest {
+ r.positionN = &positionN
+ return r
+}
+
+func (r ApiDcimModuleBaysListRequest) PositionNic(positionNic []string) ApiDcimModuleBaysListRequest {
+ r.positionNic = &positionNic
+ return r
+}
+
+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
@@ -56772,50 +61680,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -56929,6 +61793,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
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 {
@@ -57288,6 +62174,119 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
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")
+ }
+ }
+ 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, "")
}
@@ -57649,14 +62648,14 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques
}
type ApiDcimModuleBaysPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableModuleBayRequest *PatchedWritableModuleBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedModuleBayRequest *PatchedModuleBayRequest
}
-func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest PatchedWritableModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest {
- r.patchedWritableModuleBayRequest = &patchedWritableModuleBayRequest
+func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedModuleBayRequest(patchedModuleBayRequest PatchedModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest {
+ r.patchedModuleBayRequest = &patchedModuleBayRequest
return r
}
@@ -57722,7 +62721,7 @@ func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableModuleBayRequest
+ localVarPostBody = r.patchedModuleBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -57893,14 +62892,14 @@ func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrie
}
type ApiDcimModuleBaysUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableModuleBayRequest *WritableModuleBayRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ moduleBayRequest *ModuleBayRequest
}
-func (r ApiDcimModuleBaysUpdateRequest) WritableModuleBayRequest(writableModuleBayRequest WritableModuleBayRequest) ApiDcimModuleBaysUpdateRequest {
- r.writableModuleBayRequest = &writableModuleBayRequest
+func (r ApiDcimModuleBaysUpdateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysUpdateRequest {
+ r.moduleBayRequest = &moduleBayRequest
return r
}
@@ -57947,8 +62946,8 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableModuleBayRequest == nil {
- return localVarReturnValue, nil, reportError("writableModuleBayRequest 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
@@ -57969,7 +62968,7 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableModuleBayRequest
+ localVarPostBody = r.moduleBayRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -58698,8 +63697,8 @@ type ApiDcimModuleTypesListRequest struct {
weightLt *[]float64
weightLte *[]float64
weightN *[]float64
- weightUnit *string
- weightUnitN *string
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
+ weightUnitN *DcimDeviceTypesListWeightUnitParameter
}
// Has console ports
@@ -59116,12 +64115,14 @@ func (r ApiDcimModuleTypesListRequest) WeightN(weightN []float64) ApiDcimModuleT
return r
}
-func (r ApiDcimModuleTypesListRequest) WeightUnit(weightUnit string) ApiDcimModuleTypesListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimModuleTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest {
r.weightUnit = &weightUnit
return r
}
-func (r ApiDcimModuleTypesListRequest) WeightUnitN(weightUnitN string) ApiDcimModuleTypesListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimModuleTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest {
r.weightUnitN = &weightUnitN
return r
}
@@ -63032,13 +68033,13 @@ func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUp
}
type ApiDcimPlatformsCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writablePlatformRequest *WritablePlatformRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ platformRequest *PlatformRequest
}
-func (r ApiDcimPlatformsCreateRequest) WritablePlatformRequest(writablePlatformRequest WritablePlatformRequest) ApiDcimPlatformsCreateRequest {
- r.writablePlatformRequest = &writablePlatformRequest
+func (r ApiDcimPlatformsCreateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsCreateRequest {
+ r.platformRequest = &platformRequest
return r
}
@@ -63082,8 +68083,8 @@ func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writablePlatformRequest == nil {
- return localVarReturnValue, nil, reportError("writablePlatformRequest 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
@@ -63104,7 +68105,7 @@ func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writablePlatformRequest
+ localVarPostBody = r.platformRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -64481,14 +69482,14 @@ func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest)
}
type ApiDcimPlatformsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritablePlatformRequest *PatchedWritablePlatformRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedPlatformRequest *PatchedPlatformRequest
}
-func (r ApiDcimPlatformsPartialUpdateRequest) PatchedWritablePlatformRequest(patchedWritablePlatformRequest PatchedWritablePlatformRequest) ApiDcimPlatformsPartialUpdateRequest {
- r.patchedWritablePlatformRequest = &patchedWritablePlatformRequest
+func (r ApiDcimPlatformsPartialUpdateRequest) PatchedPlatformRequest(patchedPlatformRequest PatchedPlatformRequest) ApiDcimPlatformsPartialUpdateRequest {
+ r.patchedPlatformRequest = &patchedPlatformRequest
return r
}
@@ -64554,7 +69555,7 @@ func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPar
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritablePlatformRequest
+ localVarPostBody = r.patchedPlatformRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -64725,14 +69726,14 @@ func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieve
}
type ApiDcimPlatformsUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writablePlatformRequest *WritablePlatformRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ platformRequest *PlatformRequest
}
-func (r ApiDcimPlatformsUpdateRequest) WritablePlatformRequest(writablePlatformRequest WritablePlatformRequest) ApiDcimPlatformsUpdateRequest {
- r.writablePlatformRequest = &writablePlatformRequest
+func (r ApiDcimPlatformsUpdateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsUpdateRequest {
+ r.platformRequest = &platformRequest
return r
}
@@ -64779,8 +69780,8 @@ func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writablePlatformRequest == nil {
- return localVarReturnValue, nil, reportError("writablePlatformRequest 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
@@ -64801,7 +69802,7 @@ func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writablePlatformRequest
+ localVarPostBody = r.platformRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -65457,8 +70458,17 @@ type ApiDcimPowerFeedsListRequest struct {
amperageLt *[]int32
amperageLte *[]int32
amperageN *[]int32
- cableEnd *string
- cableEndN *string
+ 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
@@ -65495,6 +70505,7 @@ type ApiDcimPowerFeedsListRequest struct {
lastUpdatedLte *[]time.Time
lastUpdatedN *[]time.Time
limit *int32
+ markConnected *bool
maxUtilization *[]int32
maxUtilizationEmpty *bool
maxUtilizationGt *[]int32
@@ -65517,8 +70528,8 @@ type ApiDcimPowerFeedsListRequest struct {
occupied *bool
offset *int32
ordering *string
- phase *string
- phaseN *string
+ phase *DcimPowerFeedsListPhaseParameter
+ phaseN *DcimPowerFeedsListPhaseParameter
powerPanelId *[]int32
powerPanelIdN *[]int32
q *string
@@ -65538,8 +70549,8 @@ type ApiDcimPowerFeedsListRequest struct {
siteIdN *[]int32
status *[]string
statusN *[]string
- supply *string
- supplyN *string
+ supply *DcimPowerFeedsListSupplyParameter
+ supplyN *DcimPowerFeedsListSupplyParameter
tag *[]string
tagN *[]string
tenant *[]string
@@ -65550,8 +70561,8 @@ type ApiDcimPowerFeedsListRequest struct {
tenantGroupIdN *[]int32
tenantId *[]*int32
tenantIdN *[]*int32
- type_ *string
- typeN *string
+ type_ *DcimPowerFeedsListTypeParameter
+ typeN *DcimPowerFeedsListTypeParameter
updatedByRequest *string
voltage *[]int32
voltageEmpty *bool
@@ -65597,16 +70608,65 @@ func (r ApiDcimPowerFeedsListRequest) AmperageN(amperageN []int32) ApiDcimPowerF
return r
}
-func (r ApiDcimPowerFeedsListRequest) CableEnd(cableEnd string) ApiDcimPowerFeedsListRequest {
+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
}
-func (r ApiDcimPowerFeedsListRequest) CableEndN(cableEndN string) ApiDcimPowerFeedsListRequest {
+// * `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
@@ -65788,6 +70848,11 @@ func (r ApiDcimPowerFeedsListRequest) Limit(limit int32) ApiDcimPowerFeedsListRe
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
@@ -65900,12 +70965,14 @@ func (r ApiDcimPowerFeedsListRequest) Ordering(ordering string) ApiDcimPowerFeed
return r
}
-func (r ApiDcimPowerFeedsListRequest) Phase(phase string) ApiDcimPowerFeedsListRequest {
+// * `single-phase` - Single phase * `three-phase` - Three-phase
+func (r ApiDcimPowerFeedsListRequest) Phase(phase DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest {
r.phase = &phase
return r
}
-func (r ApiDcimPowerFeedsListRequest) PhaseN(phaseN string) ApiDcimPowerFeedsListRequest {
+// * `single-phase` - Single phase * `three-phase` - Three-phase
+func (r ApiDcimPowerFeedsListRequest) PhaseN(phaseN DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest {
r.phaseN = &phaseN
return r
}
@@ -66022,12 +71089,14 @@ func (r ApiDcimPowerFeedsListRequest) StatusN(statusN []string) ApiDcimPowerFeed
return r
}
-func (r ApiDcimPowerFeedsListRequest) Supply(supply string) ApiDcimPowerFeedsListRequest {
+// * `ac` - AC * `dc` - DC
+func (r ApiDcimPowerFeedsListRequest) Supply(supply DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest {
r.supply = &supply
return r
}
-func (r ApiDcimPowerFeedsListRequest) SupplyN(supplyN string) ApiDcimPowerFeedsListRequest {
+// * `ac` - AC * `dc` - DC
+func (r ApiDcimPowerFeedsListRequest) SupplyN(supplyN DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest {
r.supplyN = &supplyN
return r
}
@@ -66090,12 +71159,14 @@ func (r ApiDcimPowerFeedsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimPower
return r
}
-func (r ApiDcimPowerFeedsListRequest) Type_(type_ string) ApiDcimPowerFeedsListRequest {
+// * `primary` - Primary * `redundant` - Redundant
+func (r ApiDcimPowerFeedsListRequest) Type_(type_ DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest {
r.type_ = &type_
return r
}
-func (r ApiDcimPowerFeedsListRequest) TypeN(typeN string) ApiDcimPowerFeedsListRequest {
+// * `primary` - Primary * `redundant` - Redundant
+func (r ApiDcimPowerFeedsListRequest) TypeN(typeN DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest {
r.typeN = &typeN
return r
}
@@ -66250,12 +71321,103 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques
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, "")
}
@@ -66604,6 +71766,9 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques
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 reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -68374,6 +73539,8 @@ type ApiDcimPowerOutletTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
feedLeg *[]string
@@ -68385,6 +73552,17 @@ type ApiDcimPowerOutletTemplatesListRequest struct {
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
@@ -68394,6 +73572,8 @@ type ApiDcimPowerOutletTemplatesListRequest struct {
lastUpdatedN *[]time.Time
limit *int32
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -68409,9 +73589,11 @@ type ApiDcimPowerOutletTemplatesListRequest struct {
nameNisw *[]string
offset *int32
ordering *string
+ powerPortId *[]*int32
+ powerPortIdN *[]*int32
q *string
- type_ *string
- typeN *string
+ type_ *DcimPowerOutletTemplatesListTypeParameter
+ typeN *DcimPowerOutletTemplatesListTypeParameter
updatedByRequest *string
}
@@ -68510,6 +73692,18 @@ func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNisw(descriptionNisw
return r
}
+// Device type (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.deviceTypeId = &deviceTypeId
+ return r
+}
+
+// Device type (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.deviceTypeIdN = &deviceTypeIdN
+ return r
+}
+
// Device type (ID)
func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -68569,6 +73763,61 @@ func (r ApiDcimPowerOutletTemplatesListRequest) IdN(idN []int32) ApiDcimPowerOut
return r
}
+func (r ApiDcimPowerOutletTemplatesListRequest) Label(label []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimPowerOutletTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerOutletTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerOutletTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -68615,6 +73864,18 @@ func (r ApiDcimPowerOutletTemplatesListRequest) ModifiedByRequest(modifiedByRequ
return r
}
+// Module type (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.moduleTypeId = &moduleTypeId
+ return r
+}
+
+// Module type (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.moduleTypeIdN = &moduleTypeIdN
+ return r
+}
+
// Module type (ID)
func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest {
r.moduletypeId = &moduletypeId
@@ -68694,18 +73955,32 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Ordering(ordering string) ApiDci
return r
}
+// Power port (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortId(powerPortId []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.powerPortId = &powerPortId
+ return r
+}
+
+// Power port (ID)
+func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortIdN(powerPortIdN []*int32) ApiDcimPowerOutletTemplatesListRequest {
+ r.powerPortIdN = &powerPortIdN
+ return r
+}
+
// Search
func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTemplatesListRequest {
r.q = &q
return r
}
-func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ string) ApiDcimPowerOutletTemplatesListRequest {
+// * `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_
return r
}
-func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN string) ApiDcimPowerOutletTemplatesListRequest {
+// * `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
return r
}
@@ -68949,6 +74224,28 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
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 {
@@ -69062,6 +74359,119 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -69145,6 +74555,28 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
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 {
@@ -69286,6 +74718,28 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle
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")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -70336,8 +75790,10 @@ func (a *DcimAPIService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDes
type ApiDcimPowerOutletsListRequest struct {
ctx context.Context
ApiService *DcimAPIService
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
connected *bool
created *[]time.Time
@@ -70363,10 +75819,6 @@ type ApiDcimPowerOutletsListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -70403,6 +75855,7 @@ type ApiDcimPowerOutletsListRequest struct {
locationN *[]string
locationId *[]int32
locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
moduleId *[]*int32
moduleIdN *[]*int32
@@ -70420,6 +75873,8 @@ type ApiDcimPowerOutletsListRequest struct {
occupied *bool
offset *int32
ordering *string
+ powerPortId *[]*int32
+ powerPortIdN *[]*int32
q *string
rack *[]string
rackN *[]string
@@ -70452,16 +75907,30 @@ type ApiDcimPowerOutletsListRequest struct {
virtualChassisIdN *[]int32
}
-func (r ApiDcimPowerOutletsListRequest) CableEnd(cableEnd string) ApiDcimPowerOutletsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimPowerOutletsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimPowerOutletsListRequest) CableEndN(cableEndN string) ApiDcimPowerOutletsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimPowerOutletsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest {
r.cableEndN = &cableEndN
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
@@ -70591,30 +76060,6 @@ func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowe
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
-}
-
// Device type (model)
func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest {
r.deviceType = &deviceType
@@ -70806,6 +76251,11 @@ func (r ApiDcimPowerOutletsListRequest) LocationIdN(locationIdN []int32) ApiDcim
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
@@ -70895,6 +76345,18 @@ func (r ApiDcimPowerOutletsListRequest) Ordering(ordering string) ApiDcimPowerOu
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 {
r.q = &q
@@ -71119,6 +76581,28 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
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, "")
}
@@ -71362,50 +76846,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -71778,6 +77218,9 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi")
}
}
+ if r.markConnected != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "")
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -71925,6 +77368,28 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe
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")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -73162,13 +78627,13 @@ func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBu
}
type ApiDcimPowerPanelsCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writablePowerPanelRequest *WritablePowerPanelRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ powerPanelRequest *PowerPanelRequest
}
-func (r ApiDcimPowerPanelsCreateRequest) WritablePowerPanelRequest(writablePowerPanelRequest WritablePowerPanelRequest) ApiDcimPowerPanelsCreateRequest {
- r.writablePowerPanelRequest = &writablePowerPanelRequest
+func (r ApiDcimPowerPanelsCreateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsCreateRequest {
+ r.powerPanelRequest = &powerPanelRequest
return r
}
@@ -73212,8 +78677,8 @@ func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writablePowerPanelRequest == nil {
- return localVarReturnValue, nil, reportError("writablePowerPanelRequest 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
@@ -73234,7 +78699,7 @@ func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writablePowerPanelRequest
+ localVarPostBody = r.powerPanelRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -74675,14 +80140,14 @@ func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ
}
type ApiDcimPowerPanelsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritablePowerPanelRequest *PatchedWritablePowerPanelRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedPowerPanelRequest *PatchedPowerPanelRequest
}
-func (r ApiDcimPowerPanelsPartialUpdateRequest) PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest PatchedWritablePowerPanelRequest) ApiDcimPowerPanelsPartialUpdateRequest {
- r.patchedWritablePowerPanelRequest = &patchedWritablePowerPanelRequest
+func (r ApiDcimPowerPanelsPartialUpdateRequest) PatchedPowerPanelRequest(patchedPowerPanelRequest PatchedPowerPanelRequest) ApiDcimPowerPanelsPartialUpdateRequest {
+ r.patchedPowerPanelRequest = &patchedPowerPanelRequest
return r
}
@@ -74748,7 +80213,7 @@ func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanel
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritablePowerPanelRequest
+ localVarPostBody = r.patchedPowerPanelRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -74919,14 +80384,14 @@ func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetr
}
type ApiDcimPowerPanelsUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writablePowerPanelRequest *WritablePowerPanelRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ powerPanelRequest *PowerPanelRequest
}
-func (r ApiDcimPowerPanelsUpdateRequest) WritablePowerPanelRequest(writablePowerPanelRequest WritablePowerPanelRequest) ApiDcimPowerPanelsUpdateRequest {
- r.writablePowerPanelRequest = &writablePowerPanelRequest
+func (r ApiDcimPowerPanelsUpdateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsUpdateRequest {
+ r.powerPanelRequest = &powerPanelRequest
return r
}
@@ -74973,8 +80438,8 @@ func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writablePowerPanelRequest == nil {
- return localVarReturnValue, nil, reportError("writablePowerPanelRequest 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
@@ -74995,7 +80460,7 @@ func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writablePowerPanelRequest
+ localVarPostBody = r.powerPanelRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -75670,6 +81135,8 @@ type ApiDcimPowerPortTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -75679,6 +81146,17 @@ type ApiDcimPowerPortTemplatesListRequest struct {
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
@@ -75695,6 +81173,8 @@ type ApiDcimPowerPortTemplatesListRequest struct {
maximumDrawLte *[]int32
maximumDrawN *[]int32
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -75711,8 +81191,8 @@ type ApiDcimPowerPortTemplatesListRequest struct {
offset *int32
ordering *string
q *string
- type_ *string
- typeN *string
+ type_ *DcimPowerPortTemplatesListTypeParameter
+ typeN *DcimPowerPortTemplatesListTypeParameter
updatedByRequest *string
}
@@ -75846,6 +81326,18 @@ func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []
return r
}
+// 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
+}
+
// Device type (ID)
func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -75893,6 +81385,61 @@ func (r ApiDcimPowerPortTemplatesListRequest) IdN(idN []int32) ApiDcimPowerPortT
return r
}
+func (r ApiDcimPowerPortTemplatesListRequest) Label(label []string) ApiDcimPowerPortTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerPortTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimPowerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerPortTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimPowerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPortTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -75974,6 +81521,18 @@ func (r ApiDcimPowerPortTemplatesListRequest) ModifiedByRequest(modifiedByReques
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
@@ -76059,12 +81618,14 @@ func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTempla
return r
}
-func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ string) ApiDcimPowerPortTemplatesListRequest {
+// * `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 {
r.type_ = &type_
return r
}
-func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN string) ApiDcimPowerPortTemplatesListRequest {
+// * `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 {
r.typeN = &typeN
return r
}
@@ -76377,6 +81938,28 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem
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 {
@@ -76468,6 +82051,119 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -76620,6 +82316,28 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem
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 {
@@ -77818,8 +83536,10 @@ type ApiDcimPowerPortsListRequest struct {
allocatedDrawLt *[]int32
allocatedDrawLte *[]int32
allocatedDrawN *[]int32
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
connected *bool
created *[]time.Time
@@ -77845,10 +83565,6 @@ type ApiDcimPowerPortsListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -77883,6 +83599,7 @@ type ApiDcimPowerPortsListRequest struct {
locationN *[]string
locationId *[]int32
locationIdN *[]int32
+ markConnected *bool
maximumDraw *[]int32
maximumDrawEmpty *bool
maximumDrawGt *[]int32
@@ -77974,16 +83691,30 @@ func (r ApiDcimPowerPortsListRequest) AllocatedDrawN(allocatedDrawN []int32) Api
return r
}
-func (r ApiDcimPowerPortsListRequest) CableEnd(cableEnd string) ApiDcimPowerPortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimPowerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerPortsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimPowerPortsListRequest) CableEndN(cableEndN string) ApiDcimPowerPortsListRequest {
+// * `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
@@ -78113,30 +83844,6 @@ func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerP
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
-}
-
// Device type (model)
func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest {
r.deviceType = &deviceType
@@ -78316,6 +84023,11 @@ func (r ApiDcimPowerPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimPo
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
@@ -78733,6 +84445,28 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques
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, "")
}
@@ -78976,50 +84710,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -79370,6 +85060,9 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques
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 {
@@ -80823,13 +86516,13 @@ func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackRese
}
type ApiDcimRackReservationsCreateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- writableRackReservationRequest *WritableRackReservationRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ rackReservationRequest *RackReservationRequest
}
-func (r ApiDcimRackReservationsCreateRequest) WritableRackReservationRequest(writableRackReservationRequest WritableRackReservationRequest) ApiDcimRackReservationsCreateRequest {
- r.writableRackReservationRequest = &writableRackReservationRequest
+func (r ApiDcimRackReservationsCreateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsCreateRequest {
+ r.rackReservationRequest = &rackReservationRequest
return r
}
@@ -80873,8 +86566,8 @@ func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableRackReservationRequest == nil {
- return localVarReturnValue, nil, reportError("writableRackReservationRequest 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
@@ -80895,7 +86588,7 @@ func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableRackReservationRequest
+ localVarPostBody = r.rackReservationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -81122,6 +86815,7 @@ type ApiDcimRackReservationsListRequest struct {
tenantGroupIdN *[]int32
tenantId *[]*int32
tenantIdN *[]*int32
+ unit *float32
updatedByRequest *string
user *[]string
userN *[]string
@@ -81489,6 +87183,11 @@ func (r ApiDcimRackReservationsListRequest) TenantIdN(tenantIdN []*int32) ApiDci
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
@@ -82221,6 +87920,9 @@ func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservatio
parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
}
}
+ if r.unit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "unit", r.unit, "")
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
}
@@ -82337,14 +88039,14 @@ func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservatio
}
type ApiDcimRackReservationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- patchedWritableRackReservationRequest *PatchedWritableRackReservationRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ patchedRackReservationRequest *PatchedRackReservationRequest
}
-func (r ApiDcimRackReservationsPartialUpdateRequest) PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest PatchedWritableRackReservationRequest) ApiDcimRackReservationsPartialUpdateRequest {
- r.patchedWritableRackReservationRequest = &patchedWritableRackReservationRequest
+func (r ApiDcimRackReservationsPartialUpdateRequest) PatchedRackReservationRequest(patchedRackReservationRequest PatchedRackReservationRequest) ApiDcimRackReservationsPartialUpdateRequest {
+ r.patchedRackReservationRequest = &patchedRackReservationRequest
return r
}
@@ -82410,7 +88112,7 @@ func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackR
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableRackReservationRequest
+ localVarPostBody = r.patchedRackReservationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -82581,14 +88283,14 @@ func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReserv
}
type ApiDcimRackReservationsUpdateRequest struct {
- ctx context.Context
- ApiService *DcimAPIService
- id int32
- writableRackReservationRequest *WritableRackReservationRequest
+ ctx context.Context
+ ApiService *DcimAPIService
+ id int32
+ rackReservationRequest *RackReservationRequest
}
-func (r ApiDcimRackReservationsUpdateRequest) WritableRackReservationRequest(writableRackReservationRequest WritableRackReservationRequest) ApiDcimRackReservationsUpdateRequest {
- r.writableRackReservationRequest = &writableRackReservationRequest
+func (r ApiDcimRackReservationsUpdateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsUpdateRequest {
+ r.rackReservationRequest = &rackReservationRequest
return r
}
@@ -82635,8 +88337,8 @@ func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableRackReservationRequest == nil {
- return localVarReturnValue, nil, reportError("writableRackReservationRequest 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
@@ -82657,7 +88359,7 @@ func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableRackReservationRequest
+ localVarPostBody = r.rackReservationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -85903,8 +91605,8 @@ type ApiDcimRacksListRequest struct {
outerDepthLt *[]int32
outerDepthLte *[]int32
outerDepthN *[]int32
- outerUnit *string
- outerUnitN *string
+ outerUnit *DcimRacksListOuterUnitParameter
+ outerUnitN *DcimRacksListOuterUnitParameter
outerWidth *[]int32
outerWidthEmpty *bool
outerWidthGt *[]int32
@@ -85976,8 +91678,8 @@ type ApiDcimRacksListRequest struct {
weightLt *[]float64
weightLte *[]float64
weightN *[]float64
- weightUnit *string
- weightUnitN *string
+ weightUnit *DcimDeviceTypesListWeightUnitParameter
+ weightUnitN *DcimDeviceTypesListWeightUnitParameter
width *[]int32
widthN *[]int32
}
@@ -86505,12 +92207,14 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi
return r
}
-func (r ApiDcimRacksListRequest) OuterUnit(outerUnit string) ApiDcimRacksListRequest {
+// * `mm` - Millimeters * `in` - Inches
+func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest {
r.outerUnit = &outerUnit
return r
}
-func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN string) ApiDcimRacksListRequest {
+// * `mm` - Millimeters * `in` - Inches
+func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest {
r.outerUnitN = &outerUnitN
return r
}
@@ -86895,12 +92599,14 @@ func (r ApiDcimRacksListRequest) WeightN(weightN []float64) ApiDcimRacksListRequ
return r
}
-func (r ApiDcimRacksListRequest) WeightUnit(weightUnit string) ApiDcimRacksListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimRacksListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRacksListRequest {
r.weightUnit = &weightUnit
return r
}
-func (r ApiDcimRacksListRequest) WeightUnitN(weightUnitN string) ApiDcimRacksListRequest {
+// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces
+func (r ApiDcimRacksListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRacksListRequest {
r.weightUnitN = &weightUnitN
return r
}
@@ -89795,6 +95501,8 @@ type ApiDcimRearPortTemplatesListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceTypeId *[]*int32
+ deviceTypeIdN *[]*int32
devicetypeId *[]*int32
devicetypeIdN *[]*int32
id *[]int32
@@ -89804,6 +95512,17 @@ type ApiDcimRearPortTemplatesListRequest struct {
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
@@ -89813,6 +95532,8 @@ type ApiDcimRearPortTemplatesListRequest struct {
lastUpdatedN *[]time.Time
limit *int32
modifiedByRequest *string
+ moduleTypeId *[]*int32
+ moduleTypeIdN *[]*int32
moduletypeId *[]*int32
moduletypeIdN *[]*int32
name *[]string
@@ -89991,6 +95712,18 @@ func (r ApiDcimRearPortTemplatesListRequest) DescriptionNisw(descriptionNisw []s
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
+}
+
// Device type (ID)
func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest {
r.devicetypeId = &devicetypeId
@@ -90038,6 +95771,61 @@ func (r ApiDcimRearPortTemplatesListRequest) IdN(idN []int32) ApiDcimRearPortTem
return r
}
+func (r ApiDcimRearPortTemplatesListRequest) Label(label []string) ApiDcimRearPortTemplatesListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimRearPortTemplatesListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelN(labelN []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiDcimRearPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimRearPortTemplatesListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
func (r ApiDcimRearPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRearPortTemplatesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -90084,6 +95872,18 @@ func (r ApiDcimRearPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest
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
+}
+
// Module type (ID)
func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest {
r.moduletypeId = &moduletypeId
@@ -90566,6 +96366,28 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl
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 {
@@ -90657,6 +96479,119 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -90740,6 +96675,28 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl
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 {
@@ -92016,8 +97973,10 @@ func (a *DcimAPIService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRe
type ApiDcimRearPortsListRequest struct {
ctx context.Context
ApiService *DcimAPIService
- cableEnd *string
- cableEndN *string
+ cableEnd *CircuitsCircuitTerminationsListCableEndParameter
+ cableEndN *CircuitsCircuitTerminationsListCableEndParameter
+ cableId *[]*int32
+ cableIdN *[]*int32
cabled *bool
color *[]string
colorEmpty *bool
@@ -92053,10 +98012,6 @@ type ApiDcimRearPortsListRequest struct {
deviceN *[]*string
deviceId *[]int32
deviceIdN *[]int32
- deviceRole *[]string
- deviceRoleN *[]string
- deviceRoleId *[]int32
- deviceRoleIdN *[]int32
deviceType *[]string
deviceTypeN *[]string
deviceTypeId *[]int32
@@ -92091,6 +98046,7 @@ type ApiDcimRearPortsListRequest struct {
locationN *[]string
locationId *[]int32
locationIdN *[]int32
+ markConnected *bool
modifiedByRequest *string
moduleId *[]*int32
moduleIdN *[]*int32
@@ -92147,16 +98103,30 @@ type ApiDcimRearPortsListRequest struct {
virtualChassisIdN *[]int32
}
-func (r ApiDcimRearPortsListRequest) CableEnd(cableEnd string) ApiDcimRearPortsListRequest {
+// * `A` - A * `B` - B
+func (r ApiDcimRearPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimRearPortsListRequest {
r.cableEnd = &cableEnd
return r
}
-func (r ApiDcimRearPortsListRequest) CableEndN(cableEndN string) ApiDcimRearPortsListRequest {
+// * `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
+ return r
+}
+
+// Cable (ID)
+func (r ApiDcimRearPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimRearPortsListRequest {
+ r.cableIdN = &cableIdN
+ return r
+}
+
func (r ApiDcimRearPortsListRequest) Cabled(cabled bool) ApiDcimRearPortsListRequest {
r.cabled = &cabled
return r
@@ -92336,30 +98306,6 @@ 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
-}
-
// Device type (model)
func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest {
r.deviceType = &deviceType
@@ -92539,6 +98485,11 @@ func (r ApiDcimRearPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimRea
return r
}
+func (r ApiDcimRearPortsListRequest) MarkConnected(markConnected bool) ApiDcimRearPortsListRequest {
+ r.markConnected = &markConnected
+ return r
+}
+
func (r ApiDcimRearPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRearPortsListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -92885,6 +98836,28 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest)
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, "")
}
@@ -93238,50 +99211,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi")
}
}
- if r.deviceRole != nil {
- t := *r.deviceRole
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "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(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi")
- }
- }
if r.deviceType != nil {
t := *r.deviceType
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -93632,6 +99561,9 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi")
}
}
+ if r.markConnected != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "")
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -95318,6 +101250,10 @@ 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
@@ -95393,6 +101329,30 @@ type ApiDcimRegionsListRequest struct {
updatedByRequest *string
}
+// Region (slug)
+func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+// Region (slug)
+func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+// Region (ID)
+func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+// Region (ID)
+func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
+}
+
// Contact
func (r ApiDcimRegionsListRequest) Contact(contact []int32) ApiDcimRegionsListRequest {
r.contact = &contact
@@ -95813,6 +101773,50 @@ func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P
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 {
@@ -97566,6 +103570,10 @@ 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
@@ -97641,6 +103649,30 @@ type ApiDcimSiteGroupsListRequest struct {
updatedByRequest *string
}
+// Site group (slug)
+func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+// Site group (slug)
+func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+// Site group (ID)
+func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+// Site group (ID)
+func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
+}
+
// Contact
func (r ApiDcimSiteGroupsListRequest) Contact(contact []int32) ApiDcimSiteGroupsListRequest {
r.contact = &contact
@@ -98061,6 +104093,50 @@ func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques
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 {
@@ -99929,6 +106005,16 @@ type ApiDcimSitesListRequest struct {
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
}
@@ -100537,6 +106623,56 @@ func (r ApiDcimSitesListRequest) TenantIdN(tenantIdN []*int32) ApiDcimSitesListR
return r
}
+func (r ApiDcimSitesListRequest) TimeZone(timeZone []string) ApiDcimSitesListRequest {
+ r.timeZone = &timeZone
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneIc(timeZoneIc []string) ApiDcimSitesListRequest {
+ r.timeZoneIc = &timeZoneIc
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneIe(timeZoneIe []string) ApiDcimSitesListRequest {
+ r.timeZoneIe = &timeZoneIe
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneIew(timeZoneIew []string) ApiDcimSitesListRequest {
+ r.timeZoneIew = &timeZoneIew
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneIsw(timeZoneIsw []string) ApiDcimSitesListRequest {
+ r.timeZoneIsw = &timeZoneIsw
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneN(timeZoneN []string) ApiDcimSitesListRequest {
+ r.timeZoneN = &timeZoneN
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneNic(timeZoneNic []string) ApiDcimSitesListRequest {
+ r.timeZoneNic = &timeZoneNic
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneNie(timeZoneNie []string) ApiDcimSitesListRequest {
+ r.timeZoneNie = &timeZoneNie
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneNiew(timeZoneNiew []string) ApiDcimSitesListRequest {
+ r.timeZoneNiew = &timeZoneNiew
+ return r
+}
+
+func (r ApiDcimSitesListRequest) TimeZoneNisw(timeZoneNisw []string) ApiDcimSitesListRequest {
+ r.timeZoneNisw = &timeZoneNisw
+ return r
+}
+
func (r ApiDcimSitesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimSitesListRequest {
r.updatedByRequest = &updatedByRequest
return r
@@ -101744,6 +107880,116 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin
parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi")
}
}
+ if r.timeZone != nil {
+ t := *r.timeZone
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone", t, "multi")
+ }
+ }
+ if r.timeZoneIc != nil {
+ t := *r.timeZoneIc
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ic", t, "multi")
+ }
+ }
+ if r.timeZoneIe != nil {
+ t := *r.timeZoneIe
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ie", t, "multi")
+ }
+ }
+ if r.timeZoneIew != nil {
+ t := *r.timeZoneIew
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__iew", t, "multi")
+ }
+ }
+ if r.timeZoneIsw != nil {
+ t := *r.timeZoneIsw
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__isw", t, "multi")
+ }
+ }
+ if r.timeZoneN != nil {
+ t := *r.timeZoneN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__n", t, "multi")
+ }
+ }
+ if r.timeZoneNic != nil {
+ t := *r.timeZoneNic
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nic", t, "multi")
+ }
+ }
+ if r.timeZoneNie != nil {
+ t := *r.timeZoneNie
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nie", t, "multi")
+ }
+ }
+ if r.timeZoneNiew != nil {
+ t := *r.timeZoneNiew
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__niew", t, "multi")
+ }
+ }
+ if r.timeZoneNisw != nil {
+ t := *r.timeZoneNisw
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nisw", t, "multi")
+ }
+ }
if r.updatedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
}
@@ -102834,6 +109080,13 @@ type ApiDcimVirtualChassisListRequest struct {
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
@@ -103120,6 +109373,41 @@ func (r ApiDcimVirtualChassisListRequest) MasterIdN(masterIdN []*int32) ApiDcimV
return r
}
+func (r ApiDcimVirtualChassisListRequest) MemberCount(memberCount []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCount = &memberCount
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountEmpty(memberCountEmpty bool) ApiDcimVirtualChassisListRequest {
+ r.memberCountEmpty = &memberCountEmpty
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountGt(memberCountGt []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCountGt = &memberCountGt
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountGte(memberCountGte []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCountGte = &memberCountGte
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountLt(memberCountLt []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCountLt = &memberCountLt
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountLte(memberCountLte []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCountLte = &memberCountLte
+ return r
+}
+
+func (r ApiDcimVirtualChassisListRequest) MemberCountN(memberCountN []int32) ApiDcimVirtualChassisListRequest {
+ r.memberCountN = &memberCountN
+ return r
+}
+
func (r ApiDcimVirtualChassisListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimVirtualChassisListRequest {
r.modifiedByRequest = &modifiedByRequest
return r
@@ -103849,6 +110137,75 @@ func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi
parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", t, "multi")
}
}
+ if r.memberCount != nil {
+ t := *r.memberCount
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count", t, "multi")
+ }
+ }
+ if r.memberCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__empty", r.memberCountEmpty, "")
+ }
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gt", t, "multi")
+ }
+ }
+ if r.memberCountGte != nil {
+ t := *r.memberCountGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gte", t, "multi")
+ }
+ }
+ if r.memberCountLt != nil {
+ t := *r.memberCountLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lt", t, "multi")
+ }
+ }
+ if r.memberCountLte != nil {
+ t := *r.memberCountLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lte", t, "multi")
+ }
+ }
+ if r.memberCountN != nil {
+ t := *r.memberCountN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__n", t, "multi")
+ }
+ }
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
@@ -105244,6 +111601,15 @@ type ApiDcimVirtualDeviceContextsListRequest struct {
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
@@ -105446,6 +111812,53 @@ func (r ApiDcimVirtualDeviceContextsListRequest) IdN(idN []int32) ApiDcimVirtual
return r
}
+func (r ApiDcimVirtualDeviceContextsListRequest) Identifier(identifier []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifier = &identifier
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierEmpty(identifierEmpty bool) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierEmpty = &identifierEmpty
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierGt(identifierGt []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierGt = &identifierGt
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierGte(identifierGte []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierGte = &identifierGte
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierLt(identifierLt []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierLt = &identifierLt
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierLte(identifierLte []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierLte = &identifierLte
+ return r
+}
+
+func (r ApiDcimVirtualDeviceContextsListRequest) IdentifierN(identifierN []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.identifierN = &identifierN
+ return r
+}
+
+// Interface (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) InterfaceId(interfaceId []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.interfaceId = &interfaceId
+ return r
+}
+
+// Interface (ID)
+func (r ApiDcimVirtualDeviceContextsListRequest) InterfaceIdN(interfaceIdN []int32) ApiDcimVirtualDeviceContextsListRequest {
+ r.interfaceIdN = &interfaceIdN
+ return r
+}
+
func (r ApiDcimVirtualDeviceContextsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimVirtualDeviceContextsListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -106012,6 +112425,97 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ if r.identifier != nil {
+ t := *r.identifier
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "multi")
+ }
+ }
+ if r.identifierEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "")
+ }
+ if r.identifierGt != nil {
+ t := *r.identifierGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "multi")
+ }
+ }
+ if r.identifierGte != nil {
+ t := *r.identifierGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "multi")
+ }
+ }
+ if r.identifierLt != nil {
+ t := *r.identifierLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "multi")
+ }
+ }
+ if r.identifierLte != nil {
+ t := *r.identifierLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "multi")
+ }
+ }
+ if r.identifierN != nil {
+ t := *r.identifierN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
diff --git a/api_extras.go b/api_extras.go
index 53776b41d8..2b89c130c0 100644
--- a/api_extras.go
+++ b/api_extras.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -388,13 +388,13 @@ func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarks
}
type ApiExtrasBookmarksCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- writableBookmarkRequest *WritableBookmarkRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ bookmarkRequest *BookmarkRequest
}
-func (r ApiExtrasBookmarksCreateRequest) WritableBookmarkRequest(writableBookmarkRequest WritableBookmarkRequest) ApiExtrasBookmarksCreateRequest {
- r.writableBookmarkRequest = &writableBookmarkRequest
+func (r ApiExtrasBookmarksCreateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksCreateRequest {
+ r.bookmarkRequest = &bookmarkRequest
return r
}
@@ -438,8 +438,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCrea
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableBookmarkRequest == nil {
- return localVarReturnValue, nil, reportError("writableBookmarkRequest is required and must be specified")
+ if r.bookmarkRequest == nil {
+ return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -460,7 +460,7 @@ func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCrea
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableBookmarkRequest
+ localVarPostBody = r.bookmarkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -1203,14 +1203,14 @@ func (a *ExtrasAPIService) ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRe
}
type ApiExtrasBookmarksPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- patchedWritableBookmarkRequest *PatchedWritableBookmarkRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ patchedBookmarkRequest *PatchedBookmarkRequest
}
-func (r ApiExtrasBookmarksPartialUpdateRequest) PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest PatchedWritableBookmarkRequest) ApiExtrasBookmarksPartialUpdateRequest {
- r.patchedWritableBookmarkRequest = &patchedWritableBookmarkRequest
+func (r ApiExtrasBookmarksPartialUpdateRequest) PatchedBookmarkRequest(patchedBookmarkRequest PatchedBookmarkRequest) ApiExtrasBookmarksPartialUpdateRequest {
+ r.patchedBookmarkRequest = &patchedBookmarkRequest
return r
}
@@ -1276,7 +1276,7 @@ func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookma
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableBookmarkRequest
+ localVarPostBody = r.patchedBookmarkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -1447,14 +1447,14 @@ func (a *ExtrasAPIService) ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRe
}
type ApiExtrasBookmarksUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableBookmarkRequest *WritableBookmarkRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ bookmarkRequest *BookmarkRequest
}
-func (r ApiExtrasBookmarksUpdateRequest) WritableBookmarkRequest(writableBookmarkRequest WritableBookmarkRequest) ApiExtrasBookmarksUpdateRequest {
- r.writableBookmarkRequest = &writableBookmarkRequest
+func (r ApiExtrasBookmarksUpdateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksUpdateRequest {
+ r.bookmarkRequest = &bookmarkRequest
return r
}
@@ -1501,8 +1501,8 @@ func (a *ExtrasAPIService) ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpda
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableBookmarkRequest == nil {
- return localVarReturnValue, nil, reportError("writableBookmarkRequest is required and must be specified")
+ if r.bookmarkRequest == nil {
+ return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -1523,7 +1523,7 @@ func (a *ExtrasAPIService) ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpda
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableBookmarkRequest
+ localVarPostBody = r.bookmarkRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -1939,13 +1939,13 @@ func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConf
}
type ApiExtrasConfigContextsCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- writableConfigContextRequest *WritableConfigContextRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ configContextRequest *ConfigContextRequest
}
-func (r ApiExtrasConfigContextsCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsCreateRequest {
- r.writableConfigContextRequest = &writableConfigContextRequest
+func (r ApiExtrasConfigContextsCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsCreateRequest {
+ r.configContextRequest = &configContextRequest
return r
}
@@ -1989,8 +1989,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigCo
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigContextRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified")
+ if r.configContextRequest == nil {
+ return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -2011,7 +2011,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigCo
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigContextRequest
+ localVarPostBody = r.configContextRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -2172,6 +2172,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigC
type ApiExtrasConfigContextsListRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
+ autoSyncEnabled *bool
clusterGroup *[]string
clusterGroupN *[]string
clusterGroupId *[]int32
@@ -2212,6 +2213,10 @@ type ApiExtrasConfigContextsListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ deviceRole *[]string
+ deviceRoleN *[]string
+ deviceRoleId *[]int32
+ deviceRoleIdN *[]int32
deviceTypeId *[]int32
deviceTypeIdN *[]int32
id *[]int32
@@ -2282,6 +2287,18 @@ type ApiExtrasConfigContextsListRequest struct {
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)
@@ -2498,6 +2515,30 @@ func (r ApiExtrasConfigContextsListRequest) DescriptionNisw(descriptionNisw []st
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
@@ -2890,6 +2931,41 @@ func (r ApiExtrasConfigContextsListRequest) UpdatedByRequest(updatedByRequest st
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)
}
@@ -2931,6 +3007,9 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ 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 {
@@ -3347,6 +3426,50 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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 r.deviceTypeId != nil {
t := *r.deviceTypeId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4045,6 +4168,75 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
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")
+ }
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -4114,14 +4306,14 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont
}
type ApiExtrasConfigContextsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- patchedWritableConfigContextRequest *PatchedWritableConfigContextRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ patchedConfigContextRequest *PatchedConfigContextRequest
}
-func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest PatchedWritableConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest {
- r.patchedWritableConfigContextRequest = &patchedWritableConfigContextRequest
+func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedConfigContextRequest(patchedConfigContextRequest PatchedConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest {
+ r.patchedConfigContextRequest = &patchedConfigContextRequest
return r
}
@@ -4187,7 +4379,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasC
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableConfigContextRequest
+ localVarPostBody = r.patchedConfigContextRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -4358,14 +4550,14 @@ func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfig
}
type ApiExtrasConfigContextsSyncCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableConfigContextRequest *WritableConfigContextRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ configContextRequest *ConfigContextRequest
}
-func (r ApiExtrasConfigContextsSyncCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest {
- r.writableConfigContextRequest = &writableConfigContextRequest
+func (r ApiExtrasConfigContextsSyncCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest {
+ r.configContextRequest = &configContextRequest
return r
}
@@ -4412,8 +4604,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigContextRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified")
+ if r.configContextRequest == nil {
+ return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -4434,7 +4626,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigContextRequest
+ localVarPostBody = r.configContextRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -4487,14 +4679,14 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf
}
type ApiExtrasConfigContextsUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableConfigContextRequest *WritableConfigContextRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ configContextRequest *ConfigContextRequest
}
-func (r ApiExtrasConfigContextsUpdateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsUpdateRequest {
- r.writableConfigContextRequest = &writableConfigContextRequest
+func (r ApiExtrasConfigContextsUpdateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsUpdateRequest {
+ r.configContextRequest = &configContextRequest
return r
}
@@ -4541,8 +4733,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigContextRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified")
+ if r.configContextRequest == nil {
+ return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -4563,7 +4755,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigContextRequest
+ localVarPostBody = r.configContextRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -4979,13 +5171,13 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasCon
}
type ApiExtrasConfigTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- writableConfigTemplateRequest *WritableConfigTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ configTemplateRequest *ConfigTemplateRequest
}
-func (r ApiExtrasConfigTemplatesCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest {
- r.writableConfigTemplateRequest = &writableConfigTemplateRequest
+func (r ApiExtrasConfigTemplatesCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest {
+ r.configTemplateRequest = &configTemplateRequest
return r
}
@@ -5029,8 +5221,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified")
+ if r.configTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -5051,7 +5243,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigTemplateRequest
+ localVarPostBody = r.configTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5210,104 +5402,167 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig
}
type ApiExtrasConfigTemplatesListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- dataFileId *[]*int32
- dataFileIdN *[]*int32
- dataSourceId *[]*int32
- dataSourceIdN *[]*int32
- dataSynced *[]time.Time
- dataSyncedEmpty *bool
- dataSyncedGt *[]time.Time
- dataSyncedGte *[]time.Time
- dataSyncedLt *[]time.Time
- dataSyncedLte *[]time.Time
- dataSyncedN *[]time.Time
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- tag *[]string
- tagN *[]string
-}
-
-// Data file (ID)
-func (r ApiExtrasConfigTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigTemplatesListRequest {
- r.dataFileId = &dataFileId
- return r
-}
-
-// Data file (ID)
-func (r ApiExtrasConfigTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigTemplatesListRequest {
- r.dataFileIdN = &dataFileIdN
- return r
-}
-
-// Data source (ID)
-func (r ApiExtrasConfigTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigTemplatesListRequest {
- r.dataSourceId = &dataSourceId
- return r
-}
-
-// Data source (ID)
-func (r ApiExtrasConfigTemplatesListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigTemplatesListRequest {
- r.dataSourceIdN = &dataSourceIdN
- return r
-}
-
-func (r ApiExtrasConfigTemplatesListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigTemplatesListRequest {
- r.dataSynced = &dataSynced
- return r
-}
-
-func (r ApiExtrasConfigTemplatesListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasConfigTemplatesListRequest {
- r.dataSyncedEmpty = &dataSyncedEmpty
- return r
-}
-
-func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigTemplatesListRequest {
- r.dataSyncedGt = &dataSyncedGt
- return r
-}
-
-func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigTemplatesListRequest {
- r.dataSyncedGte = &dataSyncedGte
- return r
-}
-
-func (r ApiExtrasConfigTemplatesListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigTemplatesListRequest {
- r.dataSyncedLt = &dataSyncedLt
- return r
-}
+ 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
+ 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
@@ -5409,12 +5664,52 @@ func (r ApiExtrasConfigTemplatesListRequest) IdN(idN []int32) ApiExtrasConfigTem
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
@@ -5498,6 +5793,11 @@ func (r ApiExtrasConfigTemplatesListRequest) TagN(tagN []string) ApiExtrasConfig
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)
}
@@ -5539,95 +5839,178 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.dataFileId != nil {
- t := *r.dataFileId
+ 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, "data_file_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
}
}
- if r.dataFileIdN != nil {
- t := *r.dataFileIdN
+ 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_file_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
}
}
- if r.dataSourceId != nil {
- t := *r.dataSourceId
+ 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, "data_source_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
}
}
- if r.dataSourceIdN != nil {
- t := *r.dataSourceIdN
+ 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, "data_source_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
}
}
- if r.dataSynced != nil {
- t := *r.dataSynced
+ 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, "data_synced", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
}
}
- if r.dataSyncedEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "")
- }
- if r.dataSyncedGt != nil {
- t := *r.dataSyncedGt
+ 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, "data_synced__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.dataSyncedGte != nil {
- t := *r.dataSyncedGte
+ 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, "data_synced__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.dataSyncedLt != nil {
- t := *r.dataSyncedLt
+ 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_synced__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi")
+ 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 {
@@ -5834,9 +6217,89 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
if r.name != nil {
t := *r.name
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5981,6 +6444,9 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
}
}
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -6050,14 +6516,14 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem
}
type ApiExtrasConfigTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- patchedWritableConfigTemplateRequest *PatchedWritableConfigTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ patchedConfigTemplateRequest *PatchedConfigTemplateRequest
}
-func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest PatchedWritableConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest {
- r.patchedWritableConfigTemplateRequest = &patchedWritableConfigTemplateRequest
+func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedConfigTemplateRequest(patchedConfigTemplateRequest PatchedConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest {
+ r.patchedConfigTemplateRequest = &patchedConfigTemplateRequest
return r
}
@@ -6123,7 +6589,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableConfigTemplateRequest
+ localVarPostBody = r.patchedConfigTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -6176,15 +6642,15 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras
}
type ApiExtrasConfigTemplatesRenderCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableConfigTemplateRequest *WritableConfigTemplateRequest
- format *DcimDevicesRenderConfigCreateFormatParameter
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ configTemplateRequest *ConfigTemplateRequest
+ format *DcimDevicesRenderConfigCreateFormatParameter
}
-func (r ApiExtrasConfigTemplatesRenderCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest {
- r.writableConfigTemplateRequest = &writableConfigTemplateRequest
+func (r ApiExtrasConfigTemplatesRenderCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest {
+ r.configTemplateRequest = &configTemplateRequest
return r
}
@@ -6237,8 +6703,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified")
+ if r.configTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified")
}
if r.format != nil {
@@ -6262,7 +6728,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigTemplateRequest
+ localVarPostBody = r.configTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -6433,14 +6899,14 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfi
}
type ApiExtrasConfigTemplatesSyncCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableConfigTemplateRequest *WritableConfigTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ configTemplateRequest *ConfigTemplateRequest
}
-func (r ApiExtrasConfigTemplatesSyncCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest {
- r.writableConfigTemplateRequest = &writableConfigTemplateRequest
+func (r ApiExtrasConfigTemplatesSyncCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest {
+ r.configTemplateRequest = &configTemplateRequest
return r
}
@@ -6487,8 +6953,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified")
+ if r.configTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -6509,7 +6975,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigTemplateRequest
+ localVarPostBody = r.configTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -6562,14 +7028,14 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon
}
type ApiExtrasConfigTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableConfigTemplateRequest *WritableConfigTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ configTemplateRequest *ConfigTemplateRequest
}
-func (r ApiExtrasConfigTemplatesUpdateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest {
- r.writableConfigTemplateRequest = &writableConfigTemplateRequest
+func (r ApiExtrasConfigTemplatesUpdateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest {
+ r.configTemplateRequest = &configTemplateRequest
return r
}
@@ -6616,8 +7082,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableConfigTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified")
+ if r.configTemplateRequest == nil {
+ return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -6638,7 +7104,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableConfigTemplateRequest
+ localVarPostBody = r.configTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -6690,341 +7156,42 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasContentTypesListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- appLabel *string
- id *int32
- limit *int32
- model *string
- offset *int32
- ordering *string
- q *string
-}
-
-func (r ApiExtrasContentTypesListRequest) AppLabel(appLabel string) ApiExtrasContentTypesListRequest {
- r.appLabel = &appLabel
- return r
-}
-
-func (r ApiExtrasContentTypesListRequest) Id(id int32) ApiExtrasContentTypesListRequest {
- r.id = &id
- return r
-}
-
-// Number of results to return per page.
-func (r ApiExtrasContentTypesListRequest) Limit(limit int32) ApiExtrasContentTypesListRequest {
- r.limit = &limit
- return r
-}
-
-func (r ApiExtrasContentTypesListRequest) Model(model string) ApiExtrasContentTypesListRequest {
- r.model = &model
- return r
-}
-
-// The initial index from which to return the results.
-func (r ApiExtrasContentTypesListRequest) Offset(offset int32) ApiExtrasContentTypesListRequest {
- r.offset = &offset
- return r
-}
-
-// Which field to use when ordering the results.
-func (r ApiExtrasContentTypesListRequest) Ordering(ordering string) ApiExtrasContentTypesListRequest {
- r.ordering = &ordering
- return r
+type ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest
}
-// Search
-func (r ApiExtrasContentTypesListRequest) Q(q string) ApiExtrasContentTypesListRequest {
- r.q = &q
+func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest {
+ r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest
return r
}
-func (r ApiExtrasContentTypesListRequest) Execute() (*PaginatedContentTypeList, *http.Response, error) {
- return r.ApiService.ExtrasContentTypesListExecute(r)
+func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r)
}
/*
-ExtrasContentTypesList Method for ExtrasContentTypesList
+ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy
-Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.
+Delete a list of custom field choice set objects.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasContentTypesListRequest
+ @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
*/
-func (a *ExtrasAPIService) ExtrasContentTypesList(ctx context.Context) ApiExtrasContentTypesListRequest {
- return ApiExtrasContentTypesListRequest{
+func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest {
+ return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-//
-// @return PaginatedContentTypeList
-func (a *ExtrasAPIService) ExtrasContentTypesListExecute(r ApiExtrasContentTypesListRequest) (*PaginatedContentTypeList, *http.Response, error) {
+func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *PaginatedContentTypeList
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasContentTypesList")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/extras/content-types/"
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- if r.appLabel != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "")
- }
- if r.id != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "")
- }
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.model != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "")
- }
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.ordering != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
- }
- if r.q != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
- }
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // 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 ApiExtrasContentTypesRetrieveRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
-}
-
-func (r ApiExtrasContentTypesRetrieveRequest) Execute() (*ContentType, *http.Response, error) {
- return r.ApiService.ExtrasContentTypesRetrieveExecute(r)
-}
-
-/*
-ExtrasContentTypesRetrieve Method for ExtrasContentTypesRetrieve
-
-Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this content type.
- @return ApiExtrasContentTypesRetrieveRequest
-*/
-func (a *ExtrasAPIService) ExtrasContentTypesRetrieve(ctx context.Context, id int32) ApiExtrasContentTypesRetrieveRequest {
- return ApiExtrasContentTypesRetrieveRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
- }
-}
-
-// Execute executes the request
-//
-// @return ContentType
-func (a *ExtrasAPIService) ExtrasContentTypesRetrieveExecute(r ApiExtrasContentTypesRetrieveRequest) (*ContentType, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodGet
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ContentType
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasContentTypesRetrieve")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
- }
-
- localVarPath := localBasePath + "/api/extras/content-types/{id}/"
- localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1)
-
- localVarHeaderParams := make(map[string]string)
- localVarQueryParams := url.Values{}
- localVarFormParams := url.Values{}
-
- // 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 ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest
-}
-
-func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest {
- r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest
- return r
-}
-
-func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r)
-}
-
-/*
-ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy
-
-Delete a list of custom field choice set objects.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest
-*/
-func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest {
- return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{
- ApiService: a,
- ctx: ctx,
- }
-}
-
-// Execute executes the request
-func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, 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.ExtrasCustomFieldChoiceSetsBulkDestroy")
@@ -7704,9 +7871,17 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtras
type ApiExtrasCustomFieldChoiceSetsListRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
- baseChoices *string
- baseChoicesN *string
+ 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
@@ -7725,7 +7900,15 @@ type ApiExtrasCustomFieldChoiceSetsListRequest struct {
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
@@ -7741,16 +7924,17 @@ type ApiExtrasCustomFieldChoiceSetsListRequest struct {
orderAlphabetically *bool
ordering *string
q *string
+ updatedByRequest *string
}
-// Base set of predefined choices (optional)
-func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoices(baseChoices string) ApiExtrasCustomFieldChoiceSetsListRequest {
+// 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
}
-// Base set of predefined choices (optional)
-func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoicesN(baseChoicesN string) ApiExtrasCustomFieldChoiceSetsListRequest {
+// 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
return r
}
@@ -7760,6 +7944,46 @@ func (r ApiExtrasCustomFieldChoiceSetsListRequest) Choice(choice []string) ApiEx
return r
}
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) Created(created []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.created = &created
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdEmpty = &createdEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdGt = &createdGt
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdGte = &createdGte
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdLt = &createdLt
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdLte = &createdLte
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdN = &createdN
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.createdByRequest = &createdByRequest
+ return r
+}
+
func (r ApiExtrasCustomFieldChoiceSetsListRequest) Description(description []string) ApiExtrasCustomFieldChoiceSetsListRequest {
r.description = &description
return r
@@ -7850,12 +8074,52 @@ func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdN(idN []int32) ApiExtrasCus
return r
}
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiExtrasCustomFieldChoiceSetsListRequest) Limit(limit int32) ApiExtrasCustomFieldChoiceSetsListRequest {
r.limit = &limit
return r
}
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
func (r ApiExtrasCustomFieldChoiceSetsListRequest) Name(name []string) ApiExtrasCustomFieldChoiceSetsListRequest {
r.name = &name
return r
@@ -7934,6 +8198,11 @@ func (r ApiExtrasCustomFieldChoiceSetsListRequest) Q(q string) ApiExtrasCustomFi
return r
}
+func (r ApiExtrasCustomFieldChoiceSetsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
func (r ApiExtrasCustomFieldChoiceSetsListRequest) Execute() (*PaginatedCustomFieldChoiceSetList, *http.Response, error) {
return r.ApiService.ExtrasCustomFieldChoiceSetsListExecute(r)
}
@@ -7992,6 +8261,86 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCus
parameterAddToHeaderOrQuery(localVarQueryParams, "choice", 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 {
@@ -8174,9 +8523,89 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCus
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
if r.name != nil {
t := *r.name
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -8302,6 +8731,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCus
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{}
@@ -9338,97 +9770,149 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFie
}
type ApiExtrasCustomFieldsListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- choiceSet *[]string
- choiceSetN *[]string
- choiceSetId *[]*int32
- choiceSetIdN *[]*int32
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
- description *[]string
- descriptionEmpty *bool
- descriptionIc *[]string
- descriptionIe *[]string
- descriptionIew *[]string
- descriptionIsw *[]string
- descriptionN *[]string
- descriptionNic *[]string
- descriptionNie *[]string
- descriptionNiew *[]string
- descriptionNisw *[]string
- filterLogic *string
- filterLogicN *string
- groupName *[]string
- groupNameEmpty *bool
- groupNameIc *[]string
- groupNameIe *[]string
- groupNameIew *[]string
- groupNameIsw *[]string
- groupNameN *[]string
- groupNameNic *[]string
- groupNameNie *[]string
- groupNameNiew *[]string
- groupNameNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- isCloneable *bool
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- required *bool
- searchWeight *[]int32
- searchWeightEmpty *bool
- searchWeightGt *[]int32
- searchWeightGte *[]int32
- searchWeightLt *[]int32
- searchWeightLte *[]int32
- searchWeightN *[]int32
- type_ *[]string
- typeN *[]string
- uiEditable *string
- uiEditableN *string
- uiVisible *string
- uiVisibleN *string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ 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 {
@@ -9451,88 +9935,43 @@ func (r ApiExtrasCustomFieldsListRequest) ChoiceSetIdN(choiceSetIdN []*int32) Ap
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeId = &contentTypeId
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasCustomFieldsListRequest {
- r.contentTypeIdN = &contentTypeIdN
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypes(contentTypes string) ApiExtrasCustomFieldsListRequest {
- r.contentTypes = &contentTypes
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesIc = &contentTypesIc
- return r
-}
-
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesIe = &contentTypesIe
+func (r ApiExtrasCustomFieldsListRequest) Created(created []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.created = &created
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesIew = &contentTypesIew
+func (r ApiExtrasCustomFieldsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesIsw = &contentTypesIsw
+func (r ApiExtrasCustomFieldsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesN(contentTypesN string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesN = &contentTypesN
+func (r ApiExtrasCustomFieldsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesNic = &contentTypesNic
+func (r ApiExtrasCustomFieldsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdLt = &createdLt
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesNie = &contentTypesNie
+func (r ApiExtrasCustomFieldsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdLte = &createdLte
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesNiew = &contentTypesNiew
+func (r ApiExtrasCustomFieldsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.createdN = &createdN
return r
}
-func (r ApiExtrasCustomFieldsListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasCustomFieldsListRequest {
- r.contentTypesNisw = &contentTypesNisw
+func (r ApiExtrasCustomFieldsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldsListRequest {
+ r.createdByRequest = &createdByRequest
return r
}
@@ -9591,14 +10030,14 @@ func (r ApiExtrasCustomFieldsListRequest) DescriptionNisw(descriptionNisw []stri
return r
}
-// Loose matches any instance of a given string; exact matches the entire field.
-func (r ApiExtrasCustomFieldsListRequest) FilterLogic(filterLogic string) ApiExtrasCustomFieldsListRequest {
+// 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.
-func (r ApiExtrasCustomFieldsListRequest) FilterLogicN(filterLogicN string) ApiExtrasCustomFieldsListRequest {
+// 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
}
@@ -9698,12 +10137,107 @@ func (r ApiExtrasCustomFieldsListRequest) IsCloneable(isCloneable bool) ApiExtra
return r
}
+func (r ApiExtrasCustomFieldsListRequest) Label(label []string) ApiExtrasCustomFieldsListRequest {
+ r.label = &label
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelEmpty(labelEmpty bool) ApiExtrasCustomFieldsListRequest {
+ r.labelEmpty = &labelEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelIc(labelIc []string) ApiExtrasCustomFieldsListRequest {
+ r.labelIc = &labelIc
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelIe(labelIe []string) ApiExtrasCustomFieldsListRequest {
+ r.labelIe = &labelIe
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelIew(labelIew []string) ApiExtrasCustomFieldsListRequest {
+ r.labelIew = &labelIew
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelIsw(labelIsw []string) ApiExtrasCustomFieldsListRequest {
+ r.labelIsw = &labelIsw
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelN(labelN []string) ApiExtrasCustomFieldsListRequest {
+ r.labelN = &labelN
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelNic(labelNic []string) ApiExtrasCustomFieldsListRequest {
+ r.labelNic = &labelNic
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelNie(labelNie []string) ApiExtrasCustomFieldsListRequest {
+ r.labelNie = &labelNie
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelNiew(labelNiew []string) ApiExtrasCustomFieldsListRequest {
+ r.labelNiew = &labelNiew
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LabelNisw(labelNisw []string) ApiExtrasCustomFieldsListRequest {
+ r.labelNisw = &labelNisw
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldsListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiExtrasCustomFieldsListRequest) Limit(limit int32) ApiExtrasCustomFieldsListRequest {
r.limit = &limit
return r
}
+func (r ApiExtrasCustomFieldsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
func (r ApiExtrasCustomFieldsListRequest) Name(name []string) ApiExtrasCustomFieldsListRequest {
r.name = &name
return r
@@ -9759,6 +10293,66 @@ func (r ApiExtrasCustomFieldsListRequest) NameNisw(nameNisw []string) ApiExtrasC
return r
}
+func (r ApiExtrasCustomFieldsListRequest) ObjectType(objectType string) ApiExtrasCustomFieldsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomFieldsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiExtrasCustomFieldsListRequest) Offset(offset int32) ApiExtrasCustomFieldsListRequest {
r.offset = &offset
@@ -9777,6 +10371,26 @@ func (r ApiExtrasCustomFieldsListRequest) Q(q string) ApiExtrasCustomFieldsListR
return r
}
+func (r ApiExtrasCustomFieldsListRequest) RelatedObjectType(relatedObjectType string) ApiExtrasCustomFieldsListRequest {
+ r.relatedObjectType = &relatedObjectType
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeN(relatedObjectTypeN string) ApiExtrasCustomFieldsListRequest {
+ r.relatedObjectTypeN = &relatedObjectTypeN
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeId(relatedObjectTypeId []int32) ApiExtrasCustomFieldsListRequest {
+ r.relatedObjectTypeId = &relatedObjectTypeId
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeIdN(relatedObjectTypeIdN []int32) ApiExtrasCustomFieldsListRequest {
+ r.relatedObjectTypeIdN = &relatedObjectTypeIdN
+ return r
+}
+
func (r ApiExtrasCustomFieldsListRequest) Required(required bool) ApiExtrasCustomFieldsListRequest {
r.required = &required
return r
@@ -9829,30 +10443,160 @@ func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []string) ApiExtrasCustomF
return r
}
-// Specifies whether the custom field value can be edited in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable string) ApiExtrasCustomFieldsListRequest {
+// 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
}
-// Specifies whether the custom field value can be edited in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiEditableN(uiEditableN string) ApiExtrasCustomFieldsListRequest {
+// 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
return r
}
-// Specifies whether the custom field is displayed in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiVisible(uiVisible string) ApiExtrasCustomFieldsListRequest {
+// 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
}
-// Specifies whether the custom field is displayed in the UI
-func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN string) ApiExtrasCustomFieldsListRequest {
+// 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
return r
}
+func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximum(validationMaximum []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximum = &validationMaximum
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumEmpty(validationMaximumEmpty bool) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumEmpty = &validationMaximumEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGt(validationMaximumGt []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumGt = &validationMaximumGt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGte(validationMaximumGte []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumGte = &validationMaximumGte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLt(validationMaximumLt []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumLt = &validationMaximumLt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLte(validationMaximumLte []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumLte = &validationMaximumLte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumN(validationMaximumN []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMaximumN = &validationMaximumN
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimum(validationMinimum []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimum = &validationMinimum
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumEmpty(validationMinimumEmpty bool) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumEmpty = &validationMinimumEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGt(validationMinimumGt []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumGt = &validationMinimumGt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGte(validationMinimumGte []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumGte = &validationMinimumGte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLt(validationMinimumLt []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumLt = &validationMinimumLt
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLte(validationMinimumLte []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumLte = &validationMinimumLte
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumN(validationMinimumN []int32) ApiExtrasCustomFieldsListRequest {
+ r.validationMinimumN = &validationMinimumN
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegex(validationRegex []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegex = &validationRegex
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexEmpty(validationRegexEmpty bool) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexEmpty = &validationRegexEmpty
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIc(validationRegexIc []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexIc = &validationRegexIc
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIe(validationRegexIe []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexIe = &validationRegexIe
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIew(validationRegexIew []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexIew = &validationRegexIew
+ return r
+}
+
+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 ApiExtrasCustomFieldsListRequest) ValidationRegexNic(validationRegexNic []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexNic = &validationRegexNic
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNie(validationRegexNie []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexNie = &validationRegexNie
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNiew(validationRegexNiew []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexNiew = &validationRegexNiew
+ return r
+}
+
+func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNisw(validationRegexNisw []string) ApiExtrasCustomFieldsListRequest {
+ r.validationRegexNisw = &validationRegexNisw
+ return r
+}
+
func (r ApiExtrasCustomFieldsListRequest) Weight(weight []int32) ApiExtrasCustomFieldsListRequest {
r.weight = &weight
return r
@@ -9973,112 +10717,85 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id__n", t, "multi")
}
}
- if r.contentTypeId != nil {
- t := *r.contentTypeId
+ 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, "content_type_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
}
}
- if r.contentTypeIdEmpty != nil {
- t := *r.contentTypeIdEmpty
+ 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, "content_type_id__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
}
}
- if r.contentTypeIdGt != nil {
- t := *r.contentTypeIdGt
+ 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, "content_type_id__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
}
}
- if r.contentTypeIdGte != nil {
- t := *r.contentTypeIdGte
+ 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, "content_type_id__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
}
}
- if r.contentTypeIdLt != nil {
- t := *r.contentTypeIdLt
+ 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, "content_type_id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
}
}
- if r.contentTypeIdLte != nil {
- t := *r.contentTypeIdLte
+ 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, "content_type_id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.contentTypeIdN != nil {
- t := *r.contentTypeIdN
+ 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, "content_type_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.contentTypes != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types", r.contentTypes, "")
- }
- if r.contentTypesIc != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ic", r.contentTypesIc, "")
- }
- if r.contentTypesIe != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ie", r.contentTypesIe, "")
- }
- if r.contentTypesIew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__iew", r.contentTypesIew, "")
- }
- if r.contentTypesIsw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__isw", r.contentTypesIsw, "")
- }
- if r.contentTypesN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__n", r.contentTypesN, "")
- }
- if r.contentTypesNic != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nic", r.contentTypesNic, "")
- }
- if r.contentTypesNie != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nie", r.contentTypesNie, "")
- }
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
- }
- if r.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
if r.description != nil {
t := *r.description
@@ -10384,9 +11101,202 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
if r.isCloneable != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "is_cloneable", r.isCloneable, "")
}
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
if r.name != nil {
t := *r.name
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -10500,6 +11410,58 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
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, "")
+ }
+ 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 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.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, "")
}
@@ -10509,6 +11471,34 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
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, "")
+ }
+ 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.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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id__n", t, "multi")
+ }
+ }
if r.required != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "required", r.required, "")
}
@@ -10615,51 +11605,305 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields
if r.uiVisibleN != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "")
}
- if r.weight != nil {
- t := *r.weight
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ 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, "weight", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", t, "multi")
}
}
- if r.weightEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "")
+ if r.validationMaximumEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__empty", r.validationMaximumEmpty, "")
}
- if r.weightGt != nil {
- t := *r.weightGt
+ 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, "weight__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gt", t, "multi")
}
}
- if r.weightGte != nil {
- t := *r.weightGte
+ 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, "weight__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gte", t, "multi")
}
}
- if r.weightLt != nil {
- t := *r.weightLt
+ 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, "weight__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", t, "multi")
+ }
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ if r.validationRegexEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__empty", r.validationRegexEmpty, "")
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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")
+ }
+ }
+ 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 {
@@ -11720,176 +12964,157 @@ func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLink
}
type ApiExtrasCustomLinksListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
- enabled *bool
- groupName *[]string
- groupNameEmpty *bool
- groupNameIc *[]string
- groupNameIe *[]string
- groupNameIew *[]string
- groupNameIsw *[]string
- groupNameN *[]string
- groupNameNic *[]string
- groupNameNie *[]string
- groupNameNiew *[]string
- groupNameNisw *[]string
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- linkText *string
- linkTextIc *string
- linkTextIe *string
- linkTextIew *string
- linkTextIsw *string
- linkTextN *string
- linkTextNic *string
- linkTextNie *string
- linkTextNiew *string
- linkTextNisw *string
- linkUrl *string
- linkUrlIc *string
- linkUrlIe *string
- linkUrlIew *string
- linkUrlIsw *string
- linkUrlN *string
- linkUrlNic *string
- linkUrlNie *string
- linkUrlNiew *string
- linkUrlNisw *string
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- newWindow *bool
- offset *int32
- ordering *string
- q *string
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
+ 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
+ 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
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeId = &contentTypeId
+// 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
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
+// 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
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
+func (r ApiExtrasCustomLinksListRequest) Created(created []time.Time) ApiExtrasCustomLinksListRequest {
+ r.created = &created
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
+func (r ApiExtrasCustomLinksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
+func (r ApiExtrasCustomLinksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
+func (r ApiExtrasCustomLinksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasCustomLinksListRequest {
- r.contentTypeIdN = &contentTypeIdN
+func (r ApiExtrasCustomLinksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdLt = &createdLt
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypes(contentTypes string) ApiExtrasCustomLinksListRequest {
- r.contentTypes = &contentTypes
+func (r ApiExtrasCustomLinksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdLte = &createdLte
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasCustomLinksListRequest {
- r.contentTypesIc = &contentTypesIc
+func (r ApiExtrasCustomLinksListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomLinksListRequest {
+ r.createdN = &createdN
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasCustomLinksListRequest {
- r.contentTypesIe = &contentTypesIe
+func (r ApiExtrasCustomLinksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomLinksListRequest {
+ r.createdByRequest = &createdByRequest
return r
}
-func (r ApiExtrasCustomLinksListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasCustomLinksListRequest {
- r.contentTypesIew = &contentTypesIew
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasCustomLinksListRequest {
- r.contentTypesIsw = &contentTypesIsw
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesN(contentTypesN string) ApiExtrasCustomLinksListRequest {
- r.contentTypesN = &contentTypesN
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasCustomLinksListRequest {
- r.contentTypesNic = &contentTypesNic
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasCustomLinksListRequest {
- r.contentTypesNie = &contentTypesNie
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasCustomLinksListRequest {
- r.contentTypesNiew = &contentTypesNiew
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasCustomLinksListRequest {
- r.contentTypesNisw = &contentTypesNisw
- return r
-}
-
-func (r ApiExtrasCustomLinksListRequest) Enabled(enabled bool) ApiExtrasCustomLinksListRequest {
- r.enabled = &enabled
+func (r ApiExtrasCustomLinksListRequest) Enabled(enabled bool) ApiExtrasCustomLinksListRequest {
+ r.enabled = &enabled
return r
}
@@ -11983,6 +13208,41 @@ func (r ApiExtrasCustomLinksListRequest) IdN(idN []int32) ApiExtrasCustomLinksLi
return r
}
+func (r ApiExtrasCustomLinksListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomLinksListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiExtrasCustomLinksListRequest) Limit(limit int32) ApiExtrasCustomLinksListRequest {
r.limit = &limit
@@ -12089,6 +13349,11 @@ func (r ApiExtrasCustomLinksListRequest) LinkUrlNisw(linkUrlNisw string) ApiExtr
return r
}
+func (r ApiExtrasCustomLinksListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomLinksListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
func (r ApiExtrasCustomLinksListRequest) Name(name []string) ApiExtrasCustomLinksListRequest {
r.name = &name
return r
@@ -12149,6 +13414,66 @@ func (r ApiExtrasCustomLinksListRequest) NewWindow(newWindow bool) ApiExtrasCust
return r
}
+func (r ApiExtrasCustomLinksListRequest) ObjectType(objectType string) ApiExtrasCustomLinksListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomLinksListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomLinksListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasCustomLinksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomLinksListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiExtrasCustomLinksListRequest) Offset(offset int32) ApiExtrasCustomLinksListRequest {
r.offset = &offset
@@ -12167,6 +13492,11 @@ func (r ApiExtrasCustomLinksListRequest) Q(q string) ApiExtrasCustomLinksListReq
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
@@ -12243,112 +13573,91 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.contentTypeId != nil {
- t := *r.contentTypeId
+ 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 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, "created", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
}
}
- if r.contentTypeIdEmpty != nil {
- t := *r.contentTypeIdEmpty
+ 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, "content_type_id__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
}
}
- if r.contentTypeIdGt != nil {
- t := *r.contentTypeIdGt
+ 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, "content_type_id__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
}
}
- if r.contentTypeIdGte != nil {
- t := *r.contentTypeIdGte
+ 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, "content_type_id__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
}
}
- if r.contentTypeIdLt != nil {
- t := *r.contentTypeIdLt
+ 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, "content_type_id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
}
}
- if r.contentTypeIdLte != nil {
- t := *r.contentTypeIdLte
+ 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, "content_type_id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.contentTypeIdN != nil {
- t := *r.contentTypeIdN
+ 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, "content_type_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.contentTypes != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types", r.contentTypes, "")
- }
- if r.contentTypesIc != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ic", r.contentTypesIc, "")
- }
- if r.contentTypesIe != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ie", r.contentTypesIe, "")
- }
- if r.contentTypesIew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__iew", r.contentTypesIew, "")
- }
- if r.contentTypesIsw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__isw", r.contentTypesIsw, "")
- }
- if r.contentTypesN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__n", r.contentTypesN, "")
- }
- if r.contentTypesNic != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nic", r.contentTypesNic, "")
- }
- if r.contentTypesNie != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nie", r.contentTypesNie, "")
- }
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
- }
- if r.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
if r.enabled != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "")
@@ -12535,6 +13844,83 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi
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, "")
}
@@ -12598,6 +13984,9 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi
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 reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -12714,35 +14103,90 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi
if r.newWindow != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "new_window", r.newWindow, "")
}
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ if r.objectType != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "")
}
- if r.ordering != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ if r.objectTypeIc != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "")
}
- if r.q != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ if r.objectTypeIe != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "")
}
- if r.weight != nil {
- t := *r.weight
+ 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 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, "object_type_id", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi")
}
}
- if r.weightEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "")
- }
- if r.weightGt != nil {
- t := *r.weightGt
+ 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, "weight__gt", s.Index(i).Interface(), "multi")
+ 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.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 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")
@@ -14301,23 +15745,6 @@ type ApiExtrasEventRulesListRequest struct {
actionObjectTypeN *string
actionType *[]string
actionTypeN *[]string
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -14365,6 +15792,18 @@ type ApiExtrasEventRulesListRequest struct {
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
@@ -14433,91 +15872,6 @@ func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []string) ApiExt
return r
}
-func (r ApiExtrasEventRulesListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeId = &contentTypeId
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasEventRulesListRequest {
- r.contentTypeIdN = &contentTypeIdN
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypes(contentTypes string) ApiExtrasEventRulesListRequest {
- r.contentTypes = &contentTypes
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasEventRulesListRequest {
- r.contentTypesIc = &contentTypesIc
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasEventRulesListRequest {
- r.contentTypesIe = &contentTypesIe
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasEventRulesListRequest {
- r.contentTypesIew = &contentTypesIew
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasEventRulesListRequest {
- r.contentTypesIsw = &contentTypesIsw
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesN(contentTypesN string) ApiExtrasEventRulesListRequest {
- r.contentTypesN = &contentTypesN
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasEventRulesListRequest {
- r.contentTypesNic = &contentTypesNic
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasEventRulesListRequest {
- r.contentTypesNie = &contentTypesNie
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasEventRulesListRequest {
- r.contentTypesNiew = &contentTypesNiew
- return r
-}
-
-func (r ApiExtrasEventRulesListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasEventRulesListRequest {
- r.contentTypesNisw = &contentTypesNisw
- return r
-}
-
func (r ApiExtrasEventRulesListRequest) Created(created []time.Time) ApiExtrasEventRulesListRequest {
r.created = &created
return r
@@ -14754,6 +16108,66 @@ func (r ApiExtrasEventRulesListRequest) NameNisw(nameNisw []string) ApiExtrasEve
return r
}
+func (r ApiExtrasEventRulesListRequest) ObjectType(objectType string) ApiExtrasEventRulesListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasEventRulesListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasEventRulesListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasEventRulesListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasEventRulesListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasEventRulesListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasEventRulesListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasEventRulesListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasEventRulesListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasEventRulesListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasEventRulesListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasEventRulesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasEventRulesListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiExtrasEventRulesListRequest) Offset(offset int32) ApiExtrasEventRulesListRequest {
r.offset = &offset
@@ -14958,113 +16372,6 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList
parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", t, "multi")
}
}
- if r.contentTypeId != nil {
- t := *r.contentTypeId
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi")
- }
- }
- if r.contentTypeIdEmpty != nil {
- t := *r.contentTypeIdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi")
- }
- }
- if r.contentTypeIdGt != nil {
- t := *r.contentTypeIdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi")
- }
- }
- if r.contentTypeIdGte != nil {
- t := *r.contentTypeIdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi")
- }
- }
- if r.contentTypeIdLt != nil {
- t := *r.contentTypeIdLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi")
- }
- }
- if r.contentTypeIdLte != nil {
- t := *r.contentTypeIdLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi")
- }
- }
- if r.contentTypeIdN != nil {
- t := *r.contentTypeIdN
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi")
- }
- }
- if r.contentTypes != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types", r.contentTypes, "")
- }
- if r.contentTypesIc != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ic", r.contentTypesIc, "")
- }
- if r.contentTypesIe != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ie", r.contentTypesIe, "")
- }
- if r.contentTypesIew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__iew", r.contentTypesIew, "")
- }
- if r.contentTypesIsw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__isw", r.contentTypesIsw, "")
- }
- if r.contentTypesN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__n", r.contentTypesN, "")
- }
- if r.contentTypesNic != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nic", r.contentTypesNic, "")
- }
- if r.contentTypesNie != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nie", r.contentTypesNie, "")
- }
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
- }
- if r.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
- }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -15526,6 +16833,58 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList
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, "")
+ }
+ 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 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.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, "")
}
@@ -16380,13 +17739,13 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp
}
type ApiExtrasExportTemplatesCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- writableExportTemplateRequest *WritableExportTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ exportTemplateRequest *ExportTemplateRequest
}
-func (r ApiExtrasExportTemplatesCreateRequest) WritableExportTemplateRequest(writableExportTemplateRequest WritableExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest {
- r.writableExportTemplateRequest = &writableExportTemplateRequest
+func (r ApiExtrasExportTemplatesCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
return r
}
@@ -16430,8 +17789,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableExportTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableExportTemplateRequest 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
@@ -16452,7 +17811,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableExportTemplateRequest
+ localVarPostBody = r.exportTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -16613,23 +17972,16 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport
type ApiExtrasExportTemplatesListRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
+ 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
@@ -16652,6 +18004,17 @@ type ApiExtrasExportTemplatesListRequest struct {
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
@@ -16659,7 +18022,26 @@ type ApiExtrasExportTemplatesListRequest struct {
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
@@ -16671,111 +18053,89 @@ type ApiExtrasExportTemplatesListRequest struct {
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) ContentTypeId(contentTypeId []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeId = &contentTypeId
+func (r ApiExtrasExportTemplatesListRequest) AsAttachment(asAttachment bool) ApiExtrasExportTemplatesListRequest {
+ r.asAttachment = &asAttachment
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
+func (r ApiExtrasExportTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasExportTemplatesListRequest {
+ r.autoSyncEnabled = &autoSyncEnabled
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
+func (r ApiExtrasExportTemplatesListRequest) Created(created []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.created = &created
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
+func (r ApiExtrasExportTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
+func (r ApiExtrasExportTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
+func (r ApiExtrasExportTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasExportTemplatesListRequest {
- r.contentTypeIdN = &contentTypeIdN
+func (r ApiExtrasExportTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdLt = &createdLt
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypes(contentTypes string) ApiExtrasExportTemplatesListRequest {
- r.contentTypes = &contentTypes
+func (r ApiExtrasExportTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdLte = &createdLte
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesIc = &contentTypesIc
+func (r ApiExtrasExportTemplatesListRequest) CreatedN(createdN []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.createdN = &createdN
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesIe = &contentTypesIe
+func (r ApiExtrasExportTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasExportTemplatesListRequest {
+ r.createdByRequest = &createdByRequest
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesIew = &contentTypesIew
+// Data file (ID)
+func (r ApiExtrasExportTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasExportTemplatesListRequest {
+ r.dataFileId = &dataFileId
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesIsw = &contentTypesIsw
+// Data file (ID)
+func (r ApiExtrasExportTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasExportTemplatesListRequest {
+ r.dataFileIdN = &dataFileIdN
return r
}
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesN(contentTypesN string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesN = &contentTypesN
- return r
-}
-
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesNic = &contentTypesNic
- return r
-}
-
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesNie = &contentTypesNie
- return r
-}
-
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesNiew = &contentTypesNiew
- return r
-}
-
-func (r ApiExtrasExportTemplatesListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasExportTemplatesListRequest {
- r.contentTypesNisw = &contentTypesNisw
- 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
+// Data source (ID)
+func (r ApiExtrasExportTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasExportTemplatesListRequest {
+ r.dataSourceId = &dataSourceId
return r
}
@@ -16875,6 +18235,61 @@ func (r ApiExtrasExportTemplatesListRequest) DescriptionNisw(descriptionNisw []s
return r
}
+func (r ApiExtrasExportTemplatesListRequest) FileExtension(fileExtension []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtension = &fileExtension
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionEmpty(fileExtensionEmpty bool) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionEmpty = &fileExtensionEmpty
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionIc(fileExtensionIc []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionIc = &fileExtensionIc
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionIe(fileExtensionIe []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionIe = &fileExtensionIe
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionIew(fileExtensionIew []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionIew = &fileExtensionIew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionIsw(fileExtensionIsw []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionIsw = &fileExtensionIsw
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionN(fileExtensionN []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionN = &fileExtensionN
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionNic(fileExtensionNic []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionNic = &fileExtensionNic
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionNie(fileExtensionNie []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionNie = &fileExtensionNie
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionNiew(fileExtensionNiew []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionNiew = &fileExtensionNiew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) FileExtensionNisw(fileExtensionNisw []string) ApiExtrasExportTemplatesListRequest {
+ r.fileExtensionNisw = &fileExtensionNisw
+ return r
+}
+
func (r ApiExtrasExportTemplatesListRequest) Id(id []int32) ApiExtrasExportTemplatesListRequest {
r.id = &id
return r
@@ -16910,12 +18325,107 @@ func (r ApiExtrasExportTemplatesListRequest) IdN(idN []int32) ApiExtrasExportTem
return r
}
+func (r ApiExtrasExportTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasExportTemplatesListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiExtrasExportTemplatesListRequest) Limit(limit int32) ApiExtrasExportTemplatesListRequest {
r.limit = &limit
return r
}
+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 ApiExtrasExportTemplatesListRequest) Name(name []string) ApiExtrasExportTemplatesListRequest {
r.name = &name
return r
@@ -16971,6 +18481,66 @@ func (r ApiExtrasExportTemplatesListRequest) NameNisw(nameNisw []string) ApiExtr
return r
}
+func (r ApiExtrasExportTemplatesListRequest) ObjectType(objectType string) ApiExtrasExportTemplatesListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasExportTemplatesListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiExtrasExportTemplatesListRequest) Offset(offset int32) ApiExtrasExportTemplatesListRequest {
r.offset = &offset
@@ -16989,6 +18559,11 @@ func (r ApiExtrasExportTemplatesListRequest) Q(q string) ApiExtrasExportTemplate
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)
}
@@ -17030,112 +18605,91 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.contentTypeId != nil {
- t := *r.contentTypeId
+ 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, "content_type_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
}
}
- if r.contentTypeIdEmpty != nil {
- t := *r.contentTypeIdEmpty
+ 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, "content_type_id__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
}
}
- if r.contentTypeIdGt != nil {
- t := *r.contentTypeIdGt
+ 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, "content_type_id__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
}
}
- if r.contentTypeIdGte != nil {
- t := *r.contentTypeIdGte
+ 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, "content_type_id__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
}
}
- if r.contentTypeIdLt != nil {
- t := *r.contentTypeIdLt
+ 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, "content_type_id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
}
}
- if r.contentTypeIdLte != nil {
- t := *r.contentTypeIdLte
+ 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, "content_type_id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.contentTypeIdN != nil {
- t := *r.contentTypeIdN
+ 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, "content_type_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.contentTypes != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types", r.contentTypes, "")
- }
- if r.contentTypesIc != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ic", r.contentTypesIc, "")
- }
- if r.contentTypesIe != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ie", r.contentTypesIe, "")
- }
- if r.contentTypesIew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__iew", r.contentTypesIew, "")
- }
- if r.contentTypesIsw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__isw", r.contentTypesIsw, "")
- }
- if r.contentTypesN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__n", r.contentTypesN, "")
- }
- if r.contentTypesNic != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nic", r.contentTypesNic, "")
- }
- if r.contentTypesNie != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nie", r.contentTypesNie, "")
- }
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
- }
- if r.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
if r.dataFileId != nil {
t := *r.dataFileId
@@ -17363,326 +18917,563 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem
parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi")
}
}
- if r.id != nil {
- t := *r.id
+ 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, "id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", t, "multi")
}
}
- if r.idEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
+ if r.fileExtensionEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__empty", r.fileExtensionEmpty, "")
}
- if r.idGt != nil {
- t := *r.idGt
+ 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, "id__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", t, "multi")
}
}
- if r.idGte != nil {
- t := *r.idGte
+ 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, "id__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", t, "multi")
}
}
- if r.idLt != nil {
- t := *r.idLt
+ 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, "id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", t, "multi")
}
}
- if r.idLte != nil {
- t := *r.idLte
+ 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, "id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", t, "multi")
}
}
- if r.idN != nil {
- t := *r.idN
+ 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, "id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", t, "multi")
}
}
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.name != nil {
- t := *r.name
+ 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, "name", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", t, "multi")
}
}
- if r.nameEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
- }
- if r.nameIc != nil {
- t := *r.nameIc
+ 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, "name__ic", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", t, "multi")
}
}
- if r.nameIe != nil {
- t := *r.nameIe
+ 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, "name__ie", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", t, "multi")
}
}
- if r.nameIew != nil {
- t := *r.nameIew
+ 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, "name__iew", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", t, "multi")
}
}
- if r.nameIsw != nil {
- t := *r.nameIsw
+ 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__isw", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
}
}
- if r.nameN != nil {
- t := *r.nameN
+ 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, "name__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
- if r.offset != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
- }
- if r.ordering != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ 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.q != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ 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")
+ }
}
- // to determine the Content-Type header
- localVarHTTPContentTypes := []string{}
-
- // set Content-Type header
- localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
- if localVarHTTPContentType != "" {
- localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ 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")
+ }
}
-
- // to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
-
- // set Accept header
- localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
- if localVarHTTPHeaderAccept != "" {
- localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ 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.ctx != nil {
- // API Key Authentication
- if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
- 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.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")
}
}
- req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
- if err != nil {
- return localVarReturnValue, nil, err
+ 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")
+ }
}
-
- localVarHTTPResponse, err := a.client.callAPI(req)
- if err != nil || localVarHTTPResponse == nil {
- return localVarReturnValue, localVarHTTPResponse, err
+ 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")
+ }
}
-
- 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.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
-
- if localVarHTTPResponse.StatusCode >= 300 {
- newErr := &GenericOpenAPIError{
- body: localVarBody,
- error: localVarHTTPResponse.Status,
+ 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")
}
- 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.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")
}
- return localVarReturnValue, localVarHTTPResponse, newErr
}
-
- return localVarReturnValue, localVarHTTPResponse, nil
-}
-
-type ApiExtrasExportTemplatesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- patchedWritableExportTemplateRequest *PatchedWritableExportTemplateRequest
-}
-
-func (r ApiExtrasExportTemplatesPartialUpdateRequest) PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest PatchedWritableExportTemplateRequest) ApiExtrasExportTemplatesPartialUpdateRequest {
- r.patchedWritableExportTemplateRequest = &patchedWritableExportTemplateRequest
- return r
-}
-
-func (r ApiExtrasExportTemplatesPartialUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesPartialUpdateExecute(r)
-}
-
-/*
-ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate
-
-Patch a export template object.
-
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id A unique integer value identifying this export template.
- @return ApiExtrasExportTemplatesPartialUpdateRequest
-*/
-func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest {
- return ApiExtrasExportTemplatesPartialUpdateRequest{
- ApiService: a,
- ctx: ctx,
- id: id,
+ 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")
+ }
}
-}
-
-// Execute executes the request
-//
-// @return ExportTemplate
-func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) {
- var (
- localVarHTTPMethod = http.MethodPatch
- localVarPostBody interface{}
- formFiles []formFile
- localVarReturnValue *ExportTemplate
- )
-
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate")
- if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ 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, "mime_type__iew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", t, "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.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, "mime_type__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", t, "multi")
+ }
+ }
+ 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, "mime_type__nic", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", t, "multi")
+ }
+ }
+ 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, "mime_type__nie", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", t, "multi")
+ }
+ }
+ 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, "mime_type__niew", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", t, "multi")
+ }
+ }
+ 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, "mime_type__nisw", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", t, "multi")
+ }
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).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.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 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.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.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
+ if r.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
}
-
- 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{}
-
// to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+ localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
@@ -17698,8 +19489,6 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
- // body params
- localVarPostBody = r.patchedWritableExportTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -17751,27 +19540,33 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesRetrieveRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
+type ApiExtrasExportTemplatesPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ patchedExportTemplateRequest *PatchedExportTemplateRequest
}
-func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) {
- return r.ApiService.ExtrasExportTemplatesRetrieveExecute(r)
+func (r ApiExtrasExportTemplatesPartialUpdateRequest) PatchedExportTemplateRequest(patchedExportTemplateRequest PatchedExportTemplateRequest) ApiExtrasExportTemplatesPartialUpdateRequest {
+ r.patchedExportTemplateRequest = &patchedExportTemplateRequest
+ return r
+}
+
+func (r ApiExtrasExportTemplatesPartialUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesPartialUpdateExecute(r)
}
/*
-ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve
+ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate
-Get a export template 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 export template.
- @return ApiExtrasExportTemplatesRetrieveRequest
+ @return ApiExtrasExportTemplatesPartialUpdateRequest
*/
-func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest {
- return ApiExtrasExportTemplatesRetrieveRequest{
+func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest {
+ return ApiExtrasExportTemplatesPartialUpdateRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -17781,15 +19576,15 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id
// Execute executes the request
//
// @return ExportTemplate
-func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) {
+func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodGet
+ localVarHTTPMethod = http.MethodPatch
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *ExportTemplate
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -17802,7 +19597,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor
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)
@@ -17818,6 +19613,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
+ // body params
+ localVarPostBody = r.patchedExportTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -17869,15 +19666,133 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasExportTemplatesSyncCreateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableExportTemplateRequest *WritableExportTemplateRequest
-}
-
-func (r ApiExtrasExportTemplatesSyncCreateRequest) WritableExportTemplateRequest(writableExportTemplateRequest WritableExportTemplateRequest) ApiExtrasExportTemplatesSyncCreateRequest {
- r.writableExportTemplateRequest = &writableExportTemplateRequest
+type ApiExtrasExportTemplatesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+}
+
+func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) {
+ return r.ApiService.ExtrasExportTemplatesRetrieveExecute(r)
+}
+
+/*
+ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve
+
+Get a export template object.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param id A unique integer value identifying this export template.
+ @return ApiExtrasExportTemplatesRetrieveRequest
+*/
+func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest {
+ return ApiExtrasExportTemplatesRetrieveRequest{
+ ApiService: a,
+ ctx: ctx,
+ id: id,
+ }
+}
+
+// Execute executes the request
+//
+// @return ExportTemplate
+func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ExportTemplate
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve")
+ if err != nil {
+ 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)
+
+ 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 ApiExtrasExportTemplatesSyncCreateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ exportTemplateRequest *ExportTemplateRequest
+}
+
+func (r ApiExtrasExportTemplatesSyncCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesSyncCreateRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
return r
}
@@ -17924,8 +19839,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExp
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableExportTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableExportTemplateRequest 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
@@ -17946,7 +19861,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExp
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableExportTemplateRequest
+ localVarPostBody = r.exportTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -17999,14 +19914,14 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExp
}
type ApiExtrasExportTemplatesUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- writableExportTemplateRequest *WritableExportTemplateRequest
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
+ exportTemplateRequest *ExportTemplateRequest
}
-func (r ApiExtrasExportTemplatesUpdateRequest) WritableExportTemplateRequest(writableExportTemplateRequest WritableExportTemplateRequest) ApiExtrasExportTemplatesUpdateRequest {
- r.writableExportTemplateRequest = &writableExportTemplateRequest
+func (r ApiExtrasExportTemplatesUpdateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesUpdateRequest {
+ r.exportTemplateRequest = &exportTemplateRequest
return r
}
@@ -18053,8 +19968,8 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableExportTemplateRequest == nil {
- return localVarReturnValue, nil, reportError("writableExportTemplateRequest 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
@@ -18075,7 +19990,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableExportTemplateRequest
+ localVarPostBody = r.exportTemplateRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -18722,66 +20637,111 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImage
}
type ApiExtrasImageAttachmentsListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- contentType *string
- contentTypeN *string
- contentTypeId *int32
- contentTypeIdN *int32
- created *time.Time
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- objectId *[]int32
- objectIdEmpty *bool
- objectIdGt *[]int32
- objectIdGte *[]int32
- objectIdLt *[]int32
- objectIdLte *[]int32
- objectIdN *[]int32
- offset *int32
- ordering *string
- q *string
-}
-
-func (r ApiExtrasImageAttachmentsListRequest) ContentType(contentType string) ApiExtrasImageAttachmentsListRequest {
- r.contentType = &contentType
+ 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) ContentTypeN(contentTypeN string) ApiExtrasImageAttachmentsListRequest {
- r.contentTypeN = &contentTypeN
+func (r ApiExtrasImageAttachmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ContentTypeId(contentTypeId int32) ApiExtrasImageAttachmentsListRequest {
- r.contentTypeId = &contentTypeId
+func (r ApiExtrasImageAttachmentsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ContentTypeIdN(contentTypeIdN int32) ApiExtrasImageAttachmentsListRequest {
- r.contentTypeIdN = &contentTypeIdN
+func (r ApiExtrasImageAttachmentsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) Created(created time.Time) ApiExtrasImageAttachmentsListRequest {
- r.created = &created
+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
}
@@ -18820,99 +20780,229 @@ func (r ApiExtrasImageAttachmentsListRequest) IdN(idN []int32) ApiExtrasImageAtt
return r
}
-// Number of results to return per page.
-func (r ApiExtrasImageAttachmentsListRequest) Limit(limit int32) ApiExtrasImageAttachmentsListRequest {
- r.limit = &limit
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeight(imageHeight []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeight = &imageHeight
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) Name(name []string) ApiExtrasImageAttachmentsListRequest {
- r.name = &name
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightEmpty(imageHeightEmpty bool) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightEmpty = &imageHeightEmpty
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameEmpty(nameEmpty bool) ApiExtrasImageAttachmentsListRequest {
- r.nameEmpty = &nameEmpty
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGt(imageHeightGt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightGt = &imageHeightGt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameIc(nameIc []string) ApiExtrasImageAttachmentsListRequest {
- r.nameIc = &nameIc
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGte(imageHeightGte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightGte = &imageHeightGte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameIe(nameIe []string) ApiExtrasImageAttachmentsListRequest {
- r.nameIe = &nameIe
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLt(imageHeightLt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightLt = &imageHeightLt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameIew(nameIew []string) ApiExtrasImageAttachmentsListRequest {
- r.nameIew = &nameIew
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLte(imageHeightLte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightLte = &imageHeightLte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameIsw(nameIsw []string) ApiExtrasImageAttachmentsListRequest {
- r.nameIsw = &nameIsw
+func (r ApiExtrasImageAttachmentsListRequest) ImageHeightN(imageHeightN []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageHeightN = &imageHeightN
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameN(nameN []string) ApiExtrasImageAttachmentsListRequest {
- r.nameN = &nameN
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidth(imageWidth []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidth = &imageWidth
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameNic(nameNic []string) ApiExtrasImageAttachmentsListRequest {
- r.nameNic = &nameNic
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthEmpty(imageWidthEmpty bool) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthEmpty = &imageWidthEmpty
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameNie(nameNie []string) ApiExtrasImageAttachmentsListRequest {
- r.nameNie = &nameNie
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGt(imageWidthGt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthGt = &imageWidthGt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameNiew(nameNiew []string) ApiExtrasImageAttachmentsListRequest {
- r.nameNiew = &nameNiew
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGte(imageWidthGte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthGte = &imageWidthGte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) NameNisw(nameNisw []string) ApiExtrasImageAttachmentsListRequest {
- r.nameNisw = &nameNisw
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLt(imageWidthLt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthLt = &imageWidthLt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectId(objectId []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectId = &objectId
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLte(imageWidthLte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthLte = &imageWidthLte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasImageAttachmentsListRequest {
- r.objectIdEmpty = &objectIdEmpty
+func (r ApiExtrasImageAttachmentsListRequest) ImageWidthN(imageWidthN []int32) ApiExtrasImageAttachmentsListRequest {
+ r.imageWidthN = &imageWidthN
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectIdGt = &objectIdGt
+func (r ApiExtrasImageAttachmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.lastUpdated = &lastUpdated
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectIdGte = &objectIdGte
+func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectIdLt = &objectIdLt
+func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectIdLte = &objectIdLte
+func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasImageAttachmentsListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
return r
}
-func (r ApiExtrasImageAttachmentsListRequest) ObjectIdN(objectIdN []int32) ApiExtrasImageAttachmentsListRequest {
- r.objectIdN = &objectIdN
+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
+}
+
+// Number of results to return per page.
+func (r ApiExtrasImageAttachmentsListRequest) Limit(limit int32) ApiExtrasImageAttachmentsListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasImageAttachmentsListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) Name(name []string) ApiExtrasImageAttachmentsListRequest {
+ r.name = &name
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameEmpty(nameEmpty bool) ApiExtrasImageAttachmentsListRequest {
+ r.nameEmpty = &nameEmpty
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameIc(nameIc []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameIc = &nameIc
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameIe(nameIe []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameIe = &nameIe
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameIew(nameIew []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameIew = &nameIew
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameIsw(nameIsw []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameIsw = &nameIsw
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameN(nameN []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameN = &nameN
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameNic(nameNic []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameNic = &nameNic
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameNie(nameNie []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameNie = &nameNie
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameNiew(nameNiew []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameNiew = &nameNiew
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) NameNisw(nameNisw []string) ApiExtrasImageAttachmentsListRequest {
+ r.nameNisw = &nameNisw
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectId(objectId []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectId = &objectId
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdEmpty = &objectIdEmpty
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdGt = &objectIdGt
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdGte = &objectIdGte
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdLt = &objectIdLt
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdLte = &objectIdLte
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectIdN(objectIdN []int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectIdN = &objectIdN
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectType(objectType string) ApiExtrasImageAttachmentsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasImageAttachmentsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeId(objectTypeId int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeIdN(objectTypeIdN int32) ApiExtrasImageAttachmentsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
return r
}
@@ -18934,6 +21024,11 @@ func (r ApiExtrasImageAttachmentsListRequest) Q(q string) ApiExtrasImageAttachme
return r
}
+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)
}
@@ -18975,20 +21070,85 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.contentType != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", r.contentType, "")
+ 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.contentTypeN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type__n", r.contentTypeN, "")
+ 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.contentTypeId != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", r.contentTypeId, "")
+ 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.contentTypeIdN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", r.contentTypeIdN, "")
+ 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.created != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "")
+ 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
@@ -19059,128 +21219,346 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
- }
- if r.name != nil {
- t := *r.name
+ 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, "name", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", t, "multi")
}
}
- if r.nameEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
+ if r.imageHeightEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__empty", r.imageHeightEmpty, "")
}
- if r.nameIc != nil {
- t := *r.nameIc
+ 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, "name__ic", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", t, "multi")
}
}
- if r.nameIe != nil {
- t := *r.nameIe
+ 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, "name__ie", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", t, "multi")
}
}
- if r.nameIew != nil {
- t := *r.nameIew
+ 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, "name__iew", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", t, "multi")
}
}
- if r.nameIsw != nil {
- t := *r.nameIsw
+ 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, "name__isw", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", t, "multi")
}
}
- if r.nameN != nil {
- t := *r.nameN
+ 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, "name__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", t, "multi")
}
}
- if r.nameNic != nil {
- t := *r.nameNic
+ 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, "name__nic", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", t, "multi")
}
}
- if r.nameNie != nil {
- t := *r.nameNie
+ if r.imageWidthEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__empty", r.imageWidthEmpty, "")
+ }
+ 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, "name__nie", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", t, "multi")
}
}
- if r.nameNiew != nil {
- t := *r.nameNiew
+ 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, "name__niew", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", t, "multi")
}
}
- if r.nameNisw != nil {
- t := *r.nameNisw
+ 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, "name__nisw", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", t, "multi")
}
}
- if r.objectId != nil {
- t := *r.objectId
+ 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, "object_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", t, "multi")
+ }
+ }
+ 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, "image_width__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__n", t, "multi")
+ }
+ }
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
+ }
+ if r.name != nil {
+ t := *r.name
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).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.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")
@@ -19244,6 +21622,18 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt
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 {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "")
+ }
+ if r.objectTypeIdN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "")
+ }
if r.offset != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
}
@@ -19253,6 +21643,9 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt
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{}
@@ -21396,8 +23789,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE
type ApiExtrasObjectChangesListRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
- action *string
- actionN *string
+ action *ExtrasObjectChangesListActionParameter
+ actionN *ExtrasObjectChangesListActionParameter
changedObjectId *[]int32
changedObjectIdEmpty *bool
changedObjectIdGt *[]int32
@@ -21431,6 +23824,15 @@ type ApiExtrasObjectChangesListRequest struct {
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
@@ -21451,12 +23853,14 @@ type ApiExtrasObjectChangesListRequest struct {
userNameNisw *[]string
}
-func (r ApiExtrasObjectChangesListRequest) Action(action string) ApiExtrasObjectChangesListRequest {
+// * `create` - Created * `update` - Updated * `delete` - Deleted
+func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest {
r.action = &action
return r
}
-func (r ApiExtrasObjectChangesListRequest) ActionN(actionN string) ApiExtrasObjectChangesListRequest {
+// * `create` - Created * `update` - Updated * `delete` - Deleted
+func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest {
r.actionN = &actionN
return r
}
@@ -21630,6 +24034,51 @@ func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesLis
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
@@ -22062,9 +24511,84 @@ func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
- if r.requestId != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "")
- }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ } 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, "")
}
@@ -22414,60 +24938,121 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSavedFiltersBulkDestroyRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- savedFilterRequest *[]SavedFilterRequest
+type ApiExtrasObjectTypesListRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ appLabel *string
+ id *int32
+ limit *int32
+ model *string
+ offset *int32
+ ordering *string
+ q *string
}
-func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest {
- r.savedFilterRequest = &savedFilterRequest
+func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest {
+ r.appLabel = &appLabel
return r
}
-func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) {
- return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r)
+func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest {
+ r.id = &id
+ return r
+}
+
+// Number of results to return per page.
+func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest {
+ r.limit = &limit
+ return r
+}
+
+func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest {
+ r.model = &model
+ return r
+}
+
+// The initial index from which to return the results.
+func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest {
+ r.offset = &offset
+ return r
+}
+
+// Which field to use when ordering the results.
+func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest {
+ r.ordering = &ordering
+ return r
+}
+
+// Search
+func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest {
+ r.q = &q
+ return r
+}
+
+func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) {
+ return r.ApiService.ExtrasObjectTypesListExecute(r)
}
/*
-ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy
+ExtrasObjectTypesList Method for ExtrasObjectTypesList
-Delete a list of saved filter objects.
+Read-only list of ObjectTypes.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkDestroyRequest
+ @return ApiExtrasObjectTypesListRequest
*/
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest {
- return ApiExtrasSavedFiltersBulkDestroyRequest{
+func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest {
+ return ApiExtrasObjectTypesListRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) {
+//
+// @return PaginatedObjectTypeList
+func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodDelete
- localVarPostBody interface{}
- formFiles []formFile
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *PaginatedObjectTypeList
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList")
if err != nil {
- return nil, &GenericOpenAPIError{error: err.Error()}
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/saved-filters/"
+ localVarPath := localBasePath + "/api/extras/object-types/"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.savedFilterRequest == nil {
- return nil, reportError("savedFilterRequest is required and must be specified")
- }
+ if r.appLabel != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "")
+ }
+ if r.id != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "")
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.model != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "")
+ }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
+ }
// to determine the Content-Type header
- localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"}
+ localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
@@ -22476,15 +25061,13 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved
}
// 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.savedFilterRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -22501,19 +25084,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved
}
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 {
@@ -22521,69 +25104,73 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved
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 ApiExtrasSavedFiltersBulkPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- savedFilterRequest *[]SavedFilterRequest
+ return localVarReturnValue, localVarHTTPResponse, nil
}
-func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest {
- r.savedFilterRequest = &savedFilterRequest
- return r
+type ApiExtrasObjectTypesRetrieveRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id int32
}
-func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) {
- return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r)
+func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) {
+ return r.ApiService.ExtrasObjectTypesRetrieveExecute(r)
}
/*
-ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate
+ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve
-Patch a list of saved filter objects.
+Read-only list of ObjectTypes.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @return ApiExtrasSavedFiltersBulkPartialUpdateRequest
+ @param id A unique integer value identifying this object type.
+ @return ApiExtrasObjectTypesRetrieveRequest
*/
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest {
- return ApiExtrasSavedFiltersBulkPartialUpdateRequest{
+func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest {
+ return ApiExtrasObjectTypesRetrieveRequest{
ApiService: a,
ctx: ctx,
+ id: id,
}
}
// Execute executes the request
//
-// @return []SavedFilter
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) {
+// @return ObjectType
+func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) {
var (
- localVarHTTPMethod = http.MethodPatch
+ localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue []SavedFilter
+ localVarReturnValue *ObjectType
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
- localVarPath := localBasePath + "/api/extras/saved-filters/"
+ localVarPath := localBasePath + "/api/extras/object-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.savedFilterRequest == nil {
- return localVarReturnValue, nil, reportError("savedFilterRequest 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)
@@ -22599,8 +25186,6 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
- // body params
- localVarPostBody = r.savedFilterRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -22652,50 +25237,47 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSavedFiltersBulkUpdateRequest struct {
+type ApiExtrasSavedFiltersBulkDestroyRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
savedFilterRequest *[]SavedFilterRequest
}
-func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest {
+func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest {
r.savedFilterRequest = &savedFilterRequest
return r
}
-func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) {
- return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r)
+func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) {
+ return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r)
}
/*
-ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate
+ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy
-Put a list of saved filter objects.
+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 ApiExtrasSavedFiltersBulkUpdateRequest
+ @return ApiExtrasSavedFiltersBulkDestroyRequest
*/
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest {
- return ApiExtrasSavedFiltersBulkUpdateRequest{
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest {
+ return ApiExtrasSavedFiltersBulkDestroyRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
-//
-// @return []SavedFilter
-func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) {
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*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.ExtrasSavedFiltersBulkUpdate")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy")
if err != nil {
- return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ return nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/api/extras/saved-filters/"
@@ -22704,7 +25286,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.savedFilterRequest == nil {
- return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified")
+ return nil, reportError("savedFilterRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -22717,7 +25299,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF
}
// to determine the Accept header
- localVarHTTPHeaderAccepts := []string{"application/json"}
+ localVarHTTPHeaderAccepts := []string{}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -22742,19 +25324,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF
}
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 {
@@ -22762,33 +25344,274 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF
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 ApiExtrasSavedFiltersCreateRequest struct {
+type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
- savedFilterRequest *SavedFilterRequest
+ savedFilterRequest *[]SavedFilterRequest
}
-func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest {
+func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest {
r.savedFilterRequest = &savedFilterRequest
return r
}
-func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) {
+func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) {
+ return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r)
+}
+
+/*
+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
+*/
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest {
+ return ApiExtrasSavedFiltersBulkPartialUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []SavedFilter
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPatch
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SavedFilter
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate")
+ 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.savedFilterRequest == nil {
+ return localVarReturnValue, nil, reportError("savedFilterRequest 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.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
+ }
+ }
+ }
+ 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 ApiExtrasSavedFiltersBulkUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ savedFilterRequest *[]SavedFilterRequest
+}
+
+func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest {
+ r.savedFilterRequest = &savedFilterRequest
+ return r
+}
+
+func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) {
+ return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r)
+}
+
+/*
+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
+*/
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest {
+ return ApiExtrasSavedFiltersBulkUpdateRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+//
+// @return []SavedFilter
+func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPut
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []SavedFilter
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate")
+ 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.savedFilterRequest == nil {
+ return localVarReturnValue, nil, reportError("savedFilterRequest 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.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
+ }
+ }
+ }
+ 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 ApiExtrasSavedFiltersCreateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ savedFilterRequest *SavedFilterRequest
+}
+
+func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest {
+ r.savedFilterRequest = &savedFilterRequest
+ return r
+}
+
+func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) {
return r.ApiService.ExtrasSavedFiltersCreateExecute(r)
}
@@ -23009,167 +25832,134 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt
}
type ApiExtrasSavedFiltersListRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- contentTypeId *[]int32
- contentTypeIdEmpty *[]int32
- contentTypeIdGt *[]int32
- contentTypeIdGte *[]int32
- contentTypeIdLt *[]int32
- contentTypeIdLte *[]int32
- contentTypeIdN *[]int32
- contentTypes *string
- contentTypesIc *string
- contentTypesIe *string
- contentTypesIew *string
- contentTypesIsw *string
- contentTypesN *string
- contentTypesNic *string
- contentTypesNie *string
- contentTypesNiew *string
- contentTypesNisw *string
- 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
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
- shared *bool
- slug *[]string
- slugEmpty *bool
- slugIc *[]string
- slugIe *[]string
- slugIew *[]string
- slugIsw *[]string
- slugN *[]string
- slugNic *[]string
- slugNie *[]string
- slugNiew *[]string
- slugNisw *[]string
- usable *bool
- user *[]string
- userN *[]string
- userId *[]*int32
- userIdN *[]*int32
- weight *[]int32
- weightEmpty *bool
- weightGt *[]int32
- weightGte *[]int32
- weightLt *[]int32
- weightLte *[]int32
- weightN *[]int32
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeId = &contentTypeId
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdEmpty = &contentTypeIdEmpty
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdGt = &contentTypeIdGt
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdGte(contentTypeIdGte []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdGte = &contentTypeIdGte
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdLt(contentTypeIdLt []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdLt = &contentTypeIdLt
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdLte(contentTypeIdLte []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdLte = &contentTypeIdLte
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdN(contentTypeIdN []int32) ApiExtrasSavedFiltersListRequest {
- r.contentTypeIdN = &contentTypeIdN
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypes(contentTypes string) ApiExtrasSavedFiltersListRequest {
- r.contentTypes = &contentTypes
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesIc(contentTypesIc string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesIc = &contentTypesIc
- return r
-}
-
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesIe(contentTypesIe string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesIe = &contentTypesIe
+ 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
+ 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
+}
+
+func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.created = &created
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesIew(contentTypesIew string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesIew = &contentTypesIew
+func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdEmpty = &createdEmpty
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesIsw(contentTypesIsw string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesIsw = &contentTypesIsw
+func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdGt = &createdGt
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesN(contentTypesN string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesN = &contentTypesN
+func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdGte = &createdGte
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesNic(contentTypesNic string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesNic = &contentTypesNic
+func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdLt = &createdLt
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesNie(contentTypesNie string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesNie = &contentTypesNie
+func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdLte = &createdLte
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesNiew(contentTypesNiew string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesNiew = &contentTypesNiew
+func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.createdN = &createdN
return r
}
-func (r ApiExtrasSavedFiltersListRequest) ContentTypesNisw(contentTypesNisw string) ApiExtrasSavedFiltersListRequest {
- r.contentTypesNisw = &contentTypesNisw
+func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest {
+ r.createdByRequest = &createdByRequest
return r
}
@@ -23268,12 +26058,52 @@ func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFilters
return r
}
+func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdated = &lastUpdated
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedEmpty = &lastUpdatedEmpty
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedGt = &lastUpdatedGt
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedGte = &lastUpdatedGte
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedLt = &lastUpdatedLt
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedLte = &lastUpdatedLte
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest {
+ r.lastUpdatedN = &lastUpdatedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest {
r.limit = &limit
return r
}
+func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest {
+ r.modifiedByRequest = &modifiedByRequest
+ return r
+}
+
func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest {
r.name = &name
return r
@@ -23329,6 +26159,66 @@ func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasS
return r
}
+func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest {
r.offset = &offset
@@ -23407,6 +26297,11 @@ func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasS
return r
}
+func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest {
+ r.updatedByRequest = &updatedByRequest
+ return r
+}
+
func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest {
r.usable = &usable
return r
@@ -23512,112 +26407,85 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.contentTypeId != nil {
- t := *r.contentTypeId
+ 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, "content_type_id", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi")
}
}
- if r.contentTypeIdEmpty != nil {
- t := *r.contentTypeIdEmpty
+ 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, "content_type_id__empty", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi")
}
}
- if r.contentTypeIdGt != nil {
- t := *r.contentTypeIdGt
+ 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, "content_type_id__gt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi")
}
}
- if r.contentTypeIdGte != nil {
- t := *r.contentTypeIdGte
+ 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, "content_type_id__gte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi")
}
}
- if r.contentTypeIdLt != nil {
- t := *r.contentTypeIdLt
+ 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, "content_type_id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi")
}
}
- if r.contentTypeIdLte != nil {
- t := *r.contentTypeIdLte
+ 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, "content_type_id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi")
}
}
- if r.contentTypeIdN != nil {
- t := *r.contentTypeIdN
+ 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, "content_type_id__n", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi")
}
}
- if r.contentTypes != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types", r.contentTypes, "")
- }
- if r.contentTypesIc != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ic", r.contentTypesIc, "")
- }
- if r.contentTypesIe != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__ie", r.contentTypesIe, "")
- }
- if r.contentTypesIew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__iew", r.contentTypesIew, "")
- }
- if r.contentTypesIsw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__isw", r.contentTypesIsw, "")
- }
- if r.contentTypesN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__n", r.contentTypesN, "")
- }
- if r.contentTypesNic != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nic", r.contentTypesNic, "")
- }
- if r.contentTypesNie != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nie", r.contentTypesNie, "")
- }
- if r.contentTypesNiew != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__niew", r.contentTypesNiew, "")
- }
- if r.contentTypesNisw != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "")
+ if r.createdByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "")
}
if r.description != nil {
t := *r.description
@@ -23804,8 +26672,88 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
- if r.limit != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ if r.lastUpdated != nil {
+ t := *r.lastUpdated
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi")
+ }
+ }
+ if r.lastUpdatedEmpty != nil {
+ t := *r.lastUpdatedEmpty
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi")
+ }
+ }
+ if r.lastUpdatedGt != nil {
+ t := *r.lastUpdatedGt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi")
+ }
+ }
+ if r.lastUpdatedGte != nil {
+ t := *r.lastUpdatedGte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi")
+ }
+ }
+ if r.lastUpdatedLt != nil {
+ t := *r.lastUpdatedLt
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi")
+ }
+ }
+ if r.lastUpdatedLte != nil {
+ t := *r.lastUpdatedLte
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi")
+ }
+ }
+ if r.lastUpdatedN != nil {
+ t := *r.lastUpdatedN
+ if reflect.TypeOf(t).Kind() == reflect.Slice {
+ s := reflect.ValueOf(t)
+ for i := 0; i < s.Len(); i++ {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi")
+ }
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ if r.modifiedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
if r.name != nil {
t := *r.name
@@ -23920,6 +26868,58 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
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, "")
+ }
+ 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 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.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, "")
}
@@ -23937,229 +26937,1314 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi")
+ 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")
+ }
+ }
+ 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.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.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.updatedByRequest != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "")
+ }
+ if r.usable != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "")
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
+ // 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 *ExtrasAPIService
+ 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
+ }
+ }
+ }
+ 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 ApiExtrasSavedFiltersRetrieveRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ 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,
+ }
+}
+
+// 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()}
+ }
+
+ 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
+ }
+
+ // 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 ApiExtrasSavedFiltersUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ 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()}
+ }
+
+ 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")
+ }
+
+ // 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.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
+ }
+ }
+ }
+ 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 ApiExtrasScriptsCreateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+}
+
+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,
+ }
+}
+
+// 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()}
+ }
+
+ 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
+ }
+
+ // 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 ApiExtrasScriptsDestroyRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ 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,
+ }
+}
+
+// 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()}
+ }
+
+ 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{}
+
+ // 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 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
+}
+
+// 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,
+ }
+}
+
+// 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()}
+ }
+
+ 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, "id", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi")
}
}
- if r.slugEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "")
+ if r.idEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "")
}
- 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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "id__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.isExecutable != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "")
}
- if r.slugNie != nil {
- t := *r.slugNie
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ }
+ 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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi")
}
}
- if r.usable != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "")
+ if r.nameEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "")
}
- 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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "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(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", 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")
- }
+ if r.offset != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
+ }
+ if r.ordering != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
+ }
+ if r.q != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -24229,33 +28314,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSavedFiltersPartialUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- patchedSavedFilterRequest *PatchedSavedFilterRequest
-}
-
-func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest {
- r.patchedSavedFilterRequest = &patchedSavedFilterRequest
- return r
+type ApiExtrasScriptsPartialUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id string
}
-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 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,
@@ -24264,21 +28343,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context,
// 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
+ 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)
@@ -24286,7 +28365,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav
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)
@@ -24302,8 +28381,6 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav
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 {
@@ -24355,27 +28432,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSavedFiltersRetrieveRequest struct {
+type ApiExtrasScriptsRetrieveRequest struct {
ctx context.Context
ApiService *ExtrasAPIService
- id int32
+ id string
}
-func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) {
- return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r)
+func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) {
+ return r.ApiService.ExtrasScriptsRetrieveExecute(r)
}
/*
-ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve
+ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve
-Get a saved filter object.
+Get 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 id
+ @return ApiExtrasScriptsRetrieveRequest
*/
-func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest {
- return ApiExtrasSavedFiltersRetrieveRequest{
+func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest {
+ return ApiExtrasScriptsRetrieveRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -24384,21 +28461,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id in
// Execute executes the request
//
-// @return SavedFilter
-func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) {
+// @return Script
+func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarReturnValue *Script
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve")
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve")
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)
@@ -24473,33 +28550,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil
return localVarReturnValue, localVarHTTPResponse, nil
}
-type ApiExtrasSavedFiltersUpdateRequest struct {
- ctx context.Context
- ApiService *ExtrasAPIService
- id int32
- savedFilterRequest *SavedFilterRequest
-}
-
-func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest {
- r.savedFilterRequest = &savedFilterRequest
- return r
+type ApiExtrasScriptsUpdateRequest struct {
+ ctx context.Context
+ ApiService *ExtrasAPIService
+ id string
}
-func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) {
- return r.ApiService.ExtrasSavedFiltersUpdateExecute(r)
+func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) {
+ return r.ApiService.ExtrasScriptsUpdateExecute(r)
}
/*
-ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate
+ExtrasScriptsUpdate Method for ExtrasScriptsUpdate
-Put 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 ApiExtrasSavedFiltersUpdateRequest
+ @param id
+ @return ApiExtrasScriptsUpdateRequest
*/
-func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest {
- return ApiExtrasSavedFiltersUpdateRequest{
+func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest {
+ return ApiExtrasScriptsUpdateRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -24508,32 +28579,29 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int3
// Execute executes the request
//
-// @return SavedFilter
-func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) {
+// @return Script
+func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
- localVarReturnValue *SavedFilter
+ localVarReturnValue *Script
)
- localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate")
+ 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.savedFilterRequest == nil {
- return localVarReturnValue, nil, reportError("savedFilterRequest 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)
@@ -24549,8 +28617,6 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
- // body params
- localVarPostBody = r.savedFilterRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
diff --git a/api_ipam.go b/api_ipam.go
index 6d7bab6caa..0e906f7521 100644
--- a/api_ipam.go
+++ b/api_ipam.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2691,13 +2691,13 @@ func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUp
}
type ApiIpamAsnRangesCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableASNRangeRequest *WritableASNRangeRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ aSNRangeRequest *ASNRangeRequest
}
-func (r ApiIpamAsnRangesCreateRequest) WritableASNRangeRequest(writableASNRangeRequest WritableASNRangeRequest) ApiIpamAsnRangesCreateRequest {
- r.writableASNRangeRequest = &writableASNRangeRequest
+func (r ApiIpamAsnRangesCreateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesCreateRequest {
+ r.aSNRangeRequest = &aSNRangeRequest
return r
}
@@ -2741,8 +2741,8 @@ func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableASNRangeRequest == nil {
- return localVarReturnValue, nil, reportError("writableASNRangeRequest is required and must be specified")
+ if r.aSNRangeRequest == nil {
+ return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -2763,7 +2763,7 @@ func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableASNRangeRequest
+ localVarPostBody = r.aSNRangeRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -2984,6 +2984,17 @@ type ApiIpamAsnRangesListRequest struct {
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
@@ -3312,6 +3323,61 @@ func (r ApiIpamAsnRangesListRequest) RirIdN(rirIdN []int32) ApiIpamAsnRangesList
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
@@ -4031,6 +4097,119 @@ func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest)
parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "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(), "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")
+ }
+ }
+ 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.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.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.start != nil {
t := *r.start
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -4282,14 +4461,14 @@ func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest)
}
type ApiIpamAsnRangesPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableASNRangeRequest *PatchedWritableASNRangeRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedASNRangeRequest *PatchedASNRangeRequest
}
-func (r ApiIpamAsnRangesPartialUpdateRequest) PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest PatchedWritableASNRangeRequest) ApiIpamAsnRangesPartialUpdateRequest {
- r.patchedWritableASNRangeRequest = &patchedWritableASNRangeRequest
+func (r ApiIpamAsnRangesPartialUpdateRequest) PatchedASNRangeRequest(patchedASNRangeRequest PatchedASNRangeRequest) ApiIpamAsnRangesPartialUpdateRequest {
+ r.patchedASNRangeRequest = &patchedASNRangeRequest
return r
}
@@ -4355,7 +4534,7 @@ func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPar
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableASNRangeRequest
+ localVarPostBody = r.patchedASNRangeRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -4526,14 +4705,14 @@ func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieve
}
type ApiIpamAsnRangesUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableASNRangeRequest *WritableASNRangeRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ aSNRangeRequest *ASNRangeRequest
}
-func (r ApiIpamAsnRangesUpdateRequest) WritableASNRangeRequest(writableASNRangeRequest WritableASNRangeRequest) ApiIpamAsnRangesUpdateRequest {
- r.writableASNRangeRequest = &writableASNRangeRequest
+func (r ApiIpamAsnRangesUpdateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesUpdateRequest {
+ r.aSNRangeRequest = &aSNRangeRequest
return r
}
@@ -4580,8 +4759,8 @@ func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableASNRangeRequest == nil {
- return localVarReturnValue, nil, reportError("writableASNRangeRequest is required and must be specified")
+ if r.aSNRangeRequest == nil {
+ return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -4602,7 +4781,7 @@ func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableASNRangeRequest
+ localVarPostBody = r.aSNRangeRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5018,13 +5197,13 @@ func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateReques
}
type ApiIpamAsnsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableASNRequest *WritableASNRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ aSNRequest *ASNRequest
}
-func (r ApiIpamAsnsCreateRequest) WritableASNRequest(writableASNRequest WritableASNRequest) ApiIpamAsnsCreateRequest {
- r.writableASNRequest = &writableASNRequest
+func (r ApiIpamAsnsCreateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsCreateRequest {
+ r.aSNRequest = &aSNRequest
return r
}
@@ -5068,8 +5247,8 @@ func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableASNRequest == nil {
- return localVarReturnValue, nil, reportError("writableASNRequest 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
@@ -5090,7 +5269,7 @@ func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableASNRequest
+ localVarPostBody = r.aSNRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5295,6 +5474,10 @@ type ApiIpamAsnsListRequest struct {
modifiedByRequest *string
offset *int32
ordering *string
+ provider *[]string
+ providerN *[]string
+ providerId *[]int32
+ providerIdN *[]int32
q *string
rir *[]string
rirN *[]string
@@ -5540,6 +5723,30 @@ func (r ApiIpamAsnsListRequest) Ordering(ordering string) ApiIpamAsnsListRequest
return r
}
+// 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 ApiIpamAsnsListRequest) Q(q string) ApiIpamAsnsListRequest {
r.q = &q
@@ -6118,6 +6325,50 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat
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")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -6391,14 +6642,14 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat
}
type ApiIpamAsnsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableASNRequest *PatchedWritableASNRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedASNRequest *PatchedASNRequest
}
-func (r ApiIpamAsnsPartialUpdateRequest) PatchedWritableASNRequest(patchedWritableASNRequest PatchedWritableASNRequest) ApiIpamAsnsPartialUpdateRequest {
- r.patchedWritableASNRequest = &patchedWritableASNRequest
+func (r ApiIpamAsnsPartialUpdateRequest) PatchedASNRequest(patchedASNRequest PatchedASNRequest) ApiIpamAsnsPartialUpdateRequest {
+ r.patchedASNRequest = &patchedASNRequest
return r
}
@@ -6464,7 +6715,7 @@ func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableASNRequest
+ localVarPostBody = r.patchedASNRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -6635,14 +6886,14 @@ func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (
}
type ApiIpamAsnsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableASNRequest *WritableASNRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ aSNRequest *ASNRequest
}
-func (r ApiIpamAsnsUpdateRequest) WritableASNRequest(writableASNRequest WritableASNRequest) ApiIpamAsnsUpdateRequest {
- r.writableASNRequest = &writableASNRequest
+func (r ApiIpamAsnsUpdateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsUpdateRequest {
+ r.aSNRequest = &aSNRequest
return r
}
@@ -6689,8 +6940,8 @@ func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableASNRequest == nil {
- return localVarReturnValue, nil, reportError("writableASNRequest 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
@@ -6711,7 +6962,7 @@ func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableASNRequest
+ localVarPostBody = r.aSNRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -7127,13 +7378,13 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrp
}
type ApiIpamFhrpGroupAssignmentsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableFHRPGroupAssignmentRequest *WritableFHRPGroupAssignmentRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest
}
-func (r ApiIpamFhrpGroupAssignmentsCreateRequest) WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest WritableFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsCreateRequest {
- r.writableFHRPGroupAssignmentRequest = &writableFHRPGroupAssignmentRequest
+func (r ApiIpamFhrpGroupAssignmentsCreateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsCreateRequest {
+ r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest
return r
}
@@ -7177,8 +7428,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableFHRPGroupAssignmentRequest == nil {
- return localVarReturnValue, nil, reportError("writableFHRPGroupAssignmentRequest 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
@@ -7199,7 +7450,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableFHRPGroupAssignmentRequest
+ localVarPostBody = r.fHRPGroupAssignmentRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -8222,14 +8473,14 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA
}
type ApiIpamFhrpGroupAssignmentsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableFHRPGroupAssignmentRequest *PatchedWritableFHRPGroupAssignmentRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedFHRPGroupAssignmentRequest *PatchedFHRPGroupAssignmentRequest
}
-func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest PatchedWritableFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest {
- r.patchedWritableFHRPGroupAssignmentRequest = &patchedWritableFHRPGroupAssignmentRequest
+func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) PatchedFHRPGroupAssignmentRequest(patchedFHRPGroupAssignmentRequest PatchedFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest {
+ r.patchedFHRPGroupAssignmentRequest = &patchedFHRPGroupAssignmentRequest
return r
}
@@ -8295,7 +8546,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableFHRPGroupAssignmentRequest
+ localVarPostBody = r.patchedFHRPGroupAssignmentRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -8466,14 +8717,14 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGr
}
type ApiIpamFhrpGroupAssignmentsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableFHRPGroupAssignmentRequest *WritableFHRPGroupAssignmentRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest
}
-func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest WritableFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsUpdateRequest {
- r.writableFHRPGroupAssignmentRequest = &writableFHRPGroupAssignmentRequest
+func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsUpdateRequest {
+ r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest
return r
}
@@ -8520,8 +8771,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableFHRPGroupAssignmentRequest == nil {
- return localVarReturnValue, nil, reportError("writableFHRPGroupAssignmentRequest 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
@@ -8542,7 +8793,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableFHRPGroupAssignmentRequest
+ localVarPostBody = r.fHRPGroupAssignmentRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11453,100 +11704,113 @@ func (a *IpamAPIService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestr
}
type ApiIpamIpAddressesListRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- address *[]string
- assigned *bool
- 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
- parent *[]string
- presentInVrf *string
- presentInVrfId *string
- q *string
- role *[]string
- roleN *[]string
- status *[]string
- statusN *[]string
- tag *[]string
- tagN *[]string
- tenant *[]string
- tenantN *[]string
- tenantGroup *[]int32
- tenantGroupN *[]int32
- tenantGroupId *[]int32
- tenantGroupIdN *[]int32
- tenantId *[]*int32
- tenantIdN *[]*int32
- updatedByRequest *string
- virtualMachine *[]string
- virtualMachineId *[]int32
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
- vrf *[]*string
- vrfN *[]*string
- vrfId *[]*int32
- vrfIdN *[]*int32
+ 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
}
func (r ApiIpamIpAddressesListRequest) Address(address []string) ApiIpamIpAddressesListRequest {
@@ -11560,6 +11824,51 @@ func (r ApiIpamIpAddressesListRequest) Assigned(assigned bool) ApiIpamIpAddresse
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
@@ -11863,6 +12172,18 @@ func (r ApiIpamIpAddressesListRequest) ModifiedByRequest(modifiedByRequest strin
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
@@ -11908,6 +12229,18 @@ func (r ApiIpamIpAddressesListRequest) RoleN(roleN []string) ApiIpamIpAddressesL
return r
}
+// Service (ID)
+func (r ApiIpamIpAddressesListRequest) ServiceId(serviceId []int32) ApiIpamIpAddressesListRequest {
+ r.serviceId = &serviceId
+ return r
+}
+
+// Service (ID)
+func (r ApiIpamIpAddressesListRequest) ServiceIdN(serviceIdN []int32) ApiIpamIpAddressesListRequest {
+ r.serviceIdN = &serviceIdN
+ return r
+}
+
// The operational status of this IP
func (r ApiIpamIpAddressesListRequest) Status(status []string) ApiIpamIpAddressesListRequest {
r.status = &status
@@ -12096,6 +12429,81 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
if r.assigned != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "assigned", r.assigned, "")
}
+ 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.assignedToInterface != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_to_interface", r.assignedToInterface, "")
}
@@ -12665,6 +13073,28 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
if r.modifiedByRequest != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "")
}
+ 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, "nat_inside_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id", t, "multi")
+ }
+ }
+ 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, "nat_inside_id__n", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id__n", t, "multi")
+ }
+ }
if r.offset != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
}
@@ -12713,6 +13143,28 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ
parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi")
}
}
+ 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, "service_id", s.Index(i).Interface(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "multi")
+ }
+ }
+ 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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "multi")
+ }
+ }
if r.status != nil {
t := *r.status
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -14290,6 +14742,13 @@ type ApiIpamIpRangesListRequest struct {
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
@@ -14554,6 +15013,41 @@ func (r ApiIpamIpRangesListRequest) RoleIdN(roleIdN []*int32) ApiIpamIpRangesLis
return r
}
+func (r ApiIpamIpRangesListRequest) Size(size []int32) ApiIpamIpRangesListRequest {
+ r.size = &size
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeEmpty(sizeEmpty bool) ApiIpamIpRangesListRequest {
+ r.sizeEmpty = &sizeEmpty
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeGt(sizeGt []int32) ApiIpamIpRangesListRequest {
+ r.sizeGt = &sizeGt
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeGte(sizeGte []int32) ApiIpamIpRangesListRequest {
+ r.sizeGte = &sizeGte
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeLt(sizeLt []int32) ApiIpamIpRangesListRequest {
+ r.sizeLt = &sizeLt
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeLte(sizeLte []int32) ApiIpamIpRangesListRequest {
+ r.sizeLte = &sizeLte
+ return r
+}
+
+func (r ApiIpamIpRangesListRequest) SizeN(sizeN []int32) ApiIpamIpRangesListRequest {
+ r.sizeN = &sizeN
+ return r
+}
+
func (r ApiIpamIpRangesListRequest) StartAddress(startAddress []string) ApiIpamIpRangesListRequest {
r.startAddress = &startAddress
return r
@@ -15128,6 +15622,75 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (
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 {
@@ -21711,6 +22274,13 @@ type ApiIpamRolesListRequest struct {
tag *[]string
tagN *[]string
updatedByRequest *string
+ weight *[]int32
+ weightEmpty *bool
+ weightGt *[]int32
+ weightGte *[]int32
+ weightLt *[]int32
+ weightLte *[]int32
+ weightN *[]int32
}
func (r ApiIpamRolesListRequest) Created(created []time.Time) ApiIpamRolesListRequest {
@@ -22032,6 +22602,41 @@ func (r ApiIpamRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiIp
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)
}
@@ -22678,6 +23283,75 @@ func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin
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")
+ }
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
@@ -23483,13 +24157,13 @@ func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargets
}
type ApiIpamRouteTargetsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableRouteTargetRequest *WritableRouteTargetRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ routeTargetRequest *RouteTargetRequest
}
-func (r ApiIpamRouteTargetsCreateRequest) WritableRouteTargetRequest(writableRouteTargetRequest WritableRouteTargetRequest) ApiIpamRouteTargetsCreateRequest {
- r.writableRouteTargetRequest = &writableRouteTargetRequest
+func (r ApiIpamRouteTargetsCreateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsCreateRequest {
+ r.routeTargetRequest = &routeTargetRequest
return r
}
@@ -23533,8 +24207,8 @@ func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableRouteTargetRequest == nil {
- return localVarReturnValue, nil, reportError("writableRouteTargetRequest 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
@@ -23555,7 +24229,7 @@ func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableRouteTargetRequest
+ localVarPostBody = r.routeTargetRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -23735,6 +24409,10 @@ type ApiIpamRouteTargetsListRequest struct {
descriptionNie *[]string
descriptionNiew *[]string
descriptionNisw *[]string
+ exportingL2vpn *[]*int64
+ exportingL2vpnN *[]*int64
+ exportingL2vpnId *[]int32
+ exportingL2vpnIdN *[]int32
exportingVrf *[]*string
exportingVrfN *[]*string
exportingVrfId *[]int32
@@ -23746,6 +24424,10 @@ type ApiIpamRouteTargetsListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ importingL2vpn *[]*int64
+ importingL2vpnN *[]*int64
+ importingL2vpnId *[]int32
+ importingL2vpnIdN *[]int32
importingVrf *[]*string
importingVrfN *[]*string
importingVrfId *[]int32
@@ -23881,6 +24563,30 @@ func (r ApiIpamRouteTargetsListRequest) DescriptionNisw(descriptionNisw []string
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
@@ -23940,6 +24646,30 @@ func (r ApiIpamRouteTargetsListRequest) IdN(idN []int32) ApiIpamRouteTargetsList
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
+ 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
@@ -24380,6 +25110,50 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id__n", t, "multi")
+ }
+ }
if r.exportingVrf != nil {
t := *r.exportingVrf
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -24493,6 +25267,50 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe
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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn__n", t, "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 reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -24924,14 +25742,14 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe
}
type ApiIpamRouteTargetsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableRouteTargetRequest *PatchedWritableRouteTargetRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedRouteTargetRequest *PatchedRouteTargetRequest
}
-func (r ApiIpamRouteTargetsPartialUpdateRequest) PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest PatchedWritableRouteTargetRequest) ApiIpamRouteTargetsPartialUpdateRequest {
- r.patchedWritableRouteTargetRequest = &patchedWritableRouteTargetRequest
+func (r ApiIpamRouteTargetsPartialUpdateRequest) PatchedRouteTargetRequest(patchedRouteTargetRequest PatchedRouteTargetRequest) ApiIpamRouteTargetsPartialUpdateRequest {
+ r.patchedRouteTargetRequest = &patchedRouteTargetRequest
return r
}
@@ -24997,7 +25815,7 @@ func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTarg
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableRouteTargetRequest
+ localVarPostBody = r.patchedRouteTargetRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -25168,14 +25986,14 @@ func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRe
}
type ApiIpamRouteTargetsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableRouteTargetRequest *WritableRouteTargetRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ routeTargetRequest *RouteTargetRequest
}
-func (r ApiIpamRouteTargetsUpdateRequest) WritableRouteTargetRequest(writableRouteTargetRequest WritableRouteTargetRequest) ApiIpamRouteTargetsUpdateRequest {
- r.writableRouteTargetRequest = &writableRouteTargetRequest
+func (r ApiIpamRouteTargetsUpdateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsUpdateRequest {
+ r.routeTargetRequest = &routeTargetRequest
return r
}
@@ -25222,8 +26040,8 @@ func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableRouteTargetRequest == nil {
- return localVarReturnValue, nil, reportError("writableRouteTargetRequest 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
@@ -25244,7 +26062,7 @@ func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableRouteTargetRequest
+ localVarPostBody = r.routeTargetRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -25942,8 +26760,8 @@ type ApiIpamServiceTemplatesListRequest struct {
offset *int32
ordering *string
port *float32
- protocol *string
- protocolN *string
+ protocol *IpamServiceTemplatesListProtocolParameter
+ protocolN *IpamServiceTemplatesListProtocolParameter
q *string
tag *[]string
tagN *[]string
@@ -26198,12 +27016,14 @@ func (r ApiIpamServiceTemplatesListRequest) Port(port float32) ApiIpamServiceTem
return r
}
-func (r ApiIpamServiceTemplatesListRequest) Protocol(protocol string) ApiIpamServiceTemplatesListRequest {
+// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
+func (r ApiIpamServiceTemplatesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest {
r.protocol = &protocol
return r
}
-func (r ApiIpamServiceTemplatesListRequest) ProtocolN(protocolN string) ApiIpamServiceTemplatesListRequest {
+// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
+func (r ApiIpamServiceTemplatesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest {
r.protocolN = &protocolN
return r
}
@@ -27839,6 +28659,10 @@ type ApiIpamServicesListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ ipAddress *[]string
+ ipAddressN *[]string
+ ipAddressId *[]int32
+ ipAddressIdN *[]int32
ipaddress *[]string
ipaddressN *[]string
ipaddressId *[]int32
@@ -27866,8 +28690,8 @@ type ApiIpamServicesListRequest struct {
offset *int32
ordering *string
port *float32
- protocol *string
- protocolN *string
+ protocol *IpamServiceTemplatesListProtocolParameter
+ protocolN *IpamServiceTemplatesListProtocolParameter
q *string
tag *[]string
tagN *[]string
@@ -28032,6 +28856,30 @@ func (r ApiIpamServicesListRequest) IdN(idN []int32) ApiIpamServicesListRequest
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
@@ -28174,12 +29022,14 @@ func (r ApiIpamServicesListRequest) Port(port float32) ApiIpamServicesListReques
return r
}
-func (r ApiIpamServicesListRequest) Protocol(protocol string) ApiIpamServicesListRequest {
+// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
+func (r ApiIpamServicesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest {
r.protocol = &protocol
return r
}
-func (r ApiIpamServicesListRequest) ProtocolN(protocolN string) ApiIpamServicesListRequest {
+// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP
+func (r ApiIpamServicesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest {
r.protocolN = &protocolN
return r
}
@@ -28576,6 +29426,50 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (
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 {
@@ -30189,7 +31083,8 @@ type ApiIpamVlanGroupsListRequest struct {
ctx context.Context
ApiService *IpamAPIService
cluster *int32
- clustergroup *float32
+ clusterGroup *int32
+ clustergroup *int32
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -30266,7 +31161,8 @@ type ApiIpamVlanGroupsListRequest struct {
scopeType *string
scopeTypeN *string
site *int32
- sitegroup *float32
+ siteGroup *int32
+ sitegroup *int32
slug *[]string
slugEmpty *bool
slugIc *[]string
@@ -30288,7 +31184,12 @@ func (r ApiIpamVlanGroupsListRequest) Cluster(cluster int32) ApiIpamVlanGroupsLi
return r
}
-func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup float32) ApiIpamVlanGroupsListRequest {
+func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVlanGroupsListRequest {
+ r.clusterGroup = &clusterGroup
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest {
r.clustergroup = &clustergroup
return r
}
@@ -30677,7 +31578,12 @@ func (r ApiIpamVlanGroupsListRequest) Site(site int32) ApiIpamVlanGroupsListRequ
return r
}
-func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup float32) ApiIpamVlanGroupsListRequest {
+func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGroupsListRequest {
+ r.siteGroup = &siteGroup
+ return r
+}
+
+func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest {
r.sitegroup = &sitegroup
return r
}
@@ -30796,6 +31702,9 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques
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, "")
}
@@ -31491,6 +32400,9 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques
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, "")
}
@@ -35076,13 +35988,13 @@ func (a *IpamAPIService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateReques
}
type ApiIpamVrfsCreateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- writableVRFRequest *WritableVRFRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ vRFRequest *VRFRequest
}
-func (r ApiIpamVrfsCreateRequest) WritableVRFRequest(writableVRFRequest WritableVRFRequest) ApiIpamVrfsCreateRequest {
- r.writableVRFRequest = &writableVRFRequest
+func (r ApiIpamVrfsCreateRequest) VRFRequest(vRFRequest VRFRequest) ApiIpamVrfsCreateRequest {
+ r.vRFRequest = &vRFRequest
return r
}
@@ -35126,8 +36038,8 @@ func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableVRFRequest == nil {
- return localVarReturnValue, nil, reportError("writableVRFRequest is required and must be specified")
+ if r.vRFRequest == nil {
+ return localVarReturnValue, nil, reportError("vRFRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -35148,7 +36060,7 @@ func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableVRFRequest
+ localVarPostBody = r.vRFRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -36705,14 +37617,14 @@ func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat
}
type ApiIpamVrfsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- patchedWritableVRFRequest *PatchedWritableVRFRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ patchedVRFRequest *PatchedVRFRequest
}
-func (r ApiIpamVrfsPartialUpdateRequest) PatchedWritableVRFRequest(patchedWritableVRFRequest PatchedWritableVRFRequest) ApiIpamVrfsPartialUpdateRequest {
- r.patchedWritableVRFRequest = &patchedWritableVRFRequest
+func (r ApiIpamVrfsPartialUpdateRequest) PatchedVRFRequest(patchedVRFRequest PatchedVRFRequest) ApiIpamVrfsPartialUpdateRequest {
+ r.patchedVRFRequest = &patchedVRFRequest
return r
}
@@ -36778,7 +37690,7 @@ func (a *IpamAPIService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdate
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableVRFRequest
+ localVarPostBody = r.patchedVRFRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -36949,14 +37861,14 @@ func (a *IpamAPIService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (
}
type ApiIpamVrfsUpdateRequest struct {
- ctx context.Context
- ApiService *IpamAPIService
- id int32
- writableVRFRequest *WritableVRFRequest
+ ctx context.Context
+ ApiService *IpamAPIService
+ id int32
+ vRFRequest *VRFRequest
}
-func (r ApiIpamVrfsUpdateRequest) WritableVRFRequest(writableVRFRequest WritableVRFRequest) ApiIpamVrfsUpdateRequest {
- r.writableVRFRequest = &writableVRFRequest
+func (r ApiIpamVrfsUpdateRequest) VRFRequest(vRFRequest VRFRequest) ApiIpamVrfsUpdateRequest {
+ r.vRFRequest = &vRFRequest
return r
}
@@ -37003,8 +37915,8 @@ func (a *IpamAPIService) IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableVRFRequest == nil {
- return localVarReturnValue, nil, reportError("writableVRFRequest is required and must be specified")
+ if r.vRFRequest == nil {
+ return localVarReturnValue, nil, reportError("vRFRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -37025,7 +37937,7 @@ func (a *IpamAPIService) IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableVRFRequest
+ localVarPostBody = r.vRFRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
diff --git a/api_schema.go b/api_schema.go
index e1ad5907b1..5394105aa6 100644
--- a/api_schema.go
+++ b/api_schema.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -25,6 +25,7 @@ type ApiSchemaRetrieveRequest struct {
ctx context.Context
ApiService *SchemaAPIService
format *SchemaRetrieveFormatParameter
+ lang *SchemaRetrieveLangParameter
}
func (r ApiSchemaRetrieveRequest) Format(format SchemaRetrieveFormatParameter) ApiSchemaRetrieveRequest {
@@ -32,6 +33,11 @@ func (r ApiSchemaRetrieveRequest) Format(format SchemaRetrieveFormatParameter) A
return r
}
+func (r ApiSchemaRetrieveRequest) Lang(lang SchemaRetrieveLangParameter) ApiSchemaRetrieveRequest {
+ r.lang = &lang
+ return r
+}
+
func (r ApiSchemaRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.SchemaRetrieveExecute(r)
}
@@ -79,6 +85,9 @@ func (a *SchemaAPIService) SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (ma
if r.format != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "")
}
+ if r.lang != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "lang", r.lang, "")
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
diff --git a/api_status.go b/api_status.go
index ff8c18628e..9f266f5234 100644
--- a/api_status.go
+++ b/api_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/api_tenancy.go b/api_tenancy.go
index 9abc1fc450..0b17b4c3a9 100644
--- a/api_tenancy.go
+++ b/api_tenancy.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -623,10 +623,6 @@ type ApiTenancyContactAssignmentsListRequest struct {
ApiService *TenancyAPIService
contactId *[]int32
contactIdN *[]int32
- contentType *string
- contentTypeN *string
- contentTypeId *int32
- contentTypeIdN *int32
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -662,10 +658,14 @@ type ApiTenancyContactAssignmentsListRequest struct {
objectIdLt *[]int32
objectIdLte *[]int32
objectIdN *[]int32
+ objectType *string
+ objectTypeN *string
+ objectTypeId *int32
+ objectTypeIdN *int32
offset *int32
ordering *string
- priority *string
- priorityN *string
+ priority *TenancyContactAssignmentsListPriorityParameter
+ priorityN *TenancyContactAssignmentsListPriorityParameter
q *string
role *[]string
roleN *[]string
@@ -688,26 +688,6 @@ func (r ApiTenancyContactAssignmentsListRequest) ContactIdN(contactIdN []int32)
return r
}
-func (r ApiTenancyContactAssignmentsListRequest) ContentType(contentType string) ApiTenancyContactAssignmentsListRequest {
- r.contentType = &contentType
- return r
-}
-
-func (r ApiTenancyContactAssignmentsListRequest) ContentTypeN(contentTypeN string) ApiTenancyContactAssignmentsListRequest {
- r.contentTypeN = &contentTypeN
- return r
-}
-
-func (r ApiTenancyContactAssignmentsListRequest) ContentTypeId(contentTypeId int32) ApiTenancyContactAssignmentsListRequest {
- r.contentTypeId = &contentTypeId
- return r
-}
-
-func (r ApiTenancyContactAssignmentsListRequest) ContentTypeIdN(contentTypeIdN int32) ApiTenancyContactAssignmentsListRequest {
- r.contentTypeIdN = &contentTypeIdN
- return r
-}
-
func (r ApiTenancyContactAssignmentsListRequest) Created(created []time.Time) ApiTenancyContactAssignmentsListRequest {
r.created = &created
return r
@@ -888,6 +868,26 @@ func (r ApiTenancyContactAssignmentsListRequest) ObjectIdN(objectIdN []int32) Ap
return r
}
+func (r ApiTenancyContactAssignmentsListRequest) ObjectType(objectType string) ApiTenancyContactAssignmentsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiTenancyContactAssignmentsListRequest) ObjectTypeN(objectTypeN string) ApiTenancyContactAssignmentsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiTenancyContactAssignmentsListRequest) ObjectTypeId(objectTypeId int32) ApiTenancyContactAssignmentsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiTenancyContactAssignmentsListRequest) ObjectTypeIdN(objectTypeIdN int32) ApiTenancyContactAssignmentsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
// The initial index from which to return the results.
func (r ApiTenancyContactAssignmentsListRequest) Offset(offset int32) ApiTenancyContactAssignmentsListRequest {
r.offset = &offset
@@ -900,12 +900,14 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe
return r
}
-func (r ApiTenancyContactAssignmentsListRequest) Priority(priority string) ApiTenancyContactAssignmentsListRequest {
+// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
+func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest {
r.priority = &priority
return r
}
-func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN string) ApiTenancyContactAssignmentsListRequest {
+// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive
+func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest {
r.priorityN = &priorityN
return r
}
@@ -1018,18 +1020,6 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon
parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", t, "multi")
}
}
- if r.contentType != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", r.contentType, "")
- }
- if r.contentTypeN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type__n", r.contentTypeN, "")
- }
- if r.contentTypeId != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", r.contentTypeId, "")
- }
- if r.contentTypeIdN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", r.contentTypeIdN, "")
- }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -1375,6 +1365,18 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon
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 {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "")
+ }
+ if r.objectTypeIdN != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "")
+ }
if r.offset != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "")
}
@@ -2497,6 +2499,10 @@ 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
@@ -2566,6 +2572,30 @@ type ApiTenancyContactGroupsListRequest struct {
updatedByRequest *string
}
+// Contact group (slug)
+func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+// Contact group (slug)
+func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+// Contact group (ID)
+func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+// Contact group (ID)
+func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
+}
+
func (r ApiTenancyContactGroupsListRequest) Created(created []time.Time) ApiTenancyContactGroupsListRequest {
r.created = &created
return r
@@ -2809,25 +2839,25 @@ func (r ApiTenancyContactGroupsListRequest) Ordering(ordering string) ApiTenancy
return r
}
-// Contact group (slug)
+// Parent contact group (slug)
func (r ApiTenancyContactGroupsListRequest) Parent(parent []string) ApiTenancyContactGroupsListRequest {
r.parent = &parent
return r
}
-// Contact group (slug)
+// Parent contact group (slug)
func (r ApiTenancyContactGroupsListRequest) ParentN(parentN []string) ApiTenancyContactGroupsListRequest {
r.parentN = &parentN
return r
}
-// Contact group (ID)
+// Parent contact group (ID)
func (r ApiTenancyContactGroupsListRequest) ParentId(parentId []*int32) ApiTenancyContactGroupsListRequest {
r.parentId = &parentId
return r
}
-// Contact group (ID)
+// Parent contact group (ID)
func (r ApiTenancyContactGroupsListRequest) ParentIdN(parentIdN []*int32) ApiTenancyContactGroupsListRequest {
r.parentIdN = &parentIdN
return r
@@ -2950,6 +2980,50 @@ func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactG
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.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6472,13 +6546,13 @@ func (a *TenancyAPIService) TenancyContactsBulkUpdateExecute(r ApiTenancyContact
}
type ApiTenancyContactsCreateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- writableContactRequest *WritableContactRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ contactRequest *ContactRequest
}
-func (r ApiTenancyContactsCreateRequest) WritableContactRequest(writableContactRequest WritableContactRequest) ApiTenancyContactsCreateRequest {
- r.writableContactRequest = &writableContactRequest
+func (r ApiTenancyContactsCreateRequest) ContactRequest(contactRequest ContactRequest) ApiTenancyContactsCreateRequest {
+ r.contactRequest = &contactRequest
return r
}
@@ -6522,8 +6596,8 @@ func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCre
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableContactRequest == nil {
- return localVarReturnValue, nil, reportError("writableContactRequest is required and must be specified")
+ if r.contactRequest == nil {
+ return localVarReturnValue, nil, reportError("contactRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -6544,7 +6618,7 @@ func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCre
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableContactRequest
+ localVarPostBody = r.contactRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -8592,14 +8666,14 @@ func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListR
}
type ApiTenancyContactsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- id int32
- patchedWritableContactRequest *PatchedWritableContactRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ id int32
+ patchedContactRequest *PatchedContactRequest
}
-func (r ApiTenancyContactsPartialUpdateRequest) PatchedWritableContactRequest(patchedWritableContactRequest PatchedWritableContactRequest) ApiTenancyContactsPartialUpdateRequest {
- r.patchedWritableContactRequest = &patchedWritableContactRequest
+func (r ApiTenancyContactsPartialUpdateRequest) PatchedContactRequest(patchedContactRequest PatchedContactRequest) ApiTenancyContactsPartialUpdateRequest {
+ r.patchedContactRequest = &patchedContactRequest
return r
}
@@ -8665,7 +8739,7 @@ func (a *TenancyAPIService) TenancyContactsPartialUpdateExecute(r ApiTenancyCont
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableContactRequest
+ localVarPostBody = r.patchedContactRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -8836,14 +8910,14 @@ func (a *TenancyAPIService) TenancyContactsRetrieveExecute(r ApiTenancyContactsR
}
type ApiTenancyContactsUpdateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- id int32
- writableContactRequest *WritableContactRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ id int32
+ contactRequest *ContactRequest
}
-func (r ApiTenancyContactsUpdateRequest) WritableContactRequest(writableContactRequest WritableContactRequest) ApiTenancyContactsUpdateRequest {
- r.writableContactRequest = &writableContactRequest
+func (r ApiTenancyContactsUpdateRequest) ContactRequest(contactRequest ContactRequest) ApiTenancyContactsUpdateRequest {
+ r.contactRequest = &contactRequest
return r
}
@@ -8890,8 +8964,8 @@ func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpd
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableContactRequest == nil {
- return localVarReturnValue, nil, reportError("writableContactRequest is required and must be specified")
+ if r.contactRequest == nil {
+ return localVarReturnValue, nil, reportError("contactRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -8912,7 +8986,7 @@ func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpd
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableContactRequest
+ localVarPostBody = r.contactRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -9561,6 +9635,10 @@ 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
@@ -9630,6 +9708,30 @@ type ApiTenancyTenantGroupsListRequest struct {
updatedByRequest *string
}
+// Tenant group (slug)
+func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+// Tenant group (slug)
+func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+// Tenant group (ID)
+func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+// Tenant group (ID)
+func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
+}
+
func (r ApiTenancyTenantGroupsListRequest) Created(created []time.Time) ApiTenancyTenantGroupsListRequest {
r.created = &created
return r
@@ -9873,25 +9975,25 @@ func (r ApiTenancyTenantGroupsListRequest) Ordering(ordering string) ApiTenancyT
return r
}
-// Tenant group (slug)
+// Parent tenant group (slug)
func (r ApiTenancyTenantGroupsListRequest) Parent(parent []string) ApiTenancyTenantGroupsListRequest {
r.parent = &parent
return r
}
-// Tenant group (slug)
+// Parent tenant group (slug)
func (r ApiTenancyTenantGroupsListRequest) ParentN(parentN []string) ApiTenancyTenantGroupsListRequest {
r.parentN = &parentN
return r
}
-// Tenant group (ID)
+// Parent tenant group (ID)
func (r ApiTenancyTenantGroupsListRequest) ParentId(parentId []*int32) ApiTenancyTenantGroupsListRequest {
r.parentId = &parentId
return r
}
-// Tenant group (ID)
+// Parent tenant group (ID)
func (r ApiTenancyTenantGroupsListRequest) ParentIdN(parentIdN []*int32) ApiTenancyTenantGroupsListRequest {
r.parentIdN = &parentIdN
return r
@@ -10014,6 +10116,50 @@ func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro
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.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -11468,13 +11614,13 @@ func (a *TenancyAPIService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsB
}
type ApiTenancyTenantsCreateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- writableTenantRequest *WritableTenantRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ tenantRequest *TenantRequest
}
-func (r ApiTenancyTenantsCreateRequest) WritableTenantRequest(writableTenantRequest WritableTenantRequest) ApiTenancyTenantsCreateRequest {
- r.writableTenantRequest = &writableTenantRequest
+func (r ApiTenancyTenantsCreateRequest) TenantRequest(tenantRequest TenantRequest) ApiTenancyTenantsCreateRequest {
+ r.tenantRequest = &tenantRequest
return r
}
@@ -11518,8 +11664,8 @@ func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreat
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableTenantRequest == nil {
- return localVarReturnValue, nil, reportError("writableTenantRequest is required and must be specified")
+ if r.tenantRequest == nil {
+ return localVarReturnValue, nil, reportError("tenantRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -11540,7 +11686,7 @@ func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreat
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableTenantRequest
+ localVarPostBody = r.tenantRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -12980,14 +13126,14 @@ func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq
}
type ApiTenancyTenantsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- id int32
- patchedWritableTenantRequest *PatchedWritableTenantRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ id int32
+ patchedTenantRequest *PatchedTenantRequest
}
-func (r ApiTenancyTenantsPartialUpdateRequest) PatchedWritableTenantRequest(patchedWritableTenantRequest PatchedWritableTenantRequest) ApiTenancyTenantsPartialUpdateRequest {
- r.patchedWritableTenantRequest = &patchedWritableTenantRequest
+func (r ApiTenancyTenantsPartialUpdateRequest) PatchedTenantRequest(patchedTenantRequest PatchedTenantRequest) ApiTenancyTenantsPartialUpdateRequest {
+ r.patchedTenantRequest = &patchedTenantRequest
return r
}
@@ -13053,7 +13199,7 @@ func (a *TenancyAPIService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenan
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableTenantRequest
+ localVarPostBody = r.patchedTenantRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -13224,14 +13370,14 @@ func (a *TenancyAPIService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRet
}
type ApiTenancyTenantsUpdateRequest struct {
- ctx context.Context
- ApiService *TenancyAPIService
- id int32
- writableTenantRequest *WritableTenantRequest
+ ctx context.Context
+ ApiService *TenancyAPIService
+ id int32
+ tenantRequest *TenantRequest
}
-func (r ApiTenancyTenantsUpdateRequest) WritableTenantRequest(writableTenantRequest WritableTenantRequest) ApiTenancyTenantsUpdateRequest {
- r.writableTenantRequest = &writableTenantRequest
+func (r ApiTenancyTenantsUpdateRequest) TenantRequest(tenantRequest TenantRequest) ApiTenancyTenantsUpdateRequest {
+ r.tenantRequest = &tenantRequest
return r
}
@@ -13278,8 +13424,8 @@ func (a *TenancyAPIService) TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdat
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableTenantRequest == nil {
- return localVarReturnValue, nil, reportError("writableTenantRequest is required and must be specified")
+ if r.tenantRequest == nil {
+ return localVarReturnValue, nil, reportError("tenantRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -13300,7 +13446,7 @@ func (a *TenancyAPIService) TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdat
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableTenantRequest
+ localVarPostBody = r.tenantRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
diff --git a/api_users.go b/api_users.go
index 45d5d4fa50..f872d1a93a 100644
--- a/api_users.go
+++ b/api_users.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -733,30 +733,100 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque
}
type ApiUsersGroupsListRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id *[]int32
- idEmpty *bool
- idGt *[]int32
- idGte *[]int32
- idLt *[]int32
- idLte *[]int32
- idN *[]int32
- limit *int32
- name *[]string
- nameEmpty *bool
- nameIc *[]string
- nameIe *[]string
- nameIew *[]string
- nameIsw *[]string
- nameN *[]string
- nameNic *[]string
- nameNie *[]string
- nameNiew *[]string
- nameNisw *[]string
- offset *int32
- ordering *string
- q *string
+ ctx context.Context
+ ApiService *UsersAPIService
+ 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
+}
+
+func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest {
+ r.description = &description
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiUsersGroupsListRequest {
+ r.descriptionEmpty = &descriptionEmpty
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionIc(descriptionIc []string) ApiUsersGroupsListRequest {
+ r.descriptionIc = &descriptionIc
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionIe(descriptionIe []string) ApiUsersGroupsListRequest {
+ r.descriptionIe = &descriptionIe
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionIew(descriptionIew []string) ApiUsersGroupsListRequest {
+ r.descriptionIew = &descriptionIew
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiUsersGroupsListRequest {
+ r.descriptionIsw = &descriptionIsw
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionN(descriptionN []string) ApiUsersGroupsListRequest {
+ r.descriptionN = &descriptionN
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionNic(descriptionNic []string) ApiUsersGroupsListRequest {
+ r.descriptionNic = &descriptionNic
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionNie(descriptionNie []string) ApiUsersGroupsListRequest {
+ r.descriptionNie = &descriptionNie
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiUsersGroupsListRequest {
+ r.descriptionNiew = &descriptionNiew
+ return r
+}
+
+func (r ApiUsersGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiUsersGroupsListRequest {
+ r.descriptionNisw = &descriptionNisw
+ return r
}
func (r ApiUsersGroupsListRequest) Id(id []int32) ApiUsersGroupsListRequest {
@@ -867,12 +937,36 @@ func (r ApiUsersGroupsListRequest) Ordering(ordering string) ApiUsersGroupsListR
return r
}
+// Permission (ID)
+func (r ApiUsersGroupsListRequest) PermissionId(permissionId []int32) ApiUsersGroupsListRequest {
+ r.permissionId = &permissionId
+ return r
+}
+
+// Permission (ID)
+func (r ApiUsersGroupsListRequest) PermissionIdN(permissionIdN []int32) ApiUsersGroupsListRequest {
+ r.permissionIdN = &permissionIdN
+ return r
+}
+
// Search
func (r ApiUsersGroupsListRequest) Q(q string) ApiUsersGroupsListRequest {
r.q = &q
return r
}
+// User (ID)
+func (r ApiUsersGroupsListRequest) UserId(userId []int32) ApiUsersGroupsListRequest {
+ r.userId = &userId
+ return r
+}
+
+// User (ID)
+func (r ApiUsersGroupsListRequest) UserIdN(userIdN []int32) ApiUsersGroupsListRequest {
+ r.userIdN = &userIdN
+ return r
+}
+
func (r ApiUsersGroupsListRequest) Execute() (*PaginatedGroupList, *http.Response, error) {
return r.ApiService.UsersGroupsListExecute(r)
}
@@ -914,6 +1008,119 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ 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 {
@@ -1105,9 +1312,53 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
}
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "multi")
+ }
+ }
+ if r.permissionIdN != nil {
+ t := *r.permissionIdN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
+ 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{}
@@ -1913,13 +2164,13 @@ func (a *UsersAPIService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermission
}
type ApiUsersPermissionsCreateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- writableObjectPermissionRequest *WritableObjectPermissionRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ objectPermissionRequest *ObjectPermissionRequest
}
-func (r ApiUsersPermissionsCreateRequest) WritableObjectPermissionRequest(writableObjectPermissionRequest WritableObjectPermissionRequest) ApiUsersPermissionsCreateRequest {
- r.writableObjectPermissionRequest = &writableObjectPermissionRequest
+func (r ApiUsersPermissionsCreateRequest) ObjectPermissionRequest(objectPermissionRequest ObjectPermissionRequest) ApiUsersPermissionsCreateRequest {
+ r.objectPermissionRequest = &objectPermissionRequest
return r
}
@@ -1963,8 +2214,8 @@ func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCre
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableObjectPermissionRequest == nil {
- return localVarReturnValue, nil, reportError("writableObjectPermissionRequest is required and must be specified")
+ if r.objectPermissionRequest == nil {
+ return localVarReturnValue, nil, reportError("objectPermissionRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -1985,7 +2236,7 @@ func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCre
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableObjectPermissionRequest
+ localVarPostBody = r.objectPermissionRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -2185,6 +2436,18 @@ type ApiUsersPermissionsListRequest struct {
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
@@ -2396,6 +2659,66 @@ func (r ApiUsersPermissionsListRequest) NameNisw(nameNisw []string) ApiUsersPerm
return r
}
+func (r ApiUsersPermissionsListRequest) ObjectType(objectType string) ApiUsersPermissionsListRequest {
+ r.objectType = &objectType
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeIc(objectTypeIc string) ApiUsersPermissionsListRequest {
+ r.objectTypeIc = &objectTypeIc
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeIe(objectTypeIe string) ApiUsersPermissionsListRequest {
+ r.objectTypeIe = &objectTypeIe
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeIew(objectTypeIew string) ApiUsersPermissionsListRequest {
+ r.objectTypeIew = &objectTypeIew
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeIsw(objectTypeIsw string) ApiUsersPermissionsListRequest {
+ r.objectTypeIsw = &objectTypeIsw
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeN(objectTypeN string) ApiUsersPermissionsListRequest {
+ r.objectTypeN = &objectTypeN
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeNic(objectTypeNic string) ApiUsersPermissionsListRequest {
+ r.objectTypeNic = &objectTypeNic
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeNie(objectTypeNie string) ApiUsersPermissionsListRequest {
+ r.objectTypeNie = &objectTypeNie
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeNiew(objectTypeNiew string) ApiUsersPermissionsListRequest {
+ r.objectTypeNiew = &objectTypeNiew
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeNisw(objectTypeNisw string) ApiUsersPermissionsListRequest {
+ r.objectTypeNisw = &objectTypeNisw
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeId(objectTypeId []int32) ApiUsersPermissionsListRequest {
+ r.objectTypeId = &objectTypeId
+ return r
+}
+
+func (r ApiUsersPermissionsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiUsersPermissionsListRequest {
+ r.objectTypeIdN = &objectTypeIdN
+ return r
+}
+
func (r ApiUsersPermissionsListRequest) ObjectTypes(objectTypes []int32) ApiUsersPermissionsListRequest {
r.objectTypes = &objectTypes
return r
@@ -2846,6 +3169,58 @@ func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListR
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, "")
+ }
+ 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 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.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.objectTypes != nil {
t := *r.objectTypes
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2990,14 +3365,14 @@ func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListR
}
type ApiUsersPermissionsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- patchedWritableObjectPermissionRequest *PatchedWritableObjectPermissionRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ patchedObjectPermissionRequest *PatchedObjectPermissionRequest
}
-func (r ApiUsersPermissionsPartialUpdateRequest) PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest PatchedWritableObjectPermissionRequest) ApiUsersPermissionsPartialUpdateRequest {
- r.patchedWritableObjectPermissionRequest = &patchedWritableObjectPermissionRequest
+func (r ApiUsersPermissionsPartialUpdateRequest) PatchedObjectPermissionRequest(patchedObjectPermissionRequest PatchedObjectPermissionRequest) ApiUsersPermissionsPartialUpdateRequest {
+ r.patchedObjectPermissionRequest = &patchedObjectPermissionRequest
return r
}
@@ -3063,7 +3438,7 @@ func (a *UsersAPIService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermiss
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableObjectPermissionRequest
+ localVarPostBody = r.patchedObjectPermissionRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -3234,14 +3609,14 @@ func (a *UsersAPIService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsR
}
type ApiUsersPermissionsUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- writableObjectPermissionRequest *WritableObjectPermissionRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ objectPermissionRequest *ObjectPermissionRequest
}
-func (r ApiUsersPermissionsUpdateRequest) WritableObjectPermissionRequest(writableObjectPermissionRequest WritableObjectPermissionRequest) ApiUsersPermissionsUpdateRequest {
- r.writableObjectPermissionRequest = &writableObjectPermissionRequest
+func (r ApiUsersPermissionsUpdateRequest) ObjectPermissionRequest(objectPermissionRequest ObjectPermissionRequest) ApiUsersPermissionsUpdateRequest {
+ r.objectPermissionRequest = &objectPermissionRequest
return r
}
@@ -3288,8 +3663,8 @@ func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpd
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableObjectPermissionRequest == nil {
- return localVarReturnValue, nil, reportError("writableObjectPermissionRequest is required and must be specified")
+ if r.objectPermissionRequest == nil {
+ return localVarReturnValue, nil, reportError("objectPermissionRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -3310,7 +3685,7 @@ func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpd
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableObjectPermissionRequest
+ localVarPostBody = r.objectPermissionRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -3726,13 +4101,13 @@ func (a *UsersAPIService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdat
}
type ApiUsersTokensCreateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- writableTokenRequest *WritableTokenRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ tokenRequest *TokenRequest
}
-func (r ApiUsersTokensCreateRequest) WritableTokenRequest(writableTokenRequest WritableTokenRequest) ApiUsersTokensCreateRequest {
- r.writableTokenRequest = &writableTokenRequest
+func (r ApiUsersTokensCreateRequest) TokenRequest(tokenRequest TokenRequest) ApiUsersTokensCreateRequest {
+ r.tokenRequest = &tokenRequest
return r
}
@@ -3776,8 +4151,8 @@ func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableTokenRequest == nil {
- return localVarReturnValue, nil, reportError("writableTokenRequest is required and must be specified")
+ if r.tokenRequest == nil {
+ return localVarReturnValue, nil, reportError("tokenRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -3798,7 +4173,7 @@ func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableTokenRequest
+ localVarPostBody = r.tokenRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -3994,6 +4369,13 @@ type ApiUsersTokensListRequest struct {
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
@@ -4180,6 +4562,41 @@ func (r ApiUsersTokensListRequest) KeyNisw(keyNisw []string) ApiUsersTokensListR
return r
}
+func (r ApiUsersTokensListRequest) LastUsed(lastUsed []time.Time) ApiUsersTokensListRequest {
+ r.lastUsed = &lastUsed
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedEmpty(lastUsedEmpty bool) ApiUsersTokensListRequest {
+ r.lastUsedEmpty = &lastUsedEmpty
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedGt(lastUsedGt []time.Time) ApiUsersTokensListRequest {
+ r.lastUsedGt = &lastUsedGt
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedGte(lastUsedGte []time.Time) ApiUsersTokensListRequest {
+ r.lastUsedGte = &lastUsedGte
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedLt(lastUsedLt []time.Time) ApiUsersTokensListRequest {
+ r.lastUsedLt = &lastUsedLt
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedLte(lastUsedLte []time.Time) ApiUsersTokensListRequest {
+ r.lastUsedLte = &lastUsedLte
+ return r
+}
+
+func (r ApiUsersTokensListRequest) LastUsedN(lastUsedN []time.Time) ApiUsersTokensListRequest {
+ r.lastUsedN = &lastUsedN
+ return r
+}
+
// Number of results to return per page.
func (r ApiUsersTokensListRequest) Limit(limit int32) ApiUsersTokensListRequest {
r.limit = &limit
@@ -4587,6 +5004,75 @@ func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*
parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", t, "multi")
}
}
+ if r.lastUsed != nil {
+ t := *r.lastUsed
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used", t, "multi")
+ }
+ }
+ if r.lastUsedEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__empty", r.lastUsedEmpty, "")
+ }
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gt", t, "multi")
+ }
+ }
+ if r.lastUsedGte != nil {
+ t := *r.lastUsedGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gte", t, "multi")
+ }
+ }
+ if r.lastUsedLt != nil {
+ t := *r.lastUsedLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lt", t, "multi")
+ }
+ }
+ if r.lastUsedLte != nil {
+ t := *r.lastUsedLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lte", t, "multi")
+ }
+ }
+ if r.lastUsedN != nil {
+ t := *r.lastUsedN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__n", t, "multi")
+ }
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
}
@@ -4715,14 +5201,14 @@ func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*
}
type ApiUsersTokensPartialUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- patchedWritableTokenRequest *PatchedWritableTokenRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ patchedTokenRequest *PatchedTokenRequest
}
-func (r ApiUsersTokensPartialUpdateRequest) PatchedWritableTokenRequest(patchedWritableTokenRequest PatchedWritableTokenRequest) ApiUsersTokensPartialUpdateRequest {
- r.patchedWritableTokenRequest = &patchedWritableTokenRequest
+func (r ApiUsersTokensPartialUpdateRequest) PatchedTokenRequest(patchedTokenRequest PatchedTokenRequest) ApiUsersTokensPartialUpdateRequest {
+ r.patchedTokenRequest = &patchedTokenRequest
return r
}
@@ -4788,7 +5274,7 @@ func (a *UsersAPIService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartia
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableTokenRequest
+ localVarPostBody = r.patchedTokenRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5094,14 +5580,14 @@ func (a *UsersAPIService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveReq
}
type ApiUsersTokensUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- writableTokenRequest *WritableTokenRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ tokenRequest *TokenRequest
}
-func (r ApiUsersTokensUpdateRequest) WritableTokenRequest(writableTokenRequest WritableTokenRequest) ApiUsersTokensUpdateRequest {
- r.writableTokenRequest = &writableTokenRequest
+func (r ApiUsersTokensUpdateRequest) TokenRequest(tokenRequest TokenRequest) ApiUsersTokensUpdateRequest {
+ r.tokenRequest = &tokenRequest
return r
}
@@ -5148,8 +5634,8 @@ func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableTokenRequest == nil {
- return localVarReturnValue, nil, reportError("writableTokenRequest is required and must be specified")
+ if r.tokenRequest == nil {
+ return localVarReturnValue, nil, reportError("tokenRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -5170,7 +5656,7 @@ func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableTokenRequest
+ localVarPostBody = r.tokenRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5586,13 +6072,13 @@ func (a *UsersAPIService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateR
}
type ApiUsersUsersCreateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- writableUserRequest *WritableUserRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ userRequest *UserRequest
}
-func (r ApiUsersUsersCreateRequest) WritableUserRequest(writableUserRequest WritableUserRequest) ApiUsersUsersCreateRequest {
- r.writableUserRequest = &writableUserRequest
+func (r ApiUsersUsersCreateRequest) UserRequest(userRequest UserRequest) ApiUsersUsersCreateRequest {
+ r.userRequest = &userRequest
return r
}
@@ -5636,8 +6122,8 @@ func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableUserRequest == nil {
- return localVarReturnValue, nil, reportError("writableUserRequest is required and must be specified")
+ if r.userRequest == nil {
+ return localVarReturnValue, nil, reportError("userRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -5658,7 +6144,7 @@ func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest)
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableUserRequest
+ localVarPostBody = r.userRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -5817,70 +6303,121 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest
}
type ApiUsersUsersListRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- email *[]string
- emailEmpty *bool
- emailIc *[]string
- emailIe *[]string
- emailIew *[]string
- emailIsw *[]string
- emailN *[]string
- emailNic *[]string
- emailNie *[]string
- emailNiew *[]string
- emailNisw *[]string
- firstName *[]string
- 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
- lastName *[]string
- lastNameEmpty *bool
- lastNameIc *[]string
- lastNameIe *[]string
- lastNameIew *[]string
- lastNameIsw *[]string
- lastNameN *[]string
- lastNameNic *[]string
- lastNameNie *[]string
- lastNameNiew *[]string
- lastNameNisw *[]string
- limit *int32
- offset *int32
- ordering *string
- q *string
- username *[]string
- usernameEmpty *bool
- usernameIc *[]string
- usernameIe *[]string
- usernameIew *[]string
- usernameIsw *[]string
- usernameN *[]string
- usernameNic *[]string
- usernameNie *[]string
- usernameNiew *[]string
- usernameNisw *[]string
+ ctx context.Context
+ ApiService *UsersAPIService
+ 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
+}
+
+func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest {
+ r.dateJoined = &dateJoined
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedEmpty(dateJoinedEmpty bool) ApiUsersUsersListRequest {
+ r.dateJoinedEmpty = &dateJoinedEmpty
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedGt(dateJoinedGt []time.Time) ApiUsersUsersListRequest {
+ r.dateJoinedGt = &dateJoinedGt
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedGte(dateJoinedGte []time.Time) ApiUsersUsersListRequest {
+ r.dateJoinedGte = &dateJoinedGte
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedLt(dateJoinedLt []time.Time) ApiUsersUsersListRequest {
+ r.dateJoinedLt = &dateJoinedLt
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedLte(dateJoinedLte []time.Time) ApiUsersUsersListRequest {
+ r.dateJoinedLte = &dateJoinedLte
+ return r
+}
+
+func (r ApiUsersUsersListRequest) DateJoinedN(dateJoinedN []time.Time) ApiUsersUsersListRequest {
+ r.dateJoinedN = &dateJoinedN
+ return r
}
func (r ApiUsersUsersListRequest) Email(email []string) ApiUsersUsersListRequest {
@@ -6067,6 +6604,41 @@ func (r ApiUsersUsersListRequest) IsSuperuser(isSuperuser bool) ApiUsersUsersLis
return r
}
+func (r ApiUsersUsersListRequest) LastLogin(lastLogin []time.Time) ApiUsersUsersListRequest {
+ r.lastLogin = &lastLogin
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginEmpty(lastLoginEmpty bool) ApiUsersUsersListRequest {
+ r.lastLoginEmpty = &lastLoginEmpty
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginGt(lastLoginGt []time.Time) ApiUsersUsersListRequest {
+ r.lastLoginGt = &lastLoginGt
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginGte(lastLoginGte []time.Time) ApiUsersUsersListRequest {
+ r.lastLoginGte = &lastLoginGte
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginLt(lastLoginLt []time.Time) ApiUsersUsersListRequest {
+ r.lastLoginLt = &lastLoginLt
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginLte(lastLoginLte []time.Time) ApiUsersUsersListRequest {
+ r.lastLoginLte = &lastLoginLte
+ return r
+}
+
+func (r ApiUsersUsersListRequest) LastLoginN(lastLoginN []time.Time) ApiUsersUsersListRequest {
+ r.lastLoginN = &lastLoginN
+ return r
+}
+
func (r ApiUsersUsersListRequest) LastName(lastName []string) ApiUsersUsersListRequest {
r.lastName = &lastName
return r
@@ -6140,6 +6712,18 @@ func (r ApiUsersUsersListRequest) Ordering(ordering string) ApiUsersUsersListReq
return r
}
+// Permission (ID)
+func (r ApiUsersUsersListRequest) PermissionId(permissionId []int32) ApiUsersUsersListRequest {
+ r.permissionId = &permissionId
+ return r
+}
+
+// Permission (ID)
+func (r ApiUsersUsersListRequest) PermissionIdN(permissionIdN []int32) ApiUsersUsersListRequest {
+ r.permissionIdN = &permissionIdN
+ return r
+}
+
// Search
func (r ApiUsersUsersListRequest) Q(q string) ApiUsersUsersListRequest {
r.q = &q
@@ -6242,6 +6826,75 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
+ if r.dateJoined != nil {
+ t := *r.dateJoined
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined", t, "multi")
+ }
+ }
+ if r.dateJoinedEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__empty", r.dateJoinedEmpty, "")
+ }
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gt", t, "multi")
+ }
+ }
+ if r.dateJoinedGte != nil {
+ t := *r.dateJoinedGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gte", t, "multi")
+ }
+ }
+ if r.dateJoinedLt != nil {
+ t := *r.dateJoinedLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lt", t, "multi")
+ }
+ }
+ if r.dateJoinedLte != nil {
+ t := *r.dateJoinedLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lte", t, "multi")
+ }
+ }
+ if r.dateJoinedN != nil {
+ t := *r.dateJoinedN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__n", t, "multi")
+ }
+ }
if r.email != nil {
t := *r.email
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6590,6 +7243,75 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa
if r.isSuperuser != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "is_superuser", r.isSuperuser, "")
}
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login", t, "multi")
+ }
+ }
+ if r.lastLoginEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__empty", r.lastLoginEmpty, "")
+ }
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gt", t, "multi")
+ }
+ }
+ if r.lastLoginGte != nil {
+ t := *r.lastLoginGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gte", t, "multi")
+ }
+ }
+ if r.lastLoginLt != nil {
+ t := *r.lastLoginLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lt", t, "multi")
+ }
+ }
+ if r.lastLoginLte != nil {
+ t := *r.lastLoginLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lte", t, "multi")
+ }
+ }
+ if r.lastLoginN != nil {
+ t := *r.lastLoginN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__n", t, "multi")
+ }
+ }
if r.lastName != nil {
t := *r.lastName
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6712,6 +7434,28 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa
if r.ordering != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "")
}
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "multi")
+ }
+ }
+ if r.permissionIdN != nil {
+ t := *r.permissionIdN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "multi")
+ }
+ }
if r.q != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "")
}
@@ -6897,14 +7641,14 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa
}
type ApiUsersUsersPartialUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- patchedWritableUserRequest *PatchedWritableUserRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ patchedUserRequest *PatchedUserRequest
}
-func (r ApiUsersUsersPartialUpdateRequest) PatchedWritableUserRequest(patchedWritableUserRequest PatchedWritableUserRequest) ApiUsersUsersPartialUpdateRequest {
- r.patchedWritableUserRequest = &patchedWritableUserRequest
+func (r ApiUsersUsersPartialUpdateRequest) PatchedUserRequest(patchedUserRequest PatchedUserRequest) ApiUsersUsersPartialUpdateRequest {
+ r.patchedUserRequest = &patchedUserRequest
return r
}
@@ -6970,7 +7714,7 @@ func (a *UsersAPIService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialU
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableUserRequest
+ localVarPostBody = r.patchedUserRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -7141,14 +7885,14 @@ func (a *UsersAPIService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveReque
}
type ApiUsersUsersUpdateRequest struct {
- ctx context.Context
- ApiService *UsersAPIService
- id int32
- writableUserRequest *WritableUserRequest
+ ctx context.Context
+ ApiService *UsersAPIService
+ id int32
+ userRequest *UserRequest
}
-func (r ApiUsersUsersUpdateRequest) WritableUserRequest(writableUserRequest WritableUserRequest) ApiUsersUsersUpdateRequest {
- r.writableUserRequest = &writableUserRequest
+func (r ApiUsersUsersUpdateRequest) UserRequest(userRequest UserRequest) ApiUsersUsersUpdateRequest {
+ r.userRequest = &userRequest
return r
}
@@ -7195,8 +7939,8 @@ func (a *UsersAPIService) UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableUserRequest == nil {
- return localVarReturnValue, nil, reportError("writableUserRequest is required and must be specified")
+ if r.userRequest == nil {
+ return localVarReturnValue, nil, reportError("userRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -7217,7 +7961,7 @@ func (a *UsersAPIService) UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest)
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableUserRequest
+ localVarPostBody = r.userRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
diff --git a/api_virtualization.go b/api_virtualization.go
index e377ce500c..2216c43f9d 100644
--- a/api_virtualization.go
+++ b/api_virtualization.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -7455,6 +7455,8 @@ type ApiVirtualizationInterfacesListRequest struct {
macAddressNie *[]string
macAddressNiew *[]string
macAddressNisw *[]string
+ mode *DcimInterfacesListModeParameter
+ modeN *DcimInterfacesListModeParameter
modifiedByRequest *string
mtu *[]int32
mtuEmpty *bool
@@ -7780,6 +7782,18 @@ func (r ApiVirtualizationInterfacesListRequest) MacAddressNisw(macAddressNisw []
return r
}
+// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All)
+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
@@ -8586,6 +8600,12 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt
parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi")
}
}
+ 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, "")
}
@@ -9726,13 +9746,13 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r
}
type ApiVirtualizationVirtualDisksCreateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- writableVirtualDiskRequest *WritableVirtualDiskRequest
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ virtualDiskRequest *VirtualDiskRequest
}
-func (r ApiVirtualizationVirtualDisksCreateRequest) WritableVirtualDiskRequest(writableVirtualDiskRequest WritableVirtualDiskRequest) ApiVirtualizationVirtualDisksCreateRequest {
- r.writableVirtualDiskRequest = &writableVirtualDiskRequest
+func (r ApiVirtualizationVirtualDisksCreateRequest) VirtualDiskRequest(virtualDiskRequest VirtualDiskRequest) ApiVirtualizationVirtualDisksCreateRequest {
+ r.virtualDiskRequest = &virtualDiskRequest
return r
}
@@ -9776,8 +9796,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r Api
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableVirtualDiskRequest == nil {
- return localVarReturnValue, nil, reportError("writableVirtualDiskRequest is required and must be specified")
+ if r.virtualDiskRequest == nil {
+ return localVarReturnValue, nil, reportError("virtualDiskRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -9798,7 +9818,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r Api
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableVirtualDiskRequest
+ localVarPostBody = r.virtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11062,14 +11082,14 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi
}
type ApiVirtualizationVirtualDisksPartialUpdateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- id int32
- patchedWritableVirtualDiskRequest *PatchedWritableVirtualDiskRequest
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+ patchedVirtualDiskRequest *PatchedVirtualDiskRequest
}
-func (r ApiVirtualizationVirtualDisksPartialUpdateRequest) PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest PatchedWritableVirtualDiskRequest) ApiVirtualizationVirtualDisksPartialUpdateRequest {
- r.patchedWritableVirtualDiskRequest = &patchedWritableVirtualDiskRequest
+func (r ApiVirtualizationVirtualDisksPartialUpdateRequest) PatchedVirtualDiskRequest(patchedVirtualDiskRequest PatchedVirtualDiskRequest) ApiVirtualizationVirtualDisksPartialUpdateRequest {
+ r.patchedVirtualDiskRequest = &patchedVirtualDiskRequest
return r
}
@@ -11135,7 +11155,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecut
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableVirtualDiskRequest
+ localVarPostBody = r.patchedVirtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11306,14 +11326,14 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r A
}
type ApiVirtualizationVirtualDisksUpdateRequest struct {
- ctx context.Context
- ApiService *VirtualizationAPIService
- id int32
- writableVirtualDiskRequest *WritableVirtualDiskRequest
+ ctx context.Context
+ ApiService *VirtualizationAPIService
+ id int32
+ virtualDiskRequest *VirtualDiskRequest
}
-func (r ApiVirtualizationVirtualDisksUpdateRequest) WritableVirtualDiskRequest(writableVirtualDiskRequest WritableVirtualDiskRequest) ApiVirtualizationVirtualDisksUpdateRequest {
- r.writableVirtualDiskRequest = &writableVirtualDiskRequest
+func (r ApiVirtualizationVirtualDisksUpdateRequest) VirtualDiskRequest(virtualDiskRequest VirtualDiskRequest) ApiVirtualizationVirtualDisksUpdateRequest {
+ r.virtualDiskRequest = &virtualDiskRequest
return r
}
@@ -11360,8 +11380,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r Api
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableVirtualDiskRequest == nil {
- return localVarReturnValue, nil, reportError("writableVirtualDiskRequest is required and must be specified")
+ if r.virtualDiskRequest == nil {
+ return localVarReturnValue, nil, reportError("virtualDiskRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -11382,7 +11402,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r Api
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableVirtualDiskRequest
+ localVarPostBody = r.virtualDiskRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -12029,151 +12049,165 @@ 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
- 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
+ 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
+ virtualDiskCountEmpty *bool
+ virtualDiskCountGt *[]int32
+ virtualDiskCountGte *[]int32
+ virtualDiskCountLt *[]int32
+ virtualDiskCountLte *[]int32
+ virtualDiskCountN *[]int32
}
// Cluster
@@ -12491,6 +12525,41 @@ func (r ApiVirtualizationVirtualMachinesListRequest) IdN(idN []int32) ApiVirtual
return r
}
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCount(interfaceCount []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCount = &interfaceCount
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountEmpty(interfaceCountEmpty bool) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountEmpty = &interfaceCountEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountGt(interfaceCountGt []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountGt = &interfaceCountGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountGte(interfaceCountGte []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountGte = &interfaceCountGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountLt(interfaceCountLt []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountLt = &interfaceCountLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountLte(interfaceCountLte []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountLte = &interfaceCountLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) InterfaceCountN(interfaceCountN []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.interfaceCountN = &interfaceCountN
+ return r
+}
+
func (r ApiVirtualizationVirtualMachinesListRequest) LastUpdated(lastUpdated []time.Time) ApiVirtualizationVirtualMachinesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -12953,6 +13022,41 @@ func (r ApiVirtualizationVirtualMachinesListRequest) VcpusN(vcpusN []float64) Ap
return r
}
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCount(virtualDiskCount []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCount = &virtualDiskCount
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountEmpty(virtualDiskCountEmpty bool) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountEmpty = &virtualDiskCountEmpty
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountGt(virtualDiskCountGt []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountGt = &virtualDiskCountGt
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountGte(virtualDiskCountGte []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountGte = &virtualDiskCountGte
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountLt(virtualDiskCountLt []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountLt = &virtualDiskCountLt
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountLte(virtualDiskCountLte []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountLte = &virtualDiskCountLte
+ return r
+}
+
+func (r ApiVirtualizationVirtualMachinesListRequest) VirtualDiskCountN(virtualDiskCountN []int32) ApiVirtualizationVirtualMachinesListRequest {
+ r.virtualDiskCountN = &virtualDiskCountN
+ return r
+}
+
func (r ApiVirtualizationVirtualMachinesListRequest) Execute() (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error) {
return r.ApiService.VirtualizationVirtualMachinesListExecute(r)
}
@@ -13592,6 +13696,75 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
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")
+ }
+ }
+ if r.interfaceCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "")
+ }
+ 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")
+ }
+ }
+ 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 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")
+ }
+ }
+ 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")
+ }
+ }
+ 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")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -14447,6 +14620,75 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap
parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", t, "multi")
}
}
+ if r.virtualDiskCount != nil {
+ t := *r.virtualDiskCount
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count", t, "multi")
+ }
+ }
+ if r.virtualDiskCountEmpty != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__empty", r.virtualDiskCountEmpty, "")
+ }
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gt", t, "multi")
+ }
+ }
+ if r.virtualDiskCountGte != nil {
+ t := *r.virtualDiskCountGte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gte", t, "multi")
+ }
+ }
+ if r.virtualDiskCountLt != nil {
+ t := *r.virtualDiskCountLt
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lt", t, "multi")
+ }
+ }
+ if r.virtualDiskCountLte != nil {
+ t := *r.virtualDiskCountLte
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lte", t, "multi")
+ }
+ }
+ if r.virtualDiskCountN != nil {
+ t := *r.virtualDiskCountN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__n", t, "multi")
+ }
+ }
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
diff --git a/api_vpn.go b/api_vpn.go
index c8dbd01225..6893f11ad3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -647,6 +647,10 @@ type ApiVpnIkePoliciesListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ ikeProposal *[]string
+ ikeProposalN *[]string
+ ikeProposalId *[]int32
+ ikeProposalIdN *[]int32
lastUpdated *[]time.Time
lastUpdatedEmpty *[]time.Time
lastUpdatedGt *[]time.Time
@@ -682,22 +686,8 @@ type ApiVpnIkePoliciesListRequest struct {
presharedKeyNiew *string
presharedKeyNisw *string
proposal *[]string
- proposalEmpty *bool
- proposalIc *[]string
- proposalIe *[]string
- proposalIew *[]string
- proposalIsw *[]string
proposalN *[]string
- proposalNic *[]string
- proposalNie *[]string
- proposalNiew *[]string
- proposalNisw *[]string
proposalId *[]int32
- proposalIdEmpty *[]int32
- proposalIdGt *[]int32
- proposalIdGte *[]int32
- proposalIdLt *[]int32
- proposalIdLte *[]int32
proposalIdN *[]int32
q *string
tag *[]string
@@ -837,6 +827,26 @@ func (r ApiVpnIkePoliciesListRequest) IdN(idN []int32) ApiVpnIkePoliciesListRequ
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
@@ -1015,86 +1025,16 @@ func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePolic
return r
}
-func (r ApiVpnIkePoliciesListRequest) ProposalEmpty(proposalEmpty bool) ApiVpnIkePoliciesListRequest {
- r.proposalEmpty = &proposalEmpty
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIc(proposalIc []string) ApiVpnIkePoliciesListRequest {
- r.proposalIc = &proposalIc
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIe(proposalIe []string) ApiVpnIkePoliciesListRequest {
- r.proposalIe = &proposalIe
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIew(proposalIew []string) ApiVpnIkePoliciesListRequest {
- r.proposalIew = &proposalIew
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIsw(proposalIsw []string) ApiVpnIkePoliciesListRequest {
- r.proposalIsw = &proposalIsw
- return r
-}
-
func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest {
r.proposalN = &proposalN
return r
}
-func (r ApiVpnIkePoliciesListRequest) ProposalNic(proposalNic []string) ApiVpnIkePoliciesListRequest {
- r.proposalNic = &proposalNic
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalNie(proposalNie []string) ApiVpnIkePoliciesListRequest {
- r.proposalNie = &proposalNie
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalNiew(proposalNiew []string) ApiVpnIkePoliciesListRequest {
- r.proposalNiew = &proposalNiew
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalNisw(proposalNisw []string) ApiVpnIkePoliciesListRequest {
- r.proposalNisw = &proposalNisw
- return r
-}
-
func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest {
r.proposalId = &proposalId
return r
}
-func (r ApiVpnIkePoliciesListRequest) ProposalIdEmpty(proposalIdEmpty []int32) ApiVpnIkePoliciesListRequest {
- r.proposalIdEmpty = &proposalIdEmpty
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIdGt(proposalIdGt []int32) ApiVpnIkePoliciesListRequest {
- r.proposalIdGt = &proposalIdGt
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIdGte(proposalIdGte []int32) ApiVpnIkePoliciesListRequest {
- r.proposalIdGte = &proposalIdGte
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIdLt(proposalIdLt []int32) ApiVpnIkePoliciesListRequest {
- r.proposalIdLt = &proposalIdLt
- return r
-}
-
-func (r ApiVpnIkePoliciesListRequest) ProposalIdLte(proposalIdLte []int32) ApiVpnIkePoliciesListRequest {
- r.proposalIdLte = &proposalIdLte
- return r
-}
-
func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest {
r.proposalIdN = &proposalIdN
return r
@@ -1434,6 +1374,50 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ if r.ikeProposal != nil {
+ t := *r.ikeProposal
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal", t, "multi")
+ }
+ }
+ if r.ikeProposalN != nil {
+ t := *r.ikeProposalN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal__n", t, "multi")
+ }
+ }
+ if r.ikeProposalId != nil {
+ t := *r.ikeProposalId
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -1699,53 +1683,6 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi")
}
}
- if r.proposalEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__empty", r.proposalEmpty, "")
- }
- if r.proposalIc != nil {
- t := *r.proposalIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ic", t, "multi")
- }
- }
- if r.proposalIe != nil {
- t := *r.proposalIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ie", t, "multi")
- }
- }
- if r.proposalIew != nil {
- t := *r.proposalIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__iew", t, "multi")
- }
- }
- if r.proposalIsw != nil {
- t := *r.proposalIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__isw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__isw", t, "multi")
- }
- }
if r.proposalN != nil {
t := *r.proposalN
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -1757,50 +1694,6 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi")
}
}
- if r.proposalNic != nil {
- t := *r.proposalNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nic", t, "multi")
- }
- }
- if r.proposalNie != nil {
- t := *r.proposalNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nie", t, "multi")
- }
- }
- if r.proposalNiew != nil {
- t := *r.proposalNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__niew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__niew", t, "multi")
- }
- }
- if r.proposalNisw != nil {
- t := *r.proposalNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nisw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nisw", t, "multi")
- }
- }
if r.proposalId != nil {
t := *r.proposalId
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -1812,61 +1705,6 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest
parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi")
}
}
- if r.proposalIdEmpty != nil {
- t := *r.proposalIdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__empty", t, "multi")
- }
- }
- if r.proposalIdGt != nil {
- t := *r.proposalIdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gt", t, "multi")
- }
- }
- if r.proposalIdGte != nil {
- t := *r.proposalIdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gte", t, "multi")
- }
- }
- if r.proposalIdLt != nil {
- t := *r.proposalIdLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lt", t, "multi")
- }
- }
- if r.proposalIdLte != nil {
- t := *r.proposalIdLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lte", t, "multi")
- }
- }
if r.proposalIdN != nil {
t := *r.proposalIdN
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5202,6 +5040,10 @@ type ApiVpnIpsecPoliciesListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ ipsecProposal *[]string
+ ipsecProposalN *[]string
+ ipsecProposalId *[]int32
+ ipsecProposalIdN *[]int32
lastUpdated *[]time.Time
lastUpdatedEmpty *[]time.Time
lastUpdatedGt *[]time.Time
@@ -5227,22 +5069,8 @@ type ApiVpnIpsecPoliciesListRequest struct {
pfsGroup *[]*int32
pfsGroupN *[]*int32
proposal *[]string
- proposalEmpty *bool
- proposalIc *[]string
- proposalIe *[]string
- proposalIew *[]string
- proposalIsw *[]string
proposalN *[]string
- proposalNic *[]string
- proposalNie *[]string
- proposalNiew *[]string
- proposalNisw *[]string
proposalId *[]int32
- proposalIdEmpty *[]int32
- proposalIdGt *[]int32
- proposalIdGte *[]int32
- proposalIdLt *[]int32
- proposalIdLte *[]int32
proposalIdN *[]int32
q *string
tag *[]string
@@ -5380,6 +5208,26 @@ func (r ApiVpnIpsecPoliciesListRequest) IdN(idN []int32) ApiVpnIpsecPoliciesList
return r
}
+func (r ApiVpnIpsecPoliciesListRequest) IpsecProposal(ipsecProposal []string) ApiVpnIpsecPoliciesListRequest {
+ r.ipsecProposal = &ipsecProposal
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IpsecProposalN(ipsecProposalN []string) ApiVpnIpsecPoliciesListRequest {
+ r.ipsecProposalN = &ipsecProposalN
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IpsecProposalId(ipsecProposalId []int32) ApiVpnIpsecPoliciesListRequest {
+ r.ipsecProposalId = &ipsecProposalId
+ return r
+}
+
+func (r ApiVpnIpsecPoliciesListRequest) IpsecProposalIdN(ipsecProposalIdN []int32) ApiVpnIpsecPoliciesListRequest {
+ r.ipsecProposalIdN = &ipsecProposalIdN
+ return r
+}
+
func (r ApiVpnIpsecPoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIpsecPoliciesListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -5510,86 +5358,16 @@ func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecP
return r
}
-func (r ApiVpnIpsecPoliciesListRequest) ProposalEmpty(proposalEmpty bool) ApiVpnIpsecPoliciesListRequest {
- r.proposalEmpty = &proposalEmpty
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIc(proposalIc []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalIc = &proposalIc
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIe(proposalIe []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalIe = &proposalIe
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIew(proposalIew []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalIew = &proposalIew
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIsw(proposalIsw []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalIsw = &proposalIsw
- return r
-}
-
func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest {
r.proposalN = &proposalN
return r
}
-func (r ApiVpnIpsecPoliciesListRequest) ProposalNic(proposalNic []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalNic = &proposalNic
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalNie(proposalNie []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalNie = &proposalNie
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalNiew(proposalNiew []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalNiew = &proposalNiew
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalNisw(proposalNisw []string) ApiVpnIpsecPoliciesListRequest {
- r.proposalNisw = &proposalNisw
- return r
-}
-
func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest {
r.proposalId = &proposalId
return r
}
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIdEmpty(proposalIdEmpty []int32) ApiVpnIpsecPoliciesListRequest {
- r.proposalIdEmpty = &proposalIdEmpty
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIdGt(proposalIdGt []int32) ApiVpnIpsecPoliciesListRequest {
- r.proposalIdGt = &proposalIdGt
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIdGte(proposalIdGte []int32) ApiVpnIpsecPoliciesListRequest {
- r.proposalIdGte = &proposalIdGte
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIdLt(proposalIdLt []int32) ApiVpnIpsecPoliciesListRequest {
- r.proposalIdLt = &proposalIdLt
- return r
-}
-
-func (r ApiVpnIpsecPoliciesListRequest) ProposalIdLte(proposalIdLte []int32) ApiVpnIpsecPoliciesListRequest {
- r.proposalIdLte = &proposalIdLte
- return r
-}
-
func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest {
r.proposalIdN = &proposalIdN
return r
@@ -5919,6 +5697,50 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi")
}
}
+ if r.ipsecProposal != nil {
+ t := *r.ipsecProposal
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal", t, "multi")
+ }
+ }
+ if r.ipsecProposalN != nil {
+ t := *r.ipsecProposalN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal__n", t, "multi")
+ }
+ }
+ if r.ipsecProposalId != nil {
+ t := *r.ipsecProposalId
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id", t, "multi")
+ }
+ }
+ if r.ipsecProposalIdN != nil {
+ t := *r.ipsecProposalIdN
+ 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")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6154,172 +5976,26 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq
parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi")
}
}
- if r.proposalEmpty != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__empty", r.proposalEmpty, "")
- }
- if r.proposalIc != nil {
- t := *r.proposalIc
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ic", t, "multi")
- }
- }
- if r.proposalIe != nil {
- t := *r.proposalIe
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__ie", t, "multi")
- }
- }
- if r.proposalIew != nil {
- t := *r.proposalIew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__iew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__iew", t, "multi")
- }
- }
- if r.proposalIsw != nil {
- t := *r.proposalIsw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__isw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__isw", t, "multi")
- }
- }
if r.proposalN != nil {
- t := *r.proposalN
- 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")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi")
- }
- }
- if r.proposalNic != nil {
- t := *r.proposalNic
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nic", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nic", t, "multi")
- }
- }
- if r.proposalNie != nil {
- t := *r.proposalNie
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nie", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nie", t, "multi")
- }
- }
- if r.proposalNiew != nil {
- t := *r.proposalNiew
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__niew", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__niew", t, "multi")
- }
- }
- if r.proposalNisw != nil {
- t := *r.proposalNisw
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nisw", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__nisw", t, "multi")
- }
- }
- if r.proposalId != nil {
- t := *r.proposalId
- 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")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi")
- }
- }
- if r.proposalIdEmpty != nil {
- t := *r.proposalIdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__empty", t, "multi")
- }
- }
- if r.proposalIdGt != nil {
- t := *r.proposalIdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gt", t, "multi")
- }
- }
- if r.proposalIdGte != nil {
- t := *r.proposalIdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__gte", t, "multi")
- }
- }
- if r.proposalIdLt != nil {
- t := *r.proposalIdLt
+ t := *r.proposalN
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lt", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lt", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi")
}
}
- if r.proposalIdLte != nil {
- t := *r.proposalIdLte
+ if r.proposalId != nil {
+ t := *r.proposalId
if reflect.TypeOf(t).Kind() == reflect.Slice {
s := reflect.ValueOf(t)
for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lte", s.Index(i).Interface(), "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi")
}
} else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__lte", t, "multi")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi")
}
}
if r.proposalIdN != nil {
@@ -9496,6 +9172,10 @@ type ApiVpnIpsecProposalsListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ ipsecPolicy *[]string
+ ipsecPolicyN *[]string
+ ipsecPolicyId *[]int32
+ ipsecPolicyIdN *[]int32
lastUpdated *[]time.Time
lastUpdatedEmpty *[]time.Time
lastUpdatedGt *[]time.Time
@@ -9688,6 +9368,30 @@ func (r ApiVpnIpsecProposalsListRequest) IdN(idN []int32) ApiVpnIpsecProposalsLi
return r
}
+// IPSec policy (name)
+func (r ApiVpnIpsecProposalsListRequest) IpsecPolicy(ipsecPolicy []string) ApiVpnIpsecProposalsListRequest {
+ r.ipsecPolicy = &ipsecPolicy
+ return r
+}
+
+// IPSec policy (name)
+func (r ApiVpnIpsecProposalsListRequest) IpsecPolicyN(ipsecPolicyN []string) ApiVpnIpsecProposalsListRequest {
+ r.ipsecPolicyN = &ipsecPolicyN
+ return r
+}
+
+// IPSec policy (ID)
+func (r ApiVpnIpsecProposalsListRequest) IpsecPolicyId(ipsecPolicyId []int32) ApiVpnIpsecProposalsListRequest {
+ r.ipsecPolicyId = &ipsecPolicyId
+ return r
+}
+
+// IPSec policy (ID)
+func (r ApiVpnIpsecProposalsListRequest) IpsecPolicyIdN(ipsecPolicyIdN []int32) ApiVpnIpsecProposalsListRequest {
+ r.ipsecPolicyIdN = &ipsecPolicyIdN
+ return r
+}
+
func (r ApiVpnIpsecProposalsListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIpsecProposalsListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -10239,6 +9943,50 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -11412,13 +11160,13 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTermi
}
type ApiVpnL2vpnTerminationsCreateRequest struct {
- ctx context.Context
- ApiService *VpnAPIService
- writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
+ ctx context.Context
+ ApiService *VpnAPIService
+ l2VPNTerminationRequest *L2VPNTerminationRequest
}
-func (r ApiVpnL2vpnTerminationsCreateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsCreateRequest {
- r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
+func (r ApiVpnL2vpnTerminationsCreateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest L2VPNTerminationRequest) ApiVpnL2vpnTerminationsCreateRequest {
+ r.l2VPNTerminationRequest = &l2VPNTerminationRequest
return r
}
@@ -11462,8 +11210,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminati
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableL2VPNTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("writableL2VPNTerminationRequest is required and must be specified")
+ if r.l2VPNTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNTerminationRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -11484,7 +11232,7 @@ func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminati
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableL2VPNTerminationRequest
+ localVarPostBody = r.l2VPNTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -11645,10 +11393,15 @@ func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminat
type ApiVpnL2vpnTerminationsListRequest struct {
ctx context.Context
ApiService *VpnAPIService
+ assignedObjectId *[]int32
+ assignedObjectIdEmpty *bool
+ assignedObjectIdGt *[]int32
+ assignedObjectIdGte *[]int32
+ assignedObjectIdLt *[]int32
+ assignedObjectIdLte *[]int32
+ assignedObjectIdN *[]int32
assignedObjectType *string
assignedObjectTypeN *string
- assignedObjectTypeId *int32
- assignedObjectTypeIdN *int32
created *[]time.Time
createdEmpty *[]time.Time
createdGt *[]time.Time
@@ -11716,23 +11469,48 @@ type ApiVpnL2vpnTerminationsListRequest struct {
vminterfaceIdN *[]int32
}
-func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectType(assignedObjectType string) ApiVpnL2vpnTerminationsListRequest {
- r.assignedObjectType = &assignedObjectType
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectId(assignedObjectId []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectId = &assignedObjectId
return r
}
-func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiVpnL2vpnTerminationsListRequest {
- r.assignedObjectTypeN = &assignedObjectTypeN
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdEmpty = &assignedObjectIdEmpty
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdGt = &assignedObjectIdGt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdGte = &assignedObjectIdGte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdLt = &assignedObjectIdLt
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdLte = &assignedObjectIdLte
+ return r
+}
+
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectIdN = &assignedObjectIdN
return r
}
-func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeId(assignedObjectTypeId int32) ApiVpnL2vpnTerminationsListRequest {
- r.assignedObjectTypeId = &assignedObjectTypeId
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectType(assignedObjectType string) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectType = &assignedObjectType
return r
}
-func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeIdN(assignedObjectTypeIdN int32) ApiVpnL2vpnTerminationsListRequest {
- r.assignedObjectTypeIdN = &assignedObjectTypeIdN
+func (r ApiVpnL2vpnTerminationsListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiVpnL2vpnTerminationsListRequest {
+ r.assignedObjectTypeN = &assignedObjectTypeN
return r
}
@@ -12137,18 +11915,81 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination
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 {
- parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", r.assignedObjectTypeId, "")
- }
- if r.assignedObjectTypeIdN != nil {
- parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", r.assignedObjectTypeIdN, "")
- }
if r.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -12813,14 +12654,14 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination
}
type ApiVpnL2vpnTerminationsPartialUpdateRequest struct {
- ctx context.Context
- ApiService *VpnAPIService
- id int32
- patchedWritableL2VPNTerminationRequest *PatchedWritableL2VPNTerminationRequest
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ patchedL2VPNTerminationRequest *PatchedL2VPNTerminationRequest
}
-func (r ApiVpnL2vpnTerminationsPartialUpdateRequest) PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest PatchedWritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsPartialUpdateRequest {
- r.patchedWritableL2VPNTerminationRequest = &patchedWritableL2VPNTerminationRequest
+func (r ApiVpnL2vpnTerminationsPartialUpdateRequest) PatchedL2VPNTerminationRequest(patchedL2VPNTerminationRequest PatchedL2VPNTerminationRequest) ApiVpnL2vpnTerminationsPartialUpdateRequest {
+ r.patchedL2VPNTerminationRequest = &patchedL2VPNTerminationRequest
return r
}
@@ -12886,7 +12727,7 @@ func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTe
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.patchedWritableL2VPNTerminationRequest
+ localVarPostBody = r.patchedL2VPNTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -13057,14 +12898,14 @@ func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTermina
}
type ApiVpnL2vpnTerminationsUpdateRequest struct {
- ctx context.Context
- ApiService *VpnAPIService
- id int32
- writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest
+ ctx context.Context
+ ApiService *VpnAPIService
+ id int32
+ l2VPNTerminationRequest *L2VPNTerminationRequest
}
-func (r ApiVpnL2vpnTerminationsUpdateRequest) WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest WritableL2VPNTerminationRequest) ApiVpnL2vpnTerminationsUpdateRequest {
- r.writableL2VPNTerminationRequest = &writableL2VPNTerminationRequest
+func (r ApiVpnL2vpnTerminationsUpdateRequest) L2VPNTerminationRequest(l2VPNTerminationRequest L2VPNTerminationRequest) ApiVpnL2vpnTerminationsUpdateRequest {
+ r.l2VPNTerminationRequest = &l2VPNTerminationRequest
return r
}
@@ -13111,8 +12952,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminati
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
- if r.writableL2VPNTerminationRequest == nil {
- return localVarReturnValue, nil, reportError("writableL2VPNTerminationRequest is required and must be specified")
+ if r.l2VPNTerminationRequest == nil {
+ return localVarReturnValue, nil, reportError("l2VPNTerminationRequest is required and must be specified")
}
// to determine the Content-Type header
@@ -13133,7 +12974,7 @@ func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminati
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
- localVarPostBody = r.writableL2VPNTerminationRequest
+ localVarPostBody = r.l2VPNTerminationRequest
if r.ctx != nil {
// API Key Authentication
if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
@@ -18349,56 +18190,63 @@ 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
- terminationType *string
- terminationTypeN *string
- tunnel *[]string
- tunnelN *[]string
- tunnelId *[]int32
- tunnelIdN *[]int32
- updatedByRequest *string
- vminterface *[]string
- vminterfaceN *[]string
- vminterfaceId *[]int32
- vminterfaceIdN *[]int32
+ 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
+ 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
}
func (r ApiVpnTunnelTerminationsListRequest) Created(created []time.Time) ApiVpnTunnelTerminationsListRequest {
@@ -18596,6 +18444,41 @@ func (r ApiVpnTunnelTerminationsListRequest) TagN(tagN []string) ApiVpnTunnelTer
return r
}
+func (r ApiVpnTunnelTerminationsListRequest) TerminationId(terminationId []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationId = &terminationId
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdEmpty(terminationIdEmpty bool) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdEmpty = &terminationIdEmpty
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdGt(terminationIdGt []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdGt = &terminationIdGt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdGte(terminationIdGte []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdGte = &terminationIdGte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdLt(terminationIdLt []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdLt = &terminationIdLt
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdLte(terminationIdLte []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdLte = &terminationIdLte
+ return r
+}
+
+func (r ApiVpnTunnelTerminationsListRequest) TerminationIdN(terminationIdN []int32) ApiVpnTunnelTerminationsListRequest {
+ r.terminationIdN = &terminationIdN
+ return r
+}
+
func (r ApiVpnTunnelTerminationsListRequest) TerminationType(terminationType string) ApiVpnTunnelTerminationsListRequest {
r.terminationType = &terminationType
return r
@@ -19051,6 +18934,75 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati
parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi")
}
}
+ 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, "")
}
diff --git a/api_wireless.go b/api_wireless.go
index 1cb209be5d..ac16ccf584 100644
--- a/api_wireless.go
+++ b/api_wireless.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -621,6 +621,10 @@ 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
@@ -690,6 +694,26 @@ type ApiWirelessWirelessLanGroupsListRequest struct {
updatedByRequest *string
}
+func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.ancestor = &ancestor
+ return r
+}
+
+func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.ancestorN = &ancestorN
+ return r
+}
+
+func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.ancestorId = &ancestorId
+ return r
+}
+
+func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest {
+ r.ancestorIdN = &ancestorIdN
+ return r
+}
+
func (r ApiWirelessWirelessLanGroupsListRequest) Created(created []time.Time) ApiWirelessWirelessLanGroupsListRequest {
r.created = &created
return r
@@ -1070,6 +1094,50 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW
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.created != nil {
t := *r.created
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -2802,6 +2870,8 @@ type ApiWirelessWirelessLansListRequest struct {
idLt *[]int32
idLte *[]int32
idN *[]int32
+ interfaceId *[]int32
+ interfaceIdN *[]int32
lastUpdated *[]time.Time
lastUpdatedEmpty *[]time.Time
lastUpdatedGt *[]time.Time
@@ -3067,6 +3137,16 @@ func (r ApiWirelessWirelessLansListRequest) IdN(idN []int32) ApiWirelessWireless
return r
}
+func (r ApiWirelessWirelessLansListRequest) InterfaceId(interfaceId []int32) ApiWirelessWirelessLansListRequest {
+ r.interfaceId = &interfaceId
+ return r
+}
+
+func (r ApiWirelessWirelessLansListRequest) InterfaceIdN(interfaceIdN []int32) ApiWirelessWirelessLansListRequest {
+ r.interfaceIdN = &interfaceIdN
+ return r
+}
+
func (r ApiWirelessWirelessLansListRequest) LastUpdated(lastUpdated []time.Time) ApiWirelessWirelessLansListRequest {
r.lastUpdated = &lastUpdated
return r
@@ -3773,6 +3853,28 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele
parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "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(), "multi")
+ }
+ } else {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi")
+ }
+ }
if r.lastUpdated != nil {
t := *r.lastUpdated
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -5215,18 +5317,8 @@ type ApiWirelessWirelessLinksListRequest struct {
idLte *[]int32
idN *[]int32
interfaceAId *[]int32
- interfaceAIdEmpty *[]int32
- interfaceAIdGt *[]int32
- interfaceAIdGte *[]int32
- interfaceAIdLt *[]int32
- interfaceAIdLte *[]int32
interfaceAIdN *[]int32
interfaceBId *[]int32
- interfaceBIdEmpty *[]int32
- interfaceBIdGt *[]int32
- interfaceBIdGte *[]int32
- interfaceBIdLt *[]int32
- interfaceBIdLte *[]int32
interfaceBIdN *[]int32
lastUpdated *[]time.Time
lastUpdatedEmpty *[]time.Time
@@ -5476,31 +5568,6 @@ func (r ApiWirelessWirelessLinksListRequest) InterfaceAId(interfaceAId []int32)
return r
}
-func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdEmpty(interfaceAIdEmpty []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceAIdEmpty = &interfaceAIdEmpty
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdGt(interfaceAIdGt []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceAIdGt = &interfaceAIdGt
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdGte(interfaceAIdGte []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceAIdGte = &interfaceAIdGte
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdLt(interfaceAIdLt []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceAIdLt = &interfaceAIdLt
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdLte(interfaceAIdLte []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceAIdLte = &interfaceAIdLte
- return r
-}
-
func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdN(interfaceAIdN []int32) ApiWirelessWirelessLinksListRequest {
r.interfaceAIdN = &interfaceAIdN
return r
@@ -5511,31 +5578,6 @@ func (r ApiWirelessWirelessLinksListRequest) InterfaceBId(interfaceBId []int32)
return r
}
-func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdEmpty(interfaceBIdEmpty []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceBIdEmpty = &interfaceBIdEmpty
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdGt(interfaceBIdGt []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceBIdGt = &interfaceBIdGt
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdGte(interfaceBIdGte []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceBIdGte = &interfaceBIdGte
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdLt(interfaceBIdLt []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceBIdLt = &interfaceBIdLt
- return r
-}
-
-func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdLte(interfaceBIdLte []int32) ApiWirelessWirelessLinksListRequest {
- r.interfaceBIdLte = &interfaceBIdLte
- return r
-}
-
func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdN(interfaceBIdN []int32) ApiWirelessWirelessLinksListRequest {
r.interfaceBIdN = &interfaceBIdN
return r
@@ -6204,61 +6246,6 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel
parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", t, "multi")
}
}
- if r.interfaceAIdEmpty != nil {
- t := *r.interfaceAIdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__empty", t, "multi")
- }
- }
- if r.interfaceAIdGt != nil {
- t := *r.interfaceAIdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gt", t, "multi")
- }
- }
- if r.interfaceAIdGte != nil {
- t := *r.interfaceAIdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gte", t, "multi")
- }
- }
- if r.interfaceAIdLt != nil {
- t := *r.interfaceAIdLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lt", t, "multi")
- }
- }
- if r.interfaceAIdLte != nil {
- t := *r.interfaceAIdLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lte", t, "multi")
- }
- }
if r.interfaceAIdN != nil {
t := *r.interfaceAIdN
if reflect.TypeOf(t).Kind() == reflect.Slice {
@@ -6281,61 +6268,6 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel
parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", t, "multi")
}
}
- if r.interfaceBIdEmpty != nil {
- t := *r.interfaceBIdEmpty
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__empty", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__empty", t, "multi")
- }
- }
- if r.interfaceBIdGt != nil {
- t := *r.interfaceBIdGt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gt", t, "multi")
- }
- }
- if r.interfaceBIdGte != nil {
- t := *r.interfaceBIdGte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gte", t, "multi")
- }
- }
- if r.interfaceBIdLt != nil {
- t := *r.interfaceBIdLt
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lt", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lt", t, "multi")
- }
- }
- if r.interfaceBIdLte != nil {
- t := *r.interfaceBIdLte
- if reflect.TypeOf(t).Kind() == reflect.Slice {
- s := reflect.ValueOf(t)
- for i := 0; i < s.Len(); i++ {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lte", s.Index(i).Interface(), "multi")
- }
- } else {
- parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lte", t, "multi")
- }
- }
if r.interfaceBIdN != nil {
t := *r.interfaceBIdN
if reflect.TypeOf(t).Kind() == reflect.Slice {
diff --git a/client.go b/client.go
index 9917b647bb..7ced10a114 100644
--- a/client.go
+++ b/client.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -40,7 +40,7 @@ var (
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
)
-// APIClient manages communication with the NetBox REST API API v3.7.7 (3.7)
+// APIClient manages communication with the NetBox REST API API v4.0.3 (4.0)
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
@@ -194,7 +194,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
return
}
if t, ok := obj.(time.Time); ok {
- parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType)
+ parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), collectionType)
return
}
value = v.Type().String() + " value"
diff --git a/configuration.go b/configuration.go
index 850a0604a5..e65a51b2fa 100644
--- a/configuration.go
+++ b/configuration.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -89,7 +89,7 @@ type Configuration struct {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
- UserAgent: "go-netbox/3.7.7",
+ UserAgent: "go-netbox/4.0.3",
Debug: false,
Servers: ServerConfigurations{
{
diff --git a/docs/ASN.md b/docs/ASN.md
index a7c9baf6e6..fed0cdda30 100644
--- a/docs/ASN.md
+++ b/docs/ASN.md
@@ -8,22 +8,22 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Asn** | **int64** | 16- or 32-bit autonomous system number |
-**Rir** | Pointer to [**NullableNestedRIR**](NestedRIR.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Rir** | Pointer to [**NullableRIR**](RIR.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.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]
-**SiteCount** | **int32** | | [readonly]
-**ProviderCount** | **int32** | | [readonly]
+**SiteCount** | **int64** | | [readonly]
+**ProviderCount** | **int64** | | [readonly]
## Methods
### NewASN
-`func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int32, providerCount int32, ) *ASN`
+`func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN`
NewASN instantiates a new ASN object
This constructor will assign default values to properties that have it defined,
@@ -120,20 +120,20 @@ SetAsn sets Asn field to given value.
### GetRir
-`func (o *ASN) GetRir() NestedRIR`
+`func (o *ASN) GetRir() RIR`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *ASN) GetRirOk() (*NestedRIR, bool)`
+`func (o *ASN) GetRirOk() (*RIR, 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 *ASN) SetRir(v NestedRIR)`
+`func (o *ASN) SetRir(v RIR)`
SetRir sets Rir field to given value.
@@ -155,20 +155,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 *ASN) GetTenant() NestedTenant`
+`func (o *ASN) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *ASN) GetTenantOk() (*NestedTenant, bool)`
+`func (o *ASN) 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 *ASN) SetTenant(v NestedTenant)`
+`func (o *ASN) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -350,40 +350,40 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetSiteCount
-`func (o *ASN) GetSiteCount() int32`
+`func (o *ASN) GetSiteCount() int64`
GetSiteCount returns the SiteCount field if non-nil, zero value otherwise.
### GetSiteCountOk
-`func (o *ASN) GetSiteCountOk() (*int32, bool)`
+`func (o *ASN) 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 *ASN) SetSiteCount(v int32)`
+`func (o *ASN) SetSiteCount(v int64)`
SetSiteCount sets SiteCount field to given value.
### GetProviderCount
-`func (o *ASN) GetProviderCount() int32`
+`func (o *ASN) GetProviderCount() int64`
GetProviderCount returns the ProviderCount field if non-nil, zero value otherwise.
### GetProviderCountOk
-`func (o *ASN) GetProviderCountOk() (*int32, bool)`
+`func (o *ASN) GetProviderCountOk() (*int64, bool)`
GetProviderCountOk returns a tuple with the ProviderCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetProviderCount
-`func (o *ASN) SetProviderCount(v int32)`
+`func (o *ASN) SetProviderCount(v int64)`
SetProviderCount sets ProviderCount field to given value.
diff --git a/docs/ASNRange.md b/docs/ASNRange.md
index 50101f01f8..8efc8ef064 100644
--- a/docs/ASNRange.md
+++ b/docs/ASNRange.md
@@ -9,10 +9,10 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
-**Rir** | [**NestedRIR**](NestedRIR.md) | |
+**Rir** | [**RIR**](RIR.md) | |
**Start** | **int64** | |
**End** | **int64** | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
### NewASNRange
-`func NewASNRange(id int32, url string, display string, name string, slug string, rir NestedRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange`
+`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`
NewASNRange instantiates a new ASNRange object
This constructor will assign default values to properties that have it defined,
@@ -141,20 +141,20 @@ SetSlug sets Slug field to given value.
### GetRir
-`func (o *ASNRange) GetRir() NestedRIR`
+`func (o *ASNRange) GetRir() RIR`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *ASNRange) GetRirOk() (*NestedRIR, bool)`
+`func (o *ASNRange) GetRirOk() (*RIR, 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 *ASNRange) SetRir(v NestedRIR)`
+`func (o *ASNRange) SetRir(v RIR)`
SetRir sets Rir field to given value.
@@ -201,20 +201,20 @@ SetEnd sets End field to given value.
### GetTenant
-`func (o *ASNRange) GetTenant() NestedTenant`
+`func (o *ASNRange) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *ASNRange) GetTenantOk() (*NestedTenant, bool)`
+`func (o *ASNRange) 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 *ASNRange) SetTenant(v NestedTenant)`
+`func (o *ASNRange) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/ASNRangeRequest.md b/docs/ASNRangeRequest.md
index 0aa3c3411a..c7b5e284f0 100644
--- a/docs/ASNRangeRequest.md
+++ b/docs/ASNRangeRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Rir** | [**NestedRIRRequest**](NestedRIRRequest.md) | |
+**Rir** | [**RIRRequest**](RIRRequest.md) | |
**Start** | **int64** | |
**End** | **int64** | |
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewASNRangeRequest
-`func NewASNRangeRequest(name string, slug string, rir NestedRIRRequest, start int64, end int64, ) *ASNRangeRequest`
+`func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64, ) *ASNRangeRequest`
NewASNRangeRequest instantiates a new ASNRangeRequest object
This constructor will assign default values to properties that have it defined,
@@ -75,20 +75,20 @@ SetSlug sets Slug field to given value.
### GetRir
-`func (o *ASNRangeRequest) GetRir() NestedRIRRequest`
+`func (o *ASNRangeRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *ASNRangeRequest) GetRirOk() (*NestedRIRRequest, bool)`
+`func (o *ASNRangeRequest) 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 *ASNRangeRequest) SetRir(v NestedRIRRequest)`
+`func (o *ASNRangeRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
@@ -135,20 +135,20 @@ SetEnd sets End field to given value.
### GetTenant
-`func (o *ASNRangeRequest) GetTenant() NestedTenantRequest`
+`func (o *ASNRangeRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *ASNRangeRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *ASNRangeRequest) 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 *ASNRangeRequest) SetTenant(v NestedTenantRequest)`
+`func (o *ASNRangeRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/ASNRequest.md b/docs/ASNRequest.md
index cbba244836..c82eb08301 100644
--- a/docs/ASNRequest.md
+++ b/docs/ASNRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Asn** | **int64** | 16- or 32-bit autonomous system number |
-**Rir** | Pointer to [**NullableNestedRIRRequest**](NestedRIRRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [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]
@@ -53,20 +53,20 @@ SetAsn sets Asn field to given value.
### GetRir
-`func (o *ASNRequest) GetRir() NestedRIRRequest`
+`func (o *ASNRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *ASNRequest) GetRirOk() (*NestedRIRRequest, bool)`
+`func (o *ASNRequest) 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 *ASNRequest) SetRir(v NestedRIRRequest)`
+`func (o *ASNRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
@@ -88,20 +88,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 *ASNRequest) GetTenant() NestedTenantRequest`
+`func (o *ASNRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *ASNRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *ASNRequest) 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 *ASNRequest) SetTenant(v NestedTenantRequest)`
+`func (o *ASNRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/Aggregate.md b/docs/Aggregate.md
index fe3c3ea4d1..aab5e70991 100644
--- a/docs/Aggregate.md
+++ b/docs/Aggregate.md
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Family** | [**AggregateFamily**](AggregateFamily.md) | |
**Prefix** | **string** | |
-**Rir** | [**NestedRIR**](NestedRIR.md) | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Rir** | [**RIR**](RIR.md) | |
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**DateAdded** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewAggregate
-`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir NestedRIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate`
+`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate`
NewAggregate instantiates a new Aggregate object
This constructor will assign default values to properties that have it defined,
@@ -140,40 +140,40 @@ SetPrefix sets Prefix field to given value.
### GetRir
-`func (o *Aggregate) GetRir() NestedRIR`
+`func (o *Aggregate) GetRir() RIR`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *Aggregate) GetRirOk() (*NestedRIR, bool)`
+`func (o *Aggregate) GetRirOk() (*RIR, 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 *Aggregate) SetRir(v NestedRIR)`
+`func (o *Aggregate) SetRir(v RIR)`
SetRir sets Rir field to given value.
### GetTenant
-`func (o *Aggregate) GetTenant() NestedTenant`
+`func (o *Aggregate) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *Aggregate) GetTenantOk() (*NestedTenant, bool)`
+`func (o *Aggregate) 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 *Aggregate) SetTenant(v NestedTenant)`
+`func (o *Aggregate) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/AggregateRequest.md b/docs/AggregateRequest.md
index d99689d2b1..197cf18973 100644
--- a/docs/AggregateRequest.md
+++ b/docs/AggregateRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Prefix** | **string** | |
-**Rir** | [**NestedRIRRequest**](NestedRIRRequest.md) | |
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**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]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewAggregateRequest
-`func NewAggregateRequest(prefix string, rir NestedRIRRequest, ) *AggregateRequest`
+`func NewAggregateRequest(prefix string, rir RIRRequest, ) *AggregateRequest`
NewAggregateRequest instantiates a new AggregateRequest 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 *AggregateRequest) GetRir() NestedRIRRequest`
+`func (o *AggregateRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *AggregateRequest) GetRirOk() (*NestedRIRRequest, bool)`
+`func (o *AggregateRequest) 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 *AggregateRequest) SetRir(v NestedRIRRequest)`
+`func (o *AggregateRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
### GetTenant
-`func (o *AggregateRequest) GetTenant() NestedTenantRequest`
+`func (o *AggregateRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *AggregateRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *AggregateRequest) 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 *AggregateRequest) SetTenant(v NestedTenantRequest)`
+`func (o *AggregateRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/AvailableIP.md b/docs/AvailableIP.md
index a340891804..9fa0b65df5 100644
--- a/docs/AvailableIP.md
+++ b/docs/AvailableIP.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Family** | **NullableInt32** | | [readonly]
+**Family** | **int32** | | [readonly]
**Address** | **string** | | [readonly]
-**Vrf** | [**NullableNestedVRF**](NestedVRF.md) | | [readonly]
+**Vrf** | [**NullableVRF**](VRF.md) | | [readonly]
**Description** | Pointer to **string** | | [optional]
## Methods
### NewAvailableIP
-`func NewAvailableIP(family NullableInt32, address string, vrf NullableNestedVRF, ) *AvailableIP`
+`func NewAvailableIP(family int32, address string, vrf NullableVRF, ) *AvailableIP`
NewAvailableIP instantiates a new AvailableIP object
This constructor will assign default values to properties that have it defined,
@@ -48,16 +48,6 @@ and a boolean to check if the value has been set.
SetFamily sets Family field to given value.
-### SetFamilyNil
-
-`func (o *AvailableIP) SetFamilyNil(b bool)`
-
- SetFamilyNil sets the value for Family to be an explicit nil
-
-### UnsetFamily
-`func (o *AvailableIP) UnsetFamily()`
-
-UnsetFamily ensures that no value is present for Family, not even an explicit nil
### GetAddress
`func (o *AvailableIP) GetAddress() string`
@@ -80,20 +70,20 @@ SetAddress sets Address field to given value.
### GetVrf
-`func (o *AvailableIP) GetVrf() NestedVRF`
+`func (o *AvailableIP) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *AvailableIP) GetVrfOk() (*NestedVRF, bool)`
+`func (o *AvailableIP) 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 *AvailableIP) SetVrf(v NestedVRF)`
+`func (o *AvailableIP) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
diff --git a/docs/AvailablePrefix.md b/docs/AvailablePrefix.md
index 63ca9471a5..e9f9da1fe9 100644
--- a/docs/AvailablePrefix.md
+++ b/docs/AvailablePrefix.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Family** | **NullableInt32** | | [readonly]
+**Family** | **int32** | | [readonly]
**Prefix** | **string** | | [readonly]
-**Vrf** | [**NullableNestedVRF**](NestedVRF.md) | | [readonly]
+**Vrf** | [**NullableVRF**](VRF.md) | | [readonly]
## Methods
### NewAvailablePrefix
-`func NewAvailablePrefix(family NullableInt32, prefix string, vrf NullableNestedVRF, ) *AvailablePrefix`
+`func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF, ) *AvailablePrefix`
NewAvailablePrefix instantiates a new AvailablePrefix object
This constructor will assign default values to properties that have it defined,
@@ -47,16 +47,6 @@ and a boolean to check if the value has been set.
SetFamily sets Family field to given value.
-### SetFamilyNil
-
-`func (o *AvailablePrefix) SetFamilyNil(b bool)`
-
- SetFamilyNil sets the value for Family to be an explicit nil
-
-### UnsetFamily
-`func (o *AvailablePrefix) UnsetFamily()`
-
-UnsetFamily ensures that no value is present for Family, not even an explicit nil
### GetPrefix
`func (o *AvailablePrefix) GetPrefix() string`
@@ -79,20 +69,20 @@ SetPrefix sets Prefix field to given value.
### GetVrf
-`func (o *AvailablePrefix) GetVrf() NestedVRF`
+`func (o *AvailablePrefix) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *AvailablePrefix) GetVrfOk() (*NestedVRF, bool)`
+`func (o *AvailablePrefix) 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 *AvailablePrefix) SetVrf(v NestedVRF)`
+`func (o *AvailablePrefix) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
diff --git a/docs/AvailableVLAN.md b/docs/AvailableVLAN.md
index 2040024891..86e18eea98 100644
--- a/docs/AvailableVLAN.md
+++ b/docs/AvailableVLAN.md
@@ -5,13 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Vid** | **int32** | | [readonly]
-**Group** | [**NullableNestedVLANGroup**](NestedVLANGroup.md) | | [readonly]
+**Group** | [**NullableVLANGroup**](VLANGroup.md) | | [readonly]
## Methods
### NewAvailableVLAN
-`func NewAvailableVLAN(vid int32, group NullableNestedVLANGroup, ) *AvailableVLAN`
+`func NewAvailableVLAN(vid int32, group NullableVLANGroup, ) *AvailableVLAN`
NewAvailableVLAN instantiates a new AvailableVLAN object
This constructor will assign default values to properties that have it defined,
@@ -48,20 +48,20 @@ SetVid sets Vid field to given value.
### GetGroup
-`func (o *AvailableVLAN) GetGroup() NestedVLANGroup`
+`func (o *AvailableVLAN) GetGroup() VLANGroup`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *AvailableVLAN) GetGroupOk() (*NestedVLANGroup, bool)`
+`func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, 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 *AvailableVLAN) SetGroup(v NestedVLANGroup)`
+`func (o *AvailableVLAN) SetGroup(v VLANGroup)`
SetGroup sets Group field to given value.
diff --git a/docs/Bookmark.md b/docs/Bookmark.md
index bc555cf96a..68ef93cced 100644
--- a/docs/Bookmark.md
+++ b/docs/Bookmark.md
@@ -10,14 +10,14 @@ Name | Type | Description | Notes
**ObjectType** | **string** | |
**ObjectId** | **int64** | |
**Object** | **interface{}** | | [readonly]
-**User** | [**NestedUser**](NestedUser.md) | |
+**User** | [**User**](User.md) | |
**Created** | **time.Time** | | [readonly]
## Methods
### NewBookmark
-`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user NestedUser, created time.Time, ) *Bookmark`
+`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time, ) *Bookmark`
NewBookmark instantiates a new Bookmark object
This constructor will assign default values to properties that have it defined,
@@ -164,20 +164,20 @@ SetObject sets Object field to given value.
UnsetObject ensures that no value is present for Object, not even an explicit nil
### GetUser
-`func (o *Bookmark) GetUser() NestedUser`
+`func (o *Bookmark) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *Bookmark) GetUserOk() (*NestedUser, bool)`
+`func (o *Bookmark) 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 *Bookmark) SetUser(v NestedUser)`
+`func (o *Bookmark) SetUser(v User)`
SetUser sets User field to given value.
diff --git a/docs/BookmarkRequest.md b/docs/BookmarkRequest.md
index a4bbbbd576..caeb3fc592 100644
--- a/docs/BookmarkRequest.md
+++ b/docs/BookmarkRequest.md
@@ -6,13 +6,13 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ObjectType** | **string** | |
**ObjectId** | **int64** | |
-**User** | [**NestedUserRequest**](NestedUserRequest.md) | |
+**User** | [**UserRequest**](UserRequest.md) | |
## Methods
### NewBookmarkRequest
-`func NewBookmarkRequest(objectType string, objectId int64, user NestedUserRequest, ) *BookmarkRequest`
+`func NewBookmarkRequest(objectType string, objectId int64, user UserRequest, ) *BookmarkRequest`
NewBookmarkRequest instantiates a new BookmarkRequest object
This constructor will assign default values to properties that have it defined,
@@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value.
### GetUser
-`func (o *BookmarkRequest) GetUser() NestedUserRequest`
+`func (o *BookmarkRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *BookmarkRequest) GetUserOk() (*NestedUserRequest, bool)`
+`func (o *BookmarkRequest) GetUserOk() (*UserRequest, 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 *BookmarkRequest) SetUser(v NestedUserRequest)`
+`func (o *BookmarkRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
diff --git a/docs/Cable.md b/docs/Cable.md
index 3482a2c754..389a4c6163 100644
--- a/docs/Cable.md
+++ b/docs/Cable.md
@@ -7,27 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
-**ATerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional]
-**BTerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional]
-**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
**Label** | Pointer to **string** | | [optional]
-**Color** | Pointer to **string** | | [optional]
-**Length** | Pointer to **NullableFloat64** | | [optional]
-**LengthUnit** | Pointer to [**NullableCableLengthUnit**](CableLengthUnit.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]
## Methods
### NewCable
-`func NewCable(id int32, url string, display string, created NullableTime, lastUpdated NullableTime, ) *Cable`
+`func NewCable(id int32, url string, display string, ) *Cable`
NewCable instantiates a new Cable object
This constructor will assign default values to properties that have it defined,
@@ -102,141 +89,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetType
-
-`func (o *Cable) GetType() CableType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *Cable) 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 *Cable) SetType(v CableType)`
-
-SetType sets Type field to given value.
-
-### HasType
-
-`func (o *Cable) HasType() bool`
-
-HasType returns a boolean if a field has been set.
-
-### GetATerminations
-
-`func (o *Cable) GetATerminations() []GenericObject`
-
-GetATerminations returns the ATerminations field if non-nil, zero value otherwise.
-
-### GetATerminationsOk
-
-`func (o *Cable) GetATerminationsOk() (*[]GenericObject, bool)`
-
-GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetATerminations
-
-`func (o *Cable) SetATerminations(v []GenericObject)`
-
-SetATerminations sets ATerminations field to given value.
-
-### HasATerminations
-
-`func (o *Cable) HasATerminations() bool`
-
-HasATerminations returns a boolean if a field has been set.
-
-### GetBTerminations
-
-`func (o *Cable) GetBTerminations() []GenericObject`
-
-GetBTerminations returns the BTerminations field if non-nil, zero value otherwise.
-
-### GetBTerminationsOk
-
-`func (o *Cable) GetBTerminationsOk() (*[]GenericObject, bool)`
-
-GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetBTerminations
-
-`func (o *Cable) SetBTerminations(v []GenericObject)`
-
-SetBTerminations sets BTerminations field to given value.
-
-### HasBTerminations
-
-`func (o *Cable) HasBTerminations() bool`
-
-HasBTerminations returns a boolean if a field has been set.
-
-### GetStatus
-
-`func (o *Cable) GetStatus() CableStatus`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *Cable) 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 *Cable) SetStatus(v CableStatus)`
-
-SetStatus sets Status field to given value.
-
-### HasStatus
-
-`func (o *Cable) HasStatus() bool`
-
-HasStatus returns a boolean if a field has been set.
-
-### GetTenant
-
-`func (o *Cable) GetTenant() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Cable) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Cable) SetTenant(v NestedTenant)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *Cable) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *Cable) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *Cable) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetLabel
`func (o *Cable) GetLabel() string`
@@ -262,101 +114,6 @@ SetLabel sets Label field to given value.
HasLabel returns a boolean if a field has been set.
-### GetColor
-
-`func (o *Cable) GetColor() string`
-
-GetColor returns the Color field if non-nil, zero value otherwise.
-
-### GetColorOk
-
-`func (o *Cable) 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 *Cable) SetColor(v string)`
-
-SetColor sets Color field to given value.
-
-### HasColor
-
-`func (o *Cable) HasColor() bool`
-
-HasColor returns a boolean if a field has been set.
-
-### GetLength
-
-`func (o *Cable) GetLength() float64`
-
-GetLength returns the Length field if non-nil, zero value otherwise.
-
-### GetLengthOk
-
-`func (o *Cable) GetLengthOk() (*float64, bool)`
-
-GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetLength
-
-`func (o *Cable) SetLength(v float64)`
-
-SetLength sets Length field to given value.
-
-### HasLength
-
-`func (o *Cable) HasLength() bool`
-
-HasLength returns a boolean if a field has been set.
-
-### SetLengthNil
-
-`func (o *Cable) SetLengthNil(b bool)`
-
- SetLengthNil sets the value for Length to be an explicit nil
-
-### UnsetLength
-`func (o *Cable) UnsetLength()`
-
-UnsetLength ensures that no value is present for Length, not even an explicit nil
-### GetLengthUnit
-
-`func (o *Cable) GetLengthUnit() CableLengthUnit`
-
-GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
-
-### GetLengthUnitOk
-
-`func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, 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 *Cable) SetLengthUnit(v CableLengthUnit)`
-
-SetLengthUnit sets LengthUnit field to given value.
-
-### HasLengthUnit
-
-`func (o *Cable) HasLengthUnit() bool`
-
-HasLengthUnit returns a boolean if a field has been set.
-
-### SetLengthUnitNil
-
-`func (o *Cable) SetLengthUnitNil(b bool)`
-
- SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
-
-### UnsetLengthUnit
-`func (o *Cable) UnsetLengthUnit()`
-
-UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil
### GetDescription
`func (o *Cable) GetDescription() string`
@@ -382,141 +139,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### GetComments
-
-`func (o *Cable) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *Cable) 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 *Cable) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *Cable) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *Cable) GetTags() []NestedTag`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *Cable) 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 *Cable) SetTags(v []NestedTag)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *Cable) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *Cable) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *Cable) 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 *Cable) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *Cable) HasCustomFields() bool`
-
-HasCustomFields returns a boolean if a field has been set.
-
-### GetCreated
-
-`func (o *Cable) GetCreated() time.Time`
-
-GetCreated returns the Created field if non-nil, zero value otherwise.
-
-### GetCreatedOk
-
-`func (o *Cable) 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 *Cable) SetCreated(v time.Time)`
-
-SetCreated sets Created field to given value.
-
-
-### SetCreatedNil
-
-`func (o *Cable) SetCreatedNil(b bool)`
-
- SetCreatedNil sets the value for Created to be an explicit nil
-
-### UnsetCreated
-`func (o *Cable) UnsetCreated()`
-
-UnsetCreated ensures that no value is present for Created, not even an explicit nil
-### GetLastUpdated
-
-`func (o *Cable) GetLastUpdated() time.Time`
-
-GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
-
-### GetLastUpdatedOk
-
-`func (o *Cable) 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 *Cable) SetLastUpdated(v time.Time)`
-
-SetLastUpdated sets LastUpdated field to given value.
-
-
-### SetLastUpdatedNil
-
-`func (o *Cable) SetLastUpdatedNil(b bool)`
-
- SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
-
-### UnsetLastUpdated
-`func (o *Cable) 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/CableLengthUnit.md b/docs/CableLengthUnit.md
deleted file mode 100644
index 0ca0923d95..0000000000
--- a/docs/CableLengthUnit.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# CableLengthUnit
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional]
-**Label** | Pointer to [**CableLengthUnitLabel**](CableLengthUnitLabel.md) | | [optional]
-
-## Methods
-
-### NewCableLengthUnit
-
-`func NewCableLengthUnit() *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
-
-### NewCableLengthUnitWithDefaults
-
-`func NewCableLengthUnitWithDefaults() *CableLengthUnit`
-
-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
-
-### GetValue
-
-`func (o *CableLengthUnit) GetValue() CableLengthUnitValue`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, 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 *CableLengthUnit) SetValue(v CableLengthUnitValue)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *CableLengthUnit) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, 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 *CableLengthUnit) SetLabel(v CableLengthUnitLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *CableLengthUnit) 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/CableLengthUnitLabel.md b/docs/CableLengthUnitLabel.md
deleted file mode 100644
index 5e953b5a9e..0000000000
--- a/docs/CableLengthUnitLabel.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# CableLengthUnitLabel
-
-## Enum
-
-
-* `KILOMETERS` (value: `"Kilometers"`)
-
-* `METERS` (value: `"Meters"`)
-
-* `CENTIMETERS` (value: `"Centimeters"`)
-
-* `MILES` (value: `"Miles"`)
-
-* `FEET` (value: `"Feet"`)
-
-* `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/CableRequest.md b/docs/CableRequest.md
index 461c9e9d37..b90dfd2eac 100644
--- a/docs/CableRequest.md
+++ b/docs/CableRequest.md
@@ -4,19 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
-**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
**Label** | Pointer to **string** | | [optional]
-**Color** | Pointer to **string** | | [optional]
-**Length** | Pointer to **NullableFloat64** | | [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]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -37,141 +26,6 @@ NewCableRequestWithDefaults instantiates a new CableRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetType
-
-`func (o *CableRequest) GetType() CableType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *CableRequest) 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 *CableRequest) SetType(v CableType)`
-
-SetType sets Type field to given value.
-
-### HasType
-
-`func (o *CableRequest) HasType() bool`
-
-HasType returns a boolean if a field has been set.
-
-### GetATerminations
-
-`func (o *CableRequest) GetATerminations() []GenericObjectRequest`
-
-GetATerminations returns the ATerminations field if non-nil, zero value otherwise.
-
-### GetATerminationsOk
-
-`func (o *CableRequest) GetATerminationsOk() (*[]GenericObjectRequest, bool)`
-
-GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetATerminations
-
-`func (o *CableRequest) SetATerminations(v []GenericObjectRequest)`
-
-SetATerminations sets ATerminations field to given value.
-
-### HasATerminations
-
-`func (o *CableRequest) HasATerminations() bool`
-
-HasATerminations returns a boolean if a field has been set.
-
-### GetBTerminations
-
-`func (o *CableRequest) GetBTerminations() []GenericObjectRequest`
-
-GetBTerminations returns the BTerminations field if non-nil, zero value otherwise.
-
-### GetBTerminationsOk
-
-`func (o *CableRequest) GetBTerminationsOk() (*[]GenericObjectRequest, bool)`
-
-GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetBTerminations
-
-`func (o *CableRequest) SetBTerminations(v []GenericObjectRequest)`
-
-SetBTerminations sets BTerminations field to given value.
-
-### HasBTerminations
-
-`func (o *CableRequest) HasBTerminations() bool`
-
-HasBTerminations returns a boolean if a field has been set.
-
-### GetStatus
-
-`func (o *CableRequest) GetStatus() CableStatusValue`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *CableRequest) 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 *CableRequest) SetStatus(v CableStatusValue)`
-
-SetStatus sets Status field to given value.
-
-### HasStatus
-
-`func (o *CableRequest) HasStatus() bool`
-
-HasStatus returns a boolean if a field has been set.
-
-### GetTenant
-
-`func (o *CableRequest) GetTenant() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *CableRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *CableRequest) SetTenant(v NestedTenantRequest)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *CableRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *CableRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *CableRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetLabel
`func (o *CableRequest) GetLabel() string`
@@ -197,101 +51,6 @@ SetLabel sets Label field to given value.
HasLabel returns a boolean if a field has been set.
-### GetColor
-
-`func (o *CableRequest) GetColor() string`
-
-GetColor returns the Color field if non-nil, zero value otherwise.
-
-### GetColorOk
-
-`func (o *CableRequest) 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 *CableRequest) SetColor(v string)`
-
-SetColor sets Color field to given value.
-
-### HasColor
-
-`func (o *CableRequest) HasColor() bool`
-
-HasColor returns a boolean if a field has been set.
-
-### GetLength
-
-`func (o *CableRequest) GetLength() float64`
-
-GetLength returns the Length field if non-nil, zero value otherwise.
-
-### GetLengthOk
-
-`func (o *CableRequest) GetLengthOk() (*float64, bool)`
-
-GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetLength
-
-`func (o *CableRequest) SetLength(v float64)`
-
-SetLength sets Length field to given value.
-
-### HasLength
-
-`func (o *CableRequest) HasLength() bool`
-
-HasLength returns a boolean if a field has been set.
-
-### SetLengthNil
-
-`func (o *CableRequest) SetLengthNil(b bool)`
-
- SetLengthNil sets the value for Length to be an explicit nil
-
-### UnsetLength
-`func (o *CableRequest) UnsetLength()`
-
-UnsetLength ensures that no value is present for Length, not even an explicit nil
-### GetLengthUnit
-
-`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit`
-
-GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
-
-### GetLengthUnitOk
-
-`func (o *CableRequest) 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 *CableRequest) SetLengthUnit(v CableRequestLengthUnit)`
-
-SetLengthUnit sets LengthUnit field to given value.
-
-### HasLengthUnit
-
-`func (o *CableRequest) HasLengthUnit() bool`
-
-HasLengthUnit returns a boolean if a field has been set.
-
-### SetLengthUnitNil
-
-`func (o *CableRequest) SetLengthUnitNil(b bool)`
-
- SetLengthUnitNil sets the value for LengthUnit to be an explicit nil
-
-### UnsetLengthUnit
-`func (o *CableRequest) UnsetLengthUnit()`
-
-UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil
### GetDescription
`func (o *CableRequest) GetDescription() string`
@@ -317,81 +76,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### GetComments
-
-`func (o *CableRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *CableRequest) 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 *CableRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *CableRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *CableRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *CableRequest) 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 *CableRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *CableRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *CableRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *CableRequest) 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 *CableRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *CableRequest) 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/CableStatus.md b/docs/CableStatus.md
deleted file mode 100644
index 3cdd8c4b35..0000000000
--- a/docs/CableStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# CableStatus
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Label** | Pointer to [**CableStatusLabel**](CableStatusLabel.md) | | [optional]
-
-## Methods
-
-### NewCableStatus
-
-`func NewCableStatus() *CableStatus`
-
-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
-
-### NewCableStatusWithDefaults
-
-`func NewCableStatusWithDefaults() *CableStatus`
-
-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
-
-### GetValue
-
-`func (o *CableStatus) GetValue() CableStatusValue`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *CableStatus) GetValueOk() (*CableStatusValue, 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 *CableStatus) SetValue(v CableStatusValue)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *CableStatus) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *CableStatus) GetLabel() CableStatusLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *CableStatus) GetLabelOk() (*CableStatusLabel, 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 *CableStatus) SetLabel(v CableStatusLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *CableStatus) 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/CableTermination.md b/docs/CableTermination.md
index db0ab3afb2..b48bd8caeb 100644
--- a/docs/CableTermination.md
+++ b/docs/CableTermination.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Cable** | **int32** | |
-**CableEnd** | [**End**](End.md) | |
+**CableEnd** | [**End1**](End1.md) | |
**TerminationType** | **string** | |
**TerminationId** | **int64** | |
**Termination** | **interface{}** | | [readonly]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewCableTermination
-`func NewCableTermination(id int32, url string, display string, cable int32, cableEnd End, 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, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *CableTermination`
NewCableTermination instantiates a new CableTermination object
This constructor will assign default values to properties that have it defined,
@@ -116,20 +116,20 @@ SetCable sets Cable field to given value.
### GetCableEnd
-`func (o *CableTermination) GetCableEnd() End`
+`func (o *CableTermination) GetCableEnd() End1`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *CableTermination) GetCableEndOk() (*End, bool)`
+`func (o *CableTermination) GetCableEndOk() (*End1, 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 *CableTermination) SetCableEnd(v End)`
+`func (o *CableTermination) SetCableEnd(v End1)`
SetCableEnd sets CableEnd field to given value.
diff --git a/docs/CableTerminationRequest.md b/docs/CableTerminationRequest.md
index c2bbdf603e..70fbf18acc 100644
--- a/docs/CableTerminationRequest.md
+++ b/docs/CableTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cable** | **int32** | |
-**CableEnd** | [**End**](End.md) | |
+**CableEnd** | [**End1**](End1.md) | |
**TerminationType** | **string** | |
**TerminationId** | **int64** | |
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
### NewCableTerminationRequest
-`func NewCableTerminationRequest(cable int32, cableEnd End, terminationType string, terminationId int64, ) *CableTerminationRequest`
+`func NewCableTerminationRequest(cable int32, cableEnd End1, terminationType string, terminationId int64, ) *CableTerminationRequest`
NewCableTerminationRequest instantiates a new CableTerminationRequest object
This constructor will assign default values to properties that have it defined,
@@ -50,20 +50,20 @@ SetCable sets Cable field to given value.
### GetCableEnd
-`func (o *CableTerminationRequest) GetCableEnd() End`
+`func (o *CableTerminationRequest) GetCableEnd() End1`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *CableTerminationRequest) GetCableEndOk() (*End, bool)`
+`func (o *CableTerminationRequest) GetCableEndOk() (*End1, 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 *CableTerminationRequest) SetCableEnd(v End)`
+`func (o *CableTerminationRequest) SetCableEnd(v End1)`
SetCableEnd sets CableEnd field to given value.
diff --git a/docs/Circuit.md b/docs/Circuit.md
index 4fb2dd5895..b9bb4fd7e7 100644
--- a/docs/Circuit.md
+++ b/docs/Circuit.md
@@ -8,28 +8,13 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Cid** | **string** | Unique circuit ID |
-**Provider** | [**NestedProvider**](NestedProvider.md) | |
-**ProviderAccount** | Pointer to [**NullableNestedProviderAccount**](NestedProviderAccount.md) | | [optional]
-**Type** | [**NestedCircuitType**](NestedCircuitType.md) | |
-**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**InstallDate** | Pointer to **NullableString** | | [optional]
-**TerminationDate** | Pointer to **NullableString** | | [optional]
-**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional]
**Description** | Pointer to **string** | | [optional]
-**TerminationA** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly]
-**TerminationZ** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly]
-**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]
## Methods
### NewCircuit
-`func NewCircuit(id int32, url string, display string, cid string, provider NestedProvider, type_ NestedCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime, ) *Circuit`
+`func NewCircuit(id int32, url string, display string, cid string, ) *Circuit`
NewCircuit instantiates a new Circuit object
This constructor will assign default values to properties that have it defined,
@@ -124,246 +109,6 @@ and a boolean to check if the value has been set.
SetCid sets Cid field to given value.
-### GetProvider
-
-`func (o *Circuit) GetProvider() NestedProvider`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *Circuit) GetProviderOk() (*NestedProvider, 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 *Circuit) SetProvider(v NestedProvider)`
-
-SetProvider sets Provider field to given value.
-
-
-### GetProviderAccount
-
-`func (o *Circuit) GetProviderAccount() NestedProviderAccount`
-
-GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise.
-
-### GetProviderAccountOk
-
-`func (o *Circuit) GetProviderAccountOk() (*NestedProviderAccount, 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 *Circuit) SetProviderAccount(v NestedProviderAccount)`
-
-SetProviderAccount sets ProviderAccount field to given value.
-
-### HasProviderAccount
-
-`func (o *Circuit) HasProviderAccount() bool`
-
-HasProviderAccount returns a boolean if a field has been set.
-
-### SetProviderAccountNil
-
-`func (o *Circuit) SetProviderAccountNil(b bool)`
-
- SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
-
-### UnsetProviderAccount
-`func (o *Circuit) UnsetProviderAccount()`
-
-UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil
-### GetType
-
-`func (o *Circuit) GetType() NestedCircuitType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *Circuit) GetTypeOk() (*NestedCircuitType, 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 *Circuit) SetType(v NestedCircuitType)`
-
-SetType sets Type field to given value.
-
-
-### GetStatus
-
-`func (o *Circuit) GetStatus() CircuitStatus`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *Circuit) 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 *Circuit) SetStatus(v CircuitStatus)`
-
-SetStatus sets Status field to given value.
-
-### HasStatus
-
-`func (o *Circuit) HasStatus() bool`
-
-HasStatus returns a boolean if a field has been set.
-
-### GetTenant
-
-`func (o *Circuit) GetTenant() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Circuit) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Circuit) SetTenant(v NestedTenant)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *Circuit) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *Circuit) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *Circuit) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetInstallDate
-
-`func (o *Circuit) GetInstallDate() string`
-
-GetInstallDate returns the InstallDate field if non-nil, zero value otherwise.
-
-### GetInstallDateOk
-
-`func (o *Circuit) GetInstallDateOk() (*string, bool)`
-
-GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInstallDate
-
-`func (o *Circuit) SetInstallDate(v string)`
-
-SetInstallDate sets InstallDate field to given value.
-
-### HasInstallDate
-
-`func (o *Circuit) HasInstallDate() bool`
-
-HasInstallDate returns a boolean if a field has been set.
-
-### SetInstallDateNil
-
-`func (o *Circuit) SetInstallDateNil(b bool)`
-
- SetInstallDateNil sets the value for InstallDate to be an explicit nil
-
-### UnsetInstallDate
-`func (o *Circuit) UnsetInstallDate()`
-
-UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil
-### GetTerminationDate
-
-`func (o *Circuit) GetTerminationDate() string`
-
-GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise.
-
-### GetTerminationDateOk
-
-`func (o *Circuit) GetTerminationDateOk() (*string, bool)`
-
-GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTerminationDate
-
-`func (o *Circuit) SetTerminationDate(v string)`
-
-SetTerminationDate sets TerminationDate field to given value.
-
-### HasTerminationDate
-
-`func (o *Circuit) HasTerminationDate() bool`
-
-HasTerminationDate returns a boolean if a field has been set.
-
-### SetTerminationDateNil
-
-`func (o *Circuit) SetTerminationDateNil(b bool)`
-
- SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
-
-### UnsetTerminationDate
-`func (o *Circuit) UnsetTerminationDate()`
-
-UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil
-### GetCommitRate
-
-`func (o *Circuit) GetCommitRate() int32`
-
-GetCommitRate returns the CommitRate field if non-nil, zero value otherwise.
-
-### GetCommitRateOk
-
-`func (o *Circuit) GetCommitRateOk() (*int32, bool)`
-
-GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetCommitRate
-
-`func (o *Circuit) SetCommitRate(v int32)`
-
-SetCommitRate sets CommitRate field to given value.
-
-### HasCommitRate
-
-`func (o *Circuit) HasCommitRate() bool`
-
-HasCommitRate returns a boolean if a field has been set.
-
-### SetCommitRateNil
-
-`func (o *Circuit) SetCommitRateNil(b bool)`
-
- SetCommitRateNil sets the value for CommitRate to be an explicit nil
-
-### UnsetCommitRate
-`func (o *Circuit) UnsetCommitRate()`
-
-UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil
### GetDescription
`func (o *Circuit) GetDescription() string`
@@ -389,201 +134,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### GetTerminationA
-
-`func (o *Circuit) GetTerminationA() CircuitCircuitTermination`
-
-GetTerminationA returns the TerminationA field if non-nil, zero value otherwise.
-
-### GetTerminationAOk
-
-`func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool)`
-
-GetTerminationAOk returns a tuple with the TerminationA field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTerminationA
-
-`func (o *Circuit) SetTerminationA(v CircuitCircuitTermination)`
-
-SetTerminationA sets TerminationA field to given value.
-
-
-### SetTerminationANil
-
-`func (o *Circuit) SetTerminationANil(b bool)`
-
- SetTerminationANil sets the value for TerminationA to be an explicit nil
-
-### UnsetTerminationA
-`func (o *Circuit) UnsetTerminationA()`
-
-UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil
-### GetTerminationZ
-
-`func (o *Circuit) GetTerminationZ() CircuitCircuitTermination`
-
-GetTerminationZ returns the TerminationZ field if non-nil, zero value otherwise.
-
-### GetTerminationZOk
-
-`func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool)`
-
-GetTerminationZOk returns a tuple with the TerminationZ field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTerminationZ
-
-`func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination)`
-
-SetTerminationZ sets TerminationZ field to given value.
-
-
-### SetTerminationZNil
-
-`func (o *Circuit) SetTerminationZNil(b bool)`
-
- SetTerminationZNil sets the value for TerminationZ to be an explicit nil
-
-### UnsetTerminationZ
-`func (o *Circuit) UnsetTerminationZ()`
-
-UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil
-### GetComments
-
-`func (o *Circuit) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *Circuit) 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 *Circuit) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *Circuit) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *Circuit) GetTags() []NestedTag`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *Circuit) 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 *Circuit) SetTags(v []NestedTag)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *Circuit) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *Circuit) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *Circuit) 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 *Circuit) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *Circuit) HasCustomFields() bool`
-
-HasCustomFields returns a boolean if a field has been set.
-
-### GetCreated
-
-`func (o *Circuit) GetCreated() time.Time`
-
-GetCreated returns the Created field if non-nil, zero value otherwise.
-
-### GetCreatedOk
-
-`func (o *Circuit) 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 *Circuit) SetCreated(v time.Time)`
-
-SetCreated sets Created field to given value.
-
-
-### SetCreatedNil
-
-`func (o *Circuit) SetCreatedNil(b bool)`
-
- SetCreatedNil sets the value for Created to be an explicit nil
-
-### UnsetCreated
-`func (o *Circuit) UnsetCreated()`
-
-UnsetCreated ensures that no value is present for Created, not even an explicit nil
-### GetLastUpdated
-
-`func (o *Circuit) GetLastUpdated() time.Time`
-
-GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
-
-### GetLastUpdatedOk
-
-`func (o *Circuit) 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 *Circuit) SetLastUpdated(v time.Time)`
-
-SetLastUpdated sets LastUpdated field to given value.
-
-
-### SetLastUpdatedNil
-
-`func (o *Circuit) SetLastUpdatedNil(b bool)`
-
- SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
-
-### UnsetLastUpdated
-`func (o *Circuit) 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/CircuitCircuitTermination.md b/docs/CircuitCircuitTermination.md
deleted file mode 100644
index 7022210f24..0000000000
--- a/docs/CircuitCircuitTermination.md
+++ /dev/null
@@ -1,279 +0,0 @@
-# CircuitCircuitTermination
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Site** | [**NullableNestedSite**](NestedSite.md) | |
-**ProviderNetwork** | [**NullableNestedProviderNetwork**](NestedProviderNetwork.md) | |
-**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]
-**Description** | Pointer to **string** | | [optional]
-
-## Methods
-
-### NewCircuitCircuitTermination
-
-`func NewCircuitCircuitTermination(id int32, url string, display string, site NullableNestedSite, providerNetwork NullableNestedProviderNetwork, ) *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
-
-### NewCircuitCircuitTerminationWithDefaults
-
-`func NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination`
-
-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
-
-### GetId
-
-`func (o *CircuitCircuitTermination) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *CircuitCircuitTermination) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *CircuitCircuitTermination) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetSite
-
-`func (o *CircuitCircuitTermination) GetSite() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *CircuitCircuitTermination) GetSiteOk() (*NestedSite, 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 *CircuitCircuitTermination) SetSite(v NestedSite)`
-
-SetSite sets Site field to given value.
-
-
-### SetSiteNil
-
-`func (o *CircuitCircuitTermination) SetSiteNil(b bool)`
-
- SetSiteNil sets the value for Site to be an explicit nil
-
-### UnsetSite
-`func (o *CircuitCircuitTermination) UnsetSite()`
-
-UnsetSite ensures that no value is present for Site, not even an explicit nil
-### GetProviderNetwork
-
-`func (o *CircuitCircuitTermination) GetProviderNetwork() NestedProviderNetwork`
-
-GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
-
-### GetProviderNetworkOk
-
-`func (o *CircuitCircuitTermination) GetProviderNetworkOk() (*NestedProviderNetwork, 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 *CircuitCircuitTermination) SetProviderNetwork(v NestedProviderNetwork)`
-
-SetProviderNetwork sets ProviderNetwork field to given value.
-
-
-### SetProviderNetworkNil
-
-`func (o *CircuitCircuitTermination) SetProviderNetworkNil(b bool)`
-
- SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
-
-### UnsetProviderNetwork
-`func (o *CircuitCircuitTermination) UnsetProviderNetwork()`
-
-UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
-### GetPortSpeed
-
-`func (o *CircuitCircuitTermination) GetPortSpeed() int32`
-
-GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise.
-
-### GetPortSpeedOk
-
-`func (o *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool)`
-
-GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPortSpeed
-
-`func (o *CircuitCircuitTermination) SetPortSpeed(v int32)`
-
-SetPortSpeed sets PortSpeed field to given value.
-
-### HasPortSpeed
-
-`func (o *CircuitCircuitTermination) HasPortSpeed() bool`
-
-HasPortSpeed returns a boolean if a field has been set.
-
-### SetPortSpeedNil
-
-`func (o *CircuitCircuitTermination) SetPortSpeedNil(b bool)`
-
- SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
-
-### UnsetPortSpeed
-`func (o *CircuitCircuitTermination) UnsetPortSpeed()`
-
-UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
-### GetUpstreamSpeed
-
-`func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32`
-
-GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise.
-
-### GetUpstreamSpeedOk
-
-`func (o *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool)`
-
-GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUpstreamSpeed
-
-`func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32)`
-
-SetUpstreamSpeed sets UpstreamSpeed field to given value.
-
-### HasUpstreamSpeed
-
-`func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool`
-
-HasUpstreamSpeed returns a boolean if a field has been set.
-
-### SetUpstreamSpeedNil
-
-`func (o *CircuitCircuitTermination) SetUpstreamSpeedNil(b bool)`
-
- SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
-
-### UnsetUpstreamSpeed
-`func (o *CircuitCircuitTermination) UnsetUpstreamSpeed()`
-
-UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
-### GetXconnectId
-
-`func (o *CircuitCircuitTermination) GetXconnectId() string`
-
-GetXconnectId returns the XconnectId field if non-nil, zero value otherwise.
-
-### GetXconnectIdOk
-
-`func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool)`
-
-GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetXconnectId
-
-`func (o *CircuitCircuitTermination) SetXconnectId(v string)`
-
-SetXconnectId sets XconnectId field to given value.
-
-### HasXconnectId
-
-`func (o *CircuitCircuitTermination) HasXconnectId() bool`
-
-HasXconnectId returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *CircuitCircuitTermination) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *CircuitCircuitTermination) 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/CircuitCircuitTerminationRequest.md b/docs/CircuitCircuitTerminationRequest.md
deleted file mode 100644
index acfbb50cb4..0000000000
--- a/docs/CircuitCircuitTerminationRequest.md
+++ /dev/null
@@ -1,216 +0,0 @@
-# CircuitCircuitTerminationRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Site** | [**NullableNestedSiteRequest**](NestedSiteRequest.md) | |
-**ProviderNetwork** | [**NullableNestedProviderNetworkRequest**](NestedProviderNetworkRequest.md) | |
-**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]
-**Description** | Pointer to **string** | | [optional]
-
-## Methods
-
-### NewCircuitCircuitTerminationRequest
-
-`func NewCircuitCircuitTerminationRequest(site NullableNestedSiteRequest, providerNetwork NullableNestedProviderNetworkRequest, ) *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
-
-### NewCircuitCircuitTerminationRequestWithDefaults
-
-`func NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest`
-
-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
-
-### GetSite
-
-`func (o *CircuitCircuitTerminationRequest) GetSite() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *CircuitCircuitTerminationRequest) GetSiteOk() (*NestedSiteRequest, 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 *CircuitCircuitTerminationRequest) SetSite(v NestedSiteRequest)`
-
-SetSite sets Site field to given value.
-
-
-### SetSiteNil
-
-`func (o *CircuitCircuitTerminationRequest) SetSiteNil(b bool)`
-
- SetSiteNil sets the value for Site to be an explicit nil
-
-### UnsetSite
-`func (o *CircuitCircuitTerminationRequest) UnsetSite()`
-
-UnsetSite ensures that no value is present for Site, not even an explicit nil
-### GetProviderNetwork
-
-`func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() NestedProviderNetworkRequest`
-
-GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
-
-### GetProviderNetworkOk
-
-`func (o *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*NestedProviderNetworkRequest, 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 *CircuitCircuitTerminationRequest) SetProviderNetwork(v NestedProviderNetworkRequest)`
-
-SetProviderNetwork sets ProviderNetwork field to given value.
-
-
-### SetProviderNetworkNil
-
-`func (o *CircuitCircuitTerminationRequest) SetProviderNetworkNil(b bool)`
-
- SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
-
-### UnsetProviderNetwork
-`func (o *CircuitCircuitTerminationRequest) UnsetProviderNetwork()`
-
-UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
-### GetPortSpeed
-
-`func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32`
-
-GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise.
-
-### GetPortSpeedOk
-
-`func (o *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)`
-
-GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPortSpeed
-
-`func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32)`
-
-SetPortSpeed sets PortSpeed field to given value.
-
-### HasPortSpeed
-
-`func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool`
-
-HasPortSpeed returns a boolean if a field has been set.
-
-### SetPortSpeedNil
-
-`func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil(b bool)`
-
- SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
-
-### UnsetPortSpeed
-`func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed()`
-
-UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
-### GetUpstreamSpeed
-
-`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32`
-
-GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise.
-
-### GetUpstreamSpeedOk
-
-`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)`
-
-GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUpstreamSpeed
-
-`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32)`
-
-SetUpstreamSpeed sets UpstreamSpeed field to given value.
-
-### HasUpstreamSpeed
-
-`func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool`
-
-HasUpstreamSpeed returns a boolean if a field has been set.
-
-### SetUpstreamSpeedNil
-
-`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)`
-
- SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
-
-### UnsetUpstreamSpeed
-`func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed()`
-
-UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
-### GetXconnectId
-
-`func (o *CircuitCircuitTerminationRequest) GetXconnectId() string`
-
-GetXconnectId returns the XconnectId field if non-nil, zero value otherwise.
-
-### GetXconnectIdOk
-
-`func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)`
-
-GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetXconnectId
-
-`func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string)`
-
-SetXconnectId sets XconnectId field to given value.
-
-### HasXconnectId
-
-`func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool`
-
-HasXconnectId returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *CircuitCircuitTerminationRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *CircuitCircuitTerminationRequest) 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 *CircuitCircuitTerminationRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *CircuitCircuitTerminationRequest) 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/CircuitRequest.md b/docs/CircuitRequest.md
index edcb0bd7f5..e28059fb5c 100644
--- a/docs/CircuitRequest.md
+++ b/docs/CircuitRequest.md
@@ -5,24 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cid** | **string** | Unique circuit ID |
-**Provider** | [**NestedProviderRequest**](NestedProviderRequest.md) | |
-**ProviderAccount** | Pointer to [**NullableNestedProviderAccountRequest**](NestedProviderAccountRequest.md) | | [optional]
-**Type** | [**NestedCircuitTypeRequest**](NestedCircuitTypeRequest.md) | |
-**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**InstallDate** | Pointer to **NullableString** | | [optional]
-**TerminationDate** | Pointer to **NullableString** | | [optional]
-**CommitRate** | Pointer to **NullableInt32** | Committed rate | [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
### NewCircuitRequest
-`func NewCircuitRequest(cid string, provider NestedProviderRequest, type_ NestedCircuitTypeRequest, ) *CircuitRequest`
+`func NewCircuitRequest(cid string, ) *CircuitRequest`
NewCircuitRequest instantiates a new CircuitRequest object
This constructor will assign default values to properties that have it defined,
@@ -57,246 +46,6 @@ and a boolean to check if the value has been set.
SetCid sets Cid field to given value.
-### GetProvider
-
-`func (o *CircuitRequest) GetProvider() NestedProviderRequest`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *CircuitRequest) GetProviderOk() (*NestedProviderRequest, 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 *CircuitRequest) SetProvider(v NestedProviderRequest)`
-
-SetProvider sets Provider field to given value.
-
-
-### GetProviderAccount
-
-`func (o *CircuitRequest) GetProviderAccount() NestedProviderAccountRequest`
-
-GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise.
-
-### GetProviderAccountOk
-
-`func (o *CircuitRequest) GetProviderAccountOk() (*NestedProviderAccountRequest, 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 *CircuitRequest) SetProviderAccount(v NestedProviderAccountRequest)`
-
-SetProviderAccount sets ProviderAccount field to given value.
-
-### HasProviderAccount
-
-`func (o *CircuitRequest) HasProviderAccount() bool`
-
-HasProviderAccount returns a boolean if a field has been set.
-
-### SetProviderAccountNil
-
-`func (o *CircuitRequest) SetProviderAccountNil(b bool)`
-
- SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
-
-### UnsetProviderAccount
-`func (o *CircuitRequest) UnsetProviderAccount()`
-
-UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil
-### GetType
-
-`func (o *CircuitRequest) GetType() NestedCircuitTypeRequest`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *CircuitRequest) GetTypeOk() (*NestedCircuitTypeRequest, 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 *CircuitRequest) SetType(v NestedCircuitTypeRequest)`
-
-SetType sets Type field to given value.
-
-
-### GetStatus
-
-`func (o *CircuitRequest) GetStatus() CircuitStatusValue`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *CircuitRequest) 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 *CircuitRequest) SetStatus(v CircuitStatusValue)`
-
-SetStatus sets Status field to given value.
-
-### HasStatus
-
-`func (o *CircuitRequest) HasStatus() bool`
-
-HasStatus returns a boolean if a field has been set.
-
-### GetTenant
-
-`func (o *CircuitRequest) GetTenant() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *CircuitRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *CircuitRequest) SetTenant(v NestedTenantRequest)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *CircuitRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *CircuitRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *CircuitRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetInstallDate
-
-`func (o *CircuitRequest) GetInstallDate() string`
-
-GetInstallDate returns the InstallDate field if non-nil, zero value otherwise.
-
-### GetInstallDateOk
-
-`func (o *CircuitRequest) GetInstallDateOk() (*string, bool)`
-
-GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInstallDate
-
-`func (o *CircuitRequest) SetInstallDate(v string)`
-
-SetInstallDate sets InstallDate field to given value.
-
-### HasInstallDate
-
-`func (o *CircuitRequest) HasInstallDate() bool`
-
-HasInstallDate returns a boolean if a field has been set.
-
-### SetInstallDateNil
-
-`func (o *CircuitRequest) SetInstallDateNil(b bool)`
-
- SetInstallDateNil sets the value for InstallDate to be an explicit nil
-
-### UnsetInstallDate
-`func (o *CircuitRequest) UnsetInstallDate()`
-
-UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil
-### GetTerminationDate
-
-`func (o *CircuitRequest) GetTerminationDate() string`
-
-GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise.
-
-### GetTerminationDateOk
-
-`func (o *CircuitRequest) GetTerminationDateOk() (*string, bool)`
-
-GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTerminationDate
-
-`func (o *CircuitRequest) SetTerminationDate(v string)`
-
-SetTerminationDate sets TerminationDate field to given value.
-
-### HasTerminationDate
-
-`func (o *CircuitRequest) HasTerminationDate() bool`
-
-HasTerminationDate returns a boolean if a field has been set.
-
-### SetTerminationDateNil
-
-`func (o *CircuitRequest) SetTerminationDateNil(b bool)`
-
- SetTerminationDateNil sets the value for TerminationDate to be an explicit nil
-
-### UnsetTerminationDate
-`func (o *CircuitRequest) UnsetTerminationDate()`
-
-UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil
-### GetCommitRate
-
-`func (o *CircuitRequest) GetCommitRate() int32`
-
-GetCommitRate returns the CommitRate field if non-nil, zero value otherwise.
-
-### GetCommitRateOk
-
-`func (o *CircuitRequest) GetCommitRateOk() (*int32, bool)`
-
-GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetCommitRate
-
-`func (o *CircuitRequest) SetCommitRate(v int32)`
-
-SetCommitRate sets CommitRate field to given value.
-
-### HasCommitRate
-
-`func (o *CircuitRequest) HasCommitRate() bool`
-
-HasCommitRate returns a boolean if a field has been set.
-
-### SetCommitRateNil
-
-`func (o *CircuitRequest) SetCommitRateNil(b bool)`
-
- SetCommitRateNil sets the value for CommitRate to be an explicit nil
-
-### UnsetCommitRate
-`func (o *CircuitRequest) UnsetCommitRate()`
-
-UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil
### GetDescription
`func (o *CircuitRequest) GetDescription() string`
@@ -322,81 +71,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### GetComments
-
-`func (o *CircuitRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *CircuitRequest) 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 *CircuitRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *CircuitRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *CircuitRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *CircuitRequest) 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 *CircuitRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *CircuitRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *CircuitRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *CircuitRequest) 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 *CircuitRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *CircuitRequest) 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/CircuitStatus.md b/docs/CircuitStatus.md
deleted file mode 100644
index 8815d2697f..0000000000
--- a/docs/CircuitStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# CircuitStatus
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
-**Label** | Pointer to [**CircuitStatusLabel**](CircuitStatusLabel.md) | | [optional]
-
-## Methods
-
-### NewCircuitStatus
-
-`func NewCircuitStatus() *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
-
-### NewCircuitStatusWithDefaults
-
-`func NewCircuitStatusWithDefaults() *CircuitStatus`
-
-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
-
-### GetValue
-
-`func (o *CircuitStatus) GetValue() CircuitStatusValue`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, 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 *CircuitStatus) SetValue(v CircuitStatusValue)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *CircuitStatus) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *CircuitStatus) GetLabel() CircuitStatusLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, 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 *CircuitStatus) SetLabel(v CircuitStatusLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *CircuitStatus) 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/CircuitStatusLabel.md b/docs/CircuitStatusLabel.md
deleted file mode 100644
index 594cdc8dcb..0000000000
--- a/docs/CircuitStatusLabel.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# CircuitStatusLabel
-
-## Enum
-
-
-* `PLANNED` (value: `"Planned"`)
-
-* `PROVISIONING` (value: `"Provisioning"`)
-
-* `ACTIVE` (value: `"Active"`)
-
-* `OFFLINE` (value: `"Offline"`)
-
-* `DEPROVISIONING` (value: `"Deprovisioning"`)
-
-* `DECOMMISSIONED` (value: `"Decommissioned"`)
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CircuitTermination.md b/docs/CircuitTermination.md
index bbc393e5c8..11b220a6db 100644
--- a/docs/CircuitTermination.md
+++ b/docs/CircuitTermination.md
@@ -7,17 +7,17 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Circuit** | [**NestedCircuit**](NestedCircuit.md) | |
-**TermSide** | [**Termination**](Termination.md) | |
-**Site** | Pointer to [**NullableNestedSite**](NestedSite.md) | | [optional]
-**ProviderNetwork** | Pointer to [**NullableNestedProviderNetwork**](NestedProviderNetwork.md) | | [optional]
+**Circuit** | [**Circuit**](Circuit.md) | |
+**TermSide** | [**Termination1**](Termination1.md) | |
+**Site** | Pointer to [**NullableSite**](Site.md) | | [optional]
+**ProviderNetwork** | Pointer to [**NullableProviderNetwork**](ProviderNetwork.md) | | [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]
**PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
-**Cable** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
### NewCircuitTermination
-`func NewCircuitTermination(id int32, url string, display string, circuit NestedCircuit, termSide Termination, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination`
+`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`
NewCircuitTermination instantiates a new CircuitTermination object
This constructor will assign default values to properties that have it defined,
@@ -108,60 +108,60 @@ SetDisplay sets Display field to given value.
### GetCircuit
-`func (o *CircuitTermination) GetCircuit() NestedCircuit`
+`func (o *CircuitTermination) GetCircuit() Circuit`
GetCircuit returns the Circuit field if non-nil, zero value otherwise.
### GetCircuitOk
-`func (o *CircuitTermination) GetCircuitOk() (*NestedCircuit, bool)`
+`func (o *CircuitTermination) GetCircuitOk() (*Circuit, 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 *CircuitTermination) SetCircuit(v NestedCircuit)`
+`func (o *CircuitTermination) SetCircuit(v Circuit)`
SetCircuit sets Circuit field to given value.
### GetTermSide
-`func (o *CircuitTermination) GetTermSide() Termination`
+`func (o *CircuitTermination) GetTermSide() Termination1`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *CircuitTermination) GetTermSideOk() (*Termination, bool)`
+`func (o *CircuitTermination) GetTermSideOk() (*Termination1, 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 *CircuitTermination) SetTermSide(v Termination)`
+`func (o *CircuitTermination) SetTermSide(v Termination1)`
SetTermSide sets TermSide field to given value.
### GetSite
-`func (o *CircuitTermination) GetSite() NestedSite`
+`func (o *CircuitTermination) GetSite() Site`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *CircuitTermination) GetSiteOk() (*NestedSite, bool)`
+`func (o *CircuitTermination) 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 *CircuitTermination) SetSite(v NestedSite)`
+`func (o *CircuitTermination) SetSite(v Site)`
SetSite sets Site field to given value.
@@ -183,20 +183,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
### GetProviderNetwork
-`func (o *CircuitTermination) GetProviderNetwork() NestedProviderNetwork`
+`func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork`
GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
### GetProviderNetworkOk
-`func (o *CircuitTermination) GetProviderNetworkOk() (*NestedProviderNetwork, bool)`
+`func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, 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 *CircuitTermination) SetProviderNetwork(v NestedProviderNetwork)`
+`func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork)`
SetProviderNetwork sets ProviderNetwork field to given value.
@@ -388,20 +388,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *CircuitTermination) GetCable() NestedCable`
+`func (o *CircuitTermination) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *CircuitTermination) GetCableOk() (*NestedCable, bool)`
+`func (o *CircuitTermination) 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 *CircuitTermination) SetCable(v NestedCable)`
+`func (o *CircuitTermination) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md
index b6c607a39b..a99223da73 100644
--- a/docs/CircuitTerminationRequest.md
+++ b/docs/CircuitTerminationRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Circuit** | [**NestedCircuitRequest**](NestedCircuitRequest.md) | |
-**TermSide** | [**Termination**](Termination.md) | |
-**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.md) | | [optional]
-**ProviderNetwork** | Pointer to [**NullableNestedProviderNetworkRequest**](NestedProviderNetworkRequest.md) | | [optional]
+**Circuit** | [**CircuitRequest**](CircuitRequest.md) | |
+**TermSide** | [**Termination1**](Termination1.md) | |
+**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional]
+**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [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]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewCircuitTerminationRequest
-`func NewCircuitTerminationRequest(circuit NestedCircuitRequest, termSide Termination, ) *CircuitTerminationRequest`
+`func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1, ) *CircuitTerminationRequest`
NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object
This constructor will assign default values to properties that have it defined,
@@ -38,60 +38,60 @@ but it doesn't guarantee that properties required by API are set
### GetCircuit
-`func (o *CircuitTerminationRequest) GetCircuit() NestedCircuitRequest`
+`func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest`
GetCircuit returns the Circuit field if non-nil, zero value otherwise.
### GetCircuitOk
-`func (o *CircuitTerminationRequest) GetCircuitOk() (*NestedCircuitRequest, bool)`
+`func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, 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 *CircuitTerminationRequest) SetCircuit(v NestedCircuitRequest)`
+`func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest)`
SetCircuit sets Circuit field to given value.
### GetTermSide
-`func (o *CircuitTerminationRequest) GetTermSide() Termination`
+`func (o *CircuitTerminationRequest) GetTermSide() Termination1`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination, bool)`
+`func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination1, 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 *CircuitTerminationRequest) SetTermSide(v Termination)`
+`func (o *CircuitTerminationRequest) SetTermSide(v Termination1)`
SetTermSide sets TermSide field to given value.
### GetSite
-`func (o *CircuitTerminationRequest) GetSite() NestedSiteRequest`
+`func (o *CircuitTerminationRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *CircuitTerminationRequest) GetSiteOk() (*NestedSiteRequest, bool)`
+`func (o *CircuitTerminationRequest) 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 *CircuitTerminationRequest) SetSite(v NestedSiteRequest)`
+`func (o *CircuitTerminationRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -113,20 +113,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
### GetProviderNetwork
-`func (o *CircuitTerminationRequest) GetProviderNetwork() NestedProviderNetworkRequest`
+`func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest`
GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
### GetProviderNetworkOk
-`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*NestedProviderNetworkRequest, bool)`
+`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, 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 *CircuitTerminationRequest) SetProviderNetwork(v NestedProviderNetworkRequest)`
+`func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)`
SetProviderNetwork sets ProviderNetwork field to given value.
diff --git a/docs/CircuitType.md b/docs/CircuitType.md
index 2097798eb9..ea037618e0 100644
--- a/docs/CircuitType.md
+++ b/docs/CircuitType.md
@@ -15,13 +15,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**CircuitCount** | **int32** | | [readonly]
+**CircuitCount** | **int64** | | [readonly]
## Methods
### NewCircuitType
-`func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int32, ) *CircuitType`
+`func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType`
NewCircuitType instantiates a new CircuitType object
This constructor will assign default values to properties that have it defined,
@@ -298,20 +298,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetCircuitCount
-`func (o *CircuitType) GetCircuitCount() int32`
+`func (o *CircuitType) GetCircuitCount() int64`
GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise.
### GetCircuitCountOk
-`func (o *CircuitType) GetCircuitCountOk() (*int32, bool)`
+`func (o *CircuitType) 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 *CircuitType) SetCircuitCount(v int32)`
+`func (o *CircuitType) SetCircuitCount(v int64)`
SetCircuitCount sets CircuitCount field to given value.
diff --git a/docs/CircuitsAPI.md b/docs/CircuitsAPI.md
index cdcec7bdf6..c78529d9c6 100644
--- a/docs/CircuitsAPI.md
+++ b/docs/CircuitsAPI.md
@@ -79,11 +79,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -143,11 +143,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -209,11 +209,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewNestedCircuitRequest("Cid_example"), openapiclient.Termination("A"))} // []CircuitTerminationRequest |
+ circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -260,7 +260,7 @@ Name | Type | Description | Notes
## CircuitsCircuitTerminationsCreate
-> CircuitTermination CircuitsCircuitTerminationsCreate(ctx).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
+> CircuitTermination CircuitsCircuitTerminationsCreate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute()
@@ -275,15 +275,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), openapiclient.Termination("A")) // WritableCircuitTerminationRequest |
+ circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -304,7 +304,7 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTermination
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableCircuitTerminationRequest** | [**WritableCircuitTerminationRequest**](WritableCircuitTerminationRequest.md) | |
+ **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | |
### Return type
@@ -341,7 +341,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -394,7 +394,7 @@ Name | Type | Description | Notes
## CircuitsCircuitTerminationsList
-> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute()
+> 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()
@@ -410,12 +410,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
circuitId := []int32{int32(123)} // []int32 | Circuit (optional)
circuitIdN := []int32{int32(123)} // []int32 | Circuit (optional)
@@ -453,6 +455,7 @@ 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)
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)
@@ -464,6 +467,21 @@ func main() {
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)
q := "q_example" // string | Search (optional)
@@ -473,8 +491,8 @@ func main() {
siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional)
tag := []string{"Inner_example"} // []string | (optional)
tagN := []string{"Inner_example"} // []string | (optional)
- termSide := "termSide_example" // string | (optional)
- termSideN := "termSideN_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)
@@ -497,7 +515,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute()
+ 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()
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)
@@ -518,8 +536,10 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTermination
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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 |
@@ -557,6 +577,7 @@ 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** | |
**modifiedByRequest** | **string** | |
**occupied** | **bool** | |
**offset** | **int32** | The initial index from which to return the results. |
@@ -568,6 +589,21 @@ Name | Type | Description | Notes
**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 |
@@ -577,8 +613,8 @@ Name | Type | Description | Notes
**siteIdN** | **[]int32** | Site (ID) |
**tag** | **[]string** | |
**tagN** | **[]string** | |
- **termSide** | **string** | |
- **termSideN** | **string** | |
+ **termSide** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z |
+ **termSideN** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z |
**updatedByRequest** | **string** | |
**upstreamSpeed** | **[]int32** | |
**upstreamSpeedEmpty** | **bool** | |
@@ -619,7 +655,7 @@ Name | Type | Description | Notes
## CircuitsCircuitTerminationsPartialUpdate
-> CircuitTermination CircuitsCircuitTerminationsPartialUpdate(ctx, id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute()
+> CircuitTermination CircuitsCircuitTerminationsPartialUpdate(ctx, id).PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest).Execute()
@@ -634,16 +670,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this circuit termination.
- patchedWritableCircuitTerminationRequest := *openapiclient.NewPatchedWritableCircuitTerminationRequest() // PatchedWritableCircuitTerminationRequest | (optional)
+ patchedCircuitTerminationRequest := *openapiclient.NewPatchedCircuitTerminationRequest() // PatchedCircuitTerminationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).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)
@@ -669,7 +705,7 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTermination
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableCircuitTerminationRequest** | [**PatchedWritableCircuitTerminationRequest**](PatchedWritableCircuitTerminationRequest.md) | |
+ **patchedCircuitTerminationRequest** | [**PatchedCircuitTerminationRequest**](PatchedCircuitTerminationRequest.md) | |
### Return type
@@ -706,7 +742,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -776,7 +812,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -831,7 +867,7 @@ Name | Type | Description | Notes
## CircuitsCircuitTerminationsUpdate
-> CircuitTermination CircuitsCircuitTerminationsUpdate(ctx, id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
+> CircuitTermination CircuitsCircuitTerminationsUpdate(ctx, id).CircuitTerminationRequest(circuitTerminationRequest).Execute()
@@ -846,16 +882,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this circuit termination.
- writableCircuitTerminationRequest := *openapiclient.NewWritableCircuitTerminationRequest(int32(123), openapiclient.Termination("A")) // WritableCircuitTerminationRequest |
+ circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).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)
@@ -881,7 +917,7 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTermination
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableCircuitTerminationRequest** | [**WritableCircuitTerminationRequest**](WritableCircuitTerminationRequest.md) | |
+ **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | |
### Return type
@@ -918,7 +954,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -982,7 +1018,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1048,7 +1084,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1114,7 +1150,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1180,7 +1216,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1249,7 +1285,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1461,7 +1497,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1533,7 +1569,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1603,7 +1639,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1675,11 +1711,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1739,11 +1775,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1805,11 +1841,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), *openapiclient.NewNestedCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest |
+ circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1871,11 +1907,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", int32(123), int32(123)) // WritableCircuitRequest |
+ writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1937,7 +1973,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1990,7 +2026,7 @@ Name | Type | Description | Notes
## CircuitsCircuitsList
-> PaginatedCircuitList CircuitsCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -2006,7 +2042,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2080,6 +2116,8 @@ func main() {
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)
@@ -2111,6 +2149,8 @@ func main() {
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)
@@ -2118,6 +2158,8 @@ func main() {
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)
@@ -2126,7 +2168,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -2217,6 +2259,8 @@ Name | Type | Description | Notes
**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) |
@@ -2248,6 +2292,8 @@ Name | Type | Description | Notes
**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** | |
@@ -2255,6 +2301,8 @@ Name | Type | Description | Notes
**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) |
@@ -2296,7 +2344,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2368,7 +2416,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2438,12 +2486,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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", int32(123), int32(123)) // WritableCircuitRequest |
+ writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2510,11 +2558,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2574,11 +2622,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2640,11 +2688,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest |
+ providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2691,7 +2739,7 @@ Name | Type | Description | Notes
## CircuitsProviderAccountsCreate
-> ProviderAccount CircuitsProviderAccountsCreate(ctx).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+> ProviderAccount CircuitsProviderAccountsCreate(ctx).ProviderAccountRequest(providerAccountRequest).Execute()
@@ -2706,15 +2754,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
+ providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).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)
@@ -2735,7 +2783,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderAccountsCr
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderAccountRequest** | [**WritableProviderAccountRequest**](WritableProviderAccountRequest.md) | |
+ **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | |
### Return type
@@ -2772,7 +2820,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2841,7 +2889,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3024,7 +3072,7 @@ Name | Type | Description | Notes
## CircuitsProviderAccountsPartialUpdate
-> ProviderAccount CircuitsProviderAccountsPartialUpdate(ctx, id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute()
+> ProviderAccount CircuitsProviderAccountsPartialUpdate(ctx, id).PatchedProviderAccountRequest(patchedProviderAccountRequest).Execute()
@@ -3039,16 +3087,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider account.
- patchedWritableProviderAccountRequest := *openapiclient.NewPatchedWritableProviderAccountRequest() // PatchedWritableProviderAccountRequest | (optional)
+ patchedProviderAccountRequest := *openapiclient.NewPatchedProviderAccountRequest() // PatchedProviderAccountRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).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)
@@ -3074,7 +3122,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderAccountsPa
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableProviderAccountRequest** | [**PatchedWritableProviderAccountRequest**](PatchedWritableProviderAccountRequest.md) | |
+ **patchedProviderAccountRequest** | [**PatchedProviderAccountRequest**](PatchedProviderAccountRequest.md) | |
### Return type
@@ -3111,7 +3159,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3166,7 +3214,7 @@ Name | Type | Description | Notes
## CircuitsProviderAccountsUpdate
-> ProviderAccount CircuitsProviderAccountsUpdate(ctx, id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+> ProviderAccount CircuitsProviderAccountsUpdate(ctx, id).ProviderAccountRequest(providerAccountRequest).Execute()
@@ -3181,16 +3229,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider account.
- writableProviderAccountRequest := *openapiclient.NewWritableProviderAccountRequest(int32(123), "Account_example") // WritableProviderAccountRequest |
+ providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).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)
@@ -3216,7 +3264,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderAccountsUp
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderAccountRequest** | [**WritableProviderAccountRequest**](WritableProviderAccountRequest.md) | |
+ **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | |
### Return type
@@ -3253,11 +3301,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3317,11 +3365,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3383,11 +3431,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewNestedProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest |
+ providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3434,7 +3482,7 @@ Name | Type | Description | Notes
## CircuitsProviderNetworksCreate
-> ProviderNetwork CircuitsProviderNetworksCreate(ctx).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+> ProviderNetwork CircuitsProviderNetworksCreate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute()
@@ -3449,15 +3497,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
+ providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).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)
@@ -3478,7 +3526,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderNetworksCr
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderNetworkRequest** | [**WritableProviderNetworkRequest**](WritableProviderNetworkRequest.md) | |
+ **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | |
### Return type
@@ -3515,7 +3563,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3584,7 +3632,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3767,7 +3815,7 @@ Name | Type | Description | Notes
## CircuitsProviderNetworksPartialUpdate
-> ProviderNetwork CircuitsProviderNetworksPartialUpdate(ctx, id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute()
+> ProviderNetwork CircuitsProviderNetworksPartialUpdate(ctx, id).PatchedProviderNetworkRequest(patchedProviderNetworkRequest).Execute()
@@ -3782,16 +3830,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider network.
- patchedWritableProviderNetworkRequest := *openapiclient.NewPatchedWritableProviderNetworkRequest() // PatchedWritableProviderNetworkRequest | (optional)
+ patchedProviderNetworkRequest := *openapiclient.NewPatchedProviderNetworkRequest() // PatchedProviderNetworkRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).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)
@@ -3817,7 +3865,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderNetworksPa
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableProviderNetworkRequest** | [**PatchedWritableProviderNetworkRequest**](PatchedWritableProviderNetworkRequest.md) | |
+ **patchedProviderNetworkRequest** | [**PatchedProviderNetworkRequest**](PatchedProviderNetworkRequest.md) | |
### Return type
@@ -3854,7 +3902,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3909,7 +3957,7 @@ Name | Type | Description | Notes
## CircuitsProviderNetworksUpdate
-> ProviderNetwork CircuitsProviderNetworksUpdate(ctx, id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+> ProviderNetwork CircuitsProviderNetworksUpdate(ctx, id).ProviderNetworkRequest(providerNetworkRequest).Execute()
@@ -3924,16 +3972,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider network.
- writableProviderNetworkRequest := *openapiclient.NewWritableProviderNetworkRequest(int32(123), "Name_example") // WritableProviderNetworkRequest |
+ providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).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)
@@ -3959,7 +4007,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderNetworksUp
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderNetworkRequest** | [**WritableProviderNetworkRequest**](WritableProviderNetworkRequest.md) | |
+ **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | |
### Return type
@@ -3996,7 +4044,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4060,7 +4108,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4126,7 +4174,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4177,7 +4225,7 @@ Name | Type | Description | Notes
## CircuitsProvidersCreate
-> Provider CircuitsProvidersCreate(ctx).WritableProviderRequest(writableProviderRequest).Execute()
+> Provider CircuitsProvidersCreate(ctx).ProviderRequest(providerRequest).Execute()
@@ -4192,15 +4240,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
+ providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).WritableProviderRequest(writableProviderRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).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)
@@ -4221,7 +4269,7 @@ Other parameters are passed through a pointer to a apiCircuitsProvidersCreateReq
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderRequest** | [**WritableProviderRequest**](WritableProviderRequest.md) | |
+ **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | |
### Return type
@@ -4258,7 +4306,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4327,7 +4375,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4546,7 +4594,7 @@ Name | Type | Description | Notes
## CircuitsProvidersPartialUpdate
-> Provider CircuitsProvidersPartialUpdate(ctx, id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute()
+> Provider CircuitsProvidersPartialUpdate(ctx, id).PatchedProviderRequest(patchedProviderRequest).Execute()
@@ -4561,16 +4609,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider.
- patchedWritableProviderRequest := *openapiclient.NewPatchedWritableProviderRequest() // PatchedWritableProviderRequest | (optional)
+ patchedProviderRequest := *openapiclient.NewPatchedProviderRequest() // PatchedProviderRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedProviderRequest(patchedProviderRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4596,7 +4644,7 @@ Other parameters are passed through a pointer to a apiCircuitsProvidersPartialUp
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableProviderRequest** | [**PatchedWritableProviderRequest**](PatchedWritableProviderRequest.md) | |
+ **patchedProviderRequest** | [**PatchedProviderRequest**](PatchedProviderRequest.md) | |
### Return type
@@ -4633,7 +4681,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4688,7 +4736,7 @@ Name | Type | Description | Notes
## CircuitsProvidersUpdate
-> Provider CircuitsProvidersUpdate(ctx, id).WritableProviderRequest(writableProviderRequest).Execute()
+> Provider CircuitsProvidersUpdate(ctx, id).ProviderRequest(providerRequest).Execute()
@@ -4703,16 +4751,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this provider.
- writableProviderRequest := *openapiclient.NewWritableProviderRequest("Name_example", "Slug_example", []int32{int32(123)}) // WritableProviderRequest |
+ providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).WritableProviderRequest(writableProviderRequest).Execute()
+ resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).ProviderRequest(providerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4738,7 +4786,7 @@ Other parameters are passed through a pointer to a apiCircuitsProvidersUpdateReq
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableProviderRequest** | [**WritableProviderRequest**](WritableProviderRequest.md) | |
+ **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | |
### Return type
diff --git a/docs/RackOuterUnitLabel.md b/docs/CircuitsCircuitTerminationsListCableEndParameter.md
similarity index 65%
rename from docs/RackOuterUnitLabel.md
rename to docs/CircuitsCircuitTerminationsListCableEndParameter.md
index 760faedf16..32e38fbd92 100644
--- a/docs/RackOuterUnitLabel.md
+++ b/docs/CircuitsCircuitTerminationsListCableEndParameter.md
@@ -1,11 +1,11 @@
-# RackOuterUnitLabel
+# CircuitsCircuitTerminationsListCableEndParameter
## Enum
-* `MILLIMETERS` (value: `"Millimeters"`)
+* `A` (value: `"A"`)
-* `INCHES` (value: `"Inches"`)
+* `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/Cluster.md b/docs/Cluster.md
index dca7295755..53f6ac8f25 100644
--- a/docs/Cluster.md
+++ b/docs/Cluster.md
@@ -8,25 +8,14 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Type** | [**NestedClusterType**](NestedClusterType.md) | |
-**Group** | Pointer to [**NullableNestedClusterGroup**](NestedClusterGroup.md) | | [optional]
-**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Site** | Pointer to [**NullableNestedSite**](NestedSite.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]
-**DeviceCount** | **int32** | | [readonly]
-**VirtualmachineCount** | **int32** | | [readonly]
+**VirtualmachineCount** | **int64** | | [readonly]
## Methods
### NewCluster
-`func NewCluster(id int32, url string, display string, name string, type_ NestedClusterType, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32, ) *Cluster`
+`func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *Cluster`
NewCluster instantiates a new Cluster object
This constructor will assign default values to properties that have it defined,
@@ -121,156 +110,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetType
-
-`func (o *Cluster) GetType() NestedClusterType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *Cluster) GetTypeOk() (*NestedClusterType, 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 NestedClusterType)`
-
-SetType sets Type field to given value.
-
-
-### GetGroup
-
-`func (o *Cluster) GetGroup() NestedClusterGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *Cluster) GetGroupOk() (*NestedClusterGroup, 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 NestedClusterGroup)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Cluster) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Cluster) SetTenant(v NestedTenant)`
-
-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
-### GetSite
-
-`func (o *Cluster) GetSite() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *Cluster) GetSiteOk() (*NestedSite, 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 *Cluster) SetSite(v NestedSite)`
-
-SetSite sets Site field to given value.
-
-### HasSite
-
-`func (o *Cluster) HasSite() bool`
-
-HasSite returns a boolean if a field has been set.
-
-### SetSiteNil
-
-`func (o *Cluster) SetSiteNil(b bool)`
-
- SetSiteNil sets the value for Site to be an explicit nil
-
-### UnsetSite
-`func (o *Cluster) UnsetSite()`
-
-UnsetSite ensures that no value is present for Site, not even an explicit nil
### GetDescription
`func (o *Cluster) GetDescription() string`
@@ -296,177 +135,22 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
-
-GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
-
-### GetDeviceCountOk
-
-`func (o *Cluster) 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 *Cluster) SetDeviceCount(v int32)`
-
-SetDeviceCount sets DeviceCount field to given value.
-
-
### GetVirtualmachineCount
-`func (o *Cluster) GetVirtualmachineCount() int32`
+`func (o *Cluster) GetVirtualmachineCount() int64`
GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
### GetVirtualmachineCountOk
-`func (o *Cluster) GetVirtualmachineCountOk() (*int32, bool)`
+`func (o *Cluster) 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 *Cluster) SetVirtualmachineCount(v int32)`
+`func (o *Cluster) SetVirtualmachineCount(v int64)`
SetVirtualmachineCount sets VirtualmachineCount field to given value.
diff --git a/docs/ClusterGroup.md b/docs/ClusterGroup.md
index 82378cf62b..ce837f38ca 100644
--- a/docs/ClusterGroup.md
+++ b/docs/ClusterGroup.md
@@ -14,13 +14,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**ClusterCount** | **int32** | | [readonly]
+**ClusterCount** | **int64** | | [readonly]
## Methods
### NewClusterGroup
-`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int32, ) *ClusterGroup`
+`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup`
NewClusterGroup instantiates a new ClusterGroup object
This constructor will assign default values to properties that have it defined,
@@ -272,20 +272,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetClusterCount
-`func (o *ClusterGroup) GetClusterCount() int32`
+`func (o *ClusterGroup) GetClusterCount() int64`
GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise.
### GetClusterCountOk
-`func (o *ClusterGroup) GetClusterCountOk() (*int32, bool)`
+`func (o *ClusterGroup) 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 *ClusterGroup) SetClusterCount(v int32)`
+`func (o *ClusterGroup) SetClusterCount(v int64)`
SetClusterCount sets ClusterCount field to given value.
diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md
index cefc34a7bc..bfe754ce80 100644
--- a/docs/ClusterRequest.md
+++ b/docs/ClusterRequest.md
@@ -5,21 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Type** | [**NestedClusterTypeRequest**](NestedClusterTypeRequest.md) | |
-**Group** | Pointer to [**NullableNestedClusterGroupRequest**](NestedClusterGroupRequest.md) | | [optional]
-**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.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
### NewClusterRequest
-`func NewClusterRequest(name string, type_ NestedClusterTypeRequest, ) *ClusterRequest`
+`func NewClusterRequest(name string, ) *ClusterRequest`
NewClusterRequest instantiates a new ClusterRequest object
This constructor will assign default values to properties that have it defined,
@@ -54,156 +46,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetType
-
-`func (o *ClusterRequest) GetType() NestedClusterTypeRequest`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *ClusterRequest) GetTypeOk() (*NestedClusterTypeRequest, 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 NestedClusterTypeRequest)`
-
-SetType sets Type field to given value.
-
-
-### GetGroup
-
-`func (o *ClusterRequest) GetGroup() NestedClusterGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *ClusterRequest) GetGroupOk() (*NestedClusterGroupRequest, 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 NestedClusterGroupRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *ClusterRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *ClusterRequest) SetTenant(v NestedTenantRequest)`
-
-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
-### GetSite
-
-`func (o *ClusterRequest) GetSite() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *ClusterRequest) GetSiteOk() (*NestedSiteRequest, 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 *ClusterRequest) SetSite(v NestedSiteRequest)`
-
-SetSite sets Site field to given value.
-
-### HasSite
-
-`func (o *ClusterRequest) HasSite() bool`
-
-HasSite returns a boolean if a field has been set.
-
-### SetSiteNil
-
-`func (o *ClusterRequest) SetSiteNil(b bool)`
-
- SetSiteNil sets the value for Site to be an explicit nil
-
-### UnsetSite
-`func (o *ClusterRequest) UnsetSite()`
-
-UnsetSite ensures that no value is present for Site, not even an explicit nil
### GetDescription
`func (o *ClusterRequest) GetDescription() string`
@@ -229,81 +71,6 @@ 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
deleted file mode 100644
index 0753edae9e..0000000000
--- a/docs/ClusterStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 7a03fab9a0..0000000000
--- a/docs/ClusterStatusLabel.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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/ClusterType.md b/docs/ClusterType.md
index 389fdcfd4f..c759403edd 100644
--- a/docs/ClusterType.md
+++ b/docs/ClusterType.md
@@ -14,13 +14,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**ClusterCount** | **int32** | | [readonly]
+**ClusterCount** | **int64** | | [readonly]
## Methods
### NewClusterType
-`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int32, ) *ClusterType`
+`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType`
NewClusterType instantiates a new ClusterType object
This constructor will assign default values to properties that have it defined,
@@ -272,20 +272,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetClusterCount
-`func (o *ClusterType) GetClusterCount() int32`
+`func (o *ClusterType) GetClusterCount() int64`
GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise.
### GetClusterCountOk
-`func (o *ClusterType) GetClusterCountOk() (*int32, bool)`
+`func (o *ClusterType) 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 *ClusterType) SetClusterCount(v int32)`
+`func (o *ClusterType) SetClusterCount(v int64)`
SetClusterCount sets ClusterCount field to given value.
diff --git a/docs/ComponentNestedModule.md b/docs/ComponentNestedModule.md
deleted file mode 100644
index a9bf0c7b9d..0000000000
--- a/docs/ComponentNestedModule.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# ComponentNestedModule
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Device** | **int32** | |
-**ModuleBay** | [**ModuleNestedModuleBay**](ModuleNestedModuleBay.md) | | [readonly]
-
-## Methods
-
-### NewComponentNestedModule
-
-`func NewComponentNestedModule(id int32, url string, display string, device int32, moduleBay ModuleNestedModuleBay, ) *ComponentNestedModule`
-
-NewComponentNestedModule instantiates a new ComponentNestedModule object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewComponentNestedModuleWithDefaults
-
-`func NewComponentNestedModuleWithDefaults() *ComponentNestedModule`
-
-NewComponentNestedModuleWithDefaults instantiates a new ComponentNestedModule object
-This 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 *ComponentNestedModule) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *ComponentNestedModule) 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 *ComponentNestedModule) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *ComponentNestedModule) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *ComponentNestedModule) 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 *ComponentNestedModule) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *ComponentNestedModule) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *ComponentNestedModule) 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 *ComponentNestedModule) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetDevice
-
-`func (o *ComponentNestedModule) GetDevice() int32`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *ComponentNestedModule) GetDeviceOk() (*int32, 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 *ComponentNestedModule) SetDevice(v int32)`
-
-SetDevice sets Device field to given value.
-
-
-### GetModuleBay
-
-`func (o *ComponentNestedModule) GetModuleBay() ModuleNestedModuleBay`
-
-GetModuleBay returns the ModuleBay field if non-nil, zero value otherwise.
-
-### GetModuleBayOk
-
-`func (o *ComponentNestedModule) GetModuleBayOk() (*ModuleNestedModuleBay, bool)`
-
-GetModuleBayOk returns a tuple with the ModuleBay field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetModuleBay
-
-`func (o *ComponentNestedModule) SetModuleBay(v ModuleNestedModuleBay)`
-
-SetModuleBay sets ModuleBay 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/ComponentNestedModuleRequest.md b/docs/ComponentNestedModuleRequest.md
deleted file mode 100644
index bfdb626eb8..0000000000
--- a/docs/ComponentNestedModuleRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# ComponentNestedModuleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Device** | **int32** | |
-
-## Methods
-
-### NewComponentNestedModuleRequest
-
-`func NewComponentNestedModuleRequest(device int32, ) *ComponentNestedModuleRequest`
-
-NewComponentNestedModuleRequest instantiates a new ComponentNestedModuleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewComponentNestedModuleRequestWithDefaults
-
-`func NewComponentNestedModuleRequestWithDefaults() *ComponentNestedModuleRequest`
-
-NewComponentNestedModuleRequestWithDefaults instantiates a new ComponentNestedModuleRequest object
-This 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 *ComponentNestedModuleRequest) GetDevice() int32`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *ComponentNestedModuleRequest) GetDeviceOk() (*int32, 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 *ComponentNestedModuleRequest) SetDevice(v int32)`
-
-SetDevice sets Device 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/ConfigContext.md b/docs/ConfigContext.md
index e00c9a461b..3d27ad7edd 100644
--- a/docs/ConfigContext.md
+++ b/docs/ConfigContext.md
@@ -11,22 +11,22 @@ Name | Type | Description | Notes
**Weight** | Pointer to **int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**IsActive** | Pointer to **bool** | | [optional]
-**Regions** | Pointer to **[]int32** | | [optional]
-**SiteGroups** | Pointer to **[]int32** | | [optional]
-**Sites** | Pointer to **[]int32** | | [optional]
-**Locations** | Pointer to **[]int32** | | [optional]
-**DeviceTypes** | Pointer to **[]int32** | | [optional]
-**Roles** | Pointer to **[]int32** | | [optional]
-**Platforms** | Pointer to **[]int32** | | [optional]
-**ClusterTypes** | Pointer to **[]int32** | | [optional]
-**ClusterGroups** | Pointer to **[]int32** | | [optional]
-**Clusters** | Pointer to **[]int32** | | [optional]
-**TenantGroups** | Pointer to **[]int32** | | [optional]
-**Tenants** | Pointer to **[]int32** | | [optional]
+**Regions** | Pointer to [**[]Region**](Region.md) | | [optional]
+**SiteGroups** | Pointer to [**[]SiteGroup**](SiteGroup.md) | | [optional]
+**Sites** | Pointer to [**[]Site**](Site.md) | | [optional]
+**Locations** | Pointer to [**[]Location**](Location.md) | | [optional]
+**DeviceTypes** | Pointer to [**[]DeviceType**](DeviceType.md) | | [optional]
+**Roles** | Pointer to [**[]DeviceRole**](DeviceRole.md) | | [optional]
+**Platforms** | Pointer to [**[]Platform**](Platform.md) | | [optional]
+**ClusterTypes** | Pointer to [**[]ClusterType**](ClusterType.md) | | [optional]
+**ClusterGroups** | Pointer to [**[]ClusterGroup**](ClusterGroup.md) | | [optional]
+**Clusters** | Pointer to [**[]Cluster**](Cluster.md) | | [optional]
+**TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional]
+**Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
-**DataSource** | Pointer to [**NestedDataSource**](NestedDataSource.md) | | [optional]
+**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional]
**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly]
-**DataFile** | [**NestedDataFile**](NestedDataFile.md) | | [readonly]
+**DataFile** | [**DataFile**](DataFile.md) | | [readonly]
**DataSynced** | **NullableTime** | | [readonly]
**Data** | **interface{}** | |
**Created** | **NullableTime** | | [readonly]
@@ -36,7 +36,7 @@ Name | Type | Description | Notes
### NewConfigContext
-`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile NestedDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext`
+`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext`
NewConfigContext instantiates a new ConfigContext object
This constructor will assign default values to properties that have it defined,
@@ -208,20 +208,20 @@ HasIsActive returns a boolean if a field has been set.
### GetRegions
-`func (o *ConfigContext) GetRegions() []int32`
+`func (o *ConfigContext) GetRegions() []Region`
GetRegions returns the Regions field if non-nil, zero value otherwise.
### GetRegionsOk
-`func (o *ConfigContext) GetRegionsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetRegionsOk() (*[]Region, bool)`
GetRegionsOk returns a tuple with the Regions field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRegions
-`func (o *ConfigContext) SetRegions(v []int32)`
+`func (o *ConfigContext) SetRegions(v []Region)`
SetRegions sets Regions field to given value.
@@ -233,20 +233,20 @@ HasRegions returns a boolean if a field has been set.
### GetSiteGroups
-`func (o *ConfigContext) GetSiteGroups() []int32`
+`func (o *ConfigContext) GetSiteGroups() []SiteGroup`
GetSiteGroups returns the SiteGroups field if non-nil, zero value otherwise.
### GetSiteGroupsOk
-`func (o *ConfigContext) GetSiteGroupsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetSiteGroupsOk() (*[]SiteGroup, bool)`
GetSiteGroupsOk returns a tuple with the SiteGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSiteGroups
-`func (o *ConfigContext) SetSiteGroups(v []int32)`
+`func (o *ConfigContext) SetSiteGroups(v []SiteGroup)`
SetSiteGroups sets SiteGroups field to given value.
@@ -258,20 +258,20 @@ HasSiteGroups returns a boolean if a field has been set.
### GetSites
-`func (o *ConfigContext) GetSites() []int32`
+`func (o *ConfigContext) GetSites() []Site`
GetSites returns the Sites field if non-nil, zero value otherwise.
### GetSitesOk
-`func (o *ConfigContext) GetSitesOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetSitesOk() (*[]Site, bool)`
GetSitesOk returns a tuple with the Sites field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSites
-`func (o *ConfigContext) SetSites(v []int32)`
+`func (o *ConfigContext) SetSites(v []Site)`
SetSites sets Sites field to given value.
@@ -283,20 +283,20 @@ HasSites returns a boolean if a field has been set.
### GetLocations
-`func (o *ConfigContext) GetLocations() []int32`
+`func (o *ConfigContext) GetLocations() []Location`
GetLocations returns the Locations field if non-nil, zero value otherwise.
### GetLocationsOk
-`func (o *ConfigContext) GetLocationsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetLocationsOk() (*[]Location, bool)`
GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocations
-`func (o *ConfigContext) SetLocations(v []int32)`
+`func (o *ConfigContext) SetLocations(v []Location)`
SetLocations sets Locations field to given value.
@@ -308,20 +308,20 @@ HasLocations returns a boolean if a field has been set.
### GetDeviceTypes
-`func (o *ConfigContext) GetDeviceTypes() []int32`
+`func (o *ConfigContext) GetDeviceTypes() []DeviceType`
GetDeviceTypes returns the DeviceTypes field if non-nil, zero value otherwise.
### GetDeviceTypesOk
-`func (o *ConfigContext) GetDeviceTypesOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetDeviceTypesOk() (*[]DeviceType, bool)`
GetDeviceTypesOk returns a tuple with the DeviceTypes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDeviceTypes
-`func (o *ConfigContext) SetDeviceTypes(v []int32)`
+`func (o *ConfigContext) SetDeviceTypes(v []DeviceType)`
SetDeviceTypes sets DeviceTypes field to given value.
@@ -333,20 +333,20 @@ HasDeviceTypes returns a boolean if a field has been set.
### GetRoles
-`func (o *ConfigContext) GetRoles() []int32`
+`func (o *ConfigContext) GetRoles() []DeviceRole`
GetRoles returns the Roles field if non-nil, zero value otherwise.
### GetRolesOk
-`func (o *ConfigContext) GetRolesOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetRolesOk() (*[]DeviceRole, bool)`
GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRoles
-`func (o *ConfigContext) SetRoles(v []int32)`
+`func (o *ConfigContext) SetRoles(v []DeviceRole)`
SetRoles sets Roles field to given value.
@@ -358,20 +358,20 @@ HasRoles returns a boolean if a field has been set.
### GetPlatforms
-`func (o *ConfigContext) GetPlatforms() []int32`
+`func (o *ConfigContext) GetPlatforms() []Platform`
GetPlatforms returns the Platforms field if non-nil, zero value otherwise.
### GetPlatformsOk
-`func (o *ConfigContext) GetPlatformsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetPlatformsOk() (*[]Platform, bool)`
GetPlatformsOk returns a tuple with the Platforms field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPlatforms
-`func (o *ConfigContext) SetPlatforms(v []int32)`
+`func (o *ConfigContext) SetPlatforms(v []Platform)`
SetPlatforms sets Platforms field to given value.
@@ -383,20 +383,20 @@ HasPlatforms returns a boolean if a field has been set.
### GetClusterTypes
-`func (o *ConfigContext) GetClusterTypes() []int32`
+`func (o *ConfigContext) GetClusterTypes() []ClusterType`
GetClusterTypes returns the ClusterTypes field if non-nil, zero value otherwise.
### GetClusterTypesOk
-`func (o *ConfigContext) GetClusterTypesOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetClusterTypesOk() (*[]ClusterType, bool)`
GetClusterTypesOk returns a tuple with the ClusterTypes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusterTypes
-`func (o *ConfigContext) SetClusterTypes(v []int32)`
+`func (o *ConfigContext) SetClusterTypes(v []ClusterType)`
SetClusterTypes sets ClusterTypes field to given value.
@@ -408,20 +408,20 @@ HasClusterTypes returns a boolean if a field has been set.
### GetClusterGroups
-`func (o *ConfigContext) GetClusterGroups() []int32`
+`func (o *ConfigContext) GetClusterGroups() []ClusterGroup`
GetClusterGroups returns the ClusterGroups field if non-nil, zero value otherwise.
### GetClusterGroupsOk
-`func (o *ConfigContext) GetClusterGroupsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetClusterGroupsOk() (*[]ClusterGroup, bool)`
GetClusterGroupsOk returns a tuple with the ClusterGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusterGroups
-`func (o *ConfigContext) SetClusterGroups(v []int32)`
+`func (o *ConfigContext) SetClusterGroups(v []ClusterGroup)`
SetClusterGroups sets ClusterGroups field to given value.
@@ -433,20 +433,20 @@ HasClusterGroups returns a boolean if a field has been set.
### GetClusters
-`func (o *ConfigContext) GetClusters() []int32`
+`func (o *ConfigContext) GetClusters() []Cluster`
GetClusters returns the Clusters field if non-nil, zero value otherwise.
### GetClustersOk
-`func (o *ConfigContext) GetClustersOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetClustersOk() (*[]Cluster, bool)`
GetClustersOk returns a tuple with the Clusters field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusters
-`func (o *ConfigContext) SetClusters(v []int32)`
+`func (o *ConfigContext) SetClusters(v []Cluster)`
SetClusters sets Clusters field to given value.
@@ -458,20 +458,20 @@ HasClusters returns a boolean if a field has been set.
### GetTenantGroups
-`func (o *ConfigContext) GetTenantGroups() []int32`
+`func (o *ConfigContext) GetTenantGroups() []TenantGroup`
GetTenantGroups returns the TenantGroups field if non-nil, zero value otherwise.
### GetTenantGroupsOk
-`func (o *ConfigContext) GetTenantGroupsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetTenantGroupsOk() (*[]TenantGroup, bool)`
GetTenantGroupsOk returns a tuple with the TenantGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTenantGroups
-`func (o *ConfigContext) SetTenantGroups(v []int32)`
+`func (o *ConfigContext) SetTenantGroups(v []TenantGroup)`
SetTenantGroups sets TenantGroups field to given value.
@@ -483,20 +483,20 @@ HasTenantGroups returns a boolean if a field has been set.
### GetTenants
-`func (o *ConfigContext) GetTenants() []int32`
+`func (o *ConfigContext) GetTenants() []Tenant`
GetTenants returns the Tenants field if non-nil, zero value otherwise.
### GetTenantsOk
-`func (o *ConfigContext) GetTenantsOk() (*[]int32, bool)`
+`func (o *ConfigContext) GetTenantsOk() (*[]Tenant, bool)`
GetTenantsOk returns a tuple with the Tenants field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTenants
-`func (o *ConfigContext) SetTenants(v []int32)`
+`func (o *ConfigContext) SetTenants(v []Tenant)`
SetTenants sets Tenants field to given value.
@@ -533,20 +533,20 @@ HasTags returns a boolean if a field has been set.
### GetDataSource
-`func (o *ConfigContext) GetDataSource() NestedDataSource`
+`func (o *ConfigContext) GetDataSource() DataSource`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *ConfigContext) GetDataSourceOk() (*NestedDataSource, bool)`
+`func (o *ConfigContext) GetDataSourceOk() (*DataSource, 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 NestedDataSource)`
+`func (o *ConfigContext) SetDataSource(v DataSource)`
SetDataSource sets DataSource field to given value.
@@ -578,20 +578,20 @@ SetDataPath sets DataPath field to given value.
### GetDataFile
-`func (o *ConfigContext) GetDataFile() NestedDataFile`
+`func (o *ConfigContext) GetDataFile() DataFile`
GetDataFile returns the DataFile field if non-nil, zero value otherwise.
### GetDataFileOk
-`func (o *ConfigContext) GetDataFileOk() (*NestedDataFile, bool)`
+`func (o *ConfigContext) GetDataFileOk() (*DataFile, 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 NestedDataFile)`
+`func (o *ConfigContext) SetDataFile(v DataFile)`
SetDataFile sets DataFile field to given value.
diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md
index 947b1c73f0..298074ebfa 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 [**NestedDataSourceRequest**](NestedDataSourceRequest.md) | | [optional]
+**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional]
**Data** | **interface{}** | |
## Methods
@@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set.
### GetDataSource
-`func (o *ConfigContextRequest) GetDataSource() NestedDataSourceRequest`
+`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *ConfigContextRequest) GetDataSourceOk() (*NestedDataSourceRequest, bool)`
+`func (o *ConfigContextRequest) 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 *ConfigContextRequest) SetDataSource(v NestedDataSourceRequest)`
+`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)`
SetDataSource sets DataSource field to given value.
diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md
index 13fb2cde45..e87b659909 100644
--- a/docs/ConfigTemplate.md
+++ b/docs/ConfigTemplate.md
@@ -9,21 +9,12 @@ Name | Type | Description | Notes
**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 [**NestedDataSource**](NestedDataSource.md) | | [optional]
-**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly]
-**DataFile** | Pointer to [**NestedDataFile**](NestedDataFile.md) | | [optional]
-**DataSynced** | **NullableTime** | | [readonly]
-**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewConfigTemplate
-`func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate`
+`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate`
NewConfigTemplate instantiates a new ConfigTemplate object
This constructor will assign default values to properties that have it defined,
@@ -143,246 +134,6 @@ 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() NestedDataSource`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *ConfigTemplate) GetDataSourceOk() (*NestedDataSource, 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 NestedDataSource)`
-
-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() NestedDataFile`
-
-GetDataFile returns the DataFile field if non-nil, zero value otherwise.
-
-### GetDataFileOk
-
-`func (o *ConfigTemplate) GetDataFileOk() (*NestedDataFile, 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 NestedDataFile)`
-
-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.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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 0795139434..2c1540c0d7 100644
--- a/docs/ConfigTemplateRequest.md
+++ b/docs/ConfigTemplateRequest.md
@@ -6,16 +6,12 @@ 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 [**NestedDataSourceRequest**](NestedDataSourceRequest.md) | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
## Methods
### NewConfigTemplateRequest
-`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest`
+`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest`
NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -75,111 +71,6 @@ 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() NestedDataSourceRequest`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *ConfigTemplateRequest) GetDataSourceOk() (*NestedDataSourceRequest, 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 NestedDataSourceRequest)`
-
-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 a549df3482..165ccf7784 100644
--- a/docs/ConsolePort.md
+++ b/docs/ConsolePort.md
@@ -7,15 +7,15 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**Device** | [**Device**](Device.md) | |
+**Module** | Pointer to [**NullableModule**](Module.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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
### NewConsolePort
-`func NewConsolePort(id int32, url string, display string, device NestedDevice, name string, cable NullableNestedCable, 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 Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort`
NewConsolePort instantiates a new ConsolePort object
This constructor will assign default values to properties that have it defined,
@@ -109,40 +109,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *ConsolePort) GetDevice() NestedDevice`
+`func (o *ConsolePort) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ConsolePort) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *ConsolePort) 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 *ConsolePort) SetDevice(v NestedDevice)`
+`func (o *ConsolePort) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *ConsolePort) GetModule() ComponentNestedModule`
+`func (o *ConsolePort) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *ConsolePort) GetModuleOk() (*ComponentNestedModule, bool)`
+`func (o *ConsolePort) 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 *ConsolePort) SetModule(v ComponentNestedModule)`
+`func (o *ConsolePort) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -319,20 +319,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *ConsolePort) GetCable() NestedCable`
+`func (o *ConsolePort) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *ConsolePort) GetCableOk() (*NestedCable, bool)`
+`func (o *ConsolePort) 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 *ConsolePort) SetCable(v NestedCable)`
+`func (o *ConsolePort) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md
index e81f18aa0c..3c9fe81767 100644
--- a/docs/ConsolePortRequest.md
+++ b/docs/ConsolePortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewConsolePortRequest
-`func NewConsolePortRequest(device NestedDeviceRequest, name string, ) *ConsolePortRequest`
+`func NewConsolePortRequest(device DeviceRequest, 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() NestedDeviceRequest`
+`func (o *ConsolePortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ConsolePortRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *ConsolePortRequest) 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 *ConsolePortRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *ConsolePortRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *ConsolePortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *ConsolePortRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`func (o *ConsolePortRequest) 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 *ConsolePortRequest) SetModule(v ComponentNestedModuleRequest)`
+`func (o *ConsolePortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md
index cbef116fc6..d37560677d 100644
--- a/docs/ConsolePortTemplate.md
+++ b/docs/ConsolePortTemplate.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
+**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 [**ConsolePortType**](ConsolePortType.md) | | [optional]
@@ -97,20 +97,20 @@ SetDisplay sets Display field to given value.
### GetDeviceType
-`func (o *ConsolePortTemplate) GetDeviceType() NestedDeviceType`
+`func (o *ConsolePortTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *ConsolePortTemplate) 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 *ConsolePortTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)`
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() NestedModuleType`
+`func (o *ConsolePortTemplate) GetModuleType() ModuleType`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *ConsolePortTemplate) GetModuleTypeOk() (*NestedModuleType, bool)`
+`func (o *ConsolePortTemplate) 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 *ConsolePortTemplate) SetModuleType(v NestedModuleType)`
+`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md
index f67366e354..bdd1627ea0 100644
--- a/docs/ConsolePortTemplateRequest.md
+++ b/docs/ConsolePortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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() NestedDeviceTypeRequest`
+`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *ConsolePortTemplateRequest) 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 *ConsolePortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedModuleTypeRequest`
+`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, bool)`
+`func (o *ConsolePortTemplateRequest) 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 *ConsolePortTemplateRequest) SetModuleType(v NestedModuleTypeRequest)`
+`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/ConsoleServerPort.md b/docs/ConsoleServerPort.md
index b9864ae243..7686dfe90a 100644
--- a/docs/ConsoleServerPort.md
+++ b/docs/ConsoleServerPort.md
@@ -7,15 +7,15 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**Device** | [**Device**](Device.md) | |
+**Module** | Pointer to [**NullableModule**](Module.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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
### NewConsoleServerPort
-`func NewConsoleServerPort(id int32, url string, display string, device NestedDevice, name string, cable NullableNestedCable, 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 Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort`
NewConsoleServerPort instantiates a new ConsoleServerPort object
This constructor will assign default values to properties that have it defined,
@@ -109,40 +109,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *ConsoleServerPort) GetDevice() NestedDevice`
+`func (o *ConsoleServerPort) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ConsoleServerPort) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *ConsoleServerPort) 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 *ConsoleServerPort) SetDevice(v NestedDevice)`
+`func (o *ConsoleServerPort) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *ConsoleServerPort) GetModule() ComponentNestedModule`
+`func (o *ConsoleServerPort) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *ConsoleServerPort) GetModuleOk() (*ComponentNestedModule, bool)`
+`func (o *ConsoleServerPort) 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 *ConsoleServerPort) SetModule(v ComponentNestedModule)`
+`func (o *ConsoleServerPort) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -319,20 +319,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *ConsoleServerPort) GetCable() NestedCable`
+`func (o *ConsoleServerPort) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *ConsoleServerPort) GetCableOk() (*NestedCable, bool)`
+`func (o *ConsoleServerPort) 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 *ConsoleServerPort) SetCable(v NestedCable)`
+`func (o *ConsoleServerPort) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md
index 21560d0a85..995610c634 100644
--- a/docs/ConsoleServerPortRequest.md
+++ b/docs/ConsoleServerPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewConsoleServerPortRequest
-`func NewConsoleServerPortRequest(device NestedDeviceRequest, name string, ) *ConsoleServerPortRequest`
+`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,
@@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *ConsoleServerPortRequest) GetDevice() NestedDeviceRequest`
+`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ConsoleServerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`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 NestedDeviceRequest)`
+`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *ConsoleServerPortRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *ConsoleServerPortRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`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 ComponentNestedModuleRequest)`
+`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md
index c6a41c87ad..dfc96440fd 100644
--- a/docs/ConsoleServerPortTemplate.md
+++ b/docs/ConsoleServerPortTemplate.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
+**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 [**ConsolePortType**](ConsolePortType.md) | | [optional]
@@ -97,20 +97,20 @@ SetDisplay sets Display field to given value.
### GetDeviceType
-`func (o *ConsoleServerPortTemplate) GetDeviceType() NestedDeviceType`
+`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *ConsoleServerPortTemplate) 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 *ConsoleServerPortTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)`
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() NestedModuleType`
+`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*NestedModuleType, bool)`
+`func (o *ConsoleServerPortTemplate) 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 *ConsoleServerPortTemplate) SetModuleType(v NestedModuleType)`
+`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md
index f8c1fdec54..6c677fcc53 100644
--- a/docs/ConsoleServerPortTemplateRequest.md
+++ b/docs/ConsoleServerPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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() NestedDeviceTypeRequest`
+`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *ConsoleServerPortTemplateRequest) 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 *ConsoleServerPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedModuleTypeRequest`
+`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, bool)`
+`func (o *ConsoleServerPortTemplateRequest) 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 *ConsoleServerPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest)`
+`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/Contact.md b/docs/Contact.md
index 842ca6b546..d3701de383 100644
--- a/docs/Contact.md
+++ b/docs/Contact.md
@@ -7,25 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Group** | Pointer to [**NullableNestedContactGroup**](NestedContactGroup.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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewContact
-`func NewContact(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *Contact`
+`func NewContact(id int32, url string, display string, name string, ) *Contact`
NewContact instantiates a new Contact object
This constructor will assign default values to properties that have it defined,
@@ -100,41 +89,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetGroup
-
-`func (o *Contact) GetGroup() NestedContactGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *Contact) GetGroupOk() (*NestedContactGroup, 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 NestedContactGroup)`
-
-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`
@@ -155,131 +109,6 @@ 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`
@@ -305,141 +134,6 @@ 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.
-
-
-### 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.
-
-
-### 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 f8b7e680b3..26a003baba 100644
--- a/docs/ContactAssignment.md
+++ b/docs/ContactAssignment.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentType** | **string** | |
+**ObjectType** | **string** | |
**ObjectId** | **int64** | |
**Object** | **map[string]interface{}** | | [readonly]
-**Contact** | [**NestedContact**](NestedContact.md) | |
-**Role** | Pointer to [**NullableNestedContactRole**](NestedContactRole.md) | | [optional]
+**Contact** | [**Contact**](Contact.md) | |
+**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional]
**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewContactAssignment
-`func NewContactAssignment(id int32, url string, display string, contentType string, objectId int64, object map[string]interface{}, contact NestedContact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment`
+`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment`
NewContactAssignment instantiates a new ContactAssignment object
This constructor will assign default values to properties that have it defined,
@@ -97,24 +97,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentType
+### GetObjectType
-`func (o *ContactAssignment) GetContentType() string`
+`func (o *ContactAssignment) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *ContactAssignment) GetContentTypeOk() (*string, bool)`
+`func (o *ContactAssignment) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *ContactAssignment) SetContentType(v string)`
+`func (o *ContactAssignment) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
### GetObjectId
@@ -159,40 +159,40 @@ SetObject sets Object field to given value.
### GetContact
-`func (o *ContactAssignment) GetContact() NestedContact`
+`func (o *ContactAssignment) GetContact() Contact`
GetContact returns the Contact field if non-nil, zero value otherwise.
### GetContactOk
-`func (o *ContactAssignment) GetContactOk() (*NestedContact, bool)`
+`func (o *ContactAssignment) GetContactOk() (*Contact, 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 NestedContact)`
+`func (o *ContactAssignment) SetContact(v Contact)`
SetContact sets Contact field to given value.
### GetRole
-`func (o *ContactAssignment) GetRole() NestedContactRole`
+`func (o *ContactAssignment) GetRole() ContactRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *ContactAssignment) GetRoleOk() (*NestedContactRole, bool)`
+`func (o *ContactAssignment) GetRoleOk() (*ContactRole, 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 NestedContactRole)`
+`func (o *ContactAssignment) SetRole(v ContactRole)`
SetRole sets Role field to given value.
diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md
index 57453cad45..de146e2f6f 100644
--- a/docs/ContactAssignmentRequest.md
+++ b/docs/ContactAssignmentRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentType** | **string** | |
+**ObjectType** | **string** | |
**ObjectId** | **int64** | |
-**Contact** | [**NestedContactRequest**](NestedContactRequest.md) | |
-**Role** | Pointer to [**NullableNestedContactRoleRequest**](NestedContactRoleRequest.md) | | [optional]
+**Contact** | [**ContactRequest**](ContactRequest.md) | |
+**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]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
### NewContactAssignmentRequest
-`func NewContactAssignmentRequest(contentType string, objectId int64, contact NestedContactRequest, ) *ContactAssignmentRequest`
+`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest`
NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,24 +31,24 @@ NewContactAssignmentRequestWithDefaults instantiates a new ContactAssignmentRequ
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentType
+### GetObjectType
-`func (o *ContactAssignmentRequest) GetContentType() string`
+`func (o *ContactAssignmentRequest) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *ContactAssignmentRequest) GetContentTypeOk() (*string, bool)`
+`func (o *ContactAssignmentRequest) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *ContactAssignmentRequest) SetContentType(v string)`
+`func (o *ContactAssignmentRequest) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
### GetObjectId
@@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value.
### GetContact
-`func (o *ContactAssignmentRequest) GetContact() NestedContactRequest`
+`func (o *ContactAssignmentRequest) GetContact() ContactRequest`
GetContact returns the Contact field if non-nil, zero value otherwise.
### GetContactOk
-`func (o *ContactAssignmentRequest) GetContactOk() (*NestedContactRequest, bool)`
+`func (o *ContactAssignmentRequest) 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 *ContactAssignmentRequest) SetContact(v NestedContactRequest)`
+`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)`
SetContact sets Contact field to given value.
### GetRole
-`func (o *ContactAssignmentRequest) GetRole() NestedContactRoleRequest`
+`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *ContactAssignmentRequest) GetRoleOk() (*NestedContactRoleRequest, bool)`
+`func (o *ContactAssignmentRequest) 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 *ContactAssignmentRequest) SetRole(v NestedContactRoleRequest)`
+`func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md
index eef2d82616..42b960ec33 100644
--- a/docs/ContactGroup.md
+++ b/docs/ContactGroup.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**ContactCount** | **int32** | | [readonly]
+**ContactCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md
index 0542ef2cd1..050fa6fb1f 100644
--- a/docs/ContactRequest.md
+++ b/docs/ContactRequest.md
@@ -4,17 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Group** | Pointer to [**NullableNestedContactGroupRequest**](NestedContactGroupRequest.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
@@ -35,41 +26,6 @@ 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() NestedContactGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *ContactRequest) GetGroupOk() (*NestedContactGroupRequest, 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 NestedContactGroupRequest)`
-
-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`
@@ -90,131 +46,6 @@ 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`
@@ -240,81 +71,6 @@ 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.md b/docs/ContactRole.md
index f54315f013..66937cee41 100644
--- a/docs/ContactRole.md
+++ b/docs/ContactRole.md
@@ -10,16 +10,12 @@ Name | Type | Description | Notes
**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]
## Methods
### NewContactRole
-`func NewContactRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *ContactRole`
+`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,
@@ -159,116 +155,6 @@ 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.
-
-
-### 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.
-
-
-### 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 dce32edeee..615000a632 100644
--- a/docs/ContactRoleRequest.md
+++ b/docs/ContactRoleRequest.md
@@ -7,8 +7,6 @@ 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
@@ -94,56 +92,6 @@ 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.md b/docs/CoreAPI.md
index 99c8fa0ae9..18791cb42b 100644
--- a/docs/CoreAPI.md
+++ b/docs/CoreAPI.md
@@ -39,7 +39,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -225,7 +225,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -295,11 +295,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -359,11 +359,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -425,11 +425,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest |
+ dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -491,7 +491,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -557,7 +557,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -610,7 +610,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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -626,7 +626,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -657,6 +657,13 @@ func main() {
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)
@@ -680,6 +687,17 @@ 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)
+ 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)
@@ -690,7 +708,7 @@ func main() {
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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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)
@@ -738,6 +756,13 @@ Name | Type | Description | Notes
**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) | |
@@ -761,6 +786,17 @@ 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 |
+ **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** | |
@@ -804,7 +840,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -876,7 +912,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -946,7 +982,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1018,7 +1054,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1075,7 +1111,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).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).StatusN(statusN).User(user).UserN(userN).Execute()
@@ -1091,7 +1127,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1115,6 +1151,7 @@ func main() {
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)
@@ -1152,7 +1189,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute()
+ 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)
@@ -1193,6 +1230,7 @@ Name | Type | Description | Notes
**intervalLt** | **[]int32** | |
**intervalLte** | **[]int32** | |
**intervalN** | **[]int32** | |
+ **jobId** | **string** | |
**limit** | **int32** | Number of results to return per page. |
**name** | **[]string** | |
**nameEmpty** | **bool** | |
@@ -1263,7 +1301,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/docs/CustomField.md b/docs/CustomField.md
index 651c980b7a..58a8f87713 100644
--- a/docs/CustomField.md
+++ b/docs/CustomField.md
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Type** | [**CustomFieldType**](CustomFieldType.md) | |
-**ObjectType** | Pointer to **NullableString** | | [optional]
+**RelatedObjectType** | Pointer to **NullableString** | | [optional]
**DataType** | **string** | | [readonly]
**Name** | **string** | Internal field name |
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
@@ -26,7 +26,8 @@ Name | Type | Description | Notes
**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 [**NullableNestedCustomFieldChoiceSet**](NestedCustomFieldChoiceSet.md) | | [optional]
+**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -34,7 +35,7 @@ Name | Type | Description | Notes
### NewCustomField
-`func NewCustomField(id int32, url string, display string, contentTypes []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, created NullableTime, lastUpdated NullableTime, ) *CustomField`
NewCustomField instantiates a new CustomField object
This constructor will assign default values to properties that have it defined,
@@ -109,24 +110,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
+### GetObjectTypes
-`func (o *CustomField) GetContentTypes() []string`
+`func (o *CustomField) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *CustomField) GetContentTypesOk() (*[]string, bool)`
+`func (o *CustomField) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *CustomField) SetContentTypes(v []string)`
+`func (o *CustomField) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetType
@@ -149,41 +150,41 @@ and a boolean to check if the value has been set.
SetType sets Type field to given value.
-### GetObjectType
+### GetRelatedObjectType
-`func (o *CustomField) GetObjectType() string`
+`func (o *CustomField) GetRelatedObjectType() string`
-GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
+GetRelatedObjectType returns the RelatedObjectType field if non-nil, zero value otherwise.
-### GetObjectTypeOk
+### GetRelatedObjectTypeOk
-`func (o *CustomField) GetObjectTypeOk() (*string, bool)`
+`func (o *CustomField) GetRelatedObjectTypeOk() (*string, bool)`
-GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
+GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetObjectType
+### SetRelatedObjectType
-`func (o *CustomField) SetObjectType(v string)`
+`func (o *CustomField) SetRelatedObjectType(v string)`
-SetObjectType sets ObjectType field to given value.
+SetRelatedObjectType sets RelatedObjectType field to given value.
-### HasObjectType
+### HasRelatedObjectType
-`func (o *CustomField) HasObjectType() bool`
+`func (o *CustomField) HasRelatedObjectType() bool`
-HasObjectType returns a boolean if a field has been set.
+HasRelatedObjectType returns a boolean if a field has been set.
-### SetObjectTypeNil
+### SetRelatedObjectTypeNil
-`func (o *CustomField) SetObjectTypeNil(b bool)`
+`func (o *CustomField) SetRelatedObjectTypeNil(b bool)`
- SetObjectTypeNil sets the value for ObjectType to be an explicit nil
+ SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
-### UnsetObjectType
-`func (o *CustomField) UnsetObjectType()`
+### UnsetRelatedObjectType
+`func (o *CustomField) UnsetRelatedObjectType()`
-UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
+UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
### GetDataType
`func (o *CustomField) GetDataType() string`
@@ -606,20 +607,20 @@ HasValidationRegex returns a boolean if a field has been set.
### GetChoiceSet
-`func (o *CustomField) GetChoiceSet() NestedCustomFieldChoiceSet`
+`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet`
GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise.
### GetChoiceSetOk
-`func (o *CustomField) GetChoiceSetOk() (*NestedCustomFieldChoiceSet, bool)`
+`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, 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 NestedCustomFieldChoiceSet)`
+`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)`
SetChoiceSet sets ChoiceSet field to given value.
@@ -639,6 +640,31 @@ HasChoiceSet returns a boolean if a field has been set.
`func (o *CustomField) UnsetChoiceSet()`
UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil
+### GetComments
+
+`func (o *CustomField) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *CustomField) 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 *CustomField) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *CustomField) HasComments() bool`
+
+HasComments returns a boolean if a field has been set.
+
### GetCreated
`func (o *CustomField) GetCreated() time.Time`
diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md
index 41f27837e9..ab9dfbfd1c 100644
--- a/docs/CustomFieldRequest.md
+++ b/docs/CustomFieldRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Type** | [**CustomFieldTypeValue**](CustomFieldTypeValue.md) | |
-**ObjectType** | Pointer to **NullableString** | | [optional]
+**RelatedObjectType** | Pointer to **NullableString** | | [optional]
**Name** | **string** | Internal field name |
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
**GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional]
@@ -22,13 +22,14 @@ Name | Type | Description | Notes
**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 [**NullableNestedCustomFieldChoiceSetRequest**](NestedCustomFieldChoiceSetRequest.md) | | [optional]
+**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
## Methods
### NewCustomFieldRequest
-`func NewCustomFieldRequest(contentTypes []string, type_ CustomFieldTypeValue, name string, ) *CustomFieldRequest`
+`func NewCustomFieldRequest(objectTypes []string, type_ CustomFieldTypeValue, name string, ) *CustomFieldRequest`
NewCustomFieldRequest instantiates a new CustomFieldRequest object
This constructor will assign default values to properties that have it defined,
@@ -43,24 +44,24 @@ NewCustomFieldRequestWithDefaults instantiates a new CustomFieldRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *CustomFieldRequest) GetContentTypes() []string`
+`func (o *CustomFieldRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *CustomFieldRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *CustomFieldRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *CustomFieldRequest) SetContentTypes(v []string)`
+`func (o *CustomFieldRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetType
@@ -83,41 +84,41 @@ and a boolean to check if the value has been set.
SetType sets Type field to given value.
-### GetObjectType
+### GetRelatedObjectType
-`func (o *CustomFieldRequest) GetObjectType() string`
+`func (o *CustomFieldRequest) GetRelatedObjectType() string`
-GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
+GetRelatedObjectType returns the RelatedObjectType field if non-nil, zero value otherwise.
-### GetObjectTypeOk
+### GetRelatedObjectTypeOk
-`func (o *CustomFieldRequest) GetObjectTypeOk() (*string, bool)`
+`func (o *CustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool)`
-GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
+GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetObjectType
+### SetRelatedObjectType
-`func (o *CustomFieldRequest) SetObjectType(v string)`
+`func (o *CustomFieldRequest) SetRelatedObjectType(v string)`
-SetObjectType sets ObjectType field to given value.
+SetRelatedObjectType sets RelatedObjectType field to given value.
-### HasObjectType
+### HasRelatedObjectType
-`func (o *CustomFieldRequest) HasObjectType() bool`
+`func (o *CustomFieldRequest) HasRelatedObjectType() bool`
-HasObjectType returns a boolean if a field has been set.
+HasRelatedObjectType returns a boolean if a field has been set.
-### SetObjectTypeNil
+### SetRelatedObjectTypeNil
-`func (o *CustomFieldRequest) SetObjectTypeNil(b bool)`
+`func (o *CustomFieldRequest) SetRelatedObjectTypeNil(b bool)`
- SetObjectTypeNil sets the value for ObjectType to be an explicit nil
+ SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
-### UnsetObjectType
-`func (o *CustomFieldRequest) UnsetObjectType()`
+### UnsetRelatedObjectType
+`func (o *CustomFieldRequest) UnsetRelatedObjectType()`
-UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
+UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
### GetName
`func (o *CustomFieldRequest) GetName() string`
@@ -520,20 +521,20 @@ HasValidationRegex returns a boolean if a field has been set.
### GetChoiceSet
-`func (o *CustomFieldRequest) GetChoiceSet() NestedCustomFieldChoiceSetRequest`
+`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest`
GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise.
### GetChoiceSetOk
-`func (o *CustomFieldRequest) GetChoiceSetOk() (*NestedCustomFieldChoiceSetRequest, bool)`
+`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, 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 NestedCustomFieldChoiceSetRequest)`
+`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)`
SetChoiceSet sets ChoiceSet field to given value.
@@ -553,6 +554,31 @@ HasChoiceSet returns a boolean if a field has been set.
`func (o *CustomFieldRequest) UnsetChoiceSet()`
UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil
+### GetComments
+
+`func (o *CustomFieldRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *CustomFieldRequest) 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 *CustomFieldRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *CustomFieldRequest) HasComments() bool`
+
+HasComments 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/CustomLink.md b/docs/CustomLink.md
index 8e00fe351f..c2b8e12eac 100644
--- a/docs/CustomLink.md
+++ b/docs/CustomLink.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**LinkText** | **string** | Jinja2 template code for link text |
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewCustomLink
-`func NewCustomLink(id int32, url string, display string, contentTypes []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, created NullableTime, lastUpdated NullableTime, ) *CustomLink`
NewCustomLink instantiates a new CustomLink object
This constructor will assign default values to properties that have it defined,
@@ -98,24 +98,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
+### GetObjectTypes
-`func (o *CustomLink) GetContentTypes() []string`
+`func (o *CustomLink) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *CustomLink) GetContentTypesOk() (*[]string, bool)`
+`func (o *CustomLink) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *CustomLink) SetContentTypes(v []string)`
+`func (o *CustomLink) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/CustomLinkRequest.md b/docs/CustomLinkRequest.md
index e87b114cdd..1ed6096121 100644
--- a/docs/CustomLinkRequest.md
+++ b/docs/CustomLinkRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**LinkText** | **string** | Jinja2 template code for link text |
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewCustomLinkRequest
-`func NewCustomLinkRequest(contentTypes []string, name string, linkText string, linkUrl string, ) *CustomLinkRequest`
+`func NewCustomLinkRequest(objectTypes []string, name string, linkText string, linkUrl string, ) *CustomLinkRequest`
NewCustomLinkRequest instantiates a new CustomLinkRequest object
This constructor will assign default values to properties that have it defined,
@@ -33,24 +33,24 @@ NewCustomLinkRequestWithDefaults instantiates a new CustomLinkRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *CustomLinkRequest) GetContentTypes() []string`
+`func (o *CustomLinkRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *CustomLinkRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *CustomLinkRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *CustomLinkRequest) SetContentTypes(v []string)`
+`func (o *CustomLinkRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/DataFile.md b/docs/DataFile.md
index 1232ae623b..a332d29cbd 100644
--- a/docs/DataFile.md
+++ b/docs/DataFile.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Source** | [**NestedDataSource**](NestedDataSource.md) | | [readonly]
+**Source** | [**DataSource**](DataSource.md) | | [readonly]
**Path** | **string** | File path relative to the data source's root | [readonly]
**LastUpdated** | **time.Time** | | [readonly]
**Size** | **int32** | | [readonly]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewDataFile
-`func NewDataFile(id int32, url string, display string, source NestedDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile`
+`func NewDataFile(id int32, url string, display string, source DataSource, 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,
@@ -94,20 +94,20 @@ SetDisplay sets Display field to given value.
### GetSource
-`func (o *DataFile) GetSource() NestedDataSource`
+`func (o *DataFile) GetSource() DataSource`
GetSource returns the Source field if non-nil, zero value otherwise.
### GetSourceOk
-`func (o *DataFile) GetSourceOk() (*NestedDataSource, bool)`
+`func (o *DataFile) GetSourceOk() (*DataSource, 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 NestedDataSource)`
+`func (o *DataFile) SetSource(v DataSource)`
SetSource sets Source field to given value.
diff --git a/docs/DataSource.md b/docs/DataSource.md
index e66ecb9821..0768fd476e 100644
--- a/docs/DataSource.md
+++ b/docs/DataSource.md
@@ -8,24 +8,13 @@ Name | Type | Description | Notes
**Url** | **string** | | [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]
-**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]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**FileCount** | **int32** | | [readonly]
## Methods
### NewDataSource
-`func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, fileCount int32, ) *DataSource`
+`func NewDataSource(id int32, url string, display string, name string, ) *DataSource`
NewDataSource instantiates a new DataSource object
This constructor will assign default values to properties that have it defined,
@@ -120,91 +109,6 @@ 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`
@@ -230,196 +134,6 @@ SetDescription sets Description field to given value.
HasDescription 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.
-
-### 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.
-
-### 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.
-
-
-### 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.
-
-
-### 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
-### GetFileCount
-
-`func (o *DataSource) GetFileCount() int32`
-
-GetFileCount returns the FileCount field if non-nil, zero value otherwise.
-
-### GetFileCountOk
-
-`func (o *DataSource) GetFileCountOk() (*int32, 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 int32)`
-
-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.md b/docs/DataSourceRequest.md
index 1f441543ac..f9f23e2557 100644
--- a/docs/DataSourceRequest.md
+++ b/docs/DataSourceRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | |
+**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | |
**SourceUrl** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewDataSourceRequest
-`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest`
+`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,
@@ -55,20 +55,20 @@ SetName sets Name field to given value.
### GetType
-`func (o *DataSourceRequest) GetType() DataSourceTypeValue`
+`func (o *DataSourceRequest) GetType() DataSourceRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)`
+`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 DataSourceTypeValue)`
+`func (o *DataSourceRequest) SetType(v DataSourceRequestType)`
SetType sets Type field to given value.
diff --git a/docs/DataSourceTypeValue.md b/docs/DataSourceRequestType.md
similarity index 91%
rename from docs/DataSourceTypeValue.md
rename to docs/DataSourceRequestType.md
index 8d051f27cc..64f6be0a84 100644
--- a/docs/DataSourceTypeValue.md
+++ b/docs/DataSourceRequestType.md
@@ -1,4 +1,4 @@
-# DataSourceTypeValue
+# DataSourceRequestType
## Enum
diff --git a/docs/DataSourceStatus.md b/docs/DataSourceStatus.md
deleted file mode 100644
index bb83baf4a3..0000000000
--- a/docs/DataSourceStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 09a777b52c..0000000000
--- a/docs/DataSourceStatusLabel.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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
deleted file mode 100644
index a46091ab0a..0000000000
--- a/docs/DataSourceStatusValue.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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
deleted file mode 100644
index a5d2f0be04..0000000000
--- a/docs/DataSourceType.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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/DcimAPI.md b/docs/DcimAPI.md
index 45f49ef97b..2e73f244a9 100644
--- a/docs/DcimAPI.md
+++ b/docs/DcimAPI.md
@@ -404,11 +404,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End_1("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -468,11 +468,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End_1("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -534,11 +534,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
+ cableTerminationRequest := []openapiclient.CableTerminationRequest{*openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End_1("A"), "TerminationType_example", int64(123))} // []CableTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -600,11 +600,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123)) // CableTerminationRequest |
+ cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End_1("A"), "TerminationType_example", int64(123)) // CableTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -666,7 +666,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -719,7 +719,7 @@ Name | Type | Description | Notes
## DcimCableTerminationsList
-> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute()
+> 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()
@@ -734,14 +734,23 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
cable := int32(56) // int32 | (optional)
cableN := int32(56) // int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
+ 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)
id := []int32{int32(123)} // []int32 | (optional)
idEmpty := true // bool | (optional)
idGt := []int32{int32(123)} // []int32 | (optional)
@@ -749,7 +758,15 @@ func main() {
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)
terminationId := []int32{int32(123)} // []int32 | (optional)
@@ -761,10 +778,11 @@ func main() {
terminationIdN := []int32{int32(123)} // []int32 | (optional)
terminationType := "terminationType_example" // string | (optional)
terminationTypeN := "terminationTypeN_example" // string | (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute()
+ 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()
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)
@@ -787,8 +805,16 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cable** | **int32** | |
**cableN** | **int32** | |
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
+ **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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -796,7 +822,15 @@ Name | Type | Description | Notes
**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. |
**terminationId** | **[]int32** | |
@@ -808,6 +842,7 @@ Name | Type | Description | Notes
**terminationIdN** | **[]int32** | |
**terminationType** | **string** | |
**terminationTypeN** | **string** | |
+ **updatedByRequest** | **string** | |
### Return type
@@ -844,7 +879,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -916,7 +951,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -986,12 +1021,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this cable termination.
- cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End("A"), "TerminationType_example", int64(123)) // CableTerminationRequest |
+ cableTerminationRequest := *openapiclient.NewCableTerminationRequest(int32(123), openapiclient.End_1("A"), "TerminationType_example", int64(123)) // CableTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1058,7 +1093,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1122,7 +1157,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1188,7 +1223,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1254,7 +1289,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1320,7 +1355,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1389,7 +1424,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1453,8 +1488,8 @@ func main() {
lengthLt := []float64{float64(123)} // []float64 | (optional)
lengthLte := []float64{float64(123)} // []float64 | (optional)
lengthN := []float64{float64(123)} // []float64 | (optional)
- lengthUnit := "lengthUnit_example" // string | (optional)
- lengthUnitN := "lengthUnitN_example" // string | (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)
@@ -1576,8 +1611,8 @@ Name | Type | Description | Notes
**lengthLt** | **[]float64** | |
**lengthLte** | **[]float64** | |
**lengthN** | **[]float64** | |
- **lengthUnit** | **string** | |
- **lengthUnitN** | **string** | |
+ **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** | |
@@ -1651,7 +1686,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1723,7 +1758,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1793,7 +1828,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1865,7 +1900,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1933,7 +1968,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1997,7 +2032,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2063,7 +2098,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2129,7 +2164,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2195,7 +2230,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2248,7 +2283,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -2264,7 +2299,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2287,6 +2322,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -2296,6 +2333,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)
@@ -2305,6 +2353,8 @@ 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)
+ 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)
@@ -2321,13 +2371,13 @@ 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -2367,6 +2417,8 @@ 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** | |
@@ -2376,6 +2428,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) | |
@@ -2385,6 +2448,8 @@ Name | Type | Description | Notes
**lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
**limit** | **int32** | Number of results to return per page. |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -2401,8 +2466,8 @@ 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 |
- **type_** | **string** | |
- **typeN** | **string** | |
+ **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
@@ -2440,7 +2505,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2512,7 +2577,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2582,7 +2647,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2654,11 +2719,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2718,11 +2783,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2784,11 +2849,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsolePortRequest |
+ consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2850,11 +2915,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
+ writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2916,7 +2981,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2969,7 +3034,7 @@ Name | Type | Description | Notes
## DcimConsolePortsList
-> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -2985,12 +3050,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -3016,10 +3083,6 @@ 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)
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)
@@ -3054,6 +3117,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (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)
@@ -3092,6 +3156,8 @@ func main() {
siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ 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)
@@ -3104,7 +3170,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -3125,8 +3191,10 @@ Other parameters are passed through a pointer to a apiDcimConsolePortsListReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -3152,10 +3220,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -3190,6 +3254,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -3228,6 +3293,8 @@ Name | Type | Description | Notes
**siteGroupIdN** | **[]int32** | Site group (ID) |
**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 |
@@ -3273,7 +3340,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3345,7 +3412,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3415,7 +3482,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3485,12 +3552,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this console port.
- writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(int32(123), "Name_example") // WritableConsolePortRequest |
+ writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3557,7 +3624,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3621,7 +3688,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3687,7 +3754,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3753,7 +3820,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3819,7 +3886,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3872,7 +3939,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -3888,7 +3955,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3911,6 +3978,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -3920,6 +3989,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)
@@ -3929,6 +4009,8 @@ 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)
+ 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)
@@ -3945,13 +4027,13 @@ 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -3991,6 +4073,8 @@ 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** | |
@@ -4000,6 +4084,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) | |
@@ -4009,6 +4104,8 @@ Name | Type | Description | Notes
**lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
**limit** | **int32** | Number of results to return per page. |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -4025,8 +4122,8 @@ 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 |
- **type_** | **string** | |
- **typeN** | **string** | |
+ **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
@@ -4064,7 +4161,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4136,7 +4233,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4206,7 +4303,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4278,11 +4375,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4342,11 +4439,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4408,11 +4505,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
+ consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4474,11 +4571,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
+ writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4540,7 +4637,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4593,7 +4690,7 @@ Name | Type | Description | Notes
## DcimConsoleServerPortsList
-> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -4609,12 +4706,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -4640,10 +4739,6 @@ 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)
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)
@@ -4678,6 +4773,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (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)
@@ -4716,6 +4812,8 @@ func main() {
siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional)
siteId := []int32{int32(123)} // []int32 | Site (ID) (optional)
siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
+ 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)
@@ -4728,7 +4826,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -4749,8 +4847,10 @@ Other parameters are passed through a pointer to a apiDcimConsoleServerPortsList
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -4776,10 +4876,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -4814,6 +4910,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -4852,6 +4949,8 @@ Name | Type | Description | Notes
**siteGroupIdN** | **[]int32** | Site group (ID) |
**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 |
@@ -4897,7 +4996,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4969,7 +5068,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5039,7 +5138,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5109,12 +5208,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this console server port.
- writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(int32(123), "Name_example") // WritableConsoleServerPortRequest |
+ writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5181,11 +5280,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5245,11 +5344,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5311,11 +5410,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
+ deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5362,7 +5461,7 @@ Name | Type | Description | Notes
## DcimDeviceBayTemplatesCreate
-> DeviceBayTemplate DcimDeviceBayTemplatesCreate(ctx).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+> DeviceBayTemplate DcimDeviceBayTemplatesCreate(ctx).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
@@ -5377,15 +5476,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
+ deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -5406,7 +5505,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBayTemplatesCrea
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceBayTemplateRequest** | [**WritableDeviceBayTemplateRequest**](WritableDeviceBayTemplateRequest.md) | |
+ **deviceBayTemplateRequest** | [**DeviceBayTemplateRequest**](DeviceBayTemplateRequest.md) | |
### Return type
@@ -5443,7 +5542,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5496,7 +5595,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -5512,7 +5611,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5535,6 +5634,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)
devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -5544,6 +5645,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)
@@ -5571,7 +5683,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -5611,6 +5723,8 @@ 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** | |
@@ -5620,6 +5734,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) | |
@@ -5665,7 +5790,7 @@ Name | Type | Description | Notes
## DcimDeviceBayTemplatesPartialUpdate
-> DeviceBayTemplate DcimDeviceBayTemplatesPartialUpdate(ctx, id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute()
+> DeviceBayTemplate DcimDeviceBayTemplatesPartialUpdate(ctx, id).PatchedDeviceBayTemplateRequest(patchedDeviceBayTemplateRequest).Execute()
@@ -5680,16 +5805,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device bay template.
- patchedWritableDeviceBayTemplateRequest := *openapiclient.NewPatchedWritableDeviceBayTemplateRequest() // PatchedWritableDeviceBayTemplateRequest | (optional)
+ patchedDeviceBayTemplateRequest := *openapiclient.NewPatchedDeviceBayTemplateRequest() // PatchedDeviceBayTemplateRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedDeviceBayTemplateRequest(patchedDeviceBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -5715,7 +5840,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBayTemplatesPart
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableDeviceBayTemplateRequest** | [**PatchedWritableDeviceBayTemplateRequest**](PatchedWritableDeviceBayTemplateRequest.md) | |
+ **patchedDeviceBayTemplateRequest** | [**PatchedDeviceBayTemplateRequest**](PatchedDeviceBayTemplateRequest.md) | |
### Return type
@@ -5752,7 +5877,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5807,7 +5932,7 @@ Name | Type | Description | Notes
## DcimDeviceBayTemplatesUpdate
-> DeviceBayTemplate DcimDeviceBayTemplatesUpdate(ctx, id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+> DeviceBayTemplate DcimDeviceBayTemplatesUpdate(ctx, id).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
@@ -5822,16 +5947,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device bay template.
- writableDeviceBayTemplateRequest := *openapiclient.NewWritableDeviceBayTemplateRequest(int32(123), "Name_example") // WritableDeviceBayTemplateRequest |
+ deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -5857,7 +5982,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBayTemplatesUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceBayTemplateRequest** | [**WritableDeviceBayTemplateRequest**](WritableDeviceBayTemplateRequest.md) | |
+ **deviceBayTemplateRequest** | [**DeviceBayTemplateRequest**](DeviceBayTemplateRequest.md) | |
### Return type
@@ -5894,11 +6019,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5958,11 +6083,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6024,11 +6149,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []DeviceBayRequest |
+ deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6075,7 +6200,7 @@ Name | Type | Description | Notes
## DcimDeviceBaysCreate
-> DeviceBay DcimDeviceBaysCreate(ctx).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+> DeviceBay DcimDeviceBaysCreate(ctx).DeviceBayRequest(deviceBayRequest).Execute()
@@ -6090,15 +6215,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
+ deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6119,7 +6244,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBaysCreateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceBayRequest** | [**WritableDeviceBayRequest**](WritableDeviceBayRequest.md) | |
+ **deviceBayRequest** | [**DeviceBayRequest**](DeviceBayRequest.md) | |
### Return type
@@ -6156,7 +6281,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6209,7 +6334,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).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -6225,7 +6350,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6252,10 +6377,6 @@ 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)
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)
@@ -6267,6 +6388,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ installedDevice := []*string{"Inner_example"} // []*string | Installed device (name) (optional)
+ installedDeviceN := []*string{"Inner_example"} // []*string | Installed device (name) (optional)
+ installedDeviceId := []*int32{int32(123)} // []*int32 | Installed device (ID) (optional)
+ installedDeviceIdN := []*int32{int32(123)} // []*int32 | Installed device (ID) (optional)
label := []string{"Inner_example"} // []string | (optional)
labelEmpty := true // bool | (optional)
labelIc := []string{"Inner_example"} // []string | (optional)
@@ -6335,7 +6460,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).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -6379,10 +6504,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -6394,6 +6515,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **installedDevice** | **[]string** | Installed device (name) |
+ **installedDeviceN** | **[]string** | Installed device (name) |
+ **installedDeviceId** | **[]int32** | Installed device (ID) |
+ **installedDeviceIdN** | **[]int32** | Installed device (ID) |
**label** | **[]string** | |
**labelEmpty** | **bool** | |
**labelIc** | **[]string** | |
@@ -6480,7 +6605,7 @@ Name | Type | Description | Notes
## DcimDeviceBaysPartialUpdate
-> DeviceBay DcimDeviceBaysPartialUpdate(ctx, id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute()
+> DeviceBay DcimDeviceBaysPartialUpdate(ctx, id).PatchedDeviceBayRequest(patchedDeviceBayRequest).Execute()
@@ -6495,16 +6620,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device bay.
- patchedWritableDeviceBayRequest := *openapiclient.NewPatchedWritableDeviceBayRequest() // PatchedWritableDeviceBayRequest | (optional)
+ patchedDeviceBayRequest := *openapiclient.NewPatchedDeviceBayRequest() // PatchedDeviceBayRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedDeviceBayRequest(patchedDeviceBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6530,7 +6655,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBaysPartialUpdat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableDeviceBayRequest** | [**PatchedWritableDeviceBayRequest**](PatchedWritableDeviceBayRequest.md) | |
+ **patchedDeviceBayRequest** | [**PatchedDeviceBayRequest**](PatchedDeviceBayRequest.md) | |
### Return type
@@ -6567,7 +6692,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6622,7 +6747,7 @@ Name | Type | Description | Notes
## DcimDeviceBaysUpdate
-> DeviceBay DcimDeviceBaysUpdate(ctx, id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+> DeviceBay DcimDeviceBaysUpdate(ctx, id).DeviceBayRequest(deviceBayRequest).Execute()
@@ -6637,16 +6762,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device bay.
- writableDeviceBayRequest := *openapiclient.NewWritableDeviceBayRequest(int32(123), "Name_example") // WritableDeviceBayRequest |
+ deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).DeviceBayRequest(deviceBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6672,7 +6797,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBaysUpdateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceBayRequest** | [**WritableDeviceBayRequest**](WritableDeviceBayRequest.md) | |
+ **deviceBayRequest** | [**DeviceBayRequest**](DeviceBayRequest.md) | |
### Return type
@@ -6709,7 +6834,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6773,7 +6898,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6839,7 +6964,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6890,7 +7015,7 @@ Name | Type | Description | Notes
## DcimDeviceRolesCreate
-> DeviceRole DcimDeviceRolesCreate(ctx).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+> DeviceRole DcimDeviceRolesCreate(ctx).DeviceRoleRequest(deviceRoleRequest).Execute()
@@ -6905,15 +7030,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
+ deviceRoleRequest := *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example") // DeviceRoleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6934,7 +7059,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceRolesCreateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceRoleRequest** | [**WritableDeviceRoleRequest**](WritableDeviceRoleRequest.md) | |
+ **deviceRoleRequest** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | |
### Return type
@@ -6971,7 +7096,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7040,7 +7165,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7243,7 +7368,7 @@ Name | Type | Description | Notes
## DcimDeviceRolesPartialUpdate
-> DeviceRole DcimDeviceRolesPartialUpdate(ctx, id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute()
+> DeviceRole DcimDeviceRolesPartialUpdate(ctx, id).PatchedDeviceRoleRequest(patchedDeviceRoleRequest).Execute()
@@ -7258,16 +7383,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device role.
- patchedWritableDeviceRoleRequest := *openapiclient.NewPatchedWritableDeviceRoleRequest() // PatchedWritableDeviceRoleRequest | (optional)
+ patchedDeviceRoleRequest := *openapiclient.NewPatchedDeviceRoleRequest() // PatchedDeviceRoleRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedDeviceRoleRequest(patchedDeviceRoleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -7293,7 +7418,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceRolesPartialUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableDeviceRoleRequest** | [**PatchedWritableDeviceRoleRequest**](PatchedWritableDeviceRoleRequest.md) | |
+ **patchedDeviceRoleRequest** | [**PatchedDeviceRoleRequest**](PatchedDeviceRoleRequest.md) | |
### Return type
@@ -7330,7 +7455,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7385,7 +7510,7 @@ Name | Type | Description | Notes
## DcimDeviceRolesUpdate
-> DeviceRole DcimDeviceRolesUpdate(ctx, id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+> DeviceRole DcimDeviceRolesUpdate(ctx, id).DeviceRoleRequest(deviceRoleRequest).Execute()
@@ -7400,16 +7525,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device role.
- writableDeviceRoleRequest := *openapiclient.NewWritableDeviceRoleRequest("Name_example", "Slug_example") // WritableDeviceRoleRequest |
+ deviceRoleRequest := *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example") // DeviceRoleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).DeviceRoleRequest(deviceRoleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -7435,7 +7560,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceRolesUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableDeviceRoleRequest** | [**WritableDeviceRoleRequest**](WritableDeviceRoleRequest.md) | |
+ **deviceRoleRequest** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | |
### Return type
@@ -7472,11 +7597,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7536,11 +7661,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7602,11 +7727,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
+ deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7668,11 +7793,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
+ writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7734,7 +7859,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7787,7 +7912,7 @@ Name | Type | Description | Notes
## DcimDeviceTypesList
-> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
+> 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()
@@ -7803,13 +7928,27 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- airflow := "airflow_example" // string | (optional)
- airflowN := "airflowN_example" // string | (optional)
+ 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)
+ consolePortTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ consolePortTemplateCountEmpty := true // bool | (optional)
+ consolePortTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ consolePortTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ consolePortTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ consolePortTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ consolePortTemplateCountN := []int32{int32(123)} // []int32 | (optional)
consolePorts := true // bool | Has console ports (optional)
+ consoleServerPortTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortTemplateCountEmpty := true // bool | (optional)
+ consoleServerPortTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortTemplateCountN := []int32{int32(123)} // []int32 | (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)
@@ -7834,8 +7973,22 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ deviceBayTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ deviceBayTemplateCountEmpty := true // bool | (optional)
+ deviceBayTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ deviceBayTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ deviceBayTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ deviceBayTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ deviceBayTemplateCountN := []int32{int32(123)} // []int32 | (optional)
deviceBays := true // bool | Has device bays (optional)
excludeFromUtilization := true // bool | (optional)
+ frontPortTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ frontPortTemplateCountEmpty := true // bool | (optional)
+ frontPortTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ frontPortTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ frontPortTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ frontPortTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ frontPortTemplateCountN := []int32{int32(123)} // []int32 | (optional)
hasFrontImage := true // bool | Has a front image (optional)
hasRearImage := true // bool | Has a rear image (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -7845,7 +7998,21 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCountEmpty := true // bool | (optional)
+ interfaceTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceTemplateCountN := []int32{int32(123)} // []int32 | (optional)
interfaces := true // bool | Has interfaces (optional)
+ inventoryItemTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemTemplateCountEmpty := true // bool | (optional)
+ inventoryItemTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemTemplateCountN := []int32{int32(123)} // []int32 | (optional)
inventoryItems := true // bool | Has inventory items (optional)
isFullDepth := true // bool | (optional)
lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
@@ -7872,6 +8039,13 @@ func main() {
modelNiew := []string{"Inner_example"} // []string | (optional)
modelNisw := []string{"Inner_example"} // []string | (optional)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleBayTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ moduleBayTemplateCountEmpty := true // bool | (optional)
+ moduleBayTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ moduleBayTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ moduleBayTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ moduleBayTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ moduleBayTemplateCountN := []int32{int32(123)} // []int32 | (optional)
moduleBays := true // bool | Has module bays (optional)
offset := int32(56) // int32 | The initial index from which to return the results. (optional)
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
@@ -7887,9 +8061,30 @@ func main() {
partNumberNiew := []string{"Inner_example"} // []string | (optional)
partNumberNisw := []string{"Inner_example"} // []string | (optional)
passThroughPorts := true // bool | Has pass-through ports (optional)
+ powerOutletTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ powerOutletTemplateCountEmpty := true // bool | (optional)
+ powerOutletTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ powerOutletTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ powerOutletTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ powerOutletTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ powerOutletTemplateCountN := []int32{int32(123)} // []int32 | (optional)
powerOutlets := true // bool | Has power outlets (optional)
+ powerPortTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ powerPortTemplateCountEmpty := true // bool | (optional)
+ powerPortTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ powerPortTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ powerPortTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ powerPortTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ powerPortTemplateCountN := []int32{int32(123)} // []int32 | (optional)
powerPorts := true // bool | Has power ports (optional)
q := "q_example" // string | Search (optional)
+ rearPortTemplateCount := []int32{int32(123)} // []int32 | (optional)
+ rearPortTemplateCountEmpty := true // bool | (optional)
+ rearPortTemplateCountGt := []int32{int32(123)} // []int32 | (optional)
+ rearPortTemplateCountGte := []int32{int32(123)} // []int32 | (optional)
+ rearPortTemplateCountLt := []int32{int32(123)} // []int32 | (optional)
+ rearPortTemplateCountLte := []int32{int32(123)} // []int32 | (optional)
+ rearPortTemplateCountN := []int32{int32(123)} // []int32 | (optional)
slug := []string{"Inner_example"} // []string | (optional)
slugEmpty := true // bool | (optional)
slugIc := []string{"Inner_example"} // []string | (optional)
@@ -7901,8 +8096,8 @@ func main() {
slugNie := []string{"Inner_example"} // []string | (optional)
slugNiew := []string{"Inner_example"} // []string | (optional)
slugNisw := []string{"Inner_example"} // []string | (optional)
- subdeviceRole := "subdeviceRole_example" // string | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. (optional)
- subdeviceRoleN := "subdeviceRoleN_example" // string | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. (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)
@@ -7920,12 +8115,12 @@ func main() {
weightLt := []float64{float64(123)} // []float64 | (optional)
weightLte := []float64{float64(123)} // []float64 | (optional)
weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (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).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute()
+ 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()
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)
@@ -7946,9 +8141,23 @@ Other parameters are passed through a pointer to a apiDcimDeviceTypesListRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **airflow** | **string** | |
- **airflowN** | **string** | |
+ **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 |
+ **consolePortTemplateCount** | **[]int32** | |
+ **consolePortTemplateCountEmpty** | **bool** | |
+ **consolePortTemplateCountGt** | **[]int32** | |
+ **consolePortTemplateCountGte** | **[]int32** | |
+ **consolePortTemplateCountLt** | **[]int32** | |
+ **consolePortTemplateCountLte** | **[]int32** | |
+ **consolePortTemplateCountN** | **[]int32** | |
**consolePorts** | **bool** | Has console ports |
+ **consoleServerPortTemplateCount** | **[]int32** | |
+ **consoleServerPortTemplateCountEmpty** | **bool** | |
+ **consoleServerPortTemplateCountGt** | **[]int32** | |
+ **consoleServerPortTemplateCountGte** | **[]int32** | |
+ **consoleServerPortTemplateCountLt** | **[]int32** | |
+ **consoleServerPortTemplateCountLte** | **[]int32** | |
+ **consoleServerPortTemplateCountN** | **[]int32** | |
**consoleServerPorts** | **bool** | Has console server ports |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
@@ -7973,8 +8182,22 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
+ **deviceBayTemplateCount** | **[]int32** | |
+ **deviceBayTemplateCountEmpty** | **bool** | |
+ **deviceBayTemplateCountGt** | **[]int32** | |
+ **deviceBayTemplateCountGte** | **[]int32** | |
+ **deviceBayTemplateCountLt** | **[]int32** | |
+ **deviceBayTemplateCountLte** | **[]int32** | |
+ **deviceBayTemplateCountN** | **[]int32** | |
**deviceBays** | **bool** | Has device bays |
**excludeFromUtilization** | **bool** | |
+ **frontPortTemplateCount** | **[]int32** | |
+ **frontPortTemplateCountEmpty** | **bool** | |
+ **frontPortTemplateCountGt** | **[]int32** | |
+ **frontPortTemplateCountGte** | **[]int32** | |
+ **frontPortTemplateCountLt** | **[]int32** | |
+ **frontPortTemplateCountLte** | **[]int32** | |
+ **frontPortTemplateCountN** | **[]int32** | |
**hasFrontImage** | **bool** | Has a front image |
**hasRearImage** | **bool** | Has a rear image |
**id** | **[]int32** | |
@@ -7984,7 +8207,21 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **interfaceTemplateCount** | **[]int32** | |
+ **interfaceTemplateCountEmpty** | **bool** | |
+ **interfaceTemplateCountGt** | **[]int32** | |
+ **interfaceTemplateCountGte** | **[]int32** | |
+ **interfaceTemplateCountLt** | **[]int32** | |
+ **interfaceTemplateCountLte** | **[]int32** | |
+ **interfaceTemplateCountN** | **[]int32** | |
**interfaces** | **bool** | Has interfaces |
+ **inventoryItemTemplateCount** | **[]int32** | |
+ **inventoryItemTemplateCountEmpty** | **bool** | |
+ **inventoryItemTemplateCountGt** | **[]int32** | |
+ **inventoryItemTemplateCountGte** | **[]int32** | |
+ **inventoryItemTemplateCountLt** | **[]int32** | |
+ **inventoryItemTemplateCountLte** | **[]int32** | |
+ **inventoryItemTemplateCountN** | **[]int32** | |
**inventoryItems** | **bool** | Has inventory items |
**isFullDepth** | **bool** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
@@ -8011,6 +8248,13 @@ Name | Type | Description | Notes
**modelNiew** | **[]string** | |
**modelNisw** | **[]string** | |
**modifiedByRequest** | **string** | |
+ **moduleBayTemplateCount** | **[]int32** | |
+ **moduleBayTemplateCountEmpty** | **bool** | |
+ **moduleBayTemplateCountGt** | **[]int32** | |
+ **moduleBayTemplateCountGte** | **[]int32** | |
+ **moduleBayTemplateCountLt** | **[]int32** | |
+ **moduleBayTemplateCountLte** | **[]int32** | |
+ **moduleBayTemplateCountN** | **[]int32** | |
**moduleBays** | **bool** | Has module bays |
**offset** | **int32** | The initial index from which to return the results. |
**ordering** | **string** | Which field to use when ordering the results. |
@@ -8026,9 +8270,30 @@ Name | Type | Description | Notes
**partNumberNiew** | **[]string** | |
**partNumberNisw** | **[]string** | |
**passThroughPorts** | **bool** | Has pass-through ports |
+ **powerOutletTemplateCount** | **[]int32** | |
+ **powerOutletTemplateCountEmpty** | **bool** | |
+ **powerOutletTemplateCountGt** | **[]int32** | |
+ **powerOutletTemplateCountGte** | **[]int32** | |
+ **powerOutletTemplateCountLt** | **[]int32** | |
+ **powerOutletTemplateCountLte** | **[]int32** | |
+ **powerOutletTemplateCountN** | **[]int32** | |
**powerOutlets** | **bool** | Has power outlets |
+ **powerPortTemplateCount** | **[]int32** | |
+ **powerPortTemplateCountEmpty** | **bool** | |
+ **powerPortTemplateCountGt** | **[]int32** | |
+ **powerPortTemplateCountGte** | **[]int32** | |
+ **powerPortTemplateCountLt** | **[]int32** | |
+ **powerPortTemplateCountLte** | **[]int32** | |
+ **powerPortTemplateCountN** | **[]int32** | |
**powerPorts** | **bool** | Has power ports |
**q** | **string** | Search |
+ **rearPortTemplateCount** | **[]int32** | |
+ **rearPortTemplateCountEmpty** | **bool** | |
+ **rearPortTemplateCountGt** | **[]int32** | |
+ **rearPortTemplateCountGte** | **[]int32** | |
+ **rearPortTemplateCountLt** | **[]int32** | |
+ **rearPortTemplateCountLte** | **[]int32** | |
+ **rearPortTemplateCountN** | **[]int32** | |
**slug** | **[]string** | |
**slugEmpty** | **bool** | |
**slugIc** | **[]string** | |
@@ -8040,8 +8305,8 @@ Name | Type | Description | Notes
**slugNie** | **[]string** | |
**slugNiew** | **[]string** | |
**slugNisw** | **[]string** | |
- **subdeviceRole** | **string** | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. |
- **subdeviceRoleN** | **string** | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. |
+ **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** | |
@@ -8059,8 +8324,8 @@ Name | Type | Description | Notes
**weightLt** | **[]float64** | |
**weightLte** | **[]float64** | |
**weightN** | **[]float64** | |
- **weightUnit** | **string** | |
- **weightUnitN** | **string** | |
+ **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
@@ -8097,7 +8362,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8169,7 +8434,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8239,12 +8504,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device type.
- writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(int32(123), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
+ writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -8311,11 +8576,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -8375,11 +8640,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -8441,11 +8706,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), *openapiclient.NewNestedDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -8507,11 +8772,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -8573,7 +8838,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8626,7 +8891,7 @@ Name | Type | Description | Notes
## DcimDevicesList
-> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute()
+> 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()
@@ -8642,12 +8907,12 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- airflow := "airflow_example" // string | (optional)
- airflowN := "airflowN_example" // string | (optional)
+ 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)
assetTag := []string{"Inner_example"} // []string | (optional)
assetTagEmpty := true // bool | (optional)
assetTagIc := []string{"Inner_example"} // []string | (optional)
@@ -8663,7 +8928,21 @@ func main() {
clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional)
configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional)
+ consolePortCount := []int32{int32(123)} // []int32 | (optional)
+ consolePortCountEmpty := true // bool | (optional)
+ consolePortCountGt := []int32{int32(123)} // []int32 | (optional)
+ consolePortCountGte := []int32{int32(123)} // []int32 | (optional)
+ consolePortCountLt := []int32{int32(123)} // []int32 | (optional)
+ consolePortCountLte := []int32{int32(123)} // []int32 | (optional)
+ consolePortCountN := []int32{int32(123)} // []int32 | (optional)
consolePorts := true // bool | Has console ports (optional)
+ consoleServerPortCount := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortCountEmpty := true // bool | (optional)
+ consoleServerPortCountGt := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortCountGte := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortCountLt := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortCountLte := []int32{int32(123)} // []int32 | (optional)
+ consoleServerPortCountN := []int32{int32(123)} // []int32 | (optional)
consoleServerPorts := true // bool | Has console server ports (optional)
contact := []int32{int32(123)} // []int32 | Contact (optional)
contactN := []int32{int32(123)} // []int32 | Contact (optional)
@@ -8690,15 +8969,30 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ deviceBayCount := []int32{int32(123)} // []int32 | (optional)
+ deviceBayCountEmpty := true // bool | (optional)
+ deviceBayCountGt := []int32{int32(123)} // []int32 | (optional)
+ deviceBayCountGte := []int32{int32(123)} // []int32 | (optional)
+ deviceBayCountLt := []int32{int32(123)} // []int32 | (optional)
+ deviceBayCountLte := []int32{int32(123)} // []int32 | (optional)
+ deviceBayCountN := []int32{int32(123)} // []int32 | (optional)
deviceBays := true // bool | Has device bays (optional)
deviceType := []string{"Inner_example"} // []string | Device type (slug) (optional)
deviceTypeN := []string{"Inner_example"} // []string | Device type (slug) (optional)
deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
- face := "face_example" // string | (optional)
- faceN := "faceN_example" // string | (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)
+ frontPortCountGte := []int32{int32(123)} // []int32 | (optional)
+ frontPortCountLt := []int32{int32(123)} // []int32 | (optional)
+ frontPortCountLte := []int32{int32(123)} // []int32 | (optional)
+ frontPortCountN := []int32{int32(123)} // []int32 | (optional)
hasOobIp := true // bool | Has an out-of-band IP (optional)
hasPrimaryIp := true // bool | Has a primary IP (optional)
+ hasVirtualDeviceContext := true // bool | Has virtual device context (optional)
id := []int32{int32(123)} // []int32 | (optional)
idEmpty := true // bool | (optional)
idGt := []int32{int32(123)} // []int32 | (optional)
@@ -8706,7 +9000,21 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceCount := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountEmpty := true // bool | (optional)
+ interfaceCountGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountN := []int32{int32(123)} // []int32 | (optional)
interfaces := true // bool | Has interfaces (optional)
+ inventoryItemCount := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemCountEmpty := true // bool | (optional)
+ inventoryItemCountGt := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemCountGte := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemCountLt := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemCountLte := []int32{int32(123)} // []int32 | (optional)
+ inventoryItemCountN := []int32{int32(123)} // []int32 | (optional)
isFullDepth := true // bool | Is full depth (optional)
lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
@@ -8750,6 +9058,13 @@ func main() {
model := []string{"Inner_example"} // []string | Device model (slug) (optional)
modelN := []string{"Inner_example"} // []string | Device model (slug) (optional)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleBayCount := []int32{int32(123)} // []int32 | (optional)
+ moduleBayCountEmpty := true // bool | (optional)
+ moduleBayCountGt := []int32{int32(123)} // []int32 | (optional)
+ moduleBayCountGte := []int32{int32(123)} // []int32 | (optional)
+ moduleBayCountLt := []int32{int32(123)} // []int32 | (optional)
+ moduleBayCountLte := []int32{int32(123)} // []int32 | (optional)
+ moduleBayCountN := []int32{int32(123)} // []int32 | (optional)
moduleBays := true // bool | Has module bays (optional)
name := []string{"Inner_example"} // []string | (optional)
nameEmpty := true // bool | (optional)
@@ -8766,6 +9081,8 @@ func main() {
oobIpId := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
oobIpIdN := []int32{int32(123)} // []int32 | OOB IP (ID) (optional)
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
+ parentBayId := []int32{int32(123)} // []int32 | Parent bay (ID) (optional)
+ parentBayIdN := []int32{int32(123)} // []int32 | Parent bay (ID) (optional)
parentDeviceId := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
parentDeviceIdN := []int32{int32(123)} // []int32 | Parent Device (ID) (optional)
passThroughPorts := true // bool | Has pass-through ports (optional)
@@ -8780,7 +9097,21 @@ func main() {
positionLt := []float64{float64(123)} // []float64 | (optional)
positionLte := []float64{float64(123)} // []float64 | (optional)
positionN := []float64{float64(123)} // []float64 | (optional)
+ powerOutletCount := []int32{int32(123)} // []int32 | (optional)
+ powerOutletCountEmpty := true // bool | (optional)
+ powerOutletCountGt := []int32{int32(123)} // []int32 | (optional)
+ powerOutletCountGte := []int32{int32(123)} // []int32 | (optional)
+ powerOutletCountLt := []int32{int32(123)} // []int32 | (optional)
+ powerOutletCountLte := []int32{int32(123)} // []int32 | (optional)
+ powerOutletCountN := []int32{int32(123)} // []int32 | (optional)
powerOutlets := true // bool | Has power outlets (optional)
+ powerPortCount := []int32{int32(123)} // []int32 | (optional)
+ powerPortCountEmpty := true // bool | (optional)
+ powerPortCountGt := []int32{int32(123)} // []int32 | (optional)
+ powerPortCountGte := []int32{int32(123)} // []int32 | (optional)
+ powerPortCountLt := []int32{int32(123)} // []int32 | (optional)
+ powerPortCountLte := []int32{int32(123)} // []int32 | (optional)
+ powerPortCountN := []int32{int32(123)} // []int32 | (optional)
powerPorts := true // bool | Has power ports (optional)
primaryIp4Id := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
primaryIp4IdN := []int32{int32(123)} // []int32 | Primary IPv4 (ID) (optional)
@@ -8789,6 +9120,13 @@ func main() {
q := "q_example" // string | Search (optional)
rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional)
rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional)
+ rearPortCount := []int32{int32(123)} // []int32 | (optional)
+ rearPortCountEmpty := true // bool | (optional)
+ rearPortCountGt := []int32{int32(123)} // []int32 | (optional)
+ rearPortCountGte := []int32{int32(123)} // []int32 | (optional)
+ 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)
@@ -8849,7 +9187,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).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute()
+ 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()
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)
@@ -8870,8 +9208,8 @@ Other parameters are passed through a pointer to a apiDcimDevicesListRequest str
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **airflow** | **string** | |
- **airflowN** | **string** | |
+ **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 |
**assetTag** | **[]string** | |
**assetTagEmpty** | **bool** | |
**assetTagIc** | **[]string** | |
@@ -8887,7 +9225,21 @@ Name | Type | Description | Notes
**clusterIdN** | **[]int32** | VM cluster (ID) |
**configTemplateId** | **[]int32** | Config template (ID) |
**configTemplateIdN** | **[]int32** | Config template (ID) |
+ **consolePortCount** | **[]int32** | |
+ **consolePortCountEmpty** | **bool** | |
+ **consolePortCountGt** | **[]int32** | |
+ **consolePortCountGte** | **[]int32** | |
+ **consolePortCountLt** | **[]int32** | |
+ **consolePortCountLte** | **[]int32** | |
+ **consolePortCountN** | **[]int32** | |
**consolePorts** | **bool** | Has console ports |
+ **consoleServerPortCount** | **[]int32** | |
+ **consoleServerPortCountEmpty** | **bool** | |
+ **consoleServerPortCountGt** | **[]int32** | |
+ **consoleServerPortCountGte** | **[]int32** | |
+ **consoleServerPortCountLt** | **[]int32** | |
+ **consoleServerPortCountLte** | **[]int32** | |
+ **consoleServerPortCountN** | **[]int32** | |
**consoleServerPorts** | **bool** | Has console server ports |
**contact** | **[]int32** | Contact |
**contactN** | **[]int32** | Contact |
@@ -8914,15 +9266,30 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
+ **deviceBayCount** | **[]int32** | |
+ **deviceBayCountEmpty** | **bool** | |
+ **deviceBayCountGt** | **[]int32** | |
+ **deviceBayCountGte** | **[]int32** | |
+ **deviceBayCountLt** | **[]int32** | |
+ **deviceBayCountLte** | **[]int32** | |
+ **deviceBayCountN** | **[]int32** | |
**deviceBays** | **bool** | Has device bays |
**deviceType** | **[]string** | Device type (slug) |
**deviceTypeN** | **[]string** | Device type (slug) |
**deviceTypeId** | **[]int32** | Device type (ID) |
**deviceTypeIdN** | **[]int32** | Device type (ID) |
- **face** | **string** | |
- **faceN** | **string** | |
+ **face** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear |
+ **faceN** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear |
+ **frontPortCount** | **[]int32** | |
+ **frontPortCountEmpty** | **bool** | |
+ **frontPortCountGt** | **[]int32** | |
+ **frontPortCountGte** | **[]int32** | |
+ **frontPortCountLt** | **[]int32** | |
+ **frontPortCountLte** | **[]int32** | |
+ **frontPortCountN** | **[]int32** | |
**hasOobIp** | **bool** | Has an out-of-band IP |
**hasPrimaryIp** | **bool** | Has a primary IP |
+ **hasVirtualDeviceContext** | **bool** | Has virtual device context |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -8930,7 +9297,21 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **interfaceCount** | **[]int32** | |
+ **interfaceCountEmpty** | **bool** | |
+ **interfaceCountGt** | **[]int32** | |
+ **interfaceCountGte** | **[]int32** | |
+ **interfaceCountLt** | **[]int32** | |
+ **interfaceCountLte** | **[]int32** | |
+ **interfaceCountN** | **[]int32** | |
**interfaces** | **bool** | Has interfaces |
+ **inventoryItemCount** | **[]int32** | |
+ **inventoryItemCountEmpty** | **bool** | |
+ **inventoryItemCountGt** | **[]int32** | |
+ **inventoryItemCountGte** | **[]int32** | |
+ **inventoryItemCountLt** | **[]int32** | |
+ **inventoryItemCountLte** | **[]int32** | |
+ **inventoryItemCountN** | **[]int32** | |
**isFullDepth** | **bool** | Is full depth |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
@@ -8974,6 +9355,13 @@ Name | Type | Description | Notes
**model** | **[]string** | Device model (slug) |
**modelN** | **[]string** | Device model (slug) |
**modifiedByRequest** | **string** | |
+ **moduleBayCount** | **[]int32** | |
+ **moduleBayCountEmpty** | **bool** | |
+ **moduleBayCountGt** | **[]int32** | |
+ **moduleBayCountGte** | **[]int32** | |
+ **moduleBayCountLt** | **[]int32** | |
+ **moduleBayCountLte** | **[]int32** | |
+ **moduleBayCountN** | **[]int32** | |
**moduleBays** | **bool** | Has module bays |
**name** | **[]string** | |
**nameEmpty** | **bool** | |
@@ -8990,6 +9378,8 @@ Name | Type | Description | Notes
**oobIpId** | **[]int32** | OOB IP (ID) |
**oobIpIdN** | **[]int32** | OOB IP (ID) |
**ordering** | **string** | Which field to use when ordering the results. |
+ **parentBayId** | **[]int32** | Parent bay (ID) |
+ **parentBayIdN** | **[]int32** | Parent bay (ID) |
**parentDeviceId** | **[]int32** | Parent Device (ID) |
**parentDeviceIdN** | **[]int32** | Parent Device (ID) |
**passThroughPorts** | **bool** | Has pass-through ports |
@@ -9004,7 +9394,21 @@ Name | Type | Description | Notes
**positionLt** | **[]float64** | |
**positionLte** | **[]float64** | |
**positionN** | **[]float64** | |
+ **powerOutletCount** | **[]int32** | |
+ **powerOutletCountEmpty** | **bool** | |
+ **powerOutletCountGt** | **[]int32** | |
+ **powerOutletCountGte** | **[]int32** | |
+ **powerOutletCountLt** | **[]int32** | |
+ **powerOutletCountLte** | **[]int32** | |
+ **powerOutletCountN** | **[]int32** | |
**powerOutlets** | **bool** | Has power outlets |
+ **powerPortCount** | **[]int32** | |
+ **powerPortCountEmpty** | **bool** | |
+ **powerPortCountGt** | **[]int32** | |
+ **powerPortCountGte** | **[]int32** | |
+ **powerPortCountLt** | **[]int32** | |
+ **powerPortCountLte** | **[]int32** | |
+ **powerPortCountN** | **[]int32** | |
**powerPorts** | **bool** | Has power ports |
**primaryIp4Id** | **[]int32** | Primary IPv4 (ID) |
**primaryIp4IdN** | **[]int32** | Primary IPv4 (ID) |
@@ -9013,6 +9417,13 @@ Name | Type | Description | Notes
**q** | **string** | Search |
**rackId** | **[]int32** | Rack (ID) |
**rackIdN** | **[]int32** | Rack (ID) |
+ **rearPortCount** | **[]int32** | |
+ **rearPortCountEmpty** | **bool** | |
+ **rearPortCountGt** | **[]int32** | |
+ **rearPortCountGte** | **[]int32** | |
+ **rearPortCountLt** | **[]int32** | |
+ **rearPortCountLte** | **[]int32** | |
+ **rearPortCountN** | **[]int32** | |
**region** | **[]int32** | Region (slug) |
**regionN** | **[]int32** | Region (slug) |
**regionId** | **[]int32** | Region (ID) |
@@ -9106,7 +9517,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9178,12 +9589,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device.
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ 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 |
format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional)
configuration := openapiclient.NewConfiguration()
@@ -9252,7 +9663,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9322,12 +9733,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this device.
- writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(int32(123), int32(123), int32(123)) // WritableDeviceWithConfigContextRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9394,11 +9805,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9458,11 +9869,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9524,11 +9935,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewNestedRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
+ frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9590,11 +10001,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortTemplateRequest |
+ writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9656,7 +10067,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9709,7 +10120,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -9725,7 +10136,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9759,6 +10170,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -9768,6 +10181,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)
@@ -9777,6 +10201,8 @@ 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)
+ 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)
@@ -9793,13 +10219,22 @@ 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)
+ rearPortId := []int32{int32(123)} // []int32 | (optional)
+ rearPortIdN := []int32{int32(123)} // []int32 | (optional)
+ rearPortPosition := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionEmpty := true // bool | (optional)
+ rearPortPositionGt := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionGte := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionLt := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionLte := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionN := []int32{int32(123)} // []int32 | (optional)
type_ := []string{"Inner_example"} // []string | (optional)
typeN := []string{"Inner_example"} // []string | (optional)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -9850,6 +10285,8 @@ 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** | |
@@ -9859,6 +10296,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) | |
@@ -9868,6 +10316,8 @@ Name | Type | Description | Notes
**lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
**limit** | **int32** | Number of results to return per page. |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -9884,6 +10334,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. |
**q** | **string** | Search |
+ **rearPortId** | **[]int32** | |
+ **rearPortIdN** | **[]int32** | |
+ **rearPortPosition** | **[]int32** | |
+ **rearPortPositionEmpty** | **bool** | |
+ **rearPortPositionGt** | **[]int32** | |
+ **rearPortPositionGte** | **[]int32** | |
+ **rearPortPositionLt** | **[]int32** | |
+ **rearPortPositionLte** | **[]int32** | |
+ **rearPortPositionN** | **[]int32** | |
**type_** | **[]string** | |
**typeN** | **[]string** | |
**updatedByRequest** | **string** | |
@@ -9923,7 +10382,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9995,7 +10454,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10065,12 +10524,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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"), int32(123)) // WritableFrontPortTemplateRequest |
+ writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10137,11 +10596,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10201,11 +10660,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10267,11 +10726,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
+ frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10333,11 +10792,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest |
+ writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10399,7 +10858,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10452,7 +10911,7 @@ Name | Type | Description | Notes
## DcimFrontPortsList
-> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -10468,12 +10927,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
color := []string{"Inner_example"} // []string | (optional)
colorEmpty := true // bool | (optional)
@@ -10509,10 +10970,6 @@ 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)
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)
@@ -10547,6 +11004,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (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)
@@ -10569,6 +11027,15 @@ 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)
+ rearPortId := []int32{int32(123)} // []int32 | (optional)
+ rearPortIdN := []int32{int32(123)} // []int32 | (optional)
+ rearPortPosition := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionEmpty := true // bool | (optional)
+ rearPortPositionGt := []int32{int32(123)} // []int32 | (optional)
+ rearPortPositionGte := []int32{int32(123)} // []int32 | (optional)
+ 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)
@@ -10597,7 +11064,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -10618,8 +11085,10 @@ Other parameters are passed through a pointer to a apiDcimFrontPortsListRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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** | |
**color** | **[]string** | |
**colorEmpty** | **bool** | |
@@ -10655,10 +11124,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -10693,6 +11158,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -10715,6 +11181,15 @@ Name | Type | Description | Notes
**rackN** | **[]string** | Rack (name) |
**rackId** | **[]int32** | Rack (ID) |
**rackIdN** | **[]int32** | Rack (ID) |
+ **rearPortId** | **[]int32** | |
+ **rearPortIdN** | **[]int32** | |
+ **rearPortPosition** | **[]int32** | |
+ **rearPortPositionEmpty** | **bool** | |
+ **rearPortPositionGt** | **[]int32** | |
+ **rearPortPositionGte** | **[]int32** | |
+ **rearPortPositionLt** | **[]int32** | |
+ **rearPortPositionLte** | **[]int32** | |
+ **rearPortPositionN** | **[]int32** | |
**region** | **[]int32** | Region (slug) |
**regionN** | **[]int32** | Region (slug) |
**regionId** | **[]int32** | Region (ID) |
@@ -10776,7 +11251,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10848,7 +11323,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10918,7 +11393,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10988,12 +11463,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this front port.
- writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest |
+ writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -11060,7 +11535,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11124,7 +11599,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11190,7 +11665,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11256,7 +11731,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11322,7 +11797,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11375,7 +11850,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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -11391,7 +11866,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11416,6 +11891,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
enabled := true // bool | (optional)
@@ -11426,6 +11903,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)
@@ -11436,6 +11924,8 @@ func main() {
limit := int32(56) // int32 | Number of results to return per page. (optional)
mgmtOnly := true // bool | (optional)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
+ moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional)
name := []string{"Inner_example"} // []string | (optional)
@@ -11464,7 +11954,7 @@ func main() {
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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -11506,6 +11996,8 @@ 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) |
**enabled** | **bool** | |
@@ -11516,6 +12008,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) | |
@@ -11526,6 +12029,8 @@ Name | Type | Description | Notes
**limit** | **int32** | Number of results to return per page. |
**mgmtOnly** | **bool** | |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -11587,7 +12092,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11659,7 +12164,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11729,7 +12234,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11801,11 +12306,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -11865,11 +12370,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -11931,11 +12436,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
+ interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -11997,11 +12502,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(int32(123), []int32{int32(123)}, "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest |
+ writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -12063,7 +12568,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12116,7 +12621,7 @@ Name | Type | Description | Notes
## DcimInterfacesList
-> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute()
+> 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()
@@ -12132,14 +12637,16 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
bridgeId := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
bridgeIdN := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -12165,10 +12672,6 @@ 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)
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)
@@ -12223,9 +12726,10 @@ func main() {
macAddressNie := []string{"Inner_example"} // []string | (optional)
macAddressNiew := []string{"Inner_example"} // []string | (optional)
macAddressNisw := []string{"Inner_example"} // []string | (optional)
+ markConnected := true // bool | (optional)
mgmtOnly := true // bool | (optional)
- mode := "mode_example" // string | IEEE 802.1Q tagging strategy (optional)
- modeN := "modeN_example" // string | IEEE 802.1Q tagging strategy (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)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional)
@@ -12332,6 +12836,10 @@ func main() {
vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional)
vrfId := []int32{int32(123)} // []int32 | VRF (optional)
vrfIdN := []int32{int32(123)} // []int32 | VRF (optional)
+ wirelessLanId := []int32{int32(123)} // []int32 | Wireless LAN (optional)
+ wirelessLanIdN := []int32{int32(123)} // []int32 | Wireless LAN (optional)
+ wirelessLinkId := []*int32{int32(123)} // []*int32 | Wireless link (optional)
+ wirelessLinkIdN := []*int32{int32(123)} // []*int32 | Wireless link (optional)
wwn := []string{"Inner_example"} // []string | (optional)
wwnIc := []string{"Inner_example"} // []string | (optional)
wwnIe := []string{"Inner_example"} // []string | (optional)
@@ -12345,7 +12853,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).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute()
+ 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()
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)
@@ -12368,8 +12876,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bridgeId** | **[]int32** | Bridged interface (ID) |
**bridgeIdN** | **[]int32** | Bridged interface (ID) |
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -12395,10 +12905,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -12453,9 +12959,10 @@ Name | Type | Description | Notes
**macAddressNie** | **[]string** | |
**macAddressNiew** | **[]string** | |
**macAddressNisw** | **[]string** | |
+ **markConnected** | **bool** | |
**mgmtOnly** | **bool** | |
- **mode** | **string** | IEEE 802.1Q tagging strategy |
- **modeN** | **string** | IEEE 802.1Q tagging strategy |
+ **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) |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -12562,6 +13069,10 @@ Name | Type | Description | Notes
**vrfN** | **[]string** | VRF (RD) |
**vrfId** | **[]int32** | VRF |
**vrfIdN** | **[]int32** | VRF |
+ **wirelessLanId** | **[]int32** | Wireless LAN |
+ **wirelessLanIdN** | **[]int32** | Wireless LAN |
+ **wirelessLinkId** | **[]int32** | Wireless link |
+ **wirelessLinkIdN** | **[]int32** | Wireless link |
**wwn** | **[]string** | |
**wwnIc** | **[]string** | |
**wwnIe** | **[]string** | |
@@ -12608,7 +13119,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12680,7 +13191,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12750,7 +13261,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12820,12 +13331,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this interface.
- writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(int32(123), []int32{int32(123)}, "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest |
+ writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -12892,7 +13403,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12956,7 +13467,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13022,7 +13533,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13088,7 +13599,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13154,7 +13665,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13223,7 +13734,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13435,7 +13946,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13507,7 +14018,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13577,7 +14088,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13649,11 +14160,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -13713,11 +14224,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -13779,11 +14290,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -13830,7 +14341,7 @@ Name | Type | Description | Notes
## DcimInventoryItemTemplatesCreate
-> InventoryItemTemplate DcimInventoryItemTemplatesCreate(ctx).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+> InventoryItemTemplate DcimInventoryItemTemplatesCreate(ctx).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
@@ -13845,15 +14356,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -13874,7 +14385,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemTemplates
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableInventoryItemTemplateRequest** | [**WritableInventoryItemTemplateRequest**](WritableInventoryItemTemplateRequest.md) | |
+ **inventoryItemTemplateRequest** | [**InventoryItemTemplateRequest**](InventoryItemTemplateRequest.md) | |
### Return type
@@ -13911,7 +14422,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -13964,7 +14475,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).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).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()
@@ -13980,7 +14491,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -14012,6 +14523,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)
devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -14080,7 +14593,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).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).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)
@@ -14129,6 +14642,8 @@ 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** | |
@@ -14215,7 +14730,7 @@ Name | Type | Description | Notes
## DcimInventoryItemTemplatesPartialUpdate
-> InventoryItemTemplate DcimInventoryItemTemplatesPartialUpdate(ctx, id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute()
+> InventoryItemTemplate DcimInventoryItemTemplatesPartialUpdate(ctx, id).PatchedInventoryItemTemplateRequest(patchedInventoryItemTemplateRequest).Execute()
@@ -14230,16 +14745,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- patchedWritableInventoryItemTemplateRequest := *openapiclient.NewPatchedWritableInventoryItemTemplateRequest() // PatchedWritableInventoryItemTemplateRequest | (optional)
+ patchedInventoryItemTemplateRequest := *openapiclient.NewPatchedInventoryItemTemplateRequest() // PatchedInventoryItemTemplateRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedInventoryItemTemplateRequest(patchedInventoryItemTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -14265,7 +14780,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemTemplates
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableInventoryItemTemplateRequest** | [**PatchedWritableInventoryItemTemplateRequest**](PatchedWritableInventoryItemTemplateRequest.md) | |
+ **patchedInventoryItemTemplateRequest** | [**PatchedInventoryItemTemplateRequest**](PatchedInventoryItemTemplateRequest.md) | |
### Return type
@@ -14302,7 +14817,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -14357,7 +14872,7 @@ Name | Type | Description | Notes
## DcimInventoryItemTemplatesUpdate
-> InventoryItemTemplate DcimInventoryItemTemplatesUpdate(ctx, id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+> InventoryItemTemplate DcimInventoryItemTemplatesUpdate(ctx, id).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
@@ -14372,16 +14887,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this inventory item template.
- writableInventoryItemTemplateRequest := *openapiclient.NewWritableInventoryItemTemplateRequest(int32(123), "Name_example") // WritableInventoryItemTemplateRequest |
+ inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -14407,7 +14922,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemTemplates
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableInventoryItemTemplateRequest** | [**WritableInventoryItemTemplateRequest**](WritableInventoryItemTemplateRequest.md) | |
+ **inventoryItemTemplateRequest** | [**InventoryItemTemplateRequest**](InventoryItemTemplateRequest.md) | |
### Return type
@@ -14444,11 +14959,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -14508,11 +15023,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -14574,11 +15089,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []InventoryItemRequest |
+ inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -14625,7 +15140,7 @@ Name | Type | Description | Notes
## DcimInventoryItemsCreate
-> InventoryItem DcimInventoryItemsCreate(ctx).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+> InventoryItem DcimInventoryItemsCreate(ctx).InventoryItemRequest(inventoryItemRequest).Execute()
@@ -14640,15 +15155,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
+ inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).InventoryItemRequest(inventoryItemRequest).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)
@@ -14669,7 +15184,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsCreateRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableInventoryItemRequest** | [**WritableInventoryItemRequest**](WritableInventoryItemRequest.md) | |
+ **inventoryItemRequest** | [**InventoryItemRequest**](InventoryItemRequest.md) | |
### Return type
@@ -14706,7 +15221,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -14759,7 +15274,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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -14775,7 +15290,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -14807,14 +15322,21 @@ 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)
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)
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)
@@ -14923,7 +15445,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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -14972,14 +15494,21 @@ 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** | |
**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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -15106,7 +15635,7 @@ Name | Type | Description | Notes
## DcimInventoryItemsPartialUpdate
-> InventoryItem DcimInventoryItemsPartialUpdate(ctx, id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute()
+> InventoryItem DcimInventoryItemsPartialUpdate(ctx, id).PatchedInventoryItemRequest(patchedInventoryItemRequest).Execute()
@@ -15121,16 +15650,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this inventory item.
- patchedWritableInventoryItemRequest := *openapiclient.NewPatchedWritableInventoryItemRequest() // PatchedWritableInventoryItemRequest | (optional)
+ patchedInventoryItemRequest := *openapiclient.NewPatchedInventoryItemRequest() // PatchedInventoryItemRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedInventoryItemRequest(patchedInventoryItemRequest).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)
@@ -15156,7 +15685,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsPartialU
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableInventoryItemRequest** | [**PatchedWritableInventoryItemRequest**](PatchedWritableInventoryItemRequest.md) | |
+ **patchedInventoryItemRequest** | [**PatchedInventoryItemRequest**](PatchedInventoryItemRequest.md) | |
### Return type
@@ -15193,7 +15722,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -15248,7 +15777,7 @@ Name | Type | Description | Notes
## DcimInventoryItemsUpdate
-> InventoryItem DcimInventoryItemsUpdate(ctx, id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+> InventoryItem DcimInventoryItemsUpdate(ctx, id).InventoryItemRequest(inventoryItemRequest).Execute()
@@ -15263,16 +15792,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this inventory item.
- writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(int32(123), "Name_example") // WritableInventoryItemRequest |
+ inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).InventoryItemRequest(inventoryItemRequest).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)
@@ -15298,7 +15827,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsUpdateRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableInventoryItemRequest** | [**WritableInventoryItemRequest**](WritableInventoryItemRequest.md) | |
+ **inventoryItemRequest** | [**InventoryItemRequest**](InventoryItemRequest.md) | |
### Return type
@@ -15335,11 +15864,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
+ locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -15399,11 +15928,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
+ locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -15465,11 +15994,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []LocationRequest |
+ locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -15531,11 +16060,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
+ writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -15597,7 +16126,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -15650,7 +16179,7 @@ Name | Type | Description | Notes
## DcimLocationsList
-> PaginatedLocationList DcimLocationsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -15666,10 +16195,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
contact := []int32{int32(123)} // []int32 | Contact (optional)
contactN := []int32{int32(123)} // []int32 | Contact (optional)
contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
@@ -15695,6 +16228,17 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ facility := []string{"Inner_example"} // []string | (optional)
+ facilityEmpty := true // bool | (optional)
+ facilityIc := []string{"Inner_example"} // []string | (optional)
+ facilityIe := []string{"Inner_example"} // []string | (optional)
+ facilityIew := []string{"Inner_example"} // []string | (optional)
+ facilityIsw := []string{"Inner_example"} // []string | (optional)
+ facilityN := []string{"Inner_example"} // []string | (optional)
+ facilityNic := []string{"Inner_example"} // []string | (optional)
+ facilityNie := []string{"Inner_example"} // []string | (optional)
+ facilityNiew := []string{"Inner_example"} // []string | (optional)
+ facilityNisw := []string{"Inner_example"} // []string | (optional)
id := []int32{int32(123)} // []int32 | (optional)
idEmpty := true // bool | (optional)
idGt := []int32{int32(123)} // []int32 | (optional)
@@ -15724,10 +16268,10 @@ 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)
- parent := []int32{int32(123)} // []int32 | Location (slug) (optional)
- parentN := []int32{int32(123)} // []int32 | Location (slug) (optional)
- parentId := []int32{int32(123)} // []int32 | Location (ID) (optional)
- parentIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ parent := []string{"Inner_example"} // []string | Parent location (slug) (optional)
+ parentN := []string{"Inner_example"} // []string | Parent location (slug) (optional)
+ 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)
@@ -15768,7 +16312,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -15789,6 +16333,10 @@ 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) |
**contact** | **[]int32** | Contact |
**contactN** | **[]int32** | Contact |
**contactGroup** | **[]int32** | Contact group |
@@ -15814,6 +16362,17 @@ Name | Type | Description | Notes
**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** | |
@@ -15843,10 +16402,10 @@ 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. |
- **parent** | **[]int32** | Location (slug) |
- **parentN** | **[]int32** | Location (slug) |
- **parentId** | **[]int32** | Location (ID) |
- **parentIdN** | **[]int32** | Location (ID) |
+ **parent** | **[]string** | Parent location (slug) |
+ **parentN** | **[]string** | Parent location (slug) |
+ **parentId** | **[]int32** | Parent location (ID) |
+ **parentIdN** | **[]int32** | Parent location (ID) |
**q** | **string** | Search |
**region** | **[]int32** | Region (slug) |
**regionN** | **[]int32** | Region (slug) |
@@ -15920,7 +16479,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -15992,7 +16551,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16062,12 +16621,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this location.
- writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", int32(123)) // WritableLocationRequest |
+ writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -16134,7 +16693,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16198,7 +16757,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16264,7 +16823,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16330,7 +16889,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16396,7 +16955,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16465,7 +17024,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16667,7 +17226,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16739,7 +17298,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16809,7 +17368,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -16881,11 +17440,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -16945,11 +17504,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -17011,11 +17570,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewNestedDeviceTypeRequest("Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
+ moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -17062,7 +17621,7 @@ Name | Type | Description | Notes
## DcimModuleBayTemplatesCreate
-> ModuleBayTemplate DcimModuleBayTemplatesCreate(ctx).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+> ModuleBayTemplate DcimModuleBayTemplatesCreate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
@@ -17077,15 +17636,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
+ moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -17106,7 +17665,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesCrea
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableModuleBayTemplateRequest** | [**WritableModuleBayTemplateRequest**](WritableModuleBayTemplateRequest.md) | |
+ **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | |
### Return type
@@ -17143,7 +17702,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -17196,7 +17755,7 @@ Name | Type | Description | Notes
## DcimModuleBayTemplatesList
-> 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).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()
+> 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()
@@ -17212,7 +17771,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -17235,6 +17794,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)
devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional)
devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -17244,6 +17805,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)
@@ -17266,12 +17838,23 @@ 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)
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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -17311,6 +17894,8 @@ 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** | |
@@ -17320,6 +17905,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) | |
@@ -17342,6 +17938,17 @@ 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 |
**updatedByRequest** | **string** | |
@@ -17365,7 +17972,7 @@ Name | Type | Description | Notes
## DcimModuleBayTemplatesPartialUpdate
-> ModuleBayTemplate DcimModuleBayTemplatesPartialUpdate(ctx, id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute()
+> ModuleBayTemplate DcimModuleBayTemplatesPartialUpdate(ctx, id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute()
@@ -17380,16 +17987,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module bay template.
- patchedWritableModuleBayTemplateRequest := *openapiclient.NewPatchedWritableModuleBayTemplateRequest() // PatchedWritableModuleBayTemplateRequest | (optional)
+ patchedModuleBayTemplateRequest := *openapiclient.NewPatchedModuleBayTemplateRequest() // PatchedModuleBayTemplateRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -17415,7 +18022,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesPart
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableModuleBayTemplateRequest** | [**PatchedWritableModuleBayTemplateRequest**](PatchedWritableModuleBayTemplateRequest.md) | |
+ **patchedModuleBayTemplateRequest** | [**PatchedModuleBayTemplateRequest**](PatchedModuleBayTemplateRequest.md) | |
### Return type
@@ -17452,7 +18059,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -17507,7 +18114,7 @@ Name | Type | Description | Notes
## DcimModuleBayTemplatesUpdate
-> ModuleBayTemplate DcimModuleBayTemplatesUpdate(ctx, id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+> ModuleBayTemplate DcimModuleBayTemplatesUpdate(ctx, id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
@@ -17522,16 +18129,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module bay template.
- writableModuleBayTemplateRequest := *openapiclient.NewWritableModuleBayTemplateRequest(int32(123), "Name_example") // WritableModuleBayTemplateRequest |
+ moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -17557,7 +18164,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableModuleBayTemplateRequest** | [**WritableModuleBayTemplateRequest**](WritableModuleBayTemplateRequest.md) | |
+ **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | |
### Return type
@@ -17594,11 +18201,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -17658,11 +18265,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -17724,11 +18331,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []ModuleBayRequest |
+ moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -17775,7 +18382,7 @@ Name | Type | Description | Notes
## DcimModuleBaysCreate
-> ModuleBay DcimModuleBaysCreate(ctx).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+> ModuleBay DcimModuleBaysCreate(ctx).ModuleBayRequest(moduleBayRequest).Execute()
@@ -17790,15 +18397,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
+ moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -17819,7 +18426,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBaysCreateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableModuleBayRequest** | [**WritableModuleBayRequest**](WritableModuleBayRequest.md) | |
+ **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | |
### Return type
@@ -17856,7 +18463,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -17909,7 +18516,7 @@ Name | Type | Description | Notes
## DcimModuleBaysList
-> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -17925,7 +18532,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -17952,10 +18559,6 @@ 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)
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)
@@ -17967,6 +18570,8 @@ 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)
@@ -18004,6 +18609,17 @@ 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)
rack := []string{"Inner_example"} // []string | Rack (name) (optional)
rackN := []string{"Inner_example"} // []string | Rack (name) (optional)
@@ -18035,7 +18651,7 @@ func main() {
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).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -18079,10 +18695,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -18094,6 +18706,8 @@ 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** | |
@@ -18131,6 +18745,17 @@ 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 |
**rack** | **[]string** | Rack (name) |
**rackN** | **[]string** | Rack (name) |
@@ -18180,7 +18805,7 @@ Name | Type | Description | Notes
## DcimModuleBaysPartialUpdate
-> ModuleBay DcimModuleBaysPartialUpdate(ctx, id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute()
+> ModuleBay DcimModuleBaysPartialUpdate(ctx, id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute()
@@ -18195,16 +18820,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module bay.
- patchedWritableModuleBayRequest := *openapiclient.NewPatchedWritableModuleBayRequest() // PatchedWritableModuleBayRequest | (optional)
+ patchedModuleBayRequest := *openapiclient.NewPatchedModuleBayRequest() // PatchedModuleBayRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -18230,7 +18855,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBaysPartialUpdat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableModuleBayRequest** | [**PatchedWritableModuleBayRequest**](PatchedWritableModuleBayRequest.md) | |
+ **patchedModuleBayRequest** | [**PatchedModuleBayRequest**](PatchedModuleBayRequest.md) | |
### Return type
@@ -18267,7 +18892,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -18322,7 +18947,7 @@ Name | Type | Description | Notes
## DcimModuleBaysUpdate
-> ModuleBay DcimModuleBaysUpdate(ctx, id).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+> ModuleBay DcimModuleBaysUpdate(ctx, id).ModuleBayRequest(moduleBayRequest).Execute()
@@ -18337,16 +18962,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module bay.
- writableModuleBayRequest := *openapiclient.NewWritableModuleBayRequest(int32(123), "Name_example", int32(123)) // WritableModuleBayRequest |
+ moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).WritableModuleBayRequest(writableModuleBayRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).ModuleBayRequest(moduleBayRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -18372,7 +18997,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBaysUpdateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableModuleBayRequest** | [**WritableModuleBayRequest**](WritableModuleBayRequest.md) | |
+ **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | |
### Return type
@@ -18409,11 +19034,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -18473,11 +19098,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -18539,11 +19164,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewNestedManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
+ moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -18605,11 +19230,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
+ writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -18671,7 +19296,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -18740,7 +19365,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -18824,8 +19449,8 @@ func main() {
weightLt := []float64{float64(123)} // []float64 | (optional)
weightLte := []float64{float64(123)} // []float64 | (optional)
weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (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)
@@ -18930,8 +19555,8 @@ Name | Type | Description | Notes
**weightLt** | **[]float64** | |
**weightLte** | **[]float64** | |
**weightN** | **[]float64** | |
- **weightUnit** | **string** | |
- **weightUnitN** | **string** | |
+ **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
@@ -18968,7 +19593,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19040,7 +19665,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19110,12 +19735,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module type.
- writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(int32(123), "Model_example") // WritableModuleTypeRequest |
+ writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19182,11 +19807,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19246,11 +19871,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19312,11 +19937,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewNestedDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewNestedModuleTypeRequest("Model_example"))} // []ModuleRequest |
+ moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19378,11 +20003,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
+ writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19444,7 +20069,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19513,7 +20138,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19731,7 +20356,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19803,7 +20428,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -19873,12 +20498,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this module.
- writableModuleRequest := *openapiclient.NewWritableModuleRequest(int32(123), int32(123), int32(123)) // WritableModuleRequest |
+ writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -19945,7 +20570,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20009,7 +20634,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20075,7 +20700,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20126,7 +20751,7 @@ Name | Type | Description | Notes
## DcimPlatformsCreate
-> Platform DcimPlatformsCreate(ctx).WritablePlatformRequest(writablePlatformRequest).Execute()
+> Platform DcimPlatformsCreate(ctx).PlatformRequest(platformRequest).Execute()
@@ -20141,15 +20766,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
+ platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).WritablePlatformRequest(writablePlatformRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).PlatformRequest(platformRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -20170,7 +20795,7 @@ Other parameters are passed through a pointer to a apiDcimPlatformsCreateRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writablePlatformRequest** | [**WritablePlatformRequest**](WritablePlatformRequest.md) | |
+ **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | |
### Return type
@@ -20207,7 +20832,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20276,7 +20901,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20465,7 +21090,7 @@ Name | Type | Description | Notes
## DcimPlatformsPartialUpdate
-> Platform DcimPlatformsPartialUpdate(ctx, id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute()
+> Platform DcimPlatformsPartialUpdate(ctx, id).PatchedPlatformRequest(patchedPlatformRequest).Execute()
@@ -20480,16 +21105,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this platform.
- patchedWritablePlatformRequest := *openapiclient.NewPatchedWritablePlatformRequest() // PatchedWritablePlatformRequest | (optional)
+ patchedPlatformRequest := *openapiclient.NewPatchedPlatformRequest() // PatchedPlatformRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).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)
@@ -20515,7 +21140,7 @@ Other parameters are passed through a pointer to a apiDcimPlatformsPartialUpdate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritablePlatformRequest** | [**PatchedWritablePlatformRequest**](PatchedWritablePlatformRequest.md) | |
+ **patchedPlatformRequest** | [**PatchedPlatformRequest**](PatchedPlatformRequest.md) | |
### Return type
@@ -20552,7 +21177,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -20607,7 +21232,7 @@ Name | Type | Description | Notes
## DcimPlatformsUpdate
-> Platform DcimPlatformsUpdate(ctx, id).WritablePlatformRequest(writablePlatformRequest).Execute()
+> Platform DcimPlatformsUpdate(ctx, id).PlatformRequest(platformRequest).Execute()
@@ -20622,16 +21247,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this platform.
- writablePlatformRequest := *openapiclient.NewWritablePlatformRequest("Name_example", "Slug_example") // WritablePlatformRequest |
+ platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).WritablePlatformRequest(writablePlatformRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).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)
@@ -20657,7 +21282,7 @@ Other parameters are passed through a pointer to a apiDcimPlatformsUpdateRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writablePlatformRequest** | [**WritablePlatformRequest**](WritablePlatformRequest.md) | |
+ **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | |
### Return type
@@ -20694,11 +21319,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -20758,11 +21383,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -20824,11 +21449,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewNestedPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
+ powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -20890,11 +21515,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(int32(123), "Name_example") // WritablePowerFeedRequest |
+ writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -20956,7 +21581,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21009,7 +21634,7 @@ Name | Type | Description | Notes
## DcimPowerFeedsList
-> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).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).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()
@@ -21025,7 +21650,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21036,8 +21661,17 @@ func main() {
amperageLt := []int32{int32(123)} // []int32 | (optional)
amperageLte := []int32{int32(123)} // []int32 | (optional)
amperageN := []int32{int32(123)} // []int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -21074,6 +21708,7 @@ 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)
@@ -21096,8 +21731,8 @@ func main() {
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 := "phase_example" // string | (optional)
- phaseN := "phaseN_example" // string | (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)
q := "q_example" // string | Search (optional)
@@ -21117,8 +21752,8 @@ func main() {
siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional)
status := []string{"Inner_example"} // []string | (optional)
statusN := []string{"Inner_example"} // []string | (optional)
- supply := "supply_example" // string | (optional)
- supplyN := "supplyN_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)
@@ -21129,8 +21764,8 @@ func main() {
tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional)
tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (optional)
+ 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)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
voltage := []int32{int32(123)} // []int32 | (optional)
voltageEmpty := true // bool | (optional)
@@ -21142,7 +21777,7 @@ func main() {
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).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute()
+ 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()
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)
@@ -21170,8 +21805,17 @@ Name | Type | Description | Notes
**amperageLt** | **[]int32** | |
**amperageLte** | **[]int32** | |
**amperageN** | **[]int32** | |
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -21208,6 +21852,7 @@ 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** | |
@@ -21230,8 +21875,8 @@ Name | Type | Description | Notes
**occupied** | **bool** | |
**offset** | **int32** | The initial index from which to return the results. |
**ordering** | **string** | Which field to use when ordering the results. |
- **phase** | **string** | |
- **phaseN** | **string** | |
+ **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) |
**q** | **string** | Search |
@@ -21251,8 +21896,8 @@ Name | Type | Description | Notes
**siteIdN** | **[]int32** | Site (ID) |
**status** | **[]string** | |
**statusN** | **[]string** | |
- **supply** | **string** | |
- **supplyN** | **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) |
@@ -21263,8 +21908,8 @@ Name | Type | Description | Notes
**tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
**tenantId** | **[]int32** | Tenant (ID) |
**tenantIdN** | **[]int32** | Tenant (ID) |
- **type_** | **string** | |
- **typeN** | **string** | |
+ **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant |
+ **typeN** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant |
**updatedByRequest** | **string** | |
**voltage** | **[]int32** | |
**voltageEmpty** | **bool** | |
@@ -21309,7 +21954,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21381,7 +22026,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21451,7 +22096,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21521,12 +22166,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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(int32(123), "Name_example") // WritablePowerFeedRequest |
+ writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -21593,7 +22238,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21657,7 +22302,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21723,7 +22368,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21789,7 +22434,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21855,7 +22500,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21908,7 +22553,7 @@ Name | Type | Description | Notes
## 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).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -21924,7 +22569,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -21947,6 +22592,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)
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)
@@ -21958,6 +22605,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)
@@ -21967,6 +22625,8 @@ 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)
+ 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)
@@ -21982,14 +22642,16 @@ 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)
+ 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_ := "type__example" // string | (optional)
- typeN := "typeN_example" // string | (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)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (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).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -22029,6 +22691,8 @@ 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) |
**feedLeg** | **[]string** | Phase (for three-phase feeds) |
@@ -22040,6 +22704,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) | |
@@ -22049,6 +22724,8 @@ Name | Type | Description | Notes
**lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
**limit** | **int32** | Number of results to return per page. |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -22064,9 +22741,11 @@ 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. |
+ **powerPortId** | **[]int32** | Power port (ID) |
+ **powerPortIdN** | **[]int32** | Power port (ID) |
**q** | **string** | Search |
- **type_** | **string** | |
- **typeN** | **string** | |
+ **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')] |
**updatedByRequest** | **string** | |
### Return type
@@ -22104,7 +22783,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -22176,7 +22855,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -22246,7 +22925,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -22318,11 +22997,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -22382,11 +23061,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -22448,11 +23127,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerOutletRequest |
+ powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -22514,11 +23193,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(int32(123), "Name_example") // WritablePowerOutletRequest |
+ writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -22580,7 +23259,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -22633,7 +23312,7 @@ Name | Type | Description | Notes
## DcimPowerOutletsList
-> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -22649,12 +23328,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -22680,10 +23361,6 @@ 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)
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)
@@ -22720,6 +23397,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (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)
@@ -22737,6 +23415,8 @@ func main() {
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)
@@ -22770,7 +23450,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -22791,8 +23471,10 @@ Other parameters are passed through a pointer to a apiDcimPowerOutletsListReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -22818,10 +23500,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -22858,6 +23536,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -22875,6 +23554,8 @@ Name | Type | Description | Notes
**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) |
@@ -22941,7 +23622,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23013,7 +23694,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23083,7 +23764,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23153,12 +23834,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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(int32(123), "Name_example") // WritablePowerOutletRequest |
+ writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -23225,11 +23906,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -23289,11 +23970,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -23355,11 +24036,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest |
+ powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -23406,7 +24087,7 @@ Name | Type | Description | Notes
## DcimPowerPanelsCreate
-> PowerPanel DcimPowerPanelsCreate(ctx).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+> PowerPanel DcimPowerPanelsCreate(ctx).PowerPanelRequest(powerPanelRequest).Execute()
@@ -23421,15 +24102,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
+ powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -23450,7 +24131,7 @@ Other parameters are passed through a pointer to a apiDcimPowerPanelsCreateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writablePowerPanelRequest** | [**WritablePowerPanelRequest**](WritablePowerPanelRequest.md) | |
+ **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | |
### Return type
@@ -23487,7 +24168,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23556,7 +24237,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23749,7 +24430,7 @@ Name | Type | Description | Notes
## DcimPowerPanelsPartialUpdate
-> PowerPanel DcimPowerPanelsPartialUpdate(ctx, id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute()
+> PowerPanel DcimPowerPanelsPartialUpdate(ctx, id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute()
@@ -23764,16 +24445,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this power panel.
- patchedWritablePowerPanelRequest := *openapiclient.NewPatchedWritablePowerPanelRequest() // PatchedWritablePowerPanelRequest | (optional)
+ patchedPowerPanelRequest := *openapiclient.NewPatchedPowerPanelRequest() // PatchedPowerPanelRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -23799,7 +24480,7 @@ Other parameters are passed through a pointer to a apiDcimPowerPanelsPartialUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritablePowerPanelRequest** | [**PatchedWritablePowerPanelRequest**](PatchedWritablePowerPanelRequest.md) | |
+ **patchedPowerPanelRequest** | [**PatchedPowerPanelRequest**](PatchedPowerPanelRequest.md) | |
### Return type
@@ -23836,7 +24517,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -23891,7 +24572,7 @@ Name | Type | Description | Notes
## DcimPowerPanelsUpdate
-> PowerPanel DcimPowerPanelsUpdate(ctx, id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+> PowerPanel DcimPowerPanelsUpdate(ctx, id).PowerPanelRequest(powerPanelRequest).Execute()
@@ -23906,16 +24587,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this power panel.
- writablePowerPanelRequest := *openapiclient.NewWritablePowerPanelRequest(int32(123), "Name_example") // WritablePowerPanelRequest |
+ powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).PowerPanelRequest(powerPanelRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -23941,7 +24622,7 @@ Other parameters are passed through a pointer to a apiDcimPowerPanelsUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writablePowerPanelRequest** | [**WritablePowerPanelRequest**](WritablePowerPanelRequest.md) | |
+ **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | |
### Return type
@@ -23978,7 +24659,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24042,7 +24723,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24108,7 +24789,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24174,7 +24855,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24240,7 +24921,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24293,7 +24974,7 @@ Name | Type | Description | Notes
## DcimPowerPortTemplatesList
-> 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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -24309,7 +24990,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24339,6 +25020,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -24348,6 +25031,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)
@@ -24364,6 +25058,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)
name := []string{"Inner_example"} // []string | (optional)
@@ -24380,13 +25076,13 @@ 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)
- type_ := "type__example" // string | (optional)
- typeN := "typeN_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-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)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -24433,6 +25129,8 @@ 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** | |
@@ -24442,6 +25140,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) | |
@@ -24458,6 +25167,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) |
**name** | **[]string** | |
@@ -24474,8 +25185,8 @@ 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 |
- **type_** | **string** | |
- **typeN** | **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-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')] |
**updatedByRequest** | **string** | |
### Return type
@@ -24513,7 +25224,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24585,7 +25296,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24655,7 +25366,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -24727,11 +25438,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -24791,11 +25502,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -24857,11 +25568,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example")} // []PowerPortRequest |
+ powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -24923,11 +25634,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(int32(123), "Name_example") // WritablePowerPortRequest |
+ writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -24989,7 +25700,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25042,7 +25753,7 @@ Name | Type | Description | Notes
## DcimPowerPortsList
-> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -25058,7 +25769,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25069,8 +25780,10 @@ func main() {
allocatedDrawLt := []int32{int32(123)} // []int32 | (optional)
allocatedDrawLte := []int32{int32(123)} // []int32 | (optional)
allocatedDrawN := []int32{int32(123)} // []int32 | (optional)
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
@@ -25096,10 +25809,6 @@ 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)
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)
@@ -25134,6 +25843,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (optional)
maximumDraw := []int32{int32(123)} // []int32 | (optional)
maximumDrawEmpty := true // bool | (optional)
maximumDrawGt := []int32{int32(123)} // []int32 | (optional)
@@ -25191,7 +25901,7 @@ func main() {
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).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -25219,8 +25929,10 @@ Name | Type | Description | Notes
**allocatedDrawLt** | **[]int32** | |
**allocatedDrawLte** | **[]int32** | |
**allocatedDrawN** | **[]int32** | |
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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) | |
@@ -25246,10 +25958,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -25284,6 +25992,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**maximumDraw** | **[]int32** | |
**maximumDrawEmpty** | **bool** | |
**maximumDrawGt** | **[]int32** | |
@@ -25374,7 +26083,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25446,7 +26155,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25516,7 +26225,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25586,12 +26295,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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(int32(123), "Name_example") // WritablePowerPortRequest |
+ writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -25658,11 +26367,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
+ rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -25722,11 +26431,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
+ rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -25788,11 +26497,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewNestedRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewNestedUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
+ rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -25839,7 +26548,7 @@ Name | Type | Description | Notes
## DcimRackReservationsCreate
-> RackReservation DcimRackReservationsCreate(ctx).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+> RackReservation DcimRackReservationsCreate(ctx).RackReservationRequest(rackReservationRequest).Execute()
@@ -25854,15 +26563,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableRackReservationRequest := *openapiclient.NewWritableRackReservationRequest(int32(123), []int32{int32(123)}, int32(123), "Description_example") // WritableRackReservationRequest |
+ rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).RackReservationRequest(rackReservationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -25883,7 +26592,7 @@ Other parameters are passed through a pointer to a apiDcimRackReservationsCreate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableRackReservationRequest** | [**WritableRackReservationRequest**](WritableRackReservationRequest.md) | |
+ **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | |
### Return type
@@ -25920,7 +26629,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -25973,7 +26682,7 @@ Name | Type | Description | Notes
## DcimRackReservationsList
-> PaginatedRackReservationList DcimRackReservationsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
+> 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()
@@ -25989,7 +26698,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26059,6 +26768,7 @@ func main() {
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)
@@ -26067,7 +26777,7 @@ func main() {
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).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Unit(unit).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -26154,6 +26864,7 @@ Name | Type | Description | Notes
**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) |
@@ -26180,7 +26891,7 @@ Name | Type | Description | Notes
## DcimRackReservationsPartialUpdate
-> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute()
+> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute()
@@ -26195,16 +26906,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this rack reservation.
- patchedWritableRackReservationRequest := *openapiclient.NewPatchedWritableRackReservationRequest() // PatchedWritableRackReservationRequest | (optional)
+ patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -26230,7 +26941,7 @@ Other parameters are passed through a pointer to a apiDcimRackReservationsPartia
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableRackReservationRequest** | [**PatchedWritableRackReservationRequest**](PatchedWritableRackReservationRequest.md) | |
+ **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | |
### Return type
@@ -26267,7 +26978,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26322,7 +27033,7 @@ Name | Type | Description | Notes
## DcimRackReservationsUpdate
-> RackReservation DcimRackReservationsUpdate(ctx, id).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute()
@@ -26337,16 +27048,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this rack reservation.
- writableRackReservationRequest := *openapiclient.NewWritableRackReservationRequest(int32(123), []int32{int32(123)}, int32(123), "Description_example") // WritableRackReservationRequest |
+ rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).WritableRackReservationRequest(writableRackReservationRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -26372,7 +27083,7 @@ Other parameters are passed through a pointer to a apiDcimRackReservationsUpdate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableRackReservationRequest** | [**WritableRackReservationRequest**](WritableRackReservationRequest.md) | |
+ **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | |
### Return type
@@ -26409,7 +27120,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26473,7 +27184,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26539,7 +27250,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26605,7 +27316,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26671,7 +27382,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26740,7 +27451,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -26952,7 +27663,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27024,7 +27735,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27094,7 +27805,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27166,11 +27877,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -27230,11 +27941,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -27296,11 +28007,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewNestedSiteRequest("Name_example", "Slug_example"))} // []RackRequest |
+ rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -27362,11 +28073,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
+ writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -27428,7 +28139,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27496,7 +28207,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27591,7 +28302,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -27697,8 +28408,8 @@ func main() {
outerDepthLt := []int32{int32(123)} // []int32 | (optional)
outerDepthLte := []int32{int32(123)} // []int32 | (optional)
outerDepthN := []int32{int32(123)} // []int32 | (optional)
- outerUnit := "outerUnit_example" // string | (optional)
- outerUnitN := "outerUnitN_example" // string | (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)
outerWidth := []int32{int32(123)} // []int32 | (optional)
outerWidthEmpty := true // bool | (optional)
outerWidthGt := []int32{int32(123)} // []int32 | (optional)
@@ -27770,8 +28481,8 @@ func main() {
weightLt := []float64{float64(123)} // []float64 | (optional)
weightLte := []float64{float64(123)} // []float64 | (optional)
weightN := []float64{float64(123)} // []float64 | (optional)
- weightUnit := "weightUnit_example" // string | (optional)
- weightUnitN := "weightUnitN_example" // string | (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)
widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional)
@@ -27900,8 +28611,8 @@ Name | Type | Description | Notes
**outerDepthLt** | **[]int32** | |
**outerDepthLte** | **[]int32** | |
**outerDepthN** | **[]int32** | |
- **outerUnit** | **string** | |
- **outerUnitN** | **string** | |
+ **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches |
+ **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches |
**outerWidth** | **[]int32** | |
**outerWidthEmpty** | **bool** | |
**outerWidthGt** | **[]int32** | |
@@ -27973,8 +28684,8 @@ Name | Type | Description | Notes
**weightLt** | **[]float64** | |
**weightLte** | **[]float64** | |
**weightN** | **[]float64** | |
- **weightUnit** | **string** | |
- **weightUnitN** | **string** | |
+ **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 |
**widthN** | **[]int32** | Rail-to-rail width |
@@ -28013,7 +28724,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28085,7 +28796,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28155,12 +28866,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this rack.
- writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", int32(123)) // WritableRackRequest |
+ writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -28227,11 +28938,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -28291,11 +29002,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -28357,11 +29068,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest |
+ rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -28423,7 +29134,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28489,7 +29200,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28542,7 +29253,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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -28558,7 +29269,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28592,6 +29303,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)
devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -28601,6 +29314,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)
@@ -28610,6 +29334,8 @@ 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)
+ 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)
@@ -28639,7 +29365,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -28690,6 +29416,8 @@ 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** | |
@@ -28699,6 +29427,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) | |
@@ -28708,6 +29447,8 @@ Name | Type | Description | Notes
**lastUpdatedN** | [**[]time.Time**](time.Time.md) | |
**limit** | **int32** | Number of results to return per page. |
**modifiedByRequest** | **string** | |
+ **moduleTypeId** | **[]int32** | Module type (ID) |
+ **moduleTypeIdN** | **[]int32** | Module type (ID) |
**moduletypeId** | **[]int32** | Module type (ID) |
**moduletypeIdN** | **[]int32** | Module type (ID) |
**name** | **[]string** | |
@@ -28770,7 +29511,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28842,7 +29583,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28912,7 +29653,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -28984,11 +29725,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -29048,11 +29789,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -29114,11 +29855,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewNestedDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
+ rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -29180,11 +29921,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest |
+ writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -29246,7 +29987,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -29299,7 +30040,7 @@ Name | Type | Description | Notes
## DcimRearPortsList
-> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+> 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()
@@ -29315,12 +30056,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- cableEnd := "cableEnd_example" // string | (optional)
- cableEndN := "cableEndN_example" // string | (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)
color := []string{"Inner_example"} // []string | (optional)
colorEmpty := true // bool | (optional)
@@ -29356,10 +30099,6 @@ 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)
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)
@@ -29394,6 +30133,7 @@ func main() {
locationN := []string{"Inner_example"} // []string | Location (slug) (optional)
locationId := []int32{int32(123)} // []int32 | Location (ID) (optional)
locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional)
+ markConnected := true // bool | (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)
@@ -29451,7 +30191,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute()
+ 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()
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)
@@ -29472,8 +30212,10 @@ Other parameters are passed through a pointer to a apiDcimRearPortsListRequest s
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **cableEnd** | **string** | |
- **cableEndN** | **string** | |
+ **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** | |
**color** | **[]string** | |
**colorEmpty** | **bool** | |
@@ -29509,10 +30251,6 @@ 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) |
**deviceType** | **[]string** | Device type (model) |
**deviceTypeN** | **[]string** | Device type (model) |
**deviceTypeId** | **[]int32** | Device type (ID) |
@@ -29547,6 +30285,7 @@ Name | Type | Description | Notes
**locationN** | **[]string** | Location (slug) |
**locationId** | **[]int32** | Location (ID) |
**locationIdN** | **[]int32** | Location (ID) |
+ **markConnected** | **bool** | |
**modifiedByRequest** | **string** | |
**moduleId** | **[]int32** | Module (ID) |
**moduleIdN** | **[]int32** | Module (ID) |
@@ -29637,7 +30376,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -29709,7 +30448,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -29779,7 +30518,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -29849,12 +30588,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this rear port.
- writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(int32(123), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest |
+ writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -29921,7 +30660,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -29985,7 +30724,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30051,7 +30790,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30117,11 +30856,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
+ writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableRegionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -30183,7 +30922,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30236,7 +30975,7 @@ Name | Type | Description | Notes
## DcimRegionsList
-> PaginatedRegionList DcimRegionsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedRegionList DcimRegionsList(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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -30252,10 +30991,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
contact := []int32{int32(123)} // []int32 | Contact (optional)
contactN := []int32{int32(123)} // []int32 | Contact (optional)
contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
@@ -30332,7 +31075,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimRegionsList(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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -30353,6 +31096,10 @@ 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) |
**contact** | **[]int32** | Contact |
**contactN** | **[]int32** | Contact |
**contactGroup** | **[]int32** | Contact group |
@@ -30462,7 +31209,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30534,7 +31281,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30604,12 +31351,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this region.
- writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest |
+ writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableRegionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -30676,7 +31423,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30740,7 +31487,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30806,7 +31553,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30872,11 +31619,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
+ writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableSiteGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -30938,7 +31685,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -30991,7 +31738,7 @@ Name | Type | Description | Notes
## DcimSiteGroupsList
-> PaginatedSiteGroupList DcimSiteGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedSiteGroupList DcimSiteGroupsList(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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -31007,10 +31754,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
contact := []int32{int32(123)} // []int32 | Contact (optional)
contactN := []int32{int32(123)} // []int32 | Contact (optional)
contactGroup := []int32{int32(123)} // []int32 | Contact group (optional)
@@ -31087,7 +31838,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimSiteGroupsList(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).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -31108,6 +31859,10 @@ 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) |
**contact** | **[]int32** | Contact |
**contactN** | **[]int32** | Contact |
**contactGroup** | **[]int32** | Contact group |
@@ -31217,7 +31972,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31289,7 +32044,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31359,12 +32114,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this site group.
- writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest |
+ writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableSiteGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -31431,7 +32186,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31495,7 +32250,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31561,7 +32316,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31627,7 +32382,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31693,7 +32448,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31746,7 +32501,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).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedSiteList DcimSitesList(ctx).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute()
@@ -31762,7 +32517,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -31881,11 +32636,21 @@ func main() {
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)
+ timeZone := []string{"Inner_example"} // []string | (optional)
+ timeZoneIc := []string{"Inner_example"} // []string | (optional)
+ timeZoneIe := []string{"Inner_example"} // []string | (optional)
+ timeZoneIew := []string{"Inner_example"} // []string | (optional)
+ timeZoneIsw := []string{"Inner_example"} // []string | (optional)
+ timeZoneN := []string{"Inner_example"} // []string | (optional)
+ timeZoneNic := []string{"Inner_example"} // []string | (optional)
+ timeZoneNie := []string{"Inner_example"} // []string | (optional)
+ timeZoneNiew := []string{"Inner_example"} // []string | (optional)
+ timeZoneNisw := []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.DcimSitesList(context.Background()).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -32021,6 +32786,16 @@ Name | Type | Description | Notes
**tenantGroupIdN** | **[]int32** | Tenant Group (ID) |
**tenantId** | **[]int32** | Tenant (ID) |
**tenantIdN** | **[]int32** | Tenant (ID) |
+ **timeZone** | **[]string** | |
+ **timeZoneIc** | **[]string** | |
+ **timeZoneIe** | **[]string** | |
+ **timeZoneIew** | **[]string** | |
+ **timeZoneIsw** | **[]string** | |
+ **timeZoneN** | **[]string** | |
+ **timeZoneNic** | **[]string** | |
+ **timeZoneNie** | **[]string** | |
+ **timeZoneNiew** | **[]string** | |
+ **timeZoneNisw** | **[]string** | |
**updatedByRequest** | **string** | |
### Return type
@@ -32058,7 +32833,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32130,7 +32905,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32200,7 +32975,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32272,7 +33047,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32336,7 +33111,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32402,7 +33177,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32468,7 +33243,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32534,7 +33309,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32587,7 +33362,7 @@ Name | Type | Description | Notes
## DcimVirtualChassisList
-> PaginatedVirtualChassisList DcimVirtualChassisList(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).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedVirtualChassisList DcimVirtualChassisList(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).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).MemberCount(memberCount).MemberCountEmpty(memberCountEmpty).MemberCountGt(memberCountGt).MemberCountGte(memberCountGte).MemberCountLt(memberCountLt).MemberCountLte(memberCountLte).MemberCountN(memberCountN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
@@ -32603,7 +33378,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32656,6 +33431,13 @@ func main() {
masterN := []*string{"Inner_example"} // []*string | Master (name) (optional)
masterId := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
masterIdN := []*int32{int32(123)} // []*int32 | Master (ID) (optional)
+ memberCount := []int32{int32(123)} // []int32 | (optional)
+ memberCountEmpty := true // bool | (optional)
+ memberCountGt := []int32{int32(123)} // []int32 | (optional)
+ memberCountGte := []int32{int32(123)} // []int32 | (optional)
+ memberCountLt := []int32{int32(123)} // []int32 | (optional)
+ memberCountLte := []int32{int32(123)} // []int32 | (optional)
+ memberCountN := []int32{int32(123)} // []int32 | (optional)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
name := []string{"Inner_example"} // []string | (optional)
nameEmpty := true // bool | (optional)
@@ -32693,7 +33475,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.DcimAPI.DcimVirtualChassisList(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).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.DcimAPI.DcimVirtualChassisList(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).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).MemberCount(memberCount).MemberCountEmpty(memberCountEmpty).MemberCountGt(memberCountGt).MemberCountGte(memberCountGte).MemberCountLt(memberCountLt).MemberCountLte(memberCountLte).MemberCountN(memberCountN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -32763,6 +33545,13 @@ Name | Type | Description | Notes
**masterN** | **[]string** | Master (name) |
**masterId** | **[]int32** | Master (ID) |
**masterIdN** | **[]int32** | Master (ID) |
+ **memberCount** | **[]int32** | |
+ **memberCountEmpty** | **bool** | |
+ **memberCountGt** | **[]int32** | |
+ **memberCountGte** | **[]int32** | |
+ **memberCountLt** | **[]int32** | |
+ **memberCountLte** | **[]int32** | |
+ **memberCountN** | **[]int32** | |
**modifiedByRequest** | **string** | |
**name** | **[]string** | |
**nameEmpty** | **bool** | |
@@ -32833,7 +33622,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32905,7 +33694,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -32975,7 +33764,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -33047,11 +33836,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -33111,11 +33900,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -33177,11 +33966,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewNestedDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
+ virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -33243,11 +34032,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
+ writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -33309,7 +34098,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -33362,7 +34151,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).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).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()
@@ -33378,7 +34167,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -33413,6 +34202,15 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ identifier := []int32{int32(123)} // []int32 | (optional)
+ identifierEmpty := true // bool | (optional)
+ identifierGt := []int32{int32(123)} // []int32 | (optional)
+ identifierGte := []int32{int32(123)} // []int32 | (optional)
+ identifierLt := []int32{int32(123)} // []int32 | (optional)
+ identifierLte := []int32{int32(123)} // []int32 | (optional)
+ identifierN := []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)
@@ -33456,7 +34254,7 @@ func main() {
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).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).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -33508,6 +34306,15 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **identifier** | **[]int32** | |
+ **identifierEmpty** | **bool** | |
+ **identifierGt** | **[]int32** | |
+ **identifierGte** | **[]int32** | |
+ **identifierLt** | **[]int32** | |
+ **identifierLte** | **[]int32** | |
+ **identifierN** | **[]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) | |
@@ -33584,7 +34391,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -33656,7 +34463,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -33726,12 +34533,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this virtual device context.
- writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
+ writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
diff --git a/docs/CableRequestLengthUnit.md b/docs/DcimCablesListLengthUnitParameter.md
similarity index 86%
rename from docs/CableRequestLengthUnit.md
rename to docs/DcimCablesListLengthUnitParameter.md
index c549b14b86..0d589ca573 100644
--- a/docs/CableRequestLengthUnit.md
+++ b/docs/DcimCablesListLengthUnitParameter.md
@@ -1,21 +1,19 @@
-# CableRequestLengthUnit
+# DcimCablesListLengthUnitParameter
## Enum
-* `KM` (value: `"km"`)
-
-* `M` (value: `"m"`)
-
* `CM` (value: `"cm"`)
-* `MI` (value: `"mi"`)
-
* `FT` (value: `"ft"`)
* `IN` (value: `"in"`)
-* `EMPTY` (value: `""`)
+* `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/DcimConsolePortTemplatesListTypeParameter.md b/docs/DcimConsolePortTemplatesListTypeParameter.md
new file mode 100644
index 0000000000..18950a86cb
--- /dev/null
+++ b/docs/DcimConsolePortTemplatesListTypeParameter.md
@@ -0,0 +1,15 @@
+# DcimConsolePortTemplatesListTypeParameter
+
+## Enum
+
+
+* `OTHER` (value: `"Other"`)
+
+* `SERIAL` (value: `"Serial"`)
+
+* `USB` (value: `"USB"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DcimConsolePortsListSpeedParameter.md b/docs/DcimConsolePortsListSpeedParameter.md
new file mode 100644
index 0000000000..3608f42130
--- /dev/null
+++ b/docs/DcimConsolePortsListSpeedParameter.md
@@ -0,0 +1,25 @@
+# DcimConsolePortsListSpeedParameter
+
+## Enum
+
+
+* `_115200` (value: `115200`)
+
+* `_1200` (value: `1200`)
+
+* `_19200` (value: `19200`)
+
+* `_2400` (value: `2400`)
+
+* `_38400` (value: `38400`)
+
+* `_4800` (value: `4800`)
+
+* `_57600` (value: `57600`)
+
+* `_9600` (value: `9600`)
+
+
+[[Back to Model list]](../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/DcimDeviceTypesListAirflowParameter.md
similarity index 90%
rename from docs/DeviceTypeRequestAirflow.md
rename to docs/DcimDeviceTypesListAirflowParameter.md
index db29e38f3f..751e27ff1e 100644
--- a/docs/DeviceTypeRequestAirflow.md
+++ b/docs/DcimDeviceTypesListAirflowParameter.md
@@ -1,23 +1,21 @@
-# DeviceTypeRequestAirflow
+# DcimDeviceTypesListAirflowParameter
## 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"`)
+* `MIXED` (value: `"mixed"`)
* `PASSIVE` (value: `"passive"`)
-* `MIXED` (value: `"mixed"`)
+* `REAR_TO_FRONT` (value: `"rear-to-front"`)
-* `EMPTY` (value: `""`)
+* `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/DeviceTypeWeightUnitValue.md b/docs/DcimDeviceTypesListWeightUnitParameter.md
similarity index 83%
rename from docs/DeviceTypeWeightUnitValue.md
rename to docs/DcimDeviceTypesListWeightUnitParameter.md
index 4d8026e601..bdc82f0305 100644
--- a/docs/DeviceTypeWeightUnitValue.md
+++ b/docs/DcimDeviceTypesListWeightUnitParameter.md
@@ -1,18 +1,16 @@
-# DeviceTypeWeightUnitValue
+# DcimDeviceTypesListWeightUnitParameter
## Enum
-* `KG` (value: `"kg"`)
-
* `G` (value: `"g"`)
+* `KG` (value: `"kg"`)
+
* `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/DcimInterfacesListModeParameter.md b/docs/DcimInterfacesListModeParameter.md
new file mode 100644
index 0000000000..363b5abf81
--- /dev/null
+++ b/docs/DcimInterfacesListModeParameter.md
@@ -0,0 +1,15 @@
+# DcimInterfacesListModeParameter
+
+## Enum
+
+
+* `ACCESS` (value: `"access"`)
+
+* `TAGGED` (value: `"tagged"`)
+
+* `TAGGED_ALL` (value: `"tagged-all"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DcimPowerFeedsListPhaseParameter.md b/docs/DcimPowerFeedsListPhaseParameter.md
new file mode 100644
index 0000000000..e6385455f9
--- /dev/null
+++ b/docs/DcimPowerFeedsListPhaseParameter.md
@@ -0,0 +1,13 @@
+# DcimPowerFeedsListPhaseParameter
+
+## Enum
+
+
+* `SINGLE_PHASE` (value: `"single-phase"`)
+
+* `THREE_PHASE` (value: `"three-phase"`)
+
+
+[[Back to Model list]](../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/DcimPowerFeedsListSupplyParameter.md
similarity index 66%
rename from docs/DeviceTypeSubdeviceRoleLabel.md
rename to docs/DcimPowerFeedsListSupplyParameter.md
index 0df3e3f7ff..23febc42fa 100644
--- a/docs/DeviceTypeSubdeviceRoleLabel.md
+++ b/docs/DcimPowerFeedsListSupplyParameter.md
@@ -1,11 +1,11 @@
-# DeviceTypeSubdeviceRoleLabel
+# DcimPowerFeedsListSupplyParameter
## Enum
-* `PARENT` (value: `"Parent"`)
+* `AC` (value: `"ac"`)
-* `CHILD` (value: `"Child"`)
+* `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/RackWidthValue.md b/docs/DcimPowerFeedsListTypeParameter.md
similarity index 62%
rename from docs/RackWidthValue.md
rename to docs/DcimPowerFeedsListTypeParameter.md
index c4f90af4da..2505a92e41 100644
--- a/docs/RackWidthValue.md
+++ b/docs/DcimPowerFeedsListTypeParameter.md
@@ -1,15 +1,11 @@
-# RackWidthValue
+# DcimPowerFeedsListTypeParameter
## Enum
-* `_10` (value: `10`)
+* `PRIMARY` (value: `"primary"`)
-* `_19` (value: `19`)
-
-* `_21` (value: `21`)
-
-* `_23` (value: `23`)
+* `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/DcimPowerOutletTemplatesListTypeParameter.md b/docs/DcimPowerOutletTemplatesListTypeParameter.md
new file mode 100644
index 0000000000..1cd51b3d85
--- /dev/null
+++ b/docs/DcimPowerOutletTemplatesListTypeParameter.md
@@ -0,0 +1,33 @@
+# DcimPowerOutletTemplatesListTypeParameter
+
+## Enum
+
+
+* `CALIFORNIA_STYLE` (value: `"California Style"`)
+
+* `DC` (value: `"DC"`)
+
+* `IEC_60309` (value: `"IEC 60309"`)
+
+* `IEC_60320` (value: `"IEC 60320"`)
+
+* `IEC_60906_1` (value: `"IEC 60906-1"`)
+
+* `ITA_INTERNATIONAL` (value: `"ITA/International"`)
+
+* `MOLEX` (value: `"Molex"`)
+
+* `NEMA__LOCKING` (value: `"NEMA (Locking)"`)
+
+* `NEMA__NON_LOCKING` (value: `"NEMA (Non-locking)"`)
+
+* `OTHER` (value: `"Other"`)
+
+* `PROPRIETARY` (value: `"Proprietary"`)
+
+* `USB` (value: `"USB"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DcimPowerPortTemplatesListTypeParameter.md b/docs/DcimPowerPortTemplatesListTypeParameter.md
new file mode 100644
index 0000000000..73900eaeec
--- /dev/null
+++ b/docs/DcimPowerPortTemplatesListTypeParameter.md
@@ -0,0 +1,33 @@
+# DcimPowerPortTemplatesListTypeParameter
+
+## Enum
+
+
+* `CALIFORNIA_STYLE` (value: `"California Style"`)
+
+* `DC` (value: `"DC"`)
+
+* `IEC_60309` (value: `"IEC 60309"`)
+
+* `IEC_60320` (value: `"IEC 60320"`)
+
+* `IEC_60906_1` (value: `"IEC 60906-1"`)
+
+* `INTERNATIONAL_ITA` (value: `"International/ITA"`)
+
+* `MOLEX` (value: `"Molex"`)
+
+* `NEMA__LOCKING` (value: `"NEMA (Locking)"`)
+
+* `NEMA__NON_LOCKING` (value: `"NEMA (Non-locking)"`)
+
+* `OTHER` (value: `"Other"`)
+
+* `PROPRIETARY` (value: `"Proprietary"`)
+
+* `USB` (value: `"USB"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RackRequestOuterUnit.md b/docs/DcimRacksListOuterUnitParameter.md
similarity index 82%
rename from docs/RackRequestOuterUnit.md
rename to docs/DcimRacksListOuterUnitParameter.md
index 8316b288d2..56e4754ebc 100644
--- a/docs/RackRequestOuterUnit.md
+++ b/docs/DcimRacksListOuterUnitParameter.md
@@ -1,13 +1,11 @@
-# RackRequestOuterUnit
+# DcimRacksListOuterUnitParameter
## Enum
-* `MM` (value: `"mm"`)
-
* `IN` (value: `"in"`)
-* `EMPTY` (value: `""`)
+* `MM` (value: `"mm"`)
[[Back to Model list]](../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 99e440a92c..ee4593df23 100644
--- a/docs/Device.md
+++ b/docs/Device.md
@@ -8,16 +8,15 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | Pointer to **NullableString** | | [optional]
-**DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | |
-**Role** | [**NestedDeviceRole**](NestedDeviceRole.md) | |
-**DeviceRole** | [**DeviceDeviceRole**](DeviceDeviceRole.md) | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Platform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [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** | [**NestedSite**](NestedSite.md) | |
-**Location** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional]
-**Rack** | Pointer to [**NullableNestedRack**](NestedRack.md) | | [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]
@@ -25,17 +24,17 @@ Name | Type | Description | Notes
**ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly]
**Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional]
**Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional]
-**PrimaryIp** | [**NullableNestedIPAddress**](NestedIPAddress.md) | | [readonly]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**OobIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**Cluster** | Pointer to [**NullableNestedCluster**](NestedCluster.md) | | [optional]
-**VirtualChassis** | Pointer to [**NullableNestedVirtualChassis**](NestedVirtualChassis.md) | | [optional]
+**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 [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [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]
@@ -56,7 +55,7 @@ Name | Type | Description | Notes
### NewDevice
-`func NewDevice(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NullableNestedDevice, primaryIp NullableNestedIPAddress, 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, 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,
@@ -168,80 +167,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 *Device) GetDeviceType() NestedDeviceType`
+`func (o *Device) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *Device) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`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 NestedDeviceType)`
+`func (o *Device) SetDeviceType(v DeviceType)`
SetDeviceType sets DeviceType field to given value.
### GetRole
-`func (o *Device) GetRole() NestedDeviceRole`
+`func (o *Device) GetRole() DeviceRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *Device) GetRoleOk() (*NestedDeviceRole, bool)`
+`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 NestedDeviceRole)`
+`func (o *Device) SetRole(v DeviceRole)`
SetRole sets Role field to given value.
-### GetDeviceRole
-
-`func (o *Device) GetDeviceRole() DeviceDeviceRole`
-
-GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise.
-
-### GetDeviceRoleOk
-
-`func (o *Device) GetDeviceRoleOk() (*DeviceDeviceRole, bool)`
-
-GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDeviceRole
-
-`func (o *Device) SetDeviceRole(v DeviceDeviceRole)`
-
-SetDeviceRole sets DeviceRole field to given value.
-
-
### GetTenant
-`func (o *Device) GetTenant() NestedTenant`
+`func (o *Device) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *Device) GetTenantOk() (*NestedTenant, bool)`
+`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 NestedTenant)`
+`func (o *Device) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -263,20 +242,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() NestedPlatform`
+`func (o *Device) GetPlatform() Platform`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *Device) GetPlatformOk() (*NestedPlatform, bool)`
+`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 NestedPlatform)`
+`func (o *Device) SetPlatform(v Platform)`
SetPlatform sets Platform field to given value.
@@ -358,40 +337,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 *Device) GetSite() NestedSite`
+`func (o *Device) GetSite() Site`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *Device) GetSiteOk() (*NestedSite, bool)`
+`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 NestedSite)`
+`func (o *Device) SetSite(v Site)`
SetSite sets Site field to given value.
### GetLocation
-`func (o *Device) GetLocation() NestedLocation`
+`func (o *Device) GetLocation() Location`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *Device) GetLocationOk() (*NestedLocation, bool)`
+`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 NestedLocation)`
+`func (o *Device) SetLocation(v Location)`
SetLocation sets Location field to given value.
@@ -413,20 +392,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() NestedRack`
+`func (o *Device) GetRack() Rack`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *Device) GetRackOk() (*NestedRack, bool)`
+`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 NestedRack)`
+`func (o *Device) SetRack(v Rack)`
SetRack sets Rack field to given value.
@@ -658,20 +637,20 @@ HasAirflow returns a boolean if a field has been set.
### GetPrimaryIp
-`func (o *Device) GetPrimaryIp() NestedIPAddress`
+`func (o *Device) GetPrimaryIp() IPAddress`
GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.
### GetPrimaryIpOk
-`func (o *Device) GetPrimaryIpOk() (*NestedIPAddress, bool)`
+`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 NestedIPAddress)`
+`func (o *Device) SetPrimaryIp(v IPAddress)`
SetPrimaryIp sets PrimaryIp field to given value.
@@ -688,20 +667,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() NestedIPAddress`
+`func (o *Device) GetPrimaryIp4() IPAddress`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *Device) GetPrimaryIp4Ok() (*NestedIPAddress, bool)`
+`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 NestedIPAddress)`
+`func (o *Device) SetPrimaryIp4(v IPAddress)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -723,20 +702,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() NestedIPAddress`
+`func (o *Device) GetPrimaryIp6() IPAddress`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *Device) GetPrimaryIp6Ok() (*NestedIPAddress, bool)`
+`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 NestedIPAddress)`
+`func (o *Device) SetPrimaryIp6(v IPAddress)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -758,20 +737,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() NestedIPAddress`
+`func (o *Device) GetOobIp() IPAddress`
GetOobIp returns the OobIp field if non-nil, zero value otherwise.
### GetOobIpOk
-`func (o *Device) GetOobIpOk() (*NestedIPAddress, bool)`
+`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 NestedIPAddress)`
+`func (o *Device) SetOobIp(v IPAddress)`
SetOobIp sets OobIp field to given value.
@@ -793,20 +772,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() NestedCluster`
+`func (o *Device) GetCluster() Cluster`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *Device) GetClusterOk() (*NestedCluster, bool)`
+`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 NestedCluster)`
+`func (o *Device) SetCluster(v Cluster)`
SetCluster sets Cluster field to given value.
@@ -828,20 +807,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() NestedVirtualChassis`
+`func (o *Device) GetVirtualChassis() VirtualChassis`
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
### GetVirtualChassisOk
-`func (o *Device) GetVirtualChassisOk() (*NestedVirtualChassis, bool)`
+`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 NestedVirtualChassis)`
+`func (o *Device) SetVirtualChassis(v VirtualChassis)`
SetVirtualChassis sets VirtualChassis field to given value.
@@ -983,20 +962,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *Device) GetConfigTemplate() NestedConfigTemplate`
+`func (o *Device) GetConfigTemplate() ConfigTemplate`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *Device) GetConfigTemplateOk() (*NestedConfigTemplate, bool)`
+`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 NestedConfigTemplate)`
+`func (o *Device) SetConfigTemplate(v ConfigTemplate)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md
index c5eb7e58b4..e19772ad5d 100644
--- a/docs/DeviceBay.md
+++ b/docs/DeviceBay.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
+**Device** | [**Device**](Device.md) | |
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Description** | Pointer to **string** | | [optional]
-**InstalledDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional]
+**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewDeviceBay
-`func NewDeviceBay(id int32, url string, display string, device NestedDevice, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay`
+`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay`
NewDeviceBay instantiates a new DeviceBay object
This constructor will assign default values to properties that have it defined,
@@ -98,20 +98,20 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *DeviceBay) GetDevice() NestedDevice`
+`func (o *DeviceBay) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *DeviceBay) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *DeviceBay) 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 *DeviceBay) SetDevice(v NestedDevice)`
+`func (o *DeviceBay) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -188,20 +188,20 @@ HasDescription returns a boolean if a field has been set.
### GetInstalledDevice
-`func (o *DeviceBay) GetInstalledDevice() NestedDevice`
+`func (o *DeviceBay) GetInstalledDevice() Device`
GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise.
### GetInstalledDeviceOk
-`func (o *DeviceBay) GetInstalledDeviceOk() (*NestedDevice, bool)`
+`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, 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 NestedDevice)`
+`func (o *DeviceBay) SetInstalledDevice(v Device)`
SetInstalledDevice sets InstalledDevice field to given value.
diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md
index e510d4cbf3..9229313f33 100644
--- a/docs/DeviceBayRequest.md
+++ b/docs/DeviceBayRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Description** | Pointer to **string** | | [optional]
-**InstalledDevice** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional]
+**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.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 NestedDeviceRequest, name string, ) *DeviceBayRequest`
+`func NewDeviceBayRequest(device DeviceRequest, 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() NestedDeviceRequest`
+`func (o *DeviceBayRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *DeviceBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *DeviceBayRequest) 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 *DeviceBayRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)`
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() NestedDeviceRequest`
+`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest`
GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise.
### GetInstalledDeviceOk
-`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, 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 NestedDeviceRequest)`
+`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)`
SetInstalledDevice sets InstalledDevice field to given value.
diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md
index bfc8b2accb..ffb6fdad4c 100644
--- a/docs/DeviceBayTemplate.md
+++ b/docs/DeviceBayTemplate.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | |
+**DeviceType** | [**DeviceType**](DeviceType.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]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewDeviceBayTemplate
-`func NewDeviceBayTemplate(id int32, url string, display string, deviceType NestedDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate`
+`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *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() NestedDeviceType`
+`func (o *DeviceBayTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *DeviceBayTemplate) 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 *DeviceBayTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)`
SetDeviceType sets DeviceType field to given value.
diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md
index b8c13b58ae..48b82be6aa 100644
--- a/docs/DeviceBayTemplateRequest.md
+++ b/docs/DeviceBayTemplateRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | |
+**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]
**Description** | Pointer to **string** | | [optional]
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
### NewDeviceBayTemplateRequest
-`func NewDeviceBayTemplateRequest(deviceType NestedDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest`
+`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, 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() NestedDeviceTypeRequest`
+`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *DeviceBayTemplateRequest) 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 *DeviceBayTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
diff --git a/docs/DeviceDeviceRole.md b/docs/DeviceDeviceRole.md
deleted file mode 100644
index c8c8f07461..0000000000
--- a/docs/DeviceDeviceRole.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# DeviceDeviceRole
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewDeviceDeviceRole
-
-`func NewDeviceDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceDeviceRole`
-
-NewDeviceDeviceRole instantiates a new DeviceDeviceRole object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewDeviceDeviceRoleWithDefaults
-
-`func NewDeviceDeviceRoleWithDefaults() *DeviceDeviceRole`
-
-NewDeviceDeviceRoleWithDefaults instantiates a new DeviceDeviceRole object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetId
-
-`func (o *DeviceDeviceRole) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *DeviceDeviceRole) GetIdOk() (*int32, bool)`
-
-GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetId
-
-`func (o *DeviceDeviceRole) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *DeviceDeviceRole) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *DeviceDeviceRole) GetUrlOk() (*string, bool)`
-
-GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUrl
-
-`func (o *DeviceDeviceRole) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *DeviceDeviceRole) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *DeviceDeviceRole) GetDisplayOk() (*string, bool)`
-
-GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDisplay
-
-`func (o *DeviceDeviceRole) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *DeviceDeviceRole) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *DeviceDeviceRole) GetNameOk() (*string, bool)`
-
-GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetName
-
-`func (o *DeviceDeviceRole) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *DeviceDeviceRole) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *DeviceDeviceRole) GetSlugOk() (*string, bool)`
-
-GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetSlug
-
-`func (o *DeviceDeviceRole) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DeviceRequest.md b/docs/DeviceRequest.md
new file mode 100644
index 0000000000..0cff20d85a
--- /dev/null
+++ b/docs/DeviceRequest.md
@@ -0,0 +1,92 @@
+# DeviceRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **NullableString** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+
+## Methods
+
+### NewDeviceRequest
+
+`func NewDeviceRequest() *DeviceRequest`
+
+NewDeviceRequest instantiates a new DeviceRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewDeviceRequestWithDefaults
+
+`func NewDeviceRequestWithDefaults() *DeviceRequest`
+
+NewDeviceRequestWithDefaults instantiates a new DeviceRequest object
+This 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 *DeviceRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *DeviceRequest) 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 *DeviceRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *DeviceRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### SetNameNil
+
+`func (o *DeviceRequest) SetNameNil(b bool)`
+
+ SetNameNil sets the value for Name to be an explicit nil
+
+### UnsetName
+`func (o *DeviceRequest) UnsetName()`
+
+UnsetName ensures that no value is present for Name, not even an explicit nil
+### GetDescription
+
+`func (o *DeviceRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *DeviceRequest) 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 *DeviceRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *DeviceRequest) 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/DeviceRole.md b/docs/DeviceRole.md
index aca16ad46f..69757a60f2 100644
--- a/docs/DeviceRole.md
+++ b/docs/DeviceRole.md
@@ -9,22 +9,15 @@ Name | Type | Description | Notes
**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 [**NullableNestedConfigTemplate**](NestedConfigTemplate.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]
-**DeviceCount** | **int32** | | [readonly]
-**VirtualmachineCount** | **int32** | | [readonly]
+**DeviceCount** | **int64** | | [readonly]
+**VirtualmachineCount** | **int64** | | [readonly]
## Methods
### NewDeviceRole
-`func NewDeviceRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32, ) *DeviceRole`
+`func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *DeviceRole`
NewDeviceRole instantiates a new DeviceRole object
This constructor will assign default values to properties that have it defined,
@@ -139,91 +132,6 @@ 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() NestedConfigTemplate`
-
-GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
-
-### GetConfigTemplateOk
-
-`func (o *DeviceRole) GetConfigTemplateOk() (*NestedConfigTemplate, bool)`
-
-GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConfigTemplate
-
-`func (o *DeviceRole) SetConfigTemplate(v NestedConfigTemplate)`
-
-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`
@@ -249,152 +157,42 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *DeviceRole) GetDeviceCount() int64`
GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
### GetDeviceCountOk
-`func (o *DeviceRole) GetDeviceCountOk() (*int32, bool)`
+`func (o *DeviceRole) 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 *DeviceRole) SetDeviceCount(v int32)`
+`func (o *DeviceRole) SetDeviceCount(v int64)`
SetDeviceCount sets DeviceCount field to given value.
### GetVirtualmachineCount
-`func (o *DeviceRole) GetVirtualmachineCount() int32`
+`func (o *DeviceRole) GetVirtualmachineCount() int64`
GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
### GetVirtualmachineCountOk
-`func (o *DeviceRole) GetVirtualmachineCountOk() (*int32, bool)`
+`func (o *DeviceRole) 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 *DeviceRole) SetVirtualmachineCount(v int32)`
+`func (o *DeviceRole) SetVirtualmachineCount(v int64)`
SetVirtualmachineCount sets VirtualmachineCount field to given value.
diff --git a/docs/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md
index e3cbc3e1f1..63022acb94 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 [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [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]
@@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *DeviceRoleRequest) GetConfigTemplate() NestedConfigTemplateRequest`
+`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)`
+`func (o *DeviceRoleRequest) 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 *DeviceRoleRequest) SetConfigTemplate(v NestedConfigTemplateRequest)`
+`func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/DeviceType.md b/docs/DeviceType.md
index 314d0e11bc..0fd8ee2280 100644
--- a/docs/DeviceType.md
+++ b/docs/DeviceType.md
@@ -7,43 +7,17 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Manufacturer** | [**NestedManufacturer**](NestedManufacturer.md) | |
-**DefaultPlatform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [optional]
+**Manufacturer** | [**Manufacturer**](Manufacturer.md) | |
**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]
-**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]
-**DeviceCount** | **int32** | | [readonly]
-**ConsolePortTemplateCount** | **int32** | | [readonly]
-**ConsoleServerPortTemplateCount** | **int32** | | [readonly]
-**PowerPortTemplateCount** | **int32** | | [readonly]
-**PowerOutletTemplateCount** | **int32** | | [readonly]
-**InterfaceTemplateCount** | **int32** | | [readonly]
-**FrontPortTemplateCount** | **int32** | | [readonly]
-**RearPortTemplateCount** | **int32** | | [readonly]
-**DeviceBayTemplateCount** | **int32** | | [readonly]
-**ModuleBayTemplateCount** | **int32** | | [readonly]
-**InventoryItemTemplateCount** | **int32** | | [readonly]
+**DeviceCount** | **int64** | | [readonly]
## Methods
### NewDeviceType
-`func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType`
+`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64, ) *DeviceType`
NewDeviceType instantiates a new DeviceType object
This constructor will assign default values to properties that have it defined,
@@ -120,59 +94,24 @@ SetDisplay sets Display field to given value.
### GetManufacturer
-`func (o *DeviceType) GetManufacturer() NestedManufacturer`
+`func (o *DeviceType) GetManufacturer() Manufacturer`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *DeviceType) GetManufacturerOk() (*NestedManufacturer, bool)`
+`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, 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 NestedManufacturer)`
+`func (o *DeviceType) SetManufacturer(v Manufacturer)`
SetManufacturer sets Manufacturer field to given value.
-### GetDefaultPlatform
-
-`func (o *DeviceType) GetDefaultPlatform() NestedPlatform`
-
-GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise.
-
-### GetDefaultPlatformOk
-
-`func (o *DeviceType) GetDefaultPlatformOk() (*NestedPlatform, 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 NestedPlatform)`
-
-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`
@@ -213,316 +152,6 @@ 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`
@@ -548,361 +177,26 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *DeviceType) GetDeviceCount() int64`
GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
### GetDeviceCountOk
-`func (o *DeviceType) GetDeviceCountOk() (*int32, bool)`
+`func (o *DeviceType) 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 *DeviceType) SetDeviceCount(v int32)`
+`func (o *DeviceType) SetDeviceCount(v int64)`
SetDeviceCount sets DeviceCount field to given value.
-### GetConsolePortTemplateCount
-
-`func (o *DeviceType) GetConsolePortTemplateCount() int32`
-
-GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise.
-
-### GetConsolePortTemplateCountOk
-
-`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)`
-
-GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConsolePortTemplateCount
-
-`func (o *DeviceType) SetConsolePortTemplateCount(v int32)`
-
-SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value.
-
-
-### GetConsoleServerPortTemplateCount
-
-`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32`
-
-GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise.
-
-### GetConsoleServerPortTemplateCountOk
-
-`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)`
-
-GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConsoleServerPortTemplateCount
-
-`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)`
-
-SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value.
-
-
-### GetPowerPortTemplateCount
-
-`func (o *DeviceType) GetPowerPortTemplateCount() int32`
-
-GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise.
-
-### GetPowerPortTemplateCountOk
-
-`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)`
-
-GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPowerPortTemplateCount
-
-`func (o *DeviceType) SetPowerPortTemplateCount(v int32)`
-
-SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value.
-
-
-### GetPowerOutletTemplateCount
-
-`func (o *DeviceType) GetPowerOutletTemplateCount() int32`
-
-GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise.
-
-### GetPowerOutletTemplateCountOk
-
-`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)`
-
-GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPowerOutletTemplateCount
-
-`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)`
-
-SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value.
-
-
-### GetInterfaceTemplateCount
-
-`func (o *DeviceType) GetInterfaceTemplateCount() int32`
-
-GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise.
-
-### GetInterfaceTemplateCountOk
-
-`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)`
-
-GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInterfaceTemplateCount
-
-`func (o *DeviceType) SetInterfaceTemplateCount(v int32)`
-
-SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value.
-
-
-### GetFrontPortTemplateCount
-
-`func (o *DeviceType) GetFrontPortTemplateCount() int32`
-
-GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise.
-
-### GetFrontPortTemplateCountOk
-
-`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)`
-
-GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetFrontPortTemplateCount
-
-`func (o *DeviceType) SetFrontPortTemplateCount(v int32)`
-
-SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value.
-
-
-### GetRearPortTemplateCount
-
-`func (o *DeviceType) GetRearPortTemplateCount() int32`
-
-GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise.
-
-### GetRearPortTemplateCountOk
-
-`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)`
-
-GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRearPortTemplateCount
-
-`func (o *DeviceType) SetRearPortTemplateCount(v int32)`
-
-SetRearPortTemplateCount sets RearPortTemplateCount field to given value.
-
-
-### GetDeviceBayTemplateCount
-
-`func (o *DeviceType) GetDeviceBayTemplateCount() int32`
-
-GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise.
-
-### GetDeviceBayTemplateCountOk
-
-`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)`
-
-GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDeviceBayTemplateCount
-
-`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)`
-
-SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value.
-
-
-### GetModuleBayTemplateCount
-
-`func (o *DeviceType) GetModuleBayTemplateCount() int32`
-
-GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise.
-
-### GetModuleBayTemplateCountOk
-
-`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)`
-
-GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetModuleBayTemplateCount
-
-`func (o *DeviceType) SetModuleBayTemplateCount(v int32)`
-
-SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value.
-
-
-### GetInventoryItemTemplateCount
-
-`func (o *DeviceType) GetInventoryItemTemplateCount() int32`
-
-GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise.
-
-### GetInventoryItemTemplateCountOk
-
-`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)`
-
-GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInventoryItemTemplateCount
-
-`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)`
-
-SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value.
-
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/DeviceTypeAirflow.md b/docs/DeviceTypeAirflow.md
deleted file mode 100644
index fab620ce56..0000000000
--- a/docs/DeviceTypeAirflow.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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 2f531a49e1..a5e6c3addc 100644
--- a/docs/DeviceTypeRequest.md
+++ b/docs/DeviceTypeRequest.md
@@ -4,30 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | [**NestedManufacturerRequest**](NestedManufacturerRequest.md) | |
-**DefaultPlatform** | Pointer to [**NullableNestedPlatformRequest**](NestedPlatformRequest.md) | | [optional]
+**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | |
**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 NestedManufacturerRequest, model string, slug string, ) *DeviceTypeRequest`
+`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest`
NewDeviceTypeRequest instantiates a new DeviceTypeRequest object
This constructor will assign default values to properties that have it defined,
@@ -44,59 +30,24 @@ but it doesn't guarantee that properties required by API are set
### GetManufacturer
-`func (o *DeviceTypeRequest) GetManufacturer() NestedManufacturerRequest`
+`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *DeviceTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool)`
+`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 NestedManufacturerRequest)`
+`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
-### GetDefaultPlatform
-
-`func (o *DeviceTypeRequest) GetDefaultPlatform() NestedPlatformRequest`
-
-GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise.
-
-### GetDefaultPlatformOk
-
-`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*NestedPlatformRequest, 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 NestedPlatformRequest)`
-
-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`
@@ -137,296 +88,6 @@ 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`
@@ -452,81 +113,6 @@ 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/DeviceTypeSubdeviceRole.md b/docs/DeviceTypeSubdeviceRole.md
deleted file mode 100644
index f1209e70ac..0000000000
--- a/docs/DeviceTypeSubdeviceRole.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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/DeviceTypeWeightUnit.md b/docs/DeviceTypeWeightUnit.md
deleted file mode 100644
index a4ff2942b8..0000000000
--- a/docs/DeviceTypeWeightUnit.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index ccc9d2c7ab..0000000000
--- a/docs/DeviceTypeWeightUnitLabel.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md
index 280843b515..570136c0db 100644
--- a/docs/DeviceWithConfigContext.md
+++ b/docs/DeviceWithConfigContext.md
@@ -8,16 +8,15 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | Pointer to **NullableString** | | [optional]
-**DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | |
-**Role** | [**NestedDeviceRole**](NestedDeviceRole.md) | |
-**DeviceRole** | [**DeviceDeviceRole**](DeviceDeviceRole.md) | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Platform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [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** | [**NestedSite**](NestedSite.md) | |
-**Location** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional]
-**Rack** | Pointer to [**NullableNestedRack**](NestedRack.md) | | [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]
@@ -25,17 +24,17 @@ Name | Type | Description | Notes
**ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly]
**Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional]
**Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional]
-**PrimaryIp** | [**NullableNestedIPAddress**](NestedIPAddress.md) | | [readonly]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**OobIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**Cluster** | Pointer to [**NullableNestedCluster**](NestedCluster.md) | | [optional]
-**VirtualChassis** | Pointer to [**NullableNestedVirtualChassis**](NestedVirtualChassis.md) | | [optional]
+**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 [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional]
+**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional]
**ConfigContext** | **interface{}** | | [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]
@@ -57,7 +56,7 @@ Name | Type | Description | Notes
### NewDeviceWithConfigContext
-`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NullableNestedDevice, primaryIp NullableNestedIPAddress, 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 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`
NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object
This constructor will assign default values to properties that have it defined,
@@ -169,80 +168,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() NestedDeviceType`
+`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetDeviceType(v NestedDeviceType)`
+`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)`
SetDeviceType sets DeviceType field to given value.
### GetRole
-`func (o *DeviceWithConfigContext) GetRole() NestedDeviceRole`
+`func (o *DeviceWithConfigContext) GetRole() DeviceRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *DeviceWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetRole(v NestedDeviceRole)`
+`func (o *DeviceWithConfigContext) SetRole(v DeviceRole)`
SetRole sets Role field to given value.
-### GetDeviceRole
-
-`func (o *DeviceWithConfigContext) GetDeviceRole() DeviceDeviceRole`
-
-GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise.
-
-### GetDeviceRoleOk
-
-`func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*DeviceDeviceRole, bool)`
-
-GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDeviceRole
-
-`func (o *DeviceWithConfigContext) SetDeviceRole(v DeviceDeviceRole)`
-
-SetDeviceRole sets DeviceRole field to given value.
-
-
### GetTenant
-`func (o *DeviceWithConfigContext) GetTenant() NestedTenant`
+`func (o *DeviceWithConfigContext) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *DeviceWithConfigContext) GetTenantOk() (*NestedTenant, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetTenant(v NestedTenant)`
+`func (o *DeviceWithConfigContext) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -264,20 +243,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() NestedPlatform`
+`func (o *DeviceWithConfigContext) GetPlatform() Platform`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *DeviceWithConfigContext) GetPlatformOk() (*NestedPlatform, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetPlatform(v NestedPlatform)`
+`func (o *DeviceWithConfigContext) SetPlatform(v Platform)`
SetPlatform sets Platform field to given value.
@@ -359,40 +338,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() NestedSite`
+`func (o *DeviceWithConfigContext) GetSite() Site`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *DeviceWithConfigContext) GetSiteOk() (*NestedSite, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetSite(v NestedSite)`
+`func (o *DeviceWithConfigContext) SetSite(v Site)`
SetSite sets Site field to given value.
### GetLocation
-`func (o *DeviceWithConfigContext) GetLocation() NestedLocation`
+`func (o *DeviceWithConfigContext) GetLocation() Location`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *DeviceWithConfigContext) GetLocationOk() (*NestedLocation, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetLocation(v NestedLocation)`
+`func (o *DeviceWithConfigContext) SetLocation(v Location)`
SetLocation sets Location field to given value.
@@ -414,20 +393,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() NestedRack`
+`func (o *DeviceWithConfigContext) GetRack() Rack`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *DeviceWithConfigContext) GetRackOk() (*NestedRack, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetRack(v NestedRack)`
+`func (o *DeviceWithConfigContext) SetRack(v Rack)`
SetRack sets Rack field to given value.
@@ -659,20 +638,20 @@ HasAirflow returns a boolean if a field has been set.
### GetPrimaryIp
-`func (o *DeviceWithConfigContext) GetPrimaryIp() NestedIPAddress`
+`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress`
GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.
### GetPrimaryIpOk
-`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetPrimaryIp(v NestedIPAddress)`
+`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)`
SetPrimaryIp sets PrimaryIp field to given value.
@@ -689,20 +668,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() NestedIPAddress`
+`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*NestedIPAddress, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetPrimaryIp4(v NestedIPAddress)`
+`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -724,20 +703,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() NestedIPAddress`
+`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*NestedIPAddress, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetPrimaryIp6(v NestedIPAddress)`
+`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -759,20 +738,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() NestedIPAddress`
+`func (o *DeviceWithConfigContext) GetOobIp() IPAddress`
GetOobIp returns the OobIp field if non-nil, zero value otherwise.
### GetOobIpOk
-`func (o *DeviceWithConfigContext) GetOobIpOk() (*NestedIPAddress, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetOobIp(v NestedIPAddress)`
+`func (o *DeviceWithConfigContext) SetOobIp(v IPAddress)`
SetOobIp sets OobIp field to given value.
@@ -794,20 +773,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() NestedCluster`
+`func (o *DeviceWithConfigContext) GetCluster() Cluster`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *DeviceWithConfigContext) GetClusterOk() (*NestedCluster, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetCluster(v NestedCluster)`
+`func (o *DeviceWithConfigContext) SetCluster(v Cluster)`
SetCluster sets Cluster field to given value.
@@ -829,20 +808,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() NestedVirtualChassis`
+`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis`
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
### GetVirtualChassisOk
-`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*NestedVirtualChassis, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetVirtualChassis(v NestedVirtualChassis)`
+`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)`
SetVirtualChassis sets VirtualChassis field to given value.
@@ -984,20 +963,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate`
+`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool)`
+`func (o *DeviceWithConfigContext) 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 *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate)`
+`func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md
index 40069a9f13..6d521edef4 100644
--- a/docs/DeviceWithConfigContextRequest.md
+++ b/docs/DeviceWithConfigContextRequest.md
@@ -5,31 +5,31 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
-**DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | |
-**Role** | [**NestedDeviceRoleRequest**](NestedDeviceRoleRequest.md) | |
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Platform** | Pointer to [**NullableNestedPlatformRequest**](NestedPlatformRequest.md) | | [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** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
-**Location** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
-**Rack** | Pointer to [**NullableNestedRackRequest**](NestedRackRequest.md) | | [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** | 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 [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**OobIp** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**Cluster** | Pointer to [**NullableNestedClusterRequest**](NestedClusterRequest.md) | | [optional]
-**VirtualChassis** | Pointer to [**NullableNestedVirtualChassisRequest**](NestedVirtualChassisRequest.md) | | [optional]
+**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 [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [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]
@@ -38,7 +38,7 @@ Name | Type | Description | Notes
### NewDeviceWithConfigContextRequest
-`func NewDeviceWithConfigContextRequest(deviceType NestedDeviceTypeRequest, role NestedDeviceRoleRequest, site NestedSiteRequest, ) *DeviceWithConfigContextRequest`
+`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *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() NestedDeviceTypeRequest`
+`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
### GetRole
-`func (o *DeviceWithConfigContextRequest) GetRole() NestedDeviceRoleRequest`
+`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest)`
+`func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
SetRole sets Role field to given value.
### GetTenant
-`func (o *DeviceWithConfigContextRequest) GetTenant() NestedTenantRequest`
+`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetTenant(v NestedTenantRequest)`
+`func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)`
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() NestedPlatformRequest`
+`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*NestedPlatformRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetPlatform(v NestedPlatformRequest)`
+`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)`
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() NestedSiteRequest`
+`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*NestedSiteRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetSite(v NestedSiteRequest)`
+`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
### GetLocation
-`func (o *DeviceWithConfigContextRequest) GetLocation() NestedLocationRequest`
+`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*NestedLocationRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetLocation(v NestedLocationRequest)`
+`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)`
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() NestedRackRequest`
+`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *DeviceWithConfigContextRequest) GetRackOk() (*NestedRackRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetRack(v NestedRackRequest)`
+`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)`
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() NestedIPAddressRequest`
+`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*NestedIPAddressRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest)`
+`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
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() NestedIPAddressRequest`
+`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*NestedIPAddressRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest)`
+`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
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() NestedIPAddressRequest`
+`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest`
GetOobIp returns the OobIp field if non-nil, zero value otherwise.
### GetOobIpOk
-`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*NestedIPAddressRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetOobIp(v NestedIPAddressRequest)`
+`func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)`
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() NestedClusterRequest`
+`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*NestedClusterRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetCluster(v NestedClusterRequest)`
+`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)`
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() NestedVirtualChassisRequest`
+`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest`
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
### GetVirtualChassisOk
-`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*NestedVirtualChassisRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetVirtualChassis(v NestedVirtualChassisRequest)`
+`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)`
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() NestedConfigTemplateRequest`
+`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)`
+`func (o *DeviceWithConfigContextRequest) 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 *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest)`
+`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/End1.md b/docs/End1.md
new file mode 100644
index 0000000000..313ee06741
--- /dev/null
+++ b/docs/End1.md
@@ -0,0 +1,13 @@
+# End1
+
+## 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/EventRule.md b/docs/EventRule.md
index 4dc00441aa..fa879bc560 100644
--- a/docs/EventRule.md
+++ b/docs/EventRule.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
+**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]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
### NewEventRule
-`func NewEventRule(id int32, url string, display string, contentTypes []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, 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,
@@ -105,24 +105,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
+### GetObjectTypes
-`func (o *EventRule) GetContentTypes() []string`
+`func (o *EventRule) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *EventRule) GetContentTypesOk() (*[]string, bool)`
+`func (o *EventRule) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *EventRule) SetContentTypes(v []string)`
+`func (o *EventRule) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/EventRuleRequest.md b/docs/EventRuleRequest.md
index f059af6918..68df12155d 100644
--- a/docs/EventRuleRequest.md
+++ b/docs/EventRuleRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**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]
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
### NewEventRuleRequest
-`func NewEventRuleRequest(contentTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest`
+`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,
@@ -39,24 +39,24 @@ 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
-### GetContentTypes
+### GetObjectTypes
-`func (o *EventRuleRequest) GetContentTypes() []string`
+`func (o *EventRuleRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *EventRuleRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *EventRuleRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *EventRuleRequest) SetContentTypes(v []string)`
+`func (o *EventRuleRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md
index 8ba456c7f9..0371ebe2e9 100644
--- a/docs/ExportTemplate.md
+++ b/docs/ExportTemplate.md
@@ -7,16 +7,16 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
**TemplateCode** | **string** | Jinja2 template code. The list of objects being exported is passed as a context variable named <code>queryset</code>. |
**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 [**NestedDataSource**](NestedDataSource.md) | | [optional]
+**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional]
**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly]
-**DataFile** | [**NestedDataFile**](NestedDataFile.md) | | [readonly]
+**DataFile** | [**DataFile**](DataFile.md) | | [readonly]
**DataSynced** | **NullableTime** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -25,7 +25,7 @@ Name | Type | Description | Notes
### NewExportTemplate
-`func NewExportTemplate(id int32, url string, display string, contentTypes []string, name string, templateCode string, dataPath string, dataFile NestedDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate`
+`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`
NewExportTemplate instantiates a new ExportTemplate object
This constructor will assign default values to properties that have it defined,
@@ -100,24 +100,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
+### GetObjectTypes
-`func (o *ExportTemplate) GetContentTypes() []string`
+`func (o *ExportTemplate) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *ExportTemplate) GetContentTypesOk() (*[]string, bool)`
+`func (o *ExportTemplate) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *ExportTemplate) SetContentTypes(v []string)`
+`func (o *ExportTemplate) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
@@ -262,20 +262,20 @@ HasAsAttachment returns a boolean if a field has been set.
### GetDataSource
-`func (o *ExportTemplate) GetDataSource() NestedDataSource`
+`func (o *ExportTemplate) GetDataSource() DataSource`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *ExportTemplate) GetDataSourceOk() (*NestedDataSource, bool)`
+`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, 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 NestedDataSource)`
+`func (o *ExportTemplate) SetDataSource(v DataSource)`
SetDataSource sets DataSource field to given value.
@@ -307,20 +307,20 @@ SetDataPath sets DataPath field to given value.
### GetDataFile
-`func (o *ExportTemplate) GetDataFile() NestedDataFile`
+`func (o *ExportTemplate) GetDataFile() DataFile`
GetDataFile returns the DataFile field if non-nil, zero value otherwise.
### GetDataFileOk
-`func (o *ExportTemplate) GetDataFileOk() (*NestedDataFile, bool)`
+`func (o *ExportTemplate) GetDataFileOk() (*DataFile, 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 NestedDataFile)`
+`func (o *ExportTemplate) SetDataFile(v DataFile)`
SetDataFile sets DataFile field to given value.
diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md
index 0cd05d8d35..1a7beb1a24 100644
--- a/docs/ExportTemplateRequest.md
+++ b/docs/ExportTemplateRequest.md
@@ -4,20 +4,20 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
**TemplateCode** | **string** | Jinja2 template code. The list of objects being exported is passed as a context variable named <code>queryset</code>. |
**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 [**NestedDataSourceRequest**](NestedDataSourceRequest.md) | | [optional]
+**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional]
## Methods
### NewExportTemplateRequest
-`func NewExportTemplateRequest(contentTypes []string, name string, templateCode string, ) *ExportTemplateRequest`
+`func NewExportTemplateRequest(objectTypes []string, name string, templateCode string, ) *ExportTemplateRequest`
NewExportTemplateRequest instantiates a new ExportTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -32,24 +32,24 @@ NewExportTemplateRequestWithDefaults instantiates a new ExportTemplateRequest ob
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *ExportTemplateRequest) GetContentTypes() []string`
+`func (o *ExportTemplateRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *ExportTemplateRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *ExportTemplateRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *ExportTemplateRequest) SetContentTypes(v []string)`
+`func (o *ExportTemplateRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
@@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set.
### GetDataSource
-`func (o *ExportTemplateRequest) GetDataSource() NestedDataSourceRequest`
+`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *ExportTemplateRequest) GetDataSourceOk() (*NestedDataSourceRequest, bool)`
+`func (o *ExportTemplateRequest) 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 *ExportTemplateRequest) SetDataSource(v NestedDataSourceRequest)`
+`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)`
SetDataSource sets DataSource field to given value.
diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md
index ccaf68eddb..ed3040e29b 100644
--- a/docs/ExtrasAPI.md
+++ b/docs/ExtrasAPI.md
@@ -34,8 +34,6 @@ Method | HTTP request | Description
[**ExtrasConfigTemplatesRetrieve**](ExtrasAPI.md#ExtrasConfigTemplatesRetrieve) | **Get** /api/extras/config-templates/{id}/ |
[**ExtrasConfigTemplatesSyncCreate**](ExtrasAPI.md#ExtrasConfigTemplatesSyncCreate) | **Post** /api/extras/config-templates/{id}/sync/ |
[**ExtrasConfigTemplatesUpdate**](ExtrasAPI.md#ExtrasConfigTemplatesUpdate) | **Put** /api/extras/config-templates/{id}/ |
-[**ExtrasContentTypesList**](ExtrasAPI.md#ExtrasContentTypesList) | **Get** /api/extras/content-types/ |
-[**ExtrasContentTypesRetrieve**](ExtrasAPI.md#ExtrasContentTypesRetrieve) | **Get** /api/extras/content-types/{id}/ |
[**ExtrasCustomFieldChoiceSetsBulkDestroy**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkDestroy) | **Delete** /api/extras/custom-field-choice-sets/ |
[**ExtrasCustomFieldChoiceSetsBulkPartialUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkPartialUpdate) | **Patch** /api/extras/custom-field-choice-sets/ |
[**ExtrasCustomFieldChoiceSetsBulkUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkUpdate) | **Put** /api/extras/custom-field-choice-sets/ |
@@ -107,6 +105,8 @@ Method | HTTP request | Description
[**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}/ |
+[**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/ |
[**ExtrasSavedFiltersBulkPartialUpdate**](ExtrasAPI.md#ExtrasSavedFiltersBulkPartialUpdate) | **Patch** /api/extras/saved-filters/ |
[**ExtrasSavedFiltersBulkUpdate**](ExtrasAPI.md#ExtrasSavedFiltersBulkUpdate) | **Put** /api/extras/saved-filters/ |
@@ -116,6 +116,12 @@ Method | HTTP request | Description
[**ExtrasSavedFiltersPartialUpdate**](ExtrasAPI.md#ExtrasSavedFiltersPartialUpdate) | **Patch** /api/extras/saved-filters/{id}/ |
[**ExtrasSavedFiltersRetrieve**](ExtrasAPI.md#ExtrasSavedFiltersRetrieve) | **Get** /api/extras/saved-filters/{id}/ |
[**ExtrasSavedFiltersUpdate**](ExtrasAPI.md#ExtrasSavedFiltersUpdate) | **Put** /api/extras/saved-filters/{id}/ |
+[**ExtrasScriptsCreate**](ExtrasAPI.md#ExtrasScriptsCreate) | **Post** /api/extras/scripts/ |
+[**ExtrasScriptsDestroy**](ExtrasAPI.md#ExtrasScriptsDestroy) | **Delete** /api/extras/scripts/{id}/ |
+[**ExtrasScriptsList**](ExtrasAPI.md#ExtrasScriptsList) | **Get** /api/extras/scripts/ |
+[**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}/ |
[**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ |
[**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ |
[**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ |
@@ -154,11 +160,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -218,11 +224,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -284,11 +290,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest |
+ bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -335,7 +341,7 @@ Name | Type | Description | Notes
## ExtrasBookmarksCreate
-> Bookmark ExtrasBookmarksCreate(ctx).WritableBookmarkRequest(writableBookmarkRequest).Execute()
+> Bookmark ExtrasBookmarksCreate(ctx).BookmarkRequest(bookmarkRequest).Execute()
@@ -350,15 +356,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
+ bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).WritableBookmarkRequest(writableBookmarkRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).BookmarkRequest(bookmarkRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -379,7 +385,7 @@ Other parameters are passed through a pointer to a apiExtrasBookmarksCreateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableBookmarkRequest** | [**WritableBookmarkRequest**](WritableBookmarkRequest.md) | |
+ **bookmarkRequest** | [**BookmarkRequest**](BookmarkRequest.md) | |
### Return type
@@ -416,7 +422,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -485,7 +491,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -596,7 +602,7 @@ Name | Type | Description | Notes
## ExtrasBookmarksPartialUpdate
-> Bookmark ExtrasBookmarksPartialUpdate(ctx, id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).Execute()
+> Bookmark ExtrasBookmarksPartialUpdate(ctx, id).PatchedBookmarkRequest(patchedBookmarkRequest).Execute()
@@ -611,16 +617,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this bookmark.
- patchedWritableBookmarkRequest := *openapiclient.NewPatchedWritableBookmarkRequest() // PatchedWritableBookmarkRequest | (optional)
+ patchedBookmarkRequest := *openapiclient.NewPatchedBookmarkRequest() // PatchedBookmarkRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).PatchedBookmarkRequest(patchedBookmarkRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -646,7 +652,7 @@ Other parameters are passed through a pointer to a apiExtrasBookmarksPartialUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableBookmarkRequest** | [**PatchedWritableBookmarkRequest**](PatchedWritableBookmarkRequest.md) | |
+ **patchedBookmarkRequest** | [**PatchedBookmarkRequest**](PatchedBookmarkRequest.md) | |
### Return type
@@ -683,7 +689,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -738,7 +744,7 @@ Name | Type | Description | Notes
## ExtrasBookmarksUpdate
-> Bookmark ExtrasBookmarksUpdate(ctx, id).WritableBookmarkRequest(writableBookmarkRequest).Execute()
+> Bookmark ExtrasBookmarksUpdate(ctx, id).BookmarkRequest(bookmarkRequest).Execute()
@@ -753,16 +759,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this bookmark.
- writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest |
+ bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).WritableBookmarkRequest(writableBookmarkRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).BookmarkRequest(bookmarkRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -788,7 +794,7 @@ Other parameters are passed through a pointer to a apiExtrasBookmarksUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableBookmarkRequest** | [**WritableBookmarkRequest**](WritableBookmarkRequest.md) | |
+ **bookmarkRequest** | [**BookmarkRequest**](BookmarkRequest.md) | |
### Return type
@@ -825,7 +831,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -889,7 +895,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -955,7 +961,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1006,7 +1012,7 @@ Name | Type | Description | Notes
## ExtrasConfigContextsCreate
-> ConfigContext ExtrasConfigContextsCreate(ctx).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+> ConfigContext ExtrasConfigContextsCreate(ctx).ConfigContextRequest(configContextRequest).Execute()
@@ -1021,15 +1027,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+ configContextRequest := *openapiclient.NewConfigContextRequest("Name_example", interface{}(123)) // ConfigContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).ConfigContextRequest(configContextRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1050,7 +1056,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigContextsCreate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | |
+ **configContextRequest** | [**ConfigContextRequest**](ConfigContextRequest.md) | |
### Return type
@@ -1087,7 +1093,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1140,7 +1146,7 @@ Name | Type | Description | Notes
## ExtrasConfigContextsList
-> PaginatedConfigContextList ExtrasConfigContextsList(ctx).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).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).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -1156,10 +1162,11 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
+ autoSyncEnabled := true // bool | (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 (optional)
@@ -1200,6 +1207,10 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ deviceRole := []string{"Inner_example"} // []string | Role (slug) (optional)
+ deviceRoleN := []string{"Inner_example"} // []string | Role (slug) (optional)
+ deviceRoleId := []int32{int32(123)} // []int32 | Role (optional)
+ deviceRoleIdN := []int32{int32(123)} // []int32 | Role (optional)
deviceTypeId := []int32{int32(123)} // []int32 | Device type (optional)
deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (optional)
id := []int32{int32(123)} // []int32 | (optional)
@@ -1270,10 +1281,17 @@ func main() {
tenantId := []int32{int32(123)} // []int32 | Tenant (optional)
tenantIdN := []int32{int32(123)} // []int32 | Tenant (optional)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (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.ExtrasConfigContextsList(context.Background()).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).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).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -1294,6 +1312,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigContextsListRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **autoSyncEnabled** | **bool** | |
**clusterGroup** | **[]string** | Cluster group (slug) |
**clusterGroupN** | **[]string** | Cluster group (slug) |
**clusterGroupId** | **[]int32** | Cluster group |
@@ -1334,6 +1353,10 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
+ **deviceRole** | **[]string** | Role (slug) |
+ **deviceRoleN** | **[]string** | Role (slug) |
+ **deviceRoleId** | **[]int32** | Role |
+ **deviceRoleIdN** | **[]int32** | Role |
**deviceTypeId** | **[]int32** | Device type |
**deviceTypeIdN** | **[]int32** | Device type |
**id** | **[]int32** | |
@@ -1404,6 +1427,13 @@ Name | Type | Description | Notes
**tenantId** | **[]int32** | Tenant |
**tenantIdN** | **[]int32** | Tenant |
**updatedByRequest** | **string** | |
+ **weight** | **[]int32** | |
+ **weightEmpty** | **bool** | |
+ **weightGt** | **[]int32** | |
+ **weightGte** | **[]int32** | |
+ **weightLt** | **[]int32** | |
+ **weightLte** | **[]int32** | |
+ **weightN** | **[]int32** | |
### Return type
@@ -1425,7 +1455,7 @@ Name | Type | Description | Notes
## ExtrasConfigContextsPartialUpdate
-> ConfigContext ExtrasConfigContextsPartialUpdate(ctx, id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute()
+> ConfigContext ExtrasConfigContextsPartialUpdate(ctx, id).PatchedConfigContextRequest(patchedConfigContextRequest).Execute()
@@ -1440,16 +1470,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config context.
- patchedWritableConfigContextRequest := *openapiclient.NewPatchedWritableConfigContextRequest() // PatchedWritableConfigContextRequest | (optional)
+ patchedConfigContextRequest := *openapiclient.NewPatchedConfigContextRequest() // PatchedConfigContextRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedConfigContextRequest(patchedConfigContextRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1475,7 +1505,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigContextsPartia
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableConfigContextRequest** | [**PatchedWritableConfigContextRequest**](PatchedWritableConfigContextRequest.md) | |
+ **patchedConfigContextRequest** | [**PatchedConfigContextRequest**](PatchedConfigContextRequest.md) | |
### Return type
@@ -1512,7 +1542,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1567,7 +1597,7 @@ Name | Type | Description | Notes
## ExtrasConfigContextsSyncCreate
-> ConfigContext ExtrasConfigContextsSyncCreate(ctx, id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+> ConfigContext ExtrasConfigContextsSyncCreate(ctx, id).ConfigContextRequest(configContextRequest).Execute()
@@ -1582,16 +1612,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config context.
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+ configContextRequest := *openapiclient.NewConfigContextRequest("Name_example", interface{}(123)) // ConfigContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).ConfigContextRequest(configContextRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsSyncCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1617,7 +1647,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigContextsSyncCr
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | |
+ **configContextRequest** | [**ConfigContextRequest**](ConfigContextRequest.md) | |
### Return type
@@ -1639,7 +1669,7 @@ Name | Type | Description | Notes
## ExtrasConfigContextsUpdate
-> ConfigContext ExtrasConfigContextsUpdate(ctx, id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+> ConfigContext ExtrasConfigContextsUpdate(ctx, id).ConfigContextRequest(configContextRequest).Execute()
@@ -1654,16 +1684,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config context.
- writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", interface{}(123)) // WritableConfigContextRequest |
+ configContextRequest := *openapiclient.NewConfigContextRequest("Name_example", interface{}(123)) // ConfigContextRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).ConfigContextRequest(configContextRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1689,7 +1719,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigContextsUpdate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | |
+ **configContextRequest** | [**ConfigContextRequest**](ConfigContextRequest.md) | |
### Return type
@@ -1726,11 +1756,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1790,11 +1820,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1856,11 +1886,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest |
+ configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1907,7 +1937,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesCreate
-> ConfigTemplate ExtrasConfigTemplatesCreate(ctx).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+> ConfigTemplate ExtrasConfigTemplatesCreate(ctx).ConfigTemplateRequest(configTemplateRequest).Execute()
@@ -1922,15 +1952,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+ configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1951,7 +1981,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesCreat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | |
+ **configTemplateRequest** | [**ConfigTemplateRequest**](ConfigTemplateRequest.md) | |
### Return type
@@ -1988,7 +2018,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2041,7 +2071,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesList
-> PaginatedConfigTemplateList ExtrasConfigTemplatesList(ctx).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute()
+> PaginatedConfigTemplateList ExtrasConfigTemplatesList(ctx).AutoSyncEnabled(autoSyncEnabled).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).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()
@@ -2057,10 +2087,19 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
+ autoSyncEnabled := 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)
dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
@@ -2090,7 +2129,15 @@ func main() {
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)
@@ -2107,10 +2154,11 @@ func main() {
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.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).AutoSyncEnabled(autoSyncEnabled).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).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 `ExtrasAPI.ExtrasConfigTemplatesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2131,6 +2179,15 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesListR
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **autoSyncEnabled** | **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** | |
**dataFileId** | **[]int32** | Data file (ID) |
**dataFileIdN** | **[]int32** | Data file (ID) |
**dataSourceId** | **[]int32** | Data source (ID) |
@@ -2160,7 +2217,15 @@ Name | Type | Description | Notes
**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** | |
@@ -2177,6 +2242,7 @@ Name | Type | Description | Notes
**q** | **string** | Search |
**tag** | **[]string** | |
**tagN** | **[]string** | |
+ **updatedByRequest** | **string** | |
### Return type
@@ -2198,7 +2264,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesPartialUpdate
-> ConfigTemplate ExtrasConfigTemplatesPartialUpdate(ctx, id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute()
+> ConfigTemplate ExtrasConfigTemplatesPartialUpdate(ctx, id).PatchedConfigTemplateRequest(patchedConfigTemplateRequest).Execute()
@@ -2213,16 +2279,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config template.
- patchedWritableConfigTemplateRequest := *openapiclient.NewPatchedWritableConfigTemplateRequest() // PatchedWritableConfigTemplateRequest | (optional)
+ patchedConfigTemplateRequest := *openapiclient.NewPatchedConfigTemplateRequest() // PatchedConfigTemplateRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedConfigTemplateRequest(patchedConfigTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2248,7 +2314,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesParti
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableConfigTemplateRequest** | [**PatchedWritableConfigTemplateRequest**](PatchedWritableConfigTemplateRequest.md) | |
+ **patchedConfigTemplateRequest** | [**PatchedConfigTemplateRequest**](PatchedConfigTemplateRequest.md) | |
### Return type
@@ -2270,7 +2336,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesRenderCreate
-> ConfigTemplate ExtrasConfigTemplatesRenderCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute()
+> ConfigTemplate ExtrasConfigTemplatesRenderCreate(ctx, id).ConfigTemplateRequest(configTemplateRequest).Format(format).Execute()
@@ -2285,17 +2351,17 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+ configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest |
format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRenderCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRenderCreate(context.Background(), id).ConfigTemplateRequest(configTemplateRequest).Format(format).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRenderCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2321,7 +2387,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesRende
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | |
+ **configTemplateRequest** | [**ConfigTemplateRequest**](ConfigTemplateRequest.md) | |
**format** | [**DcimDevicesRenderConfigCreateFormatParameter**](DcimDevicesRenderConfigCreateFormatParameter.md) | |
### Return type
@@ -2359,7 +2425,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2414,7 +2480,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesSyncCreate
-> ConfigTemplate ExtrasConfigTemplatesSyncCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+> ConfigTemplate ExtrasConfigTemplatesSyncCreate(ctx, id).ConfigTemplateRequest(configTemplateRequest).Execute()
@@ -2429,16 +2495,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+ configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).ConfigTemplateRequest(configTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesSyncCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2464,7 +2530,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesSyncC
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | |
+ **configTemplateRequest** | [**ConfigTemplateRequest**](ConfigTemplateRequest.md) | |
### Return type
@@ -2486,7 +2552,7 @@ Name | Type | Description | Notes
## ExtrasConfigTemplatesUpdate
-> ConfigTemplate ExtrasConfigTemplatesUpdate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+> ConfigTemplate ExtrasConfigTemplatesUpdate(ctx, id).ConfigTemplateRequest(configTemplateRequest).Execute()
@@ -2501,16 +2567,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this config template.
- writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest |
+ configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).ConfigTemplateRequest(configTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2536,7 +2602,7 @@ Other parameters are passed through a pointer to a apiExtrasConfigTemplatesUpdat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | |
+ **configTemplateRequest** | [**ConfigTemplateRequest**](ConfigTemplateRequest.md) | |
### Return type
@@ -2556,154 +2622,6 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasContentTypesList
-
-> PaginatedContentTypeList ExtrasContentTypesList(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/v3"
-)
-
-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.ExtrasContentTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasContentTypesList``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasContentTypesList`: PaginatedContentTypeList
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasContentTypesList`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiExtrasContentTypesListRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appLabel** | **string** | |
- **id** | **int32** | |
- **limit** | **int32** | Number of results to return per page. |
- **model** | **string** | |
- **offset** | **int32** | The initial index from which to return the results. |
- **ordering** | **string** | Which field to use when ordering the results. |
- **q** | **string** | Search |
-
-### Return type
-
-[**PaginatedContentTypeList**](PaginatedContentTypeList.md)
-
-### 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)
-
-
-## ExtrasContentTypesRetrieve
-
-> ContentType ExtrasContentTypesRetrieve(ctx, id).Execute()
-
-
-
-
-
-### Example
-
-```go
-package main
-
-import (
- "context"
- "fmt"
- "os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
-)
-
-func main() {
- id := int32(56) // int32 | A unique integer value identifying this content type.
-
- configuration := openapiclient.NewConfiguration()
- apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasContentTypesRetrieve(context.Background(), id).Execute()
- if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasContentTypesRetrieve``: %v\n", err)
- fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
- }
- // response from `ExtrasContentTypesRetrieve`: ContentType
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasContentTypesRetrieve`: %v\n", resp)
-}
-```
-
-### Path Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
-**id** | **int32** | A unique integer value identifying this content type. |
-
-### Other Parameters
-
-Other parameters are passed through a pointer to a apiExtrasContentTypesRetrieveRequest struct via the builder pattern
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
-
-
-### Return type
-
-[**ContentType**](ContentType.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)
-
-
## ExtrasCustomFieldChoiceSetsBulkDestroy
> ExtrasCustomFieldChoiceSetsBulkDestroy(ctx).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute()
@@ -2721,7 +2639,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2785,7 +2703,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2851,7 +2769,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2917,7 +2835,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2987,7 +2905,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3053,7 +2971,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3106,7 +3024,7 @@ Name | Type | Description | Notes
## ExtrasCustomFieldChoiceSetsList
-> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute()
+> 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()
@@ -3121,13 +3039,22 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- baseChoices := "baseChoices_example" // string | Base set of predefined choices (optional) (optional)
- baseChoicesN := "baseChoicesN_example" // string | Base set of predefined choices (optional) (optional)
+ 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)
+ 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)
@@ -3146,7 +3073,15 @@ func main() {
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)
@@ -3162,10 +3097,11 @@ func main() {
orderAlphabetically := true // bool | (optional)
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
q := "q_example" // string | Search (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute()
+ 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()
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)
@@ -3186,9 +3122,17 @@ Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSet
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **baseChoices** | **string** | Base set of predefined choices (optional) |
- **baseChoicesN** | **string** | Base set of predefined choices (optional) |
+ **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) | |
+ **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** | |
@@ -3207,7 +3151,15 @@ Name | Type | Description | Notes
**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** | |
@@ -3223,6 +3175,7 @@ Name | Type | Description | Notes
**orderAlphabetically** | **bool** | |
**ordering** | **string** | Which field to use when ordering the results. |
**q** | **string** | Search |
+ **updatedByRequest** | **string** | |
### Return type
@@ -3259,7 +3212,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3331,7 +3284,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3401,7 +3354,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3473,11 +3426,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ObjectTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3537,11 +3490,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ObjectTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3603,11 +3556,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ContentTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
+ customFieldRequest := []openapiclient.CustomFieldRequest{*openapiclient.NewCustomFieldRequest([]string{"ObjectTypes_example"}, openapiclient.CustomField_type_value("text"), "Name_example")} // []CustomFieldRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3669,11 +3622,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
+ writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ObjectTypes_example"}, "Name_example") // WritableCustomFieldRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3735,7 +3688,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3788,7 +3741,7 @@ Name | Type | Description | Notes
## ExtrasCustomFieldsList
-> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).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).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()
@@ -3803,7 +3756,8 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3811,23 +3765,14 @@ func main() {
choiceSetN := []string{"Inner_example"} // []string | (optional)
choiceSetId := []*int32{int32(123)} // []*int32 | (optional)
choiceSetIdN := []*int32{int32(123)} // []*int32 | (optional)
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdN := []int32{int32(123)} // []int32 | (optional)
- contentTypes := "contentTypes_example" // string | (optional)
- contentTypesIc := "contentTypesIc_example" // string | (optional)
- contentTypesIe := "contentTypesIe_example" // string | (optional)
- contentTypesIew := "contentTypesIew_example" // string | (optional)
- contentTypesIsw := "contentTypesIsw_example" // string | (optional)
- contentTypesN := "contentTypesN_example" // string | (optional)
- contentTypesNic := "contentTypesNic_example" // string | (optional)
- contentTypesNie := "contentTypesNie_example" // string | (optional)
- contentTypesNiew := "contentTypesNiew_example" // string | (optional)
- contentTypesNisw := "contentTypesNisw_example" // string | (optional)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
description := []string{"Inner_example"} // []string | (optional)
descriptionEmpty := true // bool | (optional)
descriptionIc := []string{"Inner_example"} // []string | (optional)
@@ -3839,8 +3784,8 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
- filterLogic := "filterLogic_example" // string | Loose matches any instance of a given string; exact matches the entire field. (optional)
- filterLogicN := "filterLogicN_example" // string | Loose matches any instance of a given string; exact matches the entire field. (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)
@@ -3860,7 +3805,26 @@ func main() {
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
isCloneable := true // bool | (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)
+ 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)
@@ -3872,9 +3836,25 @@ func main() {
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)
+ relatedObjectType := "relatedObjectType_example" // string | (optional)
+ relatedObjectTypeN := "relatedObjectTypeN_example" // string | (optional)
+ relatedObjectTypeId := []int32{int32(123)} // []int32 | (optional)
+ relatedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional)
required := true // bool | (optional)
searchWeight := []int32{int32(123)} // []int32 | (optional)
searchWeightEmpty := true // bool | (optional)
@@ -3885,10 +3865,36 @@ func main() {
searchWeightN := []int32{int32(123)} // []int32 | (optional)
type_ := []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)
- uiEditable := "uiEditable_example" // string | Specifies whether the custom field value can be edited in the UI (optional)
- uiEditableN := "uiEditableN_example" // string | Specifies whether the custom field value can be edited in the UI (optional)
- uiVisible := "uiVisible_example" // string | Specifies whether the custom field is displayed in the UI (optional)
- uiVisibleN := "uiVisibleN_example" // string | Specifies whether the custom field is displayed in the UI (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)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ validationMaximum := []int32{int32(123)} // []int32 | (optional)
+ validationMaximumEmpty := true // bool | (optional)
+ validationMaximumGt := []int32{int32(123)} // []int32 | (optional)
+ validationMaximumGte := []int32{int32(123)} // []int32 | (optional)
+ validationMaximumLt := []int32{int32(123)} // []int32 | (optional)
+ validationMaximumLte := []int32{int32(123)} // []int32 | (optional)
+ validationMaximumN := []int32{int32(123)} // []int32 | (optional)
+ validationMinimum := []int32{int32(123)} // []int32 | (optional)
+ validationMinimumEmpty := true // bool | (optional)
+ validationMinimumGt := []int32{int32(123)} // []int32 | (optional)
+ validationMinimumGte := []int32{int32(123)} // []int32 | (optional)
+ validationMinimumLt := []int32{int32(123)} // []int32 | (optional)
+ validationMinimumLte := []int32{int32(123)} // []int32 | (optional)
+ validationMinimumN := []int32{int32(123)} // []int32 | (optional)
+ validationRegex := []string{"Inner_example"} // []string | (optional)
+ validationRegexEmpty := true // bool | (optional)
+ validationRegexIc := []string{"Inner_example"} // []string | (optional)
+ validationRegexIe := []string{"Inner_example"} // []string | (optional)
+ validationRegexIew := []string{"Inner_example"} // []string | (optional)
+ validationRegexIsw := []string{"Inner_example"} // []string | (optional)
+ validationRegexN := []string{"Inner_example"} // []string | (optional)
+ validationRegexNic := []string{"Inner_example"} // []string | (optional)
+ validationRegexNie := []string{"Inner_example"} // []string | (optional)
+ validationRegexNiew := []string{"Inner_example"} // []string | (optional)
+ validationRegexNisw := []string{"Inner_example"} // []string | (optional)
weight := []int32{int32(123)} // []int32 | (optional)
weightEmpty := true // bool | (optional)
weightGt := []int32{int32(123)} // []int32 | (optional)
@@ -3899,7 +3905,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).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).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).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()
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)
@@ -3924,23 +3930,14 @@ Name | Type | Description | Notes
**choiceSetN** | **[]string** | |
**choiceSetId** | **[]int32** | |
**choiceSetIdN** | **[]int32** | |
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
+ **created** | [**[]time.Time**](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** | |
@@ -3952,8 +3949,8 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
- **filterLogic** | **string** | Loose matches any instance of a given string; exact matches the entire field. |
- **filterLogicN** | **string** | Loose matches any instance of a given string; exact matches the entire field. |
+ **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** | |
@@ -3973,7 +3970,26 @@ Name | Type | Description | Notes
**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**](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** | |
@@ -3985,9 +4001,25 @@ Name | Type | Description | Notes
**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 |
+ **relatedObjectType** | **string** | |
+ **relatedObjectTypeN** | **string** | |
+ **relatedObjectTypeId** | **[]int32** | |
+ **relatedObjectTypeIdN** | **[]int32** | |
**required** | **bool** | |
**searchWeight** | **[]int32** | |
**searchWeightEmpty** | **bool** | |
@@ -3998,10 +4030,36 @@ Name | Type | Description | Notes
**searchWeightN** | **[]int32** | |
**type_** | **[]string** | The type of data this custom field holds |
**typeN** | **[]string** | The type of data this custom field holds |
- **uiEditable** | **string** | Specifies whether the custom field value can be edited in the UI |
- **uiEditableN** | **string** | Specifies whether the custom field value can be edited in the UI |
- **uiVisible** | **string** | Specifies whether the custom field is displayed in the UI |
- **uiVisibleN** | **string** | Specifies whether the custom field is displayed in the UI |
+ **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 |
+ **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** | |
@@ -4045,7 +4103,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4117,7 +4175,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4187,12 +4245,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this custom field.
- writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ContentTypes_example"}, "Name_example") // WritableCustomFieldRequest |
+ writableCustomFieldRequest := *openapiclient.NewWritableCustomFieldRequest([]string{"ObjectTypes_example"}, "Name_example") // WritableCustomFieldRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4259,11 +4317,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ObjectTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4323,11 +4381,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ObjectTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4389,11 +4447,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
+ customLinkRequest := []openapiclient.CustomLinkRequest{*openapiclient.NewCustomLinkRequest([]string{"ObjectTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example")} // []CustomLinkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4455,11 +4513,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
+ customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ObjectTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4521,7 +4579,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4574,7 +4632,7 @@ Name | Type | Description | Notes
## ExtrasCustomLinksList
-> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+> 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()
@@ -4589,27 +4647,21 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdN := []int32{int32(123)} // []int32 | (optional)
- contentTypes := "contentTypes_example" // string | (optional)
- contentTypesIc := "contentTypesIc_example" // string | (optional)
- contentTypesIe := "contentTypesIe_example" // string | (optional)
- contentTypesIew := "contentTypesIew_example" // string | (optional)
- contentTypesIsw := "contentTypesIsw_example" // string | (optional)
- contentTypesN := "contentTypesN_example" // string | (optional)
- contentTypesNic := "contentTypesNic_example" // string | (optional)
- contentTypesNie := "contentTypesNie_example" // string | (optional)
- contentTypesNiew := "contentTypesNiew_example" // string | (optional)
- contentTypesNisw := "contentTypesNisw_example" // string | (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 * `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)
+ created := []time.Time{time.Now()} // []time.Time | (optional)
+ createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdGte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLt := []time.Time{time.Now()} // []time.Time | (optional)
+ createdLte := []time.Time{time.Now()} // []time.Time | (optional)
+ createdN := []time.Time{time.Now()} // []time.Time | (optional)
+ createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
enabled := true // bool | (optional)
groupName := []string{"Inner_example"} // []string | (optional)
groupNameEmpty := true // bool | (optional)
@@ -4629,6 +4681,13 @@ func main() {
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)
linkText := "linkText_example" // string | (optional)
linkTextIc := "linkTextIc_example" // string | (optional)
@@ -4650,6 +4709,7 @@ func main() {
linkUrlNie := "linkUrlNie_example" // string | (optional)
linkUrlNiew := "linkUrlNiew_example" // string | (optional)
linkUrlNisw := "linkUrlNisw_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)
@@ -4662,9 +4722,22 @@ func main() {
nameNiew := []string{"Inner_example"} // []string | (optional)
nameNisw := []string{"Inner_example"} // []string | (optional)
newWindow := true // bool | (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)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
weight := []int32{int32(123)} // []int32 | (optional)
weightEmpty := true // bool | (optional)
weightGt := []int32{int32(123)} // []int32 | (optional)
@@ -4675,7 +4748,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+ 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()
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)
@@ -4696,23 +4769,16 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
+ **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 |
+ **created** | [**[]time.Time**](time.Time.md) | |
+ **createdEmpty** | [**[]time.Time**](time.Time.md) | |
+ **createdGt** | [**[]time.Time**](time.Time.md) | |
+ **createdGte** | [**[]time.Time**](time.Time.md) | |
+ **createdLt** | [**[]time.Time**](time.Time.md) | |
+ **createdLte** | [**[]time.Time**](time.Time.md) | |
+ **createdN** | [**[]time.Time**](time.Time.md) | |
+ **createdByRequest** | **string** | |
**enabled** | **bool** | |
**groupName** | **[]string** | |
**groupNameEmpty** | **bool** | |
@@ -4732,6 +4798,13 @@ Name | Type | Description | Notes
**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. |
**linkText** | **string** | |
**linkTextIc** | **string** | |
@@ -4753,6 +4826,7 @@ Name | Type | Description | Notes
**linkUrlNie** | **string** | |
**linkUrlNiew** | **string** | |
**linkUrlNisw** | **string** | |
+ **modifiedByRequest** | **string** | |
**name** | **[]string** | |
**nameEmpty** | **bool** | |
**nameIc** | **[]string** | |
@@ -4765,9 +4839,22 @@ Name | Type | Description | Notes
**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** | The initial index from which to return the results. |
**ordering** | **string** | Which field to use when ordering the results. |
**q** | **string** | Search |
+ **updatedByRequest** | **string** | |
**weight** | **[]int32** | |
**weightEmpty** | **bool** | |
**weightGt** | **[]int32** | |
@@ -4811,7 +4898,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4883,7 +4970,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4953,12 +5040,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this custom link.
- customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ContentTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
+ customLinkRequest := *openapiclient.NewCustomLinkRequest([]string{"ObjectTypes_example"}, "Name_example", "LinkText_example", "LinkUrl_example") // CustomLinkRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5025,7 +5112,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5084,7 +5171,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5150,7 +5237,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5211,7 +5298,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5277,11 +5364,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5341,11 +5428,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5407,11 +5494,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
+ eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5473,11 +5560,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
+ writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -5539,7 +5626,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5592,7 +5679,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).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).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).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()
@@ -5608,7 +5695,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5623,23 +5710,6 @@ func main() {
actionObjectTypeN := "actionObjectTypeN_example" // string | (optional)
actionType := []string{"Inner_example"} // []string | (optional)
actionTypeN := []string{"Inner_example"} // []string | (optional)
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdN := []int32{int32(123)} // []int32 | (optional)
- contentTypes := "contentTypes_example" // string | (optional)
- contentTypesIc := "contentTypesIc_example" // string | (optional)
- contentTypesIe := "contentTypesIe_example" // string | (optional)
- contentTypesIew := "contentTypesIew_example" // string | (optional)
- contentTypesIsw := "contentTypesIsw_example" // string | (optional)
- contentTypesN := "contentTypesN_example" // string | (optional)
- contentTypesNic := "contentTypesNic_example" // string | (optional)
- contentTypesNie := "contentTypesNie_example" // string | (optional)
- contentTypesNiew := "contentTypesNiew_example" // string | (optional)
- contentTypesNisw := "contentTypesNisw_example" // string | (optional)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -5687,6 +5757,18 @@ func main() {
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)
@@ -5701,7 +5783,7 @@ func main() {
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).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).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).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()
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)
@@ -5733,23 +5815,6 @@ Name | Type | Description | Notes
**actionObjectTypeN** | **string** | |
**actionType** | **[]string** | |
**actionTypeN** | **[]string** | |
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -5797,6 +5862,18 @@ Name | Type | Description | Notes
**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 |
@@ -5844,7 +5921,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5916,7 +5993,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5986,12 +6063,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this event rule.
- writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ContentTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
+ writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6058,11 +6135,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6122,11 +6199,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6188,11 +6265,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
+ exportTemplateRequest := []openapiclient.ExportTemplateRequest{*openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example")} // []ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6239,7 +6316,7 @@ Name | Type | Description | Notes
## ExtrasExportTemplatesCreate
-> ExportTemplate ExtrasExportTemplatesCreate(ctx).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> ExportTemplate ExtrasExportTemplatesCreate(ctx).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -6254,15 +6331,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+ exportTemplateRequest := *openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example") // ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6283,7 +6360,7 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesCreat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **exportTemplateRequest** | [**ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
@@ -6320,7 +6397,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6373,7 +6450,7 @@ Name | Type | Description | Notes
## ExtrasExportTemplatesList
-> PaginatedExportTemplateList ExtrasExportTemplatesList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute()
+> PaginatedExportTemplateList ExtrasExportTemplatesList(ctx).AsAttachment(asAttachment).AutoSyncEnabled(autoSyncEnabled).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).FileExtension(fileExtension).FileExtensionEmpty(fileExtensionEmpty).FileExtensionIc(fileExtensionIc).FileExtensionIe(fileExtensionIe).FileExtensionIew(fileExtensionIew).FileExtensionIsw(fileExtensionIsw).FileExtensionN(fileExtensionN).FileExtensionNic(fileExtensionNic).FileExtensionNie(fileExtensionNie).FileExtensionNiew(fileExtensionNiew).FileExtensionNisw(fileExtensionNisw).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).MimeType(mimeType).MimeTypeEmpty(mimeTypeEmpty).MimeTypeIc(mimeTypeIc).MimeTypeIe(mimeTypeIe).MimeTypeIew(mimeTypeIew).MimeTypeIsw(mimeTypeIsw).MimeTypeN(mimeTypeN).MimeTypeNic(mimeTypeNic).MimeTypeNie(mimeTypeNie).MimeTypeNiew(mimeTypeNiew).MimeTypeNisw(mimeTypeNisw).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).UpdatedByRequest(updatedByRequest).Execute()
@@ -6389,27 +6466,20 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdN := []int32{int32(123)} // []int32 | (optional)
- contentTypes := "contentTypes_example" // string | (optional)
- contentTypesIc := "contentTypesIc_example" // string | (optional)
- contentTypesIe := "contentTypesIe_example" // string | (optional)
- contentTypesIew := "contentTypesIew_example" // string | (optional)
- contentTypesIsw := "contentTypesIsw_example" // string | (optional)
- contentTypesN := "contentTypesN_example" // string | (optional)
- contentTypesNic := "contentTypesNic_example" // string | (optional)
- contentTypesNie := "contentTypesNie_example" // string | (optional)
- contentTypesNiew := "contentTypesNiew_example" // string | (optional)
- contentTypesNisw := "contentTypesNisw_example" // string | (optional)
+ asAttachment := true // bool | (optional)
+ autoSyncEnabled := 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)
dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional)
dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional)
@@ -6432,6 +6502,17 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ fileExtension := []string{"Inner_example"} // []string | (optional)
+ fileExtensionEmpty := true // bool | (optional)
+ fileExtensionIc := []string{"Inner_example"} // []string | (optional)
+ fileExtensionIe := []string{"Inner_example"} // []string | (optional)
+ fileExtensionIew := []string{"Inner_example"} // []string | (optional)
+ fileExtensionIsw := []string{"Inner_example"} // []string | (optional)
+ fileExtensionN := []string{"Inner_example"} // []string | (optional)
+ fileExtensionNic := []string{"Inner_example"} // []string | (optional)
+ fileExtensionNie := []string{"Inner_example"} // []string | (optional)
+ fileExtensionNiew := []string{"Inner_example"} // []string | (optional)
+ fileExtensionNisw := []string{"Inner_example"} // []string | (optional)
id := []int32{int32(123)} // []int32 | (optional)
idEmpty := true // bool | (optional)
idGt := []int32{int32(123)} // []int32 | (optional)
@@ -6439,7 +6520,26 @@ func main() {
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)
+ mimeType := []string{"Inner_example"} // []string | (optional)
+ mimeTypeEmpty := true // bool | (optional)
+ mimeTypeIc := []string{"Inner_example"} // []string | (optional)
+ mimeTypeIe := []string{"Inner_example"} // []string | (optional)
+ mimeTypeIew := []string{"Inner_example"} // []string | (optional)
+ mimeTypeIsw := []string{"Inner_example"} // []string | (optional)
+ mimeTypeN := []string{"Inner_example"} // []string | (optional)
+ mimeTypeNic := []string{"Inner_example"} // []string | (optional)
+ mimeTypeNie := []string{"Inner_example"} // []string | (optional)
+ mimeTypeNiew := []string{"Inner_example"} // []string | (optional)
+ mimeTypeNisw := []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)
@@ -6451,13 +6551,26 @@ func main() {
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)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).AsAttachment(asAttachment).AutoSyncEnabled(autoSyncEnabled).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).FileExtension(fileExtension).FileExtensionEmpty(fileExtensionEmpty).FileExtensionIc(fileExtensionIc).FileExtensionIe(fileExtensionIe).FileExtensionIew(fileExtensionIew).FileExtensionIsw(fileExtensionIsw).FileExtensionN(fileExtensionN).FileExtensionNic(fileExtensionNic).FileExtensionNie(fileExtensionNie).FileExtensionNiew(fileExtensionNiew).FileExtensionNisw(fileExtensionNisw).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).MimeType(mimeType).MimeTypeEmpty(mimeTypeEmpty).MimeTypeIc(mimeTypeIc).MimeTypeIe(mimeTypeIe).MimeTypeIew(mimeTypeIew).MimeTypeIsw(mimeTypeIsw).MimeTypeN(mimeTypeN).MimeTypeNic(mimeTypeNic).MimeTypeNie(mimeTypeNie).MimeTypeNiew(mimeTypeNiew).MimeTypeNisw(mimeTypeNisw).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).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6478,23 +6591,16 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesListR
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
+ **asAttachment** | **bool** | |
+ **autoSyncEnabled** | **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** | |
**dataFileId** | **[]int32** | Data file (ID) |
**dataFileIdN** | **[]int32** | Data file (ID) |
**dataSourceId** | **[]int32** | Data source (ID) |
@@ -6517,6 +6623,17 @@ Name | Type | Description | Notes
**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** | |
@@ -6524,7 +6641,26 @@ Name | Type | Description | Notes
**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. |
+ **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** | |
@@ -6536,9 +6672,22 @@ Name | Type | Description | Notes
**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 |
+ **updatedByRequest** | **string** | |
### Return type
@@ -6560,7 +6709,7 @@ Name | Type | Description | Notes
## ExtrasExportTemplatesPartialUpdate
-> ExportTemplate ExtrasExportTemplatesPartialUpdate(ctx, id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute()
+> ExportTemplate ExtrasExportTemplatesPartialUpdate(ctx, id).PatchedExportTemplateRequest(patchedExportTemplateRequest).Execute()
@@ -6575,16 +6724,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this export template.
- patchedWritableExportTemplateRequest := *openapiclient.NewPatchedWritableExportTemplateRequest() // PatchedWritableExportTemplateRequest | (optional)
+ patchedExportTemplateRequest := *openapiclient.NewPatchedExportTemplateRequest() // PatchedExportTemplateRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedExportTemplateRequest(patchedExportTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6610,7 +6759,7 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesParti
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableExportTemplateRequest** | [**PatchedWritableExportTemplateRequest**](PatchedWritableExportTemplateRequest.md) | |
+ **patchedExportTemplateRequest** | [**PatchedExportTemplateRequest**](PatchedExportTemplateRequest.md) | |
### Return type
@@ -6647,7 +6796,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6702,7 +6851,7 @@ Name | Type | Description | Notes
## ExtrasExportTemplatesSyncCreate
-> ExportTemplate ExtrasExportTemplatesSyncCreate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> ExportTemplate ExtrasExportTemplatesSyncCreate(ctx, id).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -6717,16 +6866,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this export template.
- writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+ exportTemplateRequest := *openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example") // ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).ExportTemplateRequest(exportTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesSyncCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6752,7 +6901,7 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesSyncC
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **exportTemplateRequest** | [**ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
@@ -6774,7 +6923,7 @@ Name | Type | Description | Notes
## ExtrasExportTemplatesUpdate
-> ExportTemplate ExtrasExportTemplatesUpdate(ctx, id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+> ExportTemplate ExtrasExportTemplatesUpdate(ctx, id).ExportTemplateRequest(exportTemplateRequest).Execute()
@@ -6789,16 +6938,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this export template.
- writableExportTemplateRequest := *openapiclient.NewWritableExportTemplateRequest([]string{"ContentTypes_example"}, "Name_example", "TemplateCode_example") // WritableExportTemplateRequest |
+ exportTemplateRequest := *openapiclient.NewExportTemplateRequest([]string{"ObjectTypes_example"}, "Name_example", "TemplateCode_example") // ExportTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).ExportTemplateRequest(exportTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -6824,7 +6973,7 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesUpdat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableExportTemplateRequest** | [**WritableExportTemplateRequest**](WritableExportTemplateRequest.md) | |
+ **exportTemplateRequest** | [**ExportTemplateRequest**](ExportTemplateRequest.md) | |
### Return type
@@ -6861,11 +7010,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6925,11 +7074,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6991,11 +7140,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
+ imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7057,11 +7206,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest |
+ imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7123,7 +7272,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7176,7 +7325,7 @@ Name | Type | Description | Notes
## ExtrasImageAttachmentsList
-> PaginatedImageAttachmentList ExtrasImageAttachmentsList(ctx).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute()
+> PaginatedImageAttachmentList ExtrasImageAttachmentsList(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).ImageHeight(imageHeight).ImageHeightEmpty(imageHeightEmpty).ImageHeightGt(imageHeightGt).ImageHeightGte(imageHeightGte).ImageHeightLt(imageHeightLt).ImageHeightLte(imageHeightLte).ImageHeightN(imageHeightN).ImageWidth(imageWidth).ImageWidthEmpty(imageWidthEmpty).ImageWidthGt(imageWidthGt).ImageWidthGte(imageWidthGte).ImageWidthLt(imageWidthLt).ImageWidthLte(imageWidthLte).ImageWidthN(imageWidthN).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).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).Q(q).UpdatedByRequest(updatedByRequest).Execute()
@@ -7192,15 +7341,18 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contentType := "contentType_example" // string | (optional)
- contentTypeN := "contentTypeN_example" // string | (optional)
- contentTypeId := int32(56) // int32 | (optional)
- contentTypeIdN := int32(56) // int32 | (optional)
- created := time.Now() // time.Time | (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)
id := []int32{int32(123)} // []int32 | (optional)
idEmpty := true // bool | (optional)
idGt := []int32{int32(123)} // []int32 | (optional)
@@ -7208,7 +7360,29 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ imageHeight := []int32{int32(123)} // []int32 | (optional)
+ imageHeightEmpty := true // bool | (optional)
+ imageHeightGt := []int32{int32(123)} // []int32 | (optional)
+ imageHeightGte := []int32{int32(123)} // []int32 | (optional)
+ imageHeightLt := []int32{int32(123)} // []int32 | (optional)
+ imageHeightLte := []int32{int32(123)} // []int32 | (optional)
+ imageHeightN := []int32{int32(123)} // []int32 | (optional)
+ imageWidth := []int32{int32(123)} // []int32 | (optional)
+ imageWidthEmpty := true // bool | (optional)
+ imageWidthGt := []int32{int32(123)} // []int32 | (optional)
+ imageWidthGte := []int32{int32(123)} // []int32 | (optional)
+ imageWidthLt := []int32{int32(123)} // []int32 | (optional)
+ imageWidthLte := []int32{int32(123)} // []int32 | (optional)
+ imageWidthN := []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)
@@ -7227,13 +7401,18 @@ func main() {
objectIdLt := []int32{int32(123)} // []int32 | (optional)
objectIdLte := []int32{int32(123)} // []int32 | (optional)
objectIdN := []int32{int32(123)} // []int32 | (optional)
+ objectType := "objectType_example" // string | (optional)
+ objectTypeN := "objectTypeN_example" // string | (optional)
+ objectTypeId := int32(56) // int32 | (optional)
+ 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)
q := "q_example" // string | Search (optional)
+ updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(context.Background()).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(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).ImageHeight(imageHeight).ImageHeightEmpty(imageHeightEmpty).ImageHeightGt(imageHeightGt).ImageHeightGte(imageHeightGte).ImageHeightLt(imageHeightLt).ImageHeightLte(imageHeightLte).ImageHeightN(imageHeightN).ImageWidth(imageWidth).ImageWidthEmpty(imageWidthEmpty).ImageWidthGt(imageWidthGt).ImageWidthGte(imageWidthGte).ImageWidthLt(imageWidthLt).ImageWidthLte(imageWidthLte).ImageWidthN(imageWidthN).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).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).Q(q).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -7254,11 +7433,14 @@ Other parameters are passed through a pointer to a apiExtrasImageAttachmentsList
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **contentType** | **string** | |
- **contentTypeN** | **string** | |
- **contentTypeId** | **int32** | |
- **contentTypeIdN** | **int32** | |
- **created** | **time.Time** | |
+ **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** | |
**id** | **[]int32** | |
**idEmpty** | **bool** | |
**idGt** | **[]int32** | |
@@ -7266,7 +7448,29 @@ Name | Type | Description | Notes
**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**](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** | |
@@ -7285,9 +7489,14 @@ Name | Type | Description | Notes
**objectIdLt** | **[]int32** | |
**objectIdLte** | **[]int32** | |
**objectIdN** | **[]int32** | |
+ **objectType** | **string** | |
+ **objectTypeN** | **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 |
+ **updatedByRequest** | **string** | |
### Return type
@@ -7324,7 +7533,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7396,7 +7605,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7466,12 +7675,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this image attachment.
- imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ContentType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest |
+ imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7538,7 +7747,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7602,7 +7811,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7668,7 +7877,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7734,7 +7943,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7800,7 +8009,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7869,7 +8078,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8017,7 +8226,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8089,7 +8298,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8159,7 +8368,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8216,7 +8425,7 @@ Name | Type | Description | Notes
## ExtrasObjectChangesList
-> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute()
+> 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()
@@ -8232,12 +8441,12 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- action := "action_example" // string | (optional)
- actionN := "actionN_example" // string | (optional)
+ 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)
@@ -8271,6 +8480,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)
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)
@@ -8292,7 +8510,7 @@ func main() {
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).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).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 `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8313,8 +8531,8 @@ Other parameters are passed through a pointer to a apiExtrasObjectChangesListReq
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **action** | **string** | |
- **actionN** | **string** | |
+ **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** | |
@@ -8348,6 +8566,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. |
**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** | |
@@ -8402,7 +8629,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8455,9 +8682,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasSavedFiltersBulkDestroy
+## ExtrasObjectTypesList
-> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute()
+> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute()
@@ -8472,19 +8699,27 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+ 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)
- r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ 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.ExtrasSavedFiltersBulkDestroy``: %v\n", err)
+ 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)
}
```
@@ -8494,16 +8729,22 @@ func main() {
### 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 apiExtrasObjectTypesListRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | |
+ **appLabel** | **string** | |
+ **id** | **int32** | |
+ **limit** | **int32** | Number of results to return per page. |
+ **model** | **string** | |
+ **offset** | **int32** | The initial index from which to return the results. |
+ **ordering** | **string** | Which field to use when ordering the results. |
+ **q** | **string** | Search |
### Return type
- (empty response body)
+[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md)
### Authorization
@@ -8511,17 +8752,17 @@ Name | Type | Description | Notes
### HTTP request headers
-- **Content-Type**: application/json, multipart/form-data
-- **Accept**: Not defined
+- **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)
-## ExtrasSavedFiltersBulkPartialUpdate
+## ExtrasObjectTypesRetrieve
-> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
+> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute()
@@ -8536,40 +8777,44 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+ id := int32(56) // int32 | A unique integer value identifying this object type.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute()
if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %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 `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 apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern
+Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | |
+
### Return type
-[**[]SavedFilter**](SavedFilter.md)
+[**ObjectType**](ObjectType.md)
### Authorization
@@ -8577,7 +8822,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)
@@ -8585,9 +8830,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasSavedFiltersBulkUpdate
+## ExtrasSavedFiltersBulkDestroy
-> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
+> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute()
@@ -8602,21 +8847,19 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest |
+ 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()
+ r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %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)
}
```
@@ -8626,7 +8869,7 @@ func main() {
### 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 apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -8635,7 +8878,7 @@ Name | Type | Description | Notes
### Return type
-[**[]SavedFilter**](SavedFilter.md)
+ (empty response body)
### Authorization
@@ -8644,16 +8887,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)
-## ExtrasSavedFiltersCreate
+## ExtrasSavedFiltersBulkPartialUpdate
-> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
+> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
@@ -8668,21 +8911,21 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest |
+ 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.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
- // response from `ExtrasSavedFiltersCreate`: SavedFilter
- fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp)
+ // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp)
}
```
@@ -8692,16 +8935,16 @@ func main() {
### 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 apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | |
+ **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | |
### Return type
-[**SavedFilter**](SavedFilter.md)
+[**[]SavedFilter**](SavedFilter.md)
### Authorization
@@ -8717,9 +8960,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
-## ExtrasSavedFiltersDestroy
+## ExtrasSavedFiltersBulkUpdate
-> ExtrasSavedFiltersDestroy(ctx, id).Execute()
+> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
@@ -8734,42 +8977,40 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- id := int32(56) // int32 | A unique integer value identifying this saved filter.
+ 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.ExtrasSavedFiltersDestroy(context.Background(), id).Execute()
+ resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute()
if err != nil {
- fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
+ // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter
+ fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp)
}
```
### 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
+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
- (empty response body)
+[**[]SavedFilter**](SavedFilter.md)
### Authorization
@@ -8777,17 +9018,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
+## ExtrasSavedFiltersCreate
-> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute()
@@ -8802,47 +9043,181 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contentTypeId := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdGte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLt := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdLte := []int32{int32(123)} // []int32 | (optional)
- contentTypeIdN := []int32{int32(123)} // []int32 | (optional)
- contentTypes := "contentTypes_example" // string | (optional)
- contentTypesIc := "contentTypesIc_example" // string | (optional)
- contentTypesIe := "contentTypesIe_example" // string | (optional)
- contentTypesIew := "contentTypesIew_example" // string | (optional)
- contentTypesIsw := "contentTypesIsw_example" // string | (optional)
- contentTypesN := "contentTypesN_example" // string | (optional)
- contentTypesNic := "contentTypesNic_example" // string | (optional)
- contentTypesNie := "contentTypesNie_example" // string | (optional)
- contentTypesNiew := "contentTypesNiew_example" // string | (optional)
- contentTypesNisw := "contentTypesNisw_example" // string | (optional)
- description := []string{"Inner_example"} // []string | (optional)
- descriptionEmpty := true // bool | (optional)
- descriptionIc := []string{"Inner_example"} // []string | (optional)
- descriptionIe := []string{"Inner_example"} // []string | (optional)
- descriptionIew := []string{"Inner_example"} // []string | (optional)
- descriptionIsw := []string{"Inner_example"} // []string | (optional)
- descriptionN := []string{"Inner_example"} // []string | (optional)
- descriptionNic := []string{"Inner_example"} // []string | (optional)
- descriptionNie := []string{"Inner_example"} // []string | (optional)
- descriptionNiew := []string{"Inner_example"} // []string | (optional)
- descriptionNisw := []string{"Inner_example"} // []string | (optional)
- enabled := true // bool | (optional)
- id := []int32{int32(123)} // []int32 | (optional)
- idEmpty := true // bool | (optional)
+ 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)
@@ -8854,6 +9229,18 @@ func main() {
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)
@@ -8869,6 +9256,7 @@ func main() {
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)
@@ -8884,7 +9272,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
+ 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)
@@ -8905,23 +9293,14 @@ Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **contentTypeId** | **[]int32** | |
- **contentTypeIdEmpty** | **[]int32** | |
- **contentTypeIdGt** | **[]int32** | |
- **contentTypeIdGte** | **[]int32** | |
- **contentTypeIdLt** | **[]int32** | |
- **contentTypeIdLte** | **[]int32** | |
- **contentTypeIdN** | **[]int32** | |
- **contentTypes** | **string** | |
- **contentTypesIc** | **string** | |
- **contentTypesIe** | **string** | |
- **contentTypesIew** | **string** | |
- **contentTypesIsw** | **string** | |
- **contentTypesN** | **string** | |
- **contentTypesNic** | **string** | |
- **contentTypesNie** | **string** | |
- **contentTypesNiew** | **string** | |
- **contentTypesNisw** | **string** | |
+ **created** | [**[]time.Time**](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** | |
@@ -8941,7 +9320,15 @@ Name | Type | Description | Notes
**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** | |
@@ -8953,6 +9340,18 @@ Name | Type | Description | Notes
**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 |
@@ -8968,6 +9367,7 @@ Name | Type | Description | Notes
**slugNie** | **[]string** | |
**slugNiew** | **[]string** | |
**slugNisw** | **[]string** | |
+ **updatedByRequest** | **string** | |
**usable** | **bool** | |
**user** | **[]string** | User (name) |
**userN** | **[]string** | User (name) |
@@ -9016,7 +9416,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9088,7 +9488,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9158,12 +9558,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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{"ContentTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest |
+ savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9213,6 +9613,459 @@ Name | Type | Description | Notes
[[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).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.ExtrasScriptsPartialUpdate(context.Background(), id).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
+------------- | ------------- | ------------- | -------------
+
+
+### 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)
+
+
+## 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).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.ExtrasScriptsUpdate(context.Background(), id).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
+------------- | ------------- | ------------- | -------------
+
+
+### 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)
+
+
## ExtrasTagsBulkDestroy
> ExtrasTagsBulkDestroy(ctx).TagRequest(tagRequest).Execute()
@@ -9230,7 +10083,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9294,7 +10147,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9360,7 +10213,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9426,7 +10279,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9492,7 +10345,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9561,7 +10414,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9779,7 +10632,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9851,7 +10704,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9921,7 +10774,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9993,7 +10846,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10057,7 +10910,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10123,7 +10976,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10189,7 +11042,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10255,7 +11108,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10324,7 +11177,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10566,7 +11419,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10638,7 +11491,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10708,7 +11561,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/docs/DataSourceTypeLabel.md b/docs/ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md
similarity index 53%
rename from docs/DataSourceTypeLabel.md
rename to docs/ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md
index 067bf53d6f..370a9e6bd7 100644
--- a/docs/DataSourceTypeLabel.md
+++ b/docs/ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md
@@ -1,15 +1,13 @@
-# DataSourceTypeLabel
+# ExtrasCustomFieldChoiceSetsListBaseChoicesParameter
## Enum
-* `_______` (value: `"---------"`)
+* `IATA` (value: `"IATA"`)
-* `LOCAL` (value: `"Local"`)
+* `ISO_3166` (value: `"ISO_3166"`)
-* `GIT` (value: `"Git"`)
-
-* `AMAZON_S3` (value: `"Amazon S3"`)
+* `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/ExtrasCustomFieldsListFilterLogicParameter.md b/docs/ExtrasCustomFieldsListFilterLogicParameter.md
new file mode 100644
index 0000000000..bb94f80927
--- /dev/null
+++ b/docs/ExtrasCustomFieldsListFilterLogicParameter.md
@@ -0,0 +1,15 @@
+# ExtrasCustomFieldsListFilterLogicParameter
+
+## Enum
+
+
+* `DISABLED` (value: `"disabled"`)
+
+* `EXACT` (value: `"exact"`)
+
+* `LOOSE` (value: `"loose"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ExtrasCustomFieldsListUiEditableParameter.md b/docs/ExtrasCustomFieldsListUiEditableParameter.md
new file mode 100644
index 0000000000..b8d71a4dd0
--- /dev/null
+++ b/docs/ExtrasCustomFieldsListUiEditableParameter.md
@@ -0,0 +1,15 @@
+# ExtrasCustomFieldsListUiEditableParameter
+
+## Enum
+
+
+* `HIDDEN` (value: `"hidden"`)
+
+* `NO` (value: `"no"`)
+
+* `YES` (value: `"yes"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ExtrasCustomFieldsListUiVisibleParameter.md b/docs/ExtrasCustomFieldsListUiVisibleParameter.md
new file mode 100644
index 0000000000..c2b14e9d3a
--- /dev/null
+++ b/docs/ExtrasCustomFieldsListUiVisibleParameter.md
@@ -0,0 +1,15 @@
+# ExtrasCustomFieldsListUiVisibleParameter
+
+## Enum
+
+
+* `ALWAYS` (value: `"always"`)
+
+* `HIDDEN` (value: `"hidden"`)
+
+* `IF_SET` (value: `"if-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/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md
new file mode 100644
index 0000000000..f0207ccf5d
--- /dev/null
+++ b/docs/ExtrasCustomLinksListButtonClassParameter.md
@@ -0,0 +1,39 @@
+# ExtrasCustomLinksListButtonClassParameter
+
+## Enum
+
+
+* `BLACK` (value: `"black"`)
+
+* `BLUE` (value: `"blue"`)
+
+* `CYAN` (value: `"cyan"`)
+
+* `GHOST_DARK` (value: `"ghost-dark"`)
+
+* `GRAY` (value: `"gray"`)
+
+* `GREEN` (value: `"green"`)
+
+* `INDIGO` (value: `"indigo"`)
+
+* `ORANGE` (value: `"orange"`)
+
+* `OUTLINE_DARK` (value: `"outline-dark"`)
+
+* `PINK` (value: `"pink"`)
+
+* `PURPLE` (value: `"purple"`)
+
+* `RED` (value: `"red"`)
+
+* `TEAL` (value: `"teal"`)
+
+* `WHITE` (value: `"white"`)
+
+* `YELLOW` (value: `"yellow"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ExtrasObjectChangesListActionParameter.md b/docs/ExtrasObjectChangesListActionParameter.md
new file mode 100644
index 0000000000..bfa030c686
--- /dev/null
+++ b/docs/ExtrasObjectChangesListActionParameter.md
@@ -0,0 +1,15 @@
+# ExtrasObjectChangesListActionParameter
+
+## Enum
+
+
+* `CREATE` (value: `"create"`)
+
+* `DELETE` (value: `"delete"`)
+
+* `UPDATE` (value: `"update"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md
index 3d962c4dd1..1b55f2fa80 100644
--- a/docs/FHRPGroup.md
+++ b/docs/FHRPGroup.md
@@ -5,26 +5,17 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **int32** | | [readonly]
-**Name** | Pointer to **string** | | [optional]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
-**AuthType** | Pointer to [**AuthenticationType**](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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**IpAddresses** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly]
## Methods
### NewFHRPGroup
-`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress, ) *FHRPGroup`
+`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup`
NewFHRPGroup instantiates a new FHRPGroup object
This constructor will assign default values to properties that have it defined,
@@ -59,31 +50,6 @@ 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`
@@ -164,56 +130,6 @@ 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.
-
-### 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`
@@ -239,161 +155,6 @@ 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.
-
-
-### 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.
-
-
-### 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() []NestedIPAddress`
-
-GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise.
-
-### GetIpAddressesOk
-
-`func (o *FHRPGroup) GetIpAddressesOk() (*[]NestedIPAddress, 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 []NestedIPAddress)`
-
-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 efd9abf1bc..c6fa9037f7 100644
--- a/docs/FHRPGroupAssignment.md
+++ b/docs/FHRPGroupAssignment.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Group** | [**NestedFHRPGroup**](NestedFHRPGroup.md) | |
+**Group** | [**FHRPGroup**](FHRPGroup.md) | |
**InterfaceType** | **string** | |
**InterfaceId** | **int64** | |
**Interface** | **interface{}** | | [readonly]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewFHRPGroupAssignment
-`func NewFHRPGroupAssignment(id int32, url string, display string, group NestedFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment`
+`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *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() NestedFHRPGroup`
+`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *FHRPGroupAssignment) GetGroupOk() (*NestedFHRPGroup, bool)`
+`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, 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 NestedFHRPGroup)`
+`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)`
SetGroup sets Group field to given value.
diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md
index 08550747fe..b589eac9d8 100644
--- a/docs/FHRPGroupAssignmentRequest.md
+++ b/docs/FHRPGroupAssignmentRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Group** | [**NestedFHRPGroupRequest**](NestedFHRPGroupRequest.md) | |
+**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | |
**InterfaceType** | **string** | |
**InterfaceId** | **int64** | |
**Priority** | **int32** | |
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
### NewFHRPGroupAssignmentRequest
-`func NewFHRPGroupAssignmentRequest(group NestedFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest`
+`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, 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() NestedFHRPGroupRequest`
+`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*NestedFHRPGroupRequest, bool)`
+`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, 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 NestedFHRPGroupRequest)`
+`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)`
SetGroup sets Group field to given value.
diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md
index 534a798996..f7572c47f5 100644
--- a/docs/FHRPGroupRequest.md
+++ b/docs/FHRPGroupRequest.md
@@ -4,15 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Name** | Pointer to **string** | | [optional]
**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
**GroupId** | **int32** | |
-**AuthType** | Pointer to [**AuthenticationType**](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
@@ -33,31 +27,6 @@ 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`
@@ -98,56 +67,6 @@ 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.
-
-### 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`
@@ -173,81 +92,6 @@ 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 3a82c0d69b..5cba25bc85 100644
--- a/docs/FrontPort.md
+++ b/docs/FrontPort.md
@@ -7,17 +7,17 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**Device** | [**Device**](Device.md) | |
+**Module** | Pointer to [**NullableModule**](Module.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]
+**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
-**Cable** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
### NewFrontPort
-`func NewFrontPort(id int32, url string, display string, device NestedDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort`
+`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`
NewFrontPort instantiates a new FrontPort object
This constructor will assign default values to properties that have it defined,
@@ -108,40 +108,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *FrontPort) GetDevice() NestedDevice`
+`func (o *FrontPort) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *FrontPort) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *FrontPort) 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 *FrontPort) SetDevice(v NestedDevice)`
+`func (o *FrontPort) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *FrontPort) GetModule() ComponentNestedModule`
+`func (o *FrontPort) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *FrontPort) GetModuleOk() (*ComponentNestedModule, bool)`
+`func (o *FrontPort) 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 *FrontPort) SetModule(v ComponentNestedModule)`
+`func (o *FrontPort) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -348,20 +348,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *FrontPort) GetCable() NestedCable`
+`func (o *FrontPort) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *FrontPort) GetCableOk() (*NestedCable, bool)`
+`func (o *FrontPort) 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 *FrontPort) SetCable(v NestedCable)`
+`func (o *FrontPort) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md
index 48b3253e55..91c8194b7a 100644
--- a/docs/FrontPortRequest.md
+++ b/docs/FrontPortRequest.md
@@ -4,14 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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]
+**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1]
**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 NestedDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest`
+`func NewFrontPortRequest(device DeviceRequest, 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() NestedDeviceRequest`
+`func (o *FrontPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *FrontPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *FrontPortRequest) 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 *FrontPortRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *FrontPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *FrontPortRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *FrontPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *FrontPortRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`func (o *FrontPortRequest) 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 *FrontPortRequest) SetModule(v ComponentNestedModuleRequest)`
+`func (o *FrontPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md
index 487b5db3ae..31aa9d758e 100644
--- a/docs/FrontPortTemplate.md
+++ b/docs/FrontPortTemplate.md
@@ -7,14 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
+**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** | [**FrontPortType**](FrontPortType.md) | |
**Color** | Pointer to **string** | | [optional]
-**RearPort** | [**NestedRearPortTemplate**](NestedRearPortTemplate.md) | |
-**RearPortPosition** | Pointer to **int32** | | [optional]
+**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | |
+**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1]
**Description** | Pointer to **string** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewFrontPortTemplate
-`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort NestedRearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate`
+`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *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() NestedDeviceType`
+`func (o *FrontPortTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *FrontPortTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *FrontPortTemplate) 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 *FrontPortTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)`
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() NestedModuleType`
+`func (o *FrontPortTemplate) GetModuleType() ModuleType`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *FrontPortTemplate) GetModuleTypeOk() (*NestedModuleType, bool)`
+`func (o *FrontPortTemplate) 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 *FrontPortTemplate) SetModuleType(v NestedModuleType)`
+`func (o *FrontPortTemplate) SetModuleType(v ModuleType)`
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() NestedRearPortTemplate`
+`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate`
GetRearPort returns the RearPort field if non-nil, zero value otherwise.
### GetRearPortOk
-`func (o *FrontPortTemplate) GetRearPortOk() (*NestedRearPortTemplate, bool)`
+`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, 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 NestedRearPortTemplate)`
+`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)`
SetRearPort sets RearPort field to given value.
diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md
index eb1b790006..08dc1ef798 100644
--- a/docs/FrontPortTemplateRequest.md
+++ b/docs/FrontPortTemplateRequest.md
@@ -4,21 +4,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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** | [**NestedRearPortTemplateRequest**](NestedRearPortTemplateRequest.md) | |
-**RearPortPosition** | Pointer to **int32** | | [optional]
+**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | |
+**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1]
**Description** | Pointer to **string** | | [optional]
## Methods
### NewFrontPortTemplateRequest
-`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort NestedRearPortTemplateRequest, ) *FrontPortTemplateRequest`
+`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *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() NestedDeviceTypeRequest`
+`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *FrontPortTemplateRequest) 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 *FrontPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedModuleTypeRequest`
+`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, bool)`
+`func (o *FrontPortTemplateRequest) 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 *FrontPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest)`
+`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
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() NestedRearPortTemplateRequest`
+`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest`
GetRearPort returns the RearPort field if non-nil, zero value otherwise.
### GetRearPortOk
-`func (o *FrontPortTemplateRequest) GetRearPortOk() (*NestedRearPortTemplateRequest, bool)`
+`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, 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 NestedRearPortTemplateRequest)`
+`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)`
SetRearPort sets RearPort field to given value.
diff --git a/docs/GenericObject.md b/docs/GenericObject.md
deleted file mode 100644
index b409766a4d..0000000000
--- a/docs/GenericObject.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# GenericObject
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ObjectType** | **string** | |
-**ObjectId** | **int32** | |
-**Object** | **interface{}** | | [readonly]
-
-## Methods
-
-### NewGenericObject
-
-`func NewGenericObject(objectType string, objectId int32, object interface{}, ) *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.
-
-
-### 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 f4ec8ae627..c9ac7b587d 100644
--- a/docs/Group.md
+++ b/docs/Group.md
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional]
**UserCount** | **int32** | | [readonly]
## Methods
@@ -109,6 +111,56 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
+### GetDescription
+
+`func (o *Group) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *Group) 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 *Group) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *Group) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetPermissions
+
+`func (o *Group) GetPermissions() []ObjectPermission`
+
+GetPermissions returns the Permissions field if non-nil, zero value otherwise.
+
+### GetPermissionsOk
+
+`func (o *Group) 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 *Group) SetPermissions(v []ObjectPermission)`
+
+SetPermissions sets Permissions field to given value.
+
+### HasPermissions
+
+`func (o *Group) HasPermissions() bool`
+
+HasPermissions returns a boolean if a field has been set.
+
### GetUserCount
`func (o *Group) GetUserCount() int32`
diff --git a/docs/GroupRequest.md b/docs/GroupRequest.md
index 7b20286614..081ee2481c 100644
--- a/docs/GroupRequest.md
+++ b/docs/GroupRequest.md
@@ -5,6 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+**Permissions** | Pointer to **[]int32** | | [optional]
## Methods
@@ -45,6 +47,56 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
+### GetDescription
+
+`func (o *GroupRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *GroupRequest) 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 *GroupRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *GroupRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetPermissions
+
+`func (o *GroupRequest) GetPermissions() []int32`
+
+GetPermissions returns the Permissions field if non-nil, zero value otherwise.
+
+### GetPermissionsOk
+
+`func (o *GroupRequest) 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 *GroupRequest) SetPermissions(v []int32)`
+
+SetPermissions sets Permissions field to given value.
+
+### HasPermissions
+
+`func (o *GroupRequest) 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/IKEPolicy.md b/docs/IKEPolicy.md
index 3f7dbc860f..91c8a8e58b 100644
--- a/docs/IKEPolicy.md
+++ b/docs/IKEPolicy.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | |
**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | |
-**Proposals** | Pointer to **[]int32** | | [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]
@@ -185,20 +185,20 @@ SetMode sets Mode field to given value.
### GetProposals
-`func (o *IKEPolicy) GetProposals() []int32`
+`func (o *IKEPolicy) GetProposals() []IKEProposal`
GetProposals returns the Proposals field if non-nil, zero value otherwise.
### GetProposalsOk
-`func (o *IKEPolicy) GetProposalsOk() (*[]int32, bool)`
+`func (o *IKEPolicy) GetProposalsOk() (*[]IKEProposal, 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 *IKEPolicy) SetProposals(v []int32)`
+`func (o *IKEPolicy) SetProposals(v []IKEProposal)`
SetProposals sets Proposals field to given value.
diff --git a/docs/IPAddress.md b/docs/IPAddress.md
index 85bfc265bc..ed004ef146 100644
--- a/docs/IPAddress.md
+++ b/docs/IPAddress.md
@@ -9,28 +9,13 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Family** | [**AggregateFamily**](AggregateFamily.md) | |
**Address** | **string** | |
-**Vrf** | Pointer to [**NullableNestedVRF**](NestedVRF.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.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** | **interface{}** | | [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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewIPAddress
-`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress`
+`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress`
NewIPAddress instantiates a new IPAddress object
This constructor will assign default values to properties that have it defined,
@@ -145,306 +130,6 @@ and a boolean to check if the value has been set.
SetAddress sets Address field to given value.
-### GetVrf
-
-`func (o *IPAddress) GetVrf() NestedVRF`
-
-GetVrf returns the Vrf field if non-nil, zero value otherwise.
-
-### GetVrfOk
-
-`func (o *IPAddress) GetVrfOk() (*NestedVRF, 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 NestedVRF)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *IPAddress) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *IPAddress) SetTenant(v NestedTenant)`
-
-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.
-
-
-### 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`
@@ -470,141 +155,6 @@ 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.
-
-
-### 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.
-
-
-### 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 1a6cb73252..7944d1cf99 100644
--- a/docs/IPAddressRequest.md
+++ b/docs/IPAddressRequest.md
@@ -5,18 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Address** | **string** | |
-**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.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
@@ -57,256 +46,6 @@ and a boolean to check if the value has been set.
SetAddress sets Address field to given value.
-### GetVrf
-
-`func (o *IPAddressRequest) GetVrf() NestedVRFRequest`
-
-GetVrf returns the Vrf field if non-nil, zero value otherwise.
-
-### GetVrfOk
-
-`func (o *IPAddressRequest) GetVrfOk() (*NestedVRFRequest, 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 NestedVRFRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *IPAddressRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *IPAddressRequest) SetTenant(v NestedTenantRequest)`
-
-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`
@@ -332,81 +71,6 @@ 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/IPAddressRoleLabel.md b/docs/IPAddressRoleLabel.md
deleted file mode 100644
index 57453cb719..0000000000
--- a/docs/IPAddressRoleLabel.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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
deleted file mode 100644
index fe031504fc..0000000000
--- a/docs/IPAddressRoleValue.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# 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
deleted file mode 100644
index 961c2b0d10..0000000000
--- a/docs/IPAddressStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 85c0415725..0000000000
--- a/docs/IPAddressStatusLabel.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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
deleted file mode 100644
index 8794985a82..0000000000
--- a/docs/IPAddressStatusValue.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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.md b/docs/IPRange.md
index 97093fa2b9..4d6a50ec04 100644
--- a/docs/IPRange.md
+++ b/docs/IPRange.md
@@ -11,10 +11,10 @@ Name | Type | Description | Notes
**StartAddress** | **string** | |
**EndAddress** | **string** | |
**Size** | **int32** | | [readonly]
-**Vrf** | Pointer to [**NullableNestedVRF**](NestedVRF.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRole**](NestedRole.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]
@@ -184,20 +184,20 @@ SetSize sets Size field to given value.
### GetVrf
-`func (o *IPRange) GetVrf() NestedVRF`
+`func (o *IPRange) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *IPRange) GetVrfOk() (*NestedVRF, bool)`
+`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 NestedVRF)`
+`func (o *IPRange) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
@@ -219,20 +219,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() NestedTenant`
+`func (o *IPRange) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *IPRange) GetTenantOk() (*NestedTenant, bool)`
+`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 NestedTenant)`
+`func (o *IPRange) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -279,20 +279,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *IPRange) GetRole() NestedRole`
+`func (o *IPRange) GetRole() Role`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *IPRange) GetRoleOk() (*NestedRole, bool)`
+`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 NestedRole)`
+`func (o *IPRange) SetRole(v Role)`
SetRole sets Role field to given value.
diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md
index 5c7664d2d6..35f6cc2210 100644
--- a/docs/IPRangeRequest.md
+++ b/docs/IPRangeRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StartAddress** | **string** | |
**EndAddress** | **string** | |
-**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRoleRequest**](NestedRoleRequest.md) | | [optional]
+**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.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() NestedVRFRequest`
+`func (o *IPRangeRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *IPRangeRequest) GetVrfOk() (*NestedVRFRequest, bool)`
+`func (o *IPRangeRequest) 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 *IPRangeRequest) SetVrf(v NestedVRFRequest)`
+`func (o *IPRangeRequest) SetVrf(v VRFRequest)`
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() NestedTenantRequest`
+`func (o *IPRangeRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *IPRangeRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *IPRangeRequest) 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 *IPRangeRequest) SetTenant(v NestedTenantRequest)`
+`func (o *IPRangeRequest) SetTenant(v TenantRequest)`
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() NestedRoleRequest`
+`func (o *IPRangeRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *IPRangeRequest) GetRoleOk() (*NestedRoleRequest, bool)`
+`func (o *IPRangeRequest) 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 *IPRangeRequest) SetRole(v NestedRoleRequest)`
+`func (o *IPRangeRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md
index 29be8ccd3c..7d7e216e5a 100644
--- a/docs/IPSecPolicy.md
+++ b/docs/IPSecPolicy.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**Proposals** | Pointer to **[]int32** | | [optional]
+**Proposals** | Pointer to [**[]IPSecProposal**](IPSecProposal.md) | | [optional]
**PfsGroup** | Pointer to [**IKEProposalGroup**](IKEProposalGroup.md) | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
@@ -143,20 +143,20 @@ HasDescription returns a boolean if a field has been set.
### GetProposals
-`func (o *IPSecPolicy) GetProposals() []int32`
+`func (o *IPSecPolicy) GetProposals() []IPSecProposal`
GetProposals returns the Proposals field if non-nil, zero value otherwise.
### GetProposalsOk
-`func (o *IPSecPolicy) GetProposalsOk() (*[]int32, bool)`
+`func (o *IPSecPolicy) GetProposalsOk() (*[]IPSecProposal, 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 *IPSecPolicy) SetProposals(v []int32)`
+`func (o *IPSecPolicy) SetProposals(v []IPSecProposal)`
SetProposals sets Proposals field to given value.
diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md
index 0bc1ad7366..9582c52588 100644
--- a/docs/IPSecProfile.md
+++ b/docs/IPSecProfile.md
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | |
-**IkePolicy** | [**NestedIKEPolicy**](NestedIKEPolicy.md) | |
-**IpsecPolicy** | [**NestedIPSecPolicy**](NestedIPSecPolicy.md) | |
+**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | |
+**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | |
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewIPSecProfile
-`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy NestedIKEPolicy, ipsecPolicy NestedIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile`
+`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile`
NewIPSecProfile instantiates a new IPSecProfile object
This constructor will assign default values to properties that have it defined,
@@ -164,40 +164,40 @@ SetMode sets Mode field to given value.
### GetIkePolicy
-`func (o *IPSecProfile) GetIkePolicy() NestedIKEPolicy`
+`func (o *IPSecProfile) GetIkePolicy() IKEPolicy`
GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
### GetIkePolicyOk
-`func (o *IPSecProfile) GetIkePolicyOk() (*NestedIKEPolicy, bool)`
+`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, 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 NestedIKEPolicy)`
+`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)`
SetIkePolicy sets IkePolicy field to given value.
### GetIpsecPolicy
-`func (o *IPSecProfile) GetIpsecPolicy() NestedIPSecPolicy`
+`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy`
GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
### GetIpsecPolicyOk
-`func (o *IPSecProfile) GetIpsecPolicyOk() (*NestedIPSecPolicy, bool)`
+`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, 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 NestedIPSecPolicy)`
+`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)`
SetIpsecPolicy sets IpsecPolicy field to given value.
diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md
index 8557843901..74f1a9171d 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** | [**NestedIKEPolicyRequest**](NestedIKEPolicyRequest.md) | |
-**IpsecPolicy** | [**NestedIPSecPolicyRequest**](NestedIPSecPolicyRequest.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]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewIPSecProfileRequest
-`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy NestedIKEPolicyRequest, ipsecPolicy NestedIPSecPolicyRequest, ) *IPSecProfileRequest`
+`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *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() NestedIKEPolicyRequest`
+`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest`
GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
### GetIkePolicyOk
-`func (o *IPSecProfileRequest) GetIkePolicyOk() (*NestedIKEPolicyRequest, bool)`
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetIkePolicy(v NestedIKEPolicyRequest)`
+`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)`
SetIkePolicy sets IkePolicy field to given value.
### GetIpsecPolicy
-`func (o *IPSecProfileRequest) GetIpsecPolicy() NestedIPSecPolicyRequest`
+`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest`
GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
### GetIpsecPolicyOk
-`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*NestedIPSecPolicyRequest, bool)`
+`func (o *IPSecProfileRequest) 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 *IPSecProfileRequest) SetIpsecPolicy(v NestedIPSecPolicyRequest)`
+`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)`
SetIpsecPolicy sets IpsecPolicy field to given value.
diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md
index d3d66b7efb..254d230c2f 100644
--- a/docs/ImageAttachment.md
+++ b/docs/ImageAttachment.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentType** | **string** | |
+**ObjectType** | **string** | |
**ObjectId** | **int64** | |
**Parent** | **interface{}** | | [readonly]
**Name** | Pointer to **string** | | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewImageAttachment
-`func NewImageAttachment(id int32, url string, display string, contentType 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, parent interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime, ) *ImageAttachment`
NewImageAttachment instantiates a new ImageAttachment object
This constructor will assign default values to properties that have it defined,
@@ -96,24 +96,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentType
+### GetObjectType
-`func (o *ImageAttachment) GetContentType() string`
+`func (o *ImageAttachment) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *ImageAttachment) GetContentTypeOk() (*string, bool)`
+`func (o *ImageAttachment) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *ImageAttachment) SetContentType(v string)`
+`func (o *ImageAttachment) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
### GetObjectId
diff --git a/docs/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md
index e1ec8bc747..7728d54e5a 100644
--- a/docs/ImageAttachmentRequest.md
+++ b/docs/ImageAttachmentRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentType** | **string** | |
+**ObjectType** | **string** | |
**ObjectId** | **int64** | |
**Name** | Pointer to **string** | | [optional]
**Image** | ***os.File** | |
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
### NewImageAttachmentRequest
-`func NewImageAttachmentRequest(contentType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest`
+`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,
@@ -30,24 +30,24 @@ NewImageAttachmentRequestWithDefaults instantiates a new ImageAttachmentRequest
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentType
+### GetObjectType
-`func (o *ImageAttachmentRequest) GetContentType() string`
+`func (o *ImageAttachmentRequest) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *ImageAttachmentRequest) GetContentTypeOk() (*string, bool)`
+`func (o *ImageAttachmentRequest) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *ImageAttachmentRequest) SetContentType(v string)`
+`func (o *ImageAttachmentRequest) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
### GetObjectId
diff --git a/docs/Interface.md b/docs/Interface.md
index 2cfdbb0289..222d4907da 100644
--- a/docs/Interface.md
+++ b/docs/Interface.md
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Vdcs** | Pointer to **[]int32** | | [optional]
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**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) | |
@@ -32,17 +32,17 @@ 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 [**NullableNestedVLAN**](NestedVLAN.md) | | [optional]
-**TaggedVlans** | Pointer to [**[]NestedVLAN**](NestedVLAN.md) | | [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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**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 **[]int32** | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRF**](NestedVRF.md) | | [optional]
-**L2vpnTermination** | [**NullableNestedL2VPNTermination**](NestedL2VPNTermination.md) | | [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]
@@ -58,7 +58,7 @@ Name | Type | Description | Notes
### NewInterface
-`func NewInterface(id int32, url string, display string, device NestedDevice, name string, type_ InterfaceType, cable NullableNestedCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableNestedL2VPNTermination, 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 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,
@@ -135,40 +135,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *Interface) GetDevice() NestedDevice`
+`func (o *Interface) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *Interface) GetDeviceOk() (*NestedDevice, bool)`
+`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 NestedDevice)`
+`func (o *Interface) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetVdcs
-`func (o *Interface) GetVdcs() []int32`
+`func (o *Interface) GetVdcs() []VirtualDeviceContext`
GetVdcs returns the Vdcs field if non-nil, zero value otherwise.
### GetVdcsOk
-`func (o *Interface) GetVdcsOk() (*[]int32, bool)`
+`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 []int32)`
+`func (o *Interface) SetVdcs(v []VirtualDeviceContext)`
SetVdcs sets Vdcs field to given value.
@@ -180,20 +180,20 @@ HasVdcs returns a boolean if a field has been set.
### GetModule
-`func (o *Interface) GetModule() ComponentNestedModule`
+`func (o *Interface) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *Interface) GetModuleOk() (*ComponentNestedModule, bool)`
+`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 ComponentNestedModule)`
+`func (o *Interface) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -865,20 +865,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() NestedVLAN`
+`func (o *Interface) GetUntaggedVlan() VLAN`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *Interface) GetUntaggedVlanOk() (*NestedVLAN, bool)`
+`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 NestedVLAN)`
+`func (o *Interface) SetUntaggedVlan(v VLAN)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -900,20 +900,20 @@ HasUntaggedVlan returns a boolean if a field has been set.
UnsetUntaggedVlan ensures that no value is present for UntaggedVlan, not even an explicit nil
### GetTaggedVlans
-`func (o *Interface) GetTaggedVlans() []NestedVLAN`
+`func (o *Interface) GetTaggedVlans() []VLAN`
GetTaggedVlans returns the TaggedVlans field if non-nil, zero value otherwise.
### GetTaggedVlansOk
-`func (o *Interface) GetTaggedVlansOk() (*[]NestedVLAN, bool)`
+`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 []NestedVLAN)`
+`func (o *Interface) SetTaggedVlans(v []VLAN)`
SetTaggedVlans sets TaggedVlans field to given value.
@@ -950,20 +950,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *Interface) GetCable() NestedCable`
+`func (o *Interface) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *Interface) GetCableOk() (*NestedCable, bool)`
+`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 NestedCable)`
+`func (o *Interface) SetCable(v Cable)`
SetCable sets Cable field to given value.
@@ -1070,20 +1070,20 @@ SetLinkPeersType sets LinkPeersType field to given value.
### GetWirelessLans
-`func (o *Interface) GetWirelessLans() []int32`
+`func (o *Interface) GetWirelessLans() []WirelessLAN`
GetWirelessLans returns the WirelessLans field if non-nil, zero value otherwise.
### GetWirelessLansOk
-`func (o *Interface) GetWirelessLansOk() (*[]int32, bool)`
+`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 []int32)`
+`func (o *Interface) SetWirelessLans(v []WirelessLAN)`
SetWirelessLans sets WirelessLans field to given value.
@@ -1095,20 +1095,20 @@ HasWirelessLans returns a boolean if a field has been set.
### GetVrf
-`func (o *Interface) GetVrf() NestedVRF`
+`func (o *Interface) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *Interface) GetVrfOk() (*NestedVRF, bool)`
+`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 NestedVRF)`
+`func (o *Interface) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
@@ -1130,20 +1130,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
### GetL2vpnTermination
-`func (o *Interface) GetL2vpnTermination() NestedL2VPNTermination`
+`func (o *Interface) GetL2vpnTermination() L2VPNTermination`
GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise.
### GetL2vpnTerminationOk
-`func (o *Interface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool)`
+`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 NestedL2VPNTermination)`
+`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)`
SetL2vpnTermination sets L2vpnTermination field to given value.
diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md
index a5293437c2..9a58216f3f 100644
--- a/docs/InterfaceRequest.md
+++ b/docs/InterfaceRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**Vdcs** | Pointer to **[]int32** | | [optional]
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
@@ -29,11 +29,11 @@ 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 [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**WirelessLans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
### NewInterfaceRequest
-`func NewInterfaceRequest(device NestedDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest`
+`func NewInterfaceRequest(device DeviceRequest, 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 +58,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *InterfaceRequest) GetDevice() NestedDeviceRequest`
+`func (o *InterfaceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *InterfaceRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *InterfaceRequest) 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 *InterfaceRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *InterfaceRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set.
### GetModule
-`func (o *InterfaceRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *InterfaceRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *InterfaceRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`func (o *InterfaceRequest) 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 *InterfaceRequest) SetModule(v ComponentNestedModuleRequest)`
+`func (o *InterfaceRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -788,20 +788,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() NestedVLANRequest`
+`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *InterfaceRequest) GetUntaggedVlanOk() (*NestedVLANRequest, bool)`
+`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 NestedVLANRequest)`
+`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set.
### GetVrf
-`func (o *InterfaceRequest) GetVrf() NestedVRFRequest`
+`func (o *InterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *InterfaceRequest) GetVrfOk() (*NestedVRFRequest, bool)`
+`func (o *InterfaceRequest) 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 *InterfaceRequest) SetVrf(v NestedVRFRequest)`
+`func (o *InterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md
index 1411169c80..fe7c519cdc 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 [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
+**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** | [**InterfaceType**](InterfaceType.md) | |
@@ -103,20 +103,20 @@ SetDisplay sets Display field to given value.
### GetDeviceType
-`func (o *InterfaceTemplate) GetDeviceType() NestedDeviceType`
+`func (o *InterfaceTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *InterfaceTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *InterfaceTemplate) 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 *InterfaceTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)`
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() NestedModuleType`
+`func (o *InterfaceTemplate) GetModuleType() ModuleType`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *InterfaceTemplate) GetModuleTypeOk() (*NestedModuleType, bool)`
+`func (o *InterfaceTemplate) 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 *InterfaceTemplate) SetModuleType(v NestedModuleType)`
+`func (o *InterfaceTemplate) SetModuleType(v ModuleType)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md
index 21a865a4fb..e916c81165 100644
--- a/docs/InterfaceTemplateRequest.md
+++ b/docs/InterfaceTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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() NestedDeviceTypeRequest`
+`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *InterfaceTemplateRequest) 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 *InterfaceTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedModuleTypeRequest`
+`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, bool)`
+`func (o *InterfaceTemplateRequest) 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 *InterfaceTemplateRequest) SetModuleType(v NestedModuleTypeRequest)`
+`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md
index 83c88d0dc9..74891e8c26 100644
--- a/docs/InterfaceTypeLabel.md
+++ b/docs/InterfaceTypeLabel.md
@@ -91,6 +91,10 @@
* `_1000_BASE_KX__1_GE` (value: `"1000BASE-KX (1GE)"`)
+* `_2_5_GBASE_KX__2_5_GE` (value: `"2.5GBASE-KX (2.5GE)"`)
+
+* `_5_GBASE_KR__5_GE` (value: `"5GBASE-KR (5GE)"`)
+
* `_10_GBASE_KR__10_GE` (value: `"10GBASE-KR (10GE)"`)
* `_10_GBASE_KX4__10_GE` (value: `"10GBASE-KX4 (10GE)"`)
@@ -131,6 +135,10 @@
* `LTE` (value: `"LTE"`)
+* `_4_G` (value: `"4G"`)
+
+* `_5_G` (value: `"5G"`)
+
* `OC_3_STM_1` (value: `"OC-3/STM-1"`)
* `OC_12_STM_4` (value: `"OC-12/STM-4"`)
@@ -197,7 +205,13 @@
* `DOCSIS` (value: `"DOCSIS"`)
-* `GPON__2_5_GBPS___1_25_GPS` (value: `"GPON (2.5 Gbps / 1.25 Gps)"`)
+* `BPON__622_MBPS___155_MBPS` (value: `"BPON (622 Mbps / 155 Mbps)"`)
+
+* `EPON__1_GBPS` (value: `"EPON (1 Gbps)"`)
+
+* `_10_G_EPON__10_GBPS` (value: `"10G-EPON (10 Gbps)"`)
+
+* `GPON__2_5_GBPS___1_25_GBPS` (value: `"GPON (2.5 Gbps / 1.25 Gbps)"`)
* `XG_PON__10_GBPS___2_5_GBPS` (value: `"XG-PON (10 Gbps / 2.5 Gbps)"`)
@@ -205,9 +219,9 @@
* `NG_PON2__TWDM_PON__4X10_GBPS` (value: `"NG-PON2 (TWDM-PON) (4x10 Gbps)"`)
-* `EPON__1_GBPS` (value: `"EPON (1 Gbps)"`)
+* `_25_G_PON__25_GBPS` (value: `"25G-PON (25 Gbps)"`)
-* `_10_G_EPON__10_GBPS` (value: `"10G-EPON (10 Gbps)"`)
+* `_50_G_PON__50_GBPS` (value: `"50G-PON (50 Gbps)"`)
* `CISCO_STACK_WISE` (value: `"Cisco StackWise"`)
diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md
index 37da025e0b..4d0b0417fd 100644
--- a/docs/InterfaceTypeValue.md
+++ b/docs/InterfaceTypeValue.md
@@ -91,6 +91,10 @@
* `_1000BASE_KX` (value: `"1000base-kx"`)
+* `_2_5GBASE_KX` (value: `"2.5gbase-kx"`)
+
+* `_5GBASE_KR` (value: `"5gbase-kr"`)
+
* `_10GBASE_KR` (value: `"10gbase-kr"`)
* `_10GBASE_KX4` (value: `"10gbase-kx4"`)
@@ -131,6 +135,10 @@
* `LTE` (value: `"lte"`)
+* `_4G` (value: `"4g"`)
+
+* `_5G` (value: `"5g"`)
+
* `SONET_OC3` (value: `"sonet-oc3"`)
* `SONET_OC12` (value: `"sonet-oc12"`)
@@ -197,6 +205,12 @@
* `DOCSIS` (value: `"docsis"`)
+* `BPON` (value: `"bpon"`)
+
+* `EPON` (value: `"epon"`)
+
+* `_10G_EPON` (value: `"10g-epon"`)
+
* `GPON` (value: `"gpon"`)
* `XG_PON` (value: `"xg-pon"`)
@@ -205,9 +219,9 @@
* `NG_PON2` (value: `"ng-pon2"`)
-* `EPON` (value: `"epon"`)
+* `_25G_PON` (value: `"25g-pon"`)
-* `_10G_EPON` (value: `"10g-epon"`)
+* `_50G_PON` (value: `"50g-pon"`)
* `CISCO_STACKWISE` (value: `"cisco-stackwise"`)
diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md
index e2a8f52a76..899e554b9d 100644
--- a/docs/InventoryItem.md
+++ b/docs/InventoryItem.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
+**Device** | [**Device**](Device.md) | |
**Parent** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Role** | Pointer to [**NullableNestedInventoryItemRole**](NestedInventoryItemRole.md) | | [optional]
-**Manufacturer** | Pointer to [**NullableNestedManufacturer**](NestedManufacturer.md) | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.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]
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
### NewInventoryItem
-`func NewInventoryItem(id int32, url string, display string, device NestedDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem`
+`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem`
NewInventoryItem instantiates a new InventoryItem object
This constructor will assign default values to properties that have it defined,
@@ -108,20 +108,20 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *InventoryItem) GetDevice() NestedDevice`
+`func (o *InventoryItem) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *InventoryItem) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *InventoryItem) 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 *InventoryItem) SetDevice(v NestedDevice)`
+`func (o *InventoryItem) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -208,20 +208,20 @@ HasLabel returns a boolean if a field has been set.
### GetRole
-`func (o *InventoryItem) GetRole() NestedInventoryItemRole`
+`func (o *InventoryItem) GetRole() InventoryItemRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *InventoryItem) GetRoleOk() (*NestedInventoryItemRole, bool)`
+`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, 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 NestedInventoryItemRole)`
+`func (o *InventoryItem) SetRole(v InventoryItemRole)`
SetRole sets Role field to given value.
@@ -243,20 +243,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() NestedManufacturer`
+`func (o *InventoryItem) GetManufacturer() Manufacturer`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *InventoryItem) GetManufacturerOk() (*NestedManufacturer, bool)`
+`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, 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 NestedManufacturer)`
+`func (o *InventoryItem) SetManufacturer(v Manufacturer)`
SetManufacturer sets Manufacturer field to given value.
diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md
index b7e7c36c3b..580df6b263 100644
--- a/docs/InventoryItemRequest.md
+++ b/docs/InventoryItemRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**Parent** | Pointer to **NullableInt32** | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
-**Role** | Pointer to [**NullableNestedInventoryItemRoleRequest**](NestedInventoryItemRoleRequest.md) | | [optional]
-**Manufacturer** | Pointer to [**NullableNestedManufacturerRequest**](NestedManufacturerRequest.md) | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.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 +24,7 @@ Name | Type | Description | Notes
### NewInventoryItemRequest
-`func NewInventoryItemRequest(device NestedDeviceRequest, name string, ) *InventoryItemRequest`
+`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest`
NewInventoryItemRequest instantiates a new InventoryItemRequest object
This constructor will assign default values to properties that have it defined,
@@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *InventoryItemRequest) GetDevice() NestedDeviceRequest`
+`func (o *InventoryItemRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *InventoryItemRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *InventoryItemRequest) 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 *InventoryItemRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -141,20 +141,20 @@ HasLabel returns a boolean if a field has been set.
### GetRole
-`func (o *InventoryItemRequest) GetRole() NestedInventoryItemRoleRequest`
+`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *InventoryItemRequest) GetRoleOk() (*NestedInventoryItemRoleRequest, bool)`
+`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, 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 NestedInventoryItemRoleRequest)`
+`func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)`
SetRole sets Role field to given value.
@@ -176,20 +176,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() NestedManufacturerRequest`
+`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *InventoryItemRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool)`
+`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, 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 NestedManufacturerRequest)`
+`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md
index a6c21fe185..ffd538ba16 100644
--- a/docs/InventoryItemRole.md
+++ b/docs/InventoryItemRole.md
@@ -15,13 +15,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**InventoryitemCount** | **int32** | | [readonly]
+**InventoryitemCount** | **int64** | | [readonly]
## Methods
### NewInventoryItemRole
-`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int32, ) *InventoryItemRole`
+`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole`
NewInventoryItemRole instantiates a new InventoryItemRole object
This constructor will assign default values to properties that have it defined,
@@ -298,20 +298,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetInventoryitemCount
-`func (o *InventoryItemRole) GetInventoryitemCount() int32`
+`func (o *InventoryItemRole) GetInventoryitemCount() int64`
GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise.
### GetInventoryitemCountOk
-`func (o *InventoryItemRole) GetInventoryitemCountOk() (*int32, bool)`
+`func (o *InventoryItemRole) 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 *InventoryItemRole) SetInventoryitemCount(v int32)`
+`func (o *InventoryItemRole) SetInventoryitemCount(v int64)`
SetInventoryitemCount sets InventoryitemCount field to given value.
diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md
index cfffd42d6e..94833b0ef3 100644
--- a/docs/InventoryItemTemplate.md
+++ b/docs/InventoryItemTemplate.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | |
+**DeviceType** | [**DeviceType**](DeviceType.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 [**NullableNestedInventoryItemRole**](NestedInventoryItemRole.md) | | [optional]
-**Manufacturer** | Pointer to [**NullableNestedManufacturer**](NestedManufacturer.md) | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional]
**PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional]
**Description** | Pointer to **string** | | [optional]
**ComponentType** | Pointer to **NullableString** | | [optional]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
### NewInventoryItemTemplate
-`func NewInventoryItemTemplate(id int32, url string, display string, deviceType NestedDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate`
+`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, 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() NestedDeviceType`
+`func (o *InventoryItemTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *InventoryItemTemplate) 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 *InventoryItemTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)`
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() NestedInventoryItemRole`
+`func (o *InventoryItemTemplate) GetRole() InventoryItemRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *InventoryItemTemplate) GetRoleOk() (*NestedInventoryItemRole, bool)`
+`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, 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 NestedInventoryItemRole)`
+`func (o *InventoryItemTemplate) SetRole(v InventoryItemRole)`
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() NestedManufacturer`
+`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *InventoryItemTemplate) GetManufacturerOk() (*NestedManufacturer, bool)`
+`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, 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 NestedManufacturer)`
+`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)`
SetManufacturer sets Manufacturer field to given value.
diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md
index cabc07bac3..fb68460d1e 100644
--- a/docs/InventoryItemTemplateRequest.md
+++ b/docs/InventoryItemTemplateRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | |
+**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.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 [**NullableNestedInventoryItemRoleRequest**](NestedInventoryItemRoleRequest.md) | | [optional]
-**Manufacturer** | Pointer to [**NullableNestedManufacturerRequest**](NestedManufacturerRequest.md) | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.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 NestedDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest`
+`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, 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() NestedDeviceTypeRequest`
+`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *InventoryItemTemplateRequest) 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 *InventoryItemTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedInventoryItemRoleRequest`
+`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *InventoryItemTemplateRequest) GetRoleOk() (*NestedInventoryItemRoleRequest, bool)`
+`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, 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 NestedInventoryItemRoleRequest)`
+`func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)`
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() NestedManufacturerRequest`
+`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool)`
+`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, 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 NestedManufacturerRequest)`
+`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md
index ed006445ec..3113766dae 100644
--- a/docs/IpamAPI.md
+++ b/docs/IpamAPI.md
@@ -178,11 +178,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -242,11 +242,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -308,11 +308,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
+ aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -374,11 +374,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
+ writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -440,7 +440,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -509,7 +509,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -697,7 +697,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -769,7 +769,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -839,12 +839,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this aggregate.
- writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", int32(123)) // WritableAggregateRequest |
+ writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -911,7 +911,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -983,7 +983,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1053,11 +1053,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1117,11 +1117,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1183,11 +1183,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewNestedRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
+ aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1234,7 +1234,7 @@ Name | Type | Description | Notes
## IpamAsnRangesCreate
-> ASNRange IpamAsnRangesCreate(ctx).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+> ASNRange IpamAsnRangesCreate(ctx).ASNRangeRequest(aSNRangeRequest).Execute()
@@ -1249,15 +1249,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
+ aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1278,7 +1278,7 @@ Other parameters are passed through a pointer to a apiIpamAsnRangesCreateRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
+ **aSNRangeRequest** | [**ASNRangeRequest**](ASNRangeRequest.md) | |
### Return type
@@ -1315,7 +1315,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1368,7 +1368,7 @@ Name | Type | Description | Notes
## IpamAsnRangesList
-> PaginatedASNRangeList IpamAsnRangesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedASNRangeList IpamAsnRangesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
@@ -1384,7 +1384,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1448,6 +1448,17 @@ func main() {
rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional)
rirIdN := []int32{int32(123)} // []int32 | RIR (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)
start := []int32{int32(123)} // []int32 | (optional)
startEmpty := true // bool | (optional)
startGt := []int32{int32(123)} // []int32 | (optional)
@@ -1469,7 +1480,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1550,6 +1561,17 @@ Name | Type | Description | Notes
**rirN** | **[]string** | RIR (slug) |
**rirId** | **[]int32** | RIR (ID) |
**rirIdN** | **[]int32** | RIR (ID) |
+ **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** | |
@@ -1589,7 +1611,7 @@ Name | Type | Description | Notes
## IpamAsnRangesPartialUpdate
-> ASNRange IpamAsnRangesPartialUpdate(ctx, id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute()
+> ASNRange IpamAsnRangesPartialUpdate(ctx, id).PatchedASNRangeRequest(patchedASNRangeRequest).Execute()
@@ -1604,16 +1626,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this ASN range.
- patchedWritableASNRangeRequest := *openapiclient.NewPatchedWritableASNRangeRequest() // PatchedWritableASNRangeRequest | (optional)
+ patchedASNRangeRequest := *openapiclient.NewPatchedASNRangeRequest() // PatchedASNRangeRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedASNRangeRequest(patchedASNRangeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1639,7 +1661,7 @@ Other parameters are passed through a pointer to a apiIpamAsnRangesPartialUpdate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableASNRangeRequest** | [**PatchedWritableASNRangeRequest**](PatchedWritableASNRangeRequest.md) | |
+ **patchedASNRangeRequest** | [**PatchedASNRangeRequest**](PatchedASNRangeRequest.md) | |
### Return type
@@ -1676,7 +1698,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1731,7 +1753,7 @@ Name | Type | Description | Notes
## IpamAsnRangesUpdate
-> ASNRange IpamAsnRangesUpdate(ctx, id).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+> ASNRange IpamAsnRangesUpdate(ctx, id).ASNRangeRequest(aSNRangeRequest).Execute()
@@ -1746,16 +1768,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this ASN range.
- writableASNRangeRequest := *openapiclient.NewWritableASNRangeRequest("Name_example", "Slug_example", int32(123), int64(123), int64(123)) // WritableASNRangeRequest |
+ aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).WritableASNRangeRequest(writableASNRangeRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).ASNRangeRequest(aSNRangeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1781,7 +1803,7 @@ Other parameters are passed through a pointer to a apiIpamAsnRangesUpdateRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableASNRangeRequest** | [**WritableASNRangeRequest**](WritableASNRangeRequest.md) | |
+ **aSNRangeRequest** | [**ASNRangeRequest**](ASNRangeRequest.md) | |
### Return type
@@ -1818,7 +1840,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1882,7 +1904,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1948,7 +1970,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1999,7 +2021,7 @@ Name | Type | Description | Notes
## IpamAsnsCreate
-> ASN IpamAsnsCreate(ctx).WritableASNRequest(writableASNRequest).Execute()
+> ASN IpamAsnsCreate(ctx).ASNRequest(aSNRequest).Execute()
@@ -2014,15 +2036,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
+ aSNRequest := *openapiclient.NewASNRequest(int64(123)) // ASNRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).WritableASNRequest(writableASNRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).ASNRequest(aSNRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2043,7 +2065,7 @@ Other parameters are passed through a pointer to a apiIpamAsnsCreateRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
+ **aSNRequest** | [**ASNRequest**](ASNRequest.md) | |
### Return type
@@ -2080,7 +2102,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2133,7 +2155,7 @@ Name | Type | Description | Notes
## IpamAsnsList
-> PaginatedASNList IpamAsnsList(ctx).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedASNList IpamAsnsList(ctx).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
@@ -2149,7 +2171,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2197,6 +2219,10 @@ func main() {
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)
+ providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional)
+ providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional)
q := "q_example" // string | Search (optional)
rir := []string{"Inner_example"} // []string | RIR (slug) (optional)
rirN := []string{"Inner_example"} // []string | RIR (slug) (optional)
@@ -2220,7 +2246,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2285,6 +2311,10 @@ Name | Type | Description | Notes
**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) |
+ **providerId** | **[]int32** | Provider (ID) |
+ **providerIdN** | **[]int32** | Provider (ID) |
**q** | **string** | Search |
**rir** | **[]string** | RIR (slug) |
**rirN** | **[]string** | RIR (slug) |
@@ -2326,7 +2356,7 @@ Name | Type | Description | Notes
## IpamAsnsPartialUpdate
-> ASN IpamAsnsPartialUpdate(ctx, id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute()
+> ASN IpamAsnsPartialUpdate(ctx, id).PatchedASNRequest(patchedASNRequest).Execute()
@@ -2341,16 +2371,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this ASN.
- patchedWritableASNRequest := *openapiclient.NewPatchedWritableASNRequest() // PatchedWritableASNRequest | (optional)
+ patchedASNRequest := *openapiclient.NewPatchedASNRequest() // PatchedASNRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).PatchedASNRequest(patchedASNRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2376,7 +2406,7 @@ Other parameters are passed through a pointer to a apiIpamAsnsPartialUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableASNRequest** | [**PatchedWritableASNRequest**](PatchedWritableASNRequest.md) | |
+ **patchedASNRequest** | [**PatchedASNRequest**](PatchedASNRequest.md) | |
### Return type
@@ -2413,7 +2443,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2468,7 +2498,7 @@ Name | Type | Description | Notes
## IpamAsnsUpdate
-> ASN IpamAsnsUpdate(ctx, id).WritableASNRequest(writableASNRequest).Execute()
+> ASN IpamAsnsUpdate(ctx, id).ASNRequest(aSNRequest).Execute()
@@ -2483,16 +2513,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this ASN.
- writableASNRequest := *openapiclient.NewWritableASNRequest(int64(123), int32(123)) // WritableASNRequest |
+ aSNRequest := *openapiclient.NewASNRequest(int64(123)) // ASNRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).WritableASNRequest(writableASNRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).ASNRequest(aSNRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2518,7 +2548,7 @@ Other parameters are passed through a pointer to a apiIpamAsnsUpdateRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableASNRequest** | [**WritableASNRequest**](WritableASNRequest.md) | |
+ **aSNRequest** | [**ASNRequest**](ASNRequest.md) | |
### Return type
@@ -2555,11 +2585,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2619,11 +2649,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2685,11 +2715,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewNestedFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
+ fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2736,7 +2766,7 @@ Name | Type | Description | Notes
## IpamFhrpGroupAssignmentsCreate
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsCreate(ctx).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsCreate(ctx).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
@@ -2751,15 +2781,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
+ fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2780,7 +2810,7 @@ Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsCr
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
+ **fHRPGroupAssignmentRequest** | [**FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
### Return type
@@ -2817,7 +2847,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2886,7 +2916,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3033,7 +3063,7 @@ Name | Type | Description | Notes
## IpamFhrpGroupAssignmentsPartialUpdate
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute()
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsPartialUpdate(ctx, id).PatchedFHRPGroupAssignmentRequest(patchedFHRPGroupAssignmentRequest).Execute()
@@ -3048,16 +3078,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment.
- patchedWritableFHRPGroupAssignmentRequest := *openapiclient.NewPatchedWritableFHRPGroupAssignmentRequest() // PatchedWritableFHRPGroupAssignmentRequest | (optional)
+ patchedFHRPGroupAssignmentRequest := *openapiclient.NewPatchedFHRPGroupAssignmentRequest() // PatchedFHRPGroupAssignmentRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedFHRPGroupAssignmentRequest(patchedFHRPGroupAssignmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3083,7 +3113,7 @@ Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsPa
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableFHRPGroupAssignmentRequest** | [**PatchedWritableFHRPGroupAssignmentRequest**](PatchedWritableFHRPGroupAssignmentRequest.md) | |
+ **patchedFHRPGroupAssignmentRequest** | [**PatchedFHRPGroupAssignmentRequest**](PatchedFHRPGroupAssignmentRequest.md) | |
### Return type
@@ -3120,7 +3150,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3175,7 +3205,7 @@ Name | Type | Description | Notes
## IpamFhrpGroupAssignmentsUpdate
-> FHRPGroupAssignment IpamFhrpGroupAssignmentsUpdate(ctx, id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+> FHRPGroupAssignment IpamFhrpGroupAssignmentsUpdate(ctx, id).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
@@ -3190,16 +3220,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment.
- writableFHRPGroupAssignmentRequest := *openapiclient.NewWritableFHRPGroupAssignmentRequest(int32(123), "InterfaceType_example", int64(123), int32(123)) // WritableFHRPGroupAssignmentRequest |
+ fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3225,7 +3255,7 @@ Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsUp
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableFHRPGroupAssignmentRequest** | [**WritableFHRPGroupAssignmentRequest**](WritableFHRPGroupAssignmentRequest.md) | |
+ **fHRPGroupAssignmentRequest** | [**FHRPGroupAssignmentRequest**](FHRPGroupAssignmentRequest.md) | |
### Return type
@@ -3262,7 +3292,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3326,7 +3356,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3392,7 +3422,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3458,7 +3488,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3524,7 +3554,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3593,7 +3623,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3807,7 +3837,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3879,7 +3909,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3949,7 +3979,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4021,7 +4051,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4085,7 +4115,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4151,7 +4181,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4217,7 +4247,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4283,7 +4313,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4336,7 +4366,7 @@ Name | Type | Description | Notes
## IpamIpAddressesList
-> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute()
+> 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()
@@ -4352,12 +4382,21 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
address := []string{"Inner_example"} // []string | (optional)
assigned := true // bool | Is assigned (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)
assignedToInterface := true // bool | Is assigned to an interface (optional)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
@@ -4417,6 +4456,8 @@ func main() {
maskLengthGte := float32(8.14) // float32 | (optional)
maskLengthLte := float32(8.14) // float32 | (optional)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
+ natInsideId := []int32{int32(123)} // []int32 | NAT inside IP address (ID) (optional)
+ natInsideIdN := []int32{int32(123)} // []int32 | NAT inside IP address (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)
parent := []string{"Inner_example"} // []string | (optional)
@@ -4425,6 +4466,8 @@ func main() {
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)
+ 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)
statusN := []string{"Inner_example"} // []string | The operational status of this IP (optional)
tag := []string{"Inner_example"} // []string | (optional)
@@ -4451,7 +4494,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).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).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).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()
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)
@@ -4474,6 +4517,15 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**address** | **[]string** | |
**assigned** | **bool** | Is assigned |
+ **assignedObjectId** | **[]int32** | |
+ **assignedObjectIdEmpty** | **bool** | |
+ **assignedObjectIdGt** | **[]int32** | |
+ **assignedObjectIdGte** | **[]int32** | |
+ **assignedObjectIdLt** | **[]int32** | |
+ **assignedObjectIdLte** | **[]int32** | |
+ **assignedObjectIdN** | **[]int32** | |
+ **assignedObjectType** | **int32** | |
+ **assignedObjectTypeN** | **int32** | |
**assignedToInterface** | **bool** | Is assigned to an interface |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
@@ -4533,6 +4585,8 @@ Name | Type | Description | Notes
**maskLengthGte** | **float32** | |
**maskLengthLte** | **float32** | |
**modifiedByRequest** | **string** | |
+ **natInsideId** | **[]int32** | NAT inside IP address (ID) |
+ **natInsideIdN** | **[]int32** | NAT inside IP address (ID) |
**offset** | **int32** | The initial index from which to return the results. |
**ordering** | **string** | Which field to use when ordering the results. |
**parent** | **[]string** | |
@@ -4541,6 +4595,8 @@ Name | Type | Description | Notes
**q** | **string** | Search |
**role** | **[]string** | The functional role of this IP |
**roleN** | **[]string** | The functional role of this IP |
+ **serviceId** | **[]int32** | Service (ID) |
+ **serviceIdN** | **[]int32** | Service (ID) |
**status** | **[]string** | The operational status of this IP |
**statusN** | **[]string** | The operational status of this IP |
**tag** | **[]string** | |
@@ -4600,7 +4656,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4672,7 +4728,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4742,7 +4798,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4814,7 +4870,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4886,7 +4942,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4956,7 +5012,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5020,7 +5076,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5086,7 +5142,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5152,7 +5208,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5218,7 +5274,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5271,7 +5327,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).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).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()
@@ -5287,7 +5343,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5338,6 +5394,13 @@ func main() {
roleN := []string{"Inner_example"} // []string | Role (slug) (optional)
roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional)
roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (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)
startAddress := []string{"Inner_example"} // []string | (optional)
status := []string{"Inner_example"} // []string | Operational status of this range (optional)
statusN := []string{"Inner_example"} // []string | Operational status of this range (optional)
@@ -5359,7 +5422,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).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).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -5427,6 +5490,13 @@ Name | Type | Description | Notes
**roleN** | **[]string** | Role (slug) |
**roleId** | **[]int32** | Role (ID) |
**roleIdN** | **[]int32** | Role (ID) |
+ **size** | **[]int32** | |
+ **sizeEmpty** | **bool** | |
+ **sizeGt** | **[]int32** | |
+ **sizeGte** | **[]int32** | |
+ **sizeLt** | **[]int32** | |
+ **sizeLte** | **[]int32** | |
+ **sizeN** | **[]int32** | |
**startAddress** | **[]string** | |
**status** | **[]string** | Operational status of this range |
**statusN** | **[]string** | Operational status of this range |
@@ -5481,7 +5551,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5553,7 +5623,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5623,7 +5693,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5695,7 +5765,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5767,7 +5837,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5837,7 +5907,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5909,7 +5979,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5979,7 +6049,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6043,7 +6113,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6109,7 +6179,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6175,7 +6245,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6241,7 +6311,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6310,7 +6380,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6586,7 +6656,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6658,7 +6728,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6728,7 +6798,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6800,7 +6870,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6864,7 +6934,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6930,7 +7000,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6996,7 +7066,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7062,7 +7132,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7131,7 +7201,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7323,7 +7393,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7395,7 +7465,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7465,7 +7535,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7537,7 +7607,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7601,7 +7671,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7667,7 +7737,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7733,7 +7803,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7799,7 +7869,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7852,7 +7922,7 @@ Name | Type | Description | Notes
## IpamRolesList
-> PaginatedRoleList IpamRolesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedRoleList IpamRolesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute()
@@ -7868,7 +7938,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7935,10 +8005,17 @@ func main() {
tag := []string{"Inner_example"} // []string | (optional)
tagN := []string{"Inner_example"} // []string | (optional)
updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (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.IpamAPI.IpamRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).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 `IpamAPI.IpamRolesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8022,6 +8099,13 @@ Name | Type | Description | Notes
**tag** | **[]string** | |
**tagN** | **[]string** | |
**updatedByRequest** | **string** | |
+ **weight** | **[]int32** | |
+ **weightEmpty** | **bool** | |
+ **weightGt** | **[]int32** | |
+ **weightGte** | **[]int32** | |
+ **weightLt** | **[]int32** | |
+ **weightLte** | **[]int32** | |
+ **weightN** | **[]int32** | |
### Return type
@@ -8058,7 +8142,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8130,7 +8214,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8200,7 +8284,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8272,7 +8356,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8336,7 +8420,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8402,7 +8486,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8453,7 +8537,7 @@ Name | Type | Description | Notes
## IpamRouteTargetsCreate
-> RouteTarget IpamRouteTargetsCreate(ctx).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+> RouteTarget IpamRouteTargetsCreate(ctx).RouteTargetRequest(routeTargetRequest).Execute()
@@ -8468,15 +8552,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
+ routeTargetRequest := *openapiclient.NewRouteTargetRequest("Name_example") // RouteTargetRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8497,7 +8581,7 @@ Other parameters are passed through a pointer to a apiIpamRouteTargetsCreateRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
+ **routeTargetRequest** | [**RouteTargetRequest**](RouteTargetRequest.md) | |
### Return type
@@ -8534,7 +8618,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8587,7 +8671,7 @@ Name | Type | Description | Notes
## IpamRouteTargetsList
-> PaginatedRouteTargetList IpamRouteTargetsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedRouteTargetList IpamRouteTargetsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingL2vpn(exportingL2vpn).ExportingL2vpnN(exportingL2vpnN).ExportingL2vpnId(exportingL2vpnId).ExportingL2vpnIdN(exportingL2vpnIdN).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingL2vpn(importingL2vpn).ImportingL2vpnN(importingL2vpnN).ImportingL2vpnId(importingL2vpnId).ImportingL2vpnIdN(importingL2vpnIdN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
@@ -8603,7 +8687,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8626,6 +8710,10 @@ func main() {
descriptionNie := []string{"Inner_example"} // []string | (optional)
descriptionNiew := []string{"Inner_example"} // []string | (optional)
descriptionNisw := []string{"Inner_example"} // []string | (optional)
+ exportingL2vpn := []*int64{int64(123)} // []*int64 | Exporting L2VPN (identifier) (optional)
+ exportingL2vpnN := []*int64{int64(123)} // []*int64 | Exporting L2VPN (identifier) (optional)
+ exportingL2vpnId := []int32{int32(123)} // []int32 | Exporting L2VPN (optional)
+ exportingL2vpnIdN := []int32{int32(123)} // []int32 | Exporting L2VPN (optional)
exportingVrf := []*string{"Inner_example"} // []*string | Export VRF (RD) (optional)
exportingVrfN := []*string{"Inner_example"} // []*string | Export VRF (RD) (optional)
exportingVrfId := []int32{int32(123)} // []int32 | Exporting VRF (optional)
@@ -8637,6 +8725,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ importingL2vpn := []*int64{int64(123)} // []*int64 | Importing L2VPN (identifier) (optional)
+ importingL2vpnN := []*int64{int64(123)} // []*int64 | Importing L2VPN (identifier) (optional)
+ importingL2vpnId := []int32{int32(123)} // []int32 | Importing L2VPN (optional)
+ importingL2vpnIdN := []int32{int32(123)} // []int32 | Importing L2VPN (optional)
importingVrf := []*string{"Inner_example"} // []*string | Import VRF (RD) (optional)
importingVrfN := []*string{"Inner_example"} // []*string | Import VRF (RD) (optional)
importingVrfId := []int32{int32(123)} // []int32 | Importing VRF (optional)
@@ -8678,7 +8770,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingL2vpn(exportingL2vpn).ExportingL2vpnN(exportingL2vpnN).ExportingL2vpnId(exportingL2vpnId).ExportingL2vpnIdN(exportingL2vpnIdN).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingL2vpn(importingL2vpn).ImportingL2vpnN(importingL2vpnN).ImportingL2vpnId(importingL2vpnId).ImportingL2vpnIdN(importingL2vpnIdN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8718,6 +8810,10 @@ Name | Type | Description | Notes
**descriptionNie** | **[]string** | |
**descriptionNiew** | **[]string** | |
**descriptionNisw** | **[]string** | |
+ **exportingL2vpn** | **[]int64** | Exporting L2VPN (identifier) |
+ **exportingL2vpnN** | **[]int64** | Exporting L2VPN (identifier) |
+ **exportingL2vpnId** | **[]int32** | Exporting L2VPN |
+ **exportingL2vpnIdN** | **[]int32** | Exporting L2VPN |
**exportingVrf** | **[]string** | Export VRF (RD) |
**exportingVrfN** | **[]string** | Export VRF (RD) |
**exportingVrfId** | **[]int32** | Exporting VRF |
@@ -8729,6 +8825,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **importingL2vpn** | **[]int64** | Importing L2VPN (identifier) |
+ **importingL2vpnN** | **[]int64** | Importing L2VPN (identifier) |
+ **importingL2vpnId** | **[]int32** | Importing L2VPN |
+ **importingL2vpnIdN** | **[]int32** | Importing L2VPN |
**importingVrf** | **[]string** | Import VRF (RD) |
**importingVrfN** | **[]string** | Import VRF (RD) |
**importingVrfId** | **[]int32** | Importing VRF |
@@ -8788,7 +8888,7 @@ Name | Type | Description | Notes
## IpamRouteTargetsPartialUpdate
-> RouteTarget IpamRouteTargetsPartialUpdate(ctx, id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute()
+> RouteTarget IpamRouteTargetsPartialUpdate(ctx, id).PatchedRouteTargetRequest(patchedRouteTargetRequest).Execute()
@@ -8803,16 +8903,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this route target.
- patchedWritableRouteTargetRequest := *openapiclient.NewPatchedWritableRouteTargetRequest() // PatchedWritableRouteTargetRequest | (optional)
+ patchedRouteTargetRequest := *openapiclient.NewPatchedRouteTargetRequest() // PatchedRouteTargetRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedRouteTargetRequest(patchedRouteTargetRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8838,7 +8938,7 @@ Other parameters are passed through a pointer to a apiIpamRouteTargetsPartialUpd
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableRouteTargetRequest** | [**PatchedWritableRouteTargetRequest**](PatchedWritableRouteTargetRequest.md) | |
+ **patchedRouteTargetRequest** | [**PatchedRouteTargetRequest**](PatchedRouteTargetRequest.md) | |
### Return type
@@ -8875,7 +8975,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -8930,7 +9030,7 @@ Name | Type | Description | Notes
## IpamRouteTargetsUpdate
-> RouteTarget IpamRouteTargetsUpdate(ctx, id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+> RouteTarget IpamRouteTargetsUpdate(ctx, id).RouteTargetRequest(routeTargetRequest).Execute()
@@ -8945,16 +9045,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this route target.
- writableRouteTargetRequest := *openapiclient.NewWritableRouteTargetRequest("Name_example") // WritableRouteTargetRequest |
+ routeTargetRequest := *openapiclient.NewRouteTargetRequest("Name_example") // RouteTargetRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).RouteTargetRequest(routeTargetRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -8980,7 +9080,7 @@ Other parameters are passed through a pointer to a apiIpamRouteTargetsUpdateRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableRouteTargetRequest** | [**WritableRouteTargetRequest**](WritableRouteTargetRequest.md) | |
+ **routeTargetRequest** | [**RouteTargetRequest**](RouteTargetRequest.md) | |
### Return type
@@ -9017,7 +9117,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9081,7 +9181,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9147,7 +9247,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9213,11 +9313,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceTemplateRequest |
+ writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", openapiclient.PatchedWritableServiceRequest_protocol("tcp"), []int32{int32(123)}) // WritableServiceTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9279,7 +9379,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9348,7 +9448,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9401,8 +9501,8 @@ 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)
port := float32(8.14) // float32 | (optional)
- protocol := "protocol_example" // string | (optional)
- protocolN := "protocolN_example" // string | (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)
@@ -9480,8 +9580,8 @@ 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. |
**port** | **float32** | |
- **protocol** | **string** | |
- **protocolN** | **string** | |
+ **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** | |
@@ -9522,7 +9622,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9594,7 +9694,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9664,12 +9764,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this service template.
- writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceTemplateRequest |
+ writableServiceTemplateRequest := *openapiclient.NewWritableServiceTemplateRequest("Name_example", openapiclient.PatchedWritableServiceRequest_protocol("tcp"), []int32{int32(123)}) // WritableServiceTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9736,7 +9836,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9800,7 +9900,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9866,7 +9966,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -9932,11 +10032,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceRequest |
+ writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", openapiclient.PatchedWritableServiceRequest_protocol("tcp"), []int32{int32(123)}) // WritableServiceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -9998,7 +10098,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10051,7 +10151,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).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).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()
@@ -10067,7 +10167,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10101,6 +10201,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (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)
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)
@@ -10128,8 +10232,8 @@ 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)
port := float32(8.14) // float32 | (optional)
- protocol := "protocol_example" // string | (optional)
- protocolN := "protocolN_example" // string | (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)
@@ -10141,7 +10245,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).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).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -10192,6 +10296,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **ipAddress** | **[]string** | IP address |
+ **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) |
@@ -10219,8 +10327,8 @@ 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. |
**port** | **float32** | |
- **protocol** | **string** | |
- **protocolN** | **string** | |
+ **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** | |
@@ -10265,7 +10373,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10337,7 +10445,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10407,12 +10515,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this service.
- writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", []int32{int32(123)}, openapiclient.PatchedWritableServiceRequest_protocol("tcp")) // WritableServiceRequest |
+ writableServiceRequest := *openapiclient.NewWritableServiceRequest("Name_example", openapiclient.PatchedWritableServiceRequest_protocol("tcp"), []int32{int32(123)}) // WritableServiceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -10479,7 +10587,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10551,7 +10659,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10621,7 +10729,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10685,7 +10793,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10751,7 +10859,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10817,7 +10925,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10883,7 +10991,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -10936,7 +11044,7 @@ Name | Type | Description | Notes
## IpamVlanGroupsList
-> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -10952,12 +11060,13 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
cluster := int32(56) // int32 | (optional)
- clustergroup := float32(8.14) // float32 | (optional)
+ clusterGroup := int32(56) // int32 | (optional)
+ clustergroup := 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)
@@ -11034,7 +11143,8 @@ func main() {
scopeType := "scopeType_example" // string | (optional)
scopeTypeN := "scopeTypeN_example" // string | (optional)
site := int32(56) // int32 | (optional)
- sitegroup := float32(8.14) // float32 | (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)
@@ -11052,7 +11162,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -11074,7 +11184,8 @@ Other parameters are passed through a pointer to a apiIpamVlanGroupsListRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cluster** | **int32** | |
- **clustergroup** | **float32** | |
+ **clusterGroup** | **int32** | |
+ **clustergroup** | **int32** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -11151,7 +11262,8 @@ Name | Type | Description | Notes
**scopeType** | **string** | |
**scopeTypeN** | **string** | |
**site** | **int32** | |
- **sitegroup** | **float32** | |
+ **siteGroup** | **int32** | |
+ **sitegroup** | **int32** | |
**slug** | **[]string** | |
**slugEmpty** | **bool** | |
**slugIc** | **[]string** | |
@@ -11202,7 +11314,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11274,7 +11386,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11344,7 +11456,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11416,7 +11528,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11480,7 +11592,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11546,7 +11658,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11612,7 +11724,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11678,7 +11790,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -11747,7 +11859,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12003,7 +12115,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12075,7 +12187,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12145,7 +12257,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12217,7 +12329,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12281,7 +12393,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12347,7 +12459,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12398,7 +12510,7 @@ Name | Type | Description | Notes
## IpamVrfsCreate
-> VRF IpamVrfsCreate(ctx).WritableVRFRequest(writableVRFRequest).Execute()
+> VRF IpamVrfsCreate(ctx).VRFRequest(vRFRequest).Execute()
@@ -12413,15 +12525,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
+ vRFRequest := *openapiclient.NewVRFRequest("Name_example") // VRFRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).WritableVRFRequest(writableVRFRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).VRFRequest(vRFRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -12442,7 +12554,7 @@ Other parameters are passed through a pointer to a apiIpamVrfsCreateRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
+ **vRFRequest** | [**VRFRequest**](VRFRequest.md) | |
### Return type
@@ -12479,7 +12591,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12548,7 +12660,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12757,7 +12869,7 @@ Name | Type | Description | Notes
## IpamVrfsPartialUpdate
-> VRF IpamVrfsPartialUpdate(ctx, id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute()
+> VRF IpamVrfsPartialUpdate(ctx, id).PatchedVRFRequest(patchedVRFRequest).Execute()
@@ -12772,16 +12884,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this VRF.
- patchedWritableVRFRequest := *openapiclient.NewPatchedWritableVRFRequest() // PatchedWritableVRFRequest | (optional)
+ patchedVRFRequest := *openapiclient.NewPatchedVRFRequest() // PatchedVRFRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).PatchedVRFRequest(patchedVRFRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -12807,7 +12919,7 @@ Other parameters are passed through a pointer to a apiIpamVrfsPartialUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableVRFRequest** | [**PatchedWritableVRFRequest**](PatchedWritableVRFRequest.md) | |
+ **patchedVRFRequest** | [**PatchedVRFRequest**](PatchedVRFRequest.md) | |
### Return type
@@ -12844,7 +12956,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -12899,7 +13011,7 @@ Name | Type | Description | Notes
## IpamVrfsUpdate
-> VRF IpamVrfsUpdate(ctx, id).WritableVRFRequest(writableVRFRequest).Execute()
+> VRF IpamVrfsUpdate(ctx, id).VRFRequest(vRFRequest).Execute()
@@ -12914,16 +13026,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this VRF.
- writableVRFRequest := *openapiclient.NewWritableVRFRequest("Name_example") // WritableVRFRequest |
+ vRFRequest := *openapiclient.NewVRFRequest("Name_example") // VRFRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).WritableVRFRequest(writableVRFRequest).Execute()
+ resp, r, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).VRFRequest(vRFRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -12949,7 +13061,7 @@ Other parameters are passed through a pointer to a apiIpamVrfsUpdateRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableVRFRequest** | [**WritableVRFRequest**](WritableVRFRequest.md) | |
+ **vRFRequest** | [**VRFRequest**](VRFRequest.md) | |
### Return type
diff --git a/docs/IpamServiceTemplatesListProtocolParameter.md b/docs/IpamServiceTemplatesListProtocolParameter.md
new file mode 100644
index 0000000000..fc37aae1a3
--- /dev/null
+++ b/docs/IpamServiceTemplatesListProtocolParameter.md
@@ -0,0 +1,15 @@
+# IpamServiceTemplatesListProtocolParameter
+
+## Enum
+
+
+* `SCTP` (value: `"sctp"`)
+
+* `TCP` (value: `"tcp"`)
+
+* `UDP` (value: `"udp"`)
+
+
+[[Back to Model list]](../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 ae0ae5dbbb..1366c59151 100644
--- a/docs/Job.md
+++ b/docs/Job.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
**Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional]
**Started** | Pointer to **NullableTime** | | [optional]
**Completed** | Pointer to **NullableTime** | | [optional]
-**User** | [**NestedUser**](NestedUser.md) | | [readonly]
+**User** | [**User**](User.md) | | [readonly]
**Data** | Pointer to **interface{}** | | [optional]
**Error** | **string** | | [readonly]
**JobId** | **string** | |
@@ -25,7 +25,7 @@ Name | Type | Description | Notes
### NewJob
-`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user NestedUser, error_ string, jobId string, ) *Job`
+`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,
@@ -357,20 +357,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() NestedUser`
+`func (o *Job) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *Job) GetUserOk() (*NestedUser, bool)`
+`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 NestedUser)`
+`func (o *Job) SetUser(v User)`
SetUser sets User field to given value.
diff --git a/docs/JobRequest.md b/docs/JobRequest.md
new file mode 100644
index 0000000000..1291a68a5f
--- /dev/null
+++ b/docs/JobRequest.md
@@ -0,0 +1,66 @@
+# JobRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Completed** | Pointer to **NullableTime** | | [optional]
+
+## Methods
+
+### NewJobRequest
+
+`func NewJobRequest() *JobRequest`
+
+NewJobRequest instantiates a new JobRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewJobRequestWithDefaults
+
+`func NewJobRequestWithDefaults() *JobRequest`
+
+NewJobRequestWithDefaults instantiates a new JobRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetCompleted
+
+`func (o *JobRequest) GetCompleted() time.Time`
+
+GetCompleted returns the Completed field if non-nil, zero value otherwise.
+
+### GetCompletedOk
+
+`func (o *JobRequest) 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 *JobRequest) SetCompleted(v time.Time)`
+
+SetCompleted sets Completed field to given value.
+
+### HasCompleted
+
+`func (o *JobRequest) HasCompleted() bool`
+
+HasCompleted returns a boolean if a field has been set.
+
+### SetCompletedNil
+
+`func (o *JobRequest) SetCompletedNil(b bool)`
+
+ SetCompletedNil sets the value for Completed to be an explicit nil
+
+### UnsetCompleted
+`func (o *JobRequest) UnsetCompleted()`
+
+UnsetCompleted ensures that no value is present for Completed, 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/L2VPN.md b/docs/L2VPN.md
index 01668a5abe..85cc2783ea 100644
--- a/docs/L2VPN.md
+++ b/docs/L2VPN.md
@@ -11,21 +11,13 @@ Name | Type | Description | Notes
**Name** | **string** | |
**Slug** | **string** | |
**Type** | Pointer to [**L2VPNType**](L2VPNType.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 [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewL2VPN
-`func NewL2VPN(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *L2VPN`
+`func NewL2VPN(id int32, url string, display string, name string, slug string, ) *L2VPN`
NewL2VPN instantiates a new L2VPN object
This constructor will assign default values to properties that have it defined,
@@ -200,56 +192,6 @@ SetType sets Type field to given value.
HasType returns a boolean if a field has been set.
-### GetImportTargets
-
-`func (o *L2VPN) GetImportTargets() []int32`
-
-GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise.
-
-### GetImportTargetsOk
-
-`func (o *L2VPN) 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 *L2VPN) SetImportTargets(v []int32)`
-
-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() []int32`
-
-GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise.
-
-### GetExportTargetsOk
-
-`func (o *L2VPN) 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 *L2VPN) SetExportTargets(v []int32)`
-
-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`
@@ -275,176 +217,6 @@ 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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *L2VPN) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *L2VPN) SetTenant(v NestedTenant)`
-
-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.
-
-
-### 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.
-
-
-### 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 f3c92e7b43..7c5fb24c8c 100644
--- a/docs/L2VPNRequest.md
+++ b/docs/L2VPNRequest.md
@@ -8,13 +8,7 @@ Name | Type | Description | Notes
**Name** | **string** | |
**Slug** | **string** | |
**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.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 [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -135,56 +129,6 @@ 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`
@@ -210,116 +154,6 @@ 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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *L2VPNRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *L2VPNRequest) SetTenant(v NestedTenantRequest)`
-
-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 e7f63f92bb..4c558a8e62 100644
--- a/docs/L2VPNTermination.md
+++ b/docs/L2VPNTermination.md
@@ -7,20 +7,13 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**L2vpn** | [**NestedL2VPN**](NestedL2VPN.md) | |
-**AssignedObjectType** | **string** | |
-**AssignedObjectId** | **int64** | |
-**AssignedObject** | **interface{}** | | [readonly]
-**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
+**L2vpn** | [**L2VPN**](L2VPN.md) | |
## Methods
### NewL2VPNTermination
-`func NewL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination`
+`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination`
NewL2VPNTermination instantiates a new L2VPNTermination object
This constructor will assign default values to properties that have it defined,
@@ -97,204 +90,24 @@ SetDisplay sets Display field to given value.
### GetL2vpn
-`func (o *L2VPNTermination) GetL2vpn() NestedL2VPN`
+`func (o *L2VPNTermination) GetL2vpn() L2VPN`
GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
### GetL2vpnOk
-`func (o *L2VPNTermination) GetL2vpnOk() (*NestedL2VPN, bool)`
+`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, 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 NestedL2VPN)`
+`func (o *L2VPNTermination) SetL2vpn(v L2VPN)`
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.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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 8d964a9172..06ee7633d1 100644
--- a/docs/L2VPNTerminationRequest.md
+++ b/docs/L2VPNTerminationRequest.md
@@ -4,17 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**L2vpn** | [**NestedL2VPNRequest**](NestedL2VPNRequest.md) | |
-**AssignedObjectType** | **string** | |
-**AssignedObjectId** | **int64** | |
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
+**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | |
## Methods
### NewL2VPNTerminationRequest
-`func NewL2VPNTerminationRequest(l2vpn NestedL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest`
+`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest`
NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,114 +27,24 @@ but it doesn't guarantee that properties required by API are set
### GetL2vpn
-`func (o *L2VPNTerminationRequest) GetL2vpn() NestedL2VPNRequest`
+`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest`
GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
### GetL2vpnOk
-`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*NestedL2VPNRequest, bool)`
+`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, 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 NestedL2VPNRequest)`
+`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)`
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 7cb76d90a9..4130ec5473 100644
--- a/docs/Location.md
+++ b/docs/Location.md
@@ -9,24 +9,15 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
-**Site** | [**NestedSite**](NestedSite.md) | |
-**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional]
-**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.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]
-**RackCount** | **int32** | | [readonly]
-**DeviceCount** | **int32** | | [readonly]
+**RackCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
### NewLocation
-`func NewLocation(id int32, url string, display string, name string, slug string, site NestedSite, created NullableTime, lastUpdated NullableTime, rackCount int32, deviceCount int32, depth int32, ) *Location`
+`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location`
NewLocation instantiates a new Location object
This constructor will assign default values to properties that have it defined,
@@ -141,121 +132,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetSite
-
-`func (o *Location) GetSite() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *Location) GetSiteOk() (*NestedSite, 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 NestedSite)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Location) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Location) SetTenant(v NestedTenant)`
-
-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
### GetDescription
`func (o *Location) GetDescription() string`
@@ -281,116 +157,6 @@ 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.
-
-
-### 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.
-
-
-### 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`
@@ -411,26 +177,6 @@ and a boolean to check if the value has been set.
SetRackCount sets RackCount field to given value.
-### 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.
-
-
### GetDepth
`func (o *Location) GetDepth() int32`
diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md
index c47dcd5fdd..f23f111fd2 100644
--- a/docs/LocationRequest.md
+++ b/docs/LocationRequest.md
@@ -6,19 +6,13 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Site** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
-**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
-**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [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, site NestedSiteRequest, ) *LocationRequest`
+`func NewLocationRequest(name string, slug string, ) *LocationRequest`
NewLocationRequest instantiates a new LocationRequest object
This constructor will assign default values to properties that have it defined,
@@ -73,121 +67,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetSite
-
-`func (o *LocationRequest) GetSite() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *LocationRequest) GetSiteOk() (*NestedSiteRequest, 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 NestedSiteRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *LocationRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *LocationRequest) SetTenant(v NestedTenantRequest)`
-
-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
### GetDescription
`func (o *LocationRequest) GetDescription() string`
@@ -213,56 +92,6 @@ 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
deleted file mode 100644
index 817680af33..0000000000
--- a/docs/LocationStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 611c91d2be..0000000000
--- a/docs/LocationStatusLabel.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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/Manufacturer.md b/docs/Manufacturer.md
index 5ab054030b..c4c2211adc 100644
--- a/docs/Manufacturer.md
+++ b/docs/Manufacturer.md
@@ -10,19 +10,13 @@ Name | Type | Description | Notes
**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]
-**DevicetypeCount** | **int32** | | [readonly]
-**InventoryitemCount** | **int32** | | [readonly]
-**PlatformCount** | **int32** | | [readonly]
+**DevicetypeCount** | **int64** | | [readonly]
## Methods
### NewManufacturer
-`func NewManufacturer(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, devicetypeCount int32, inventoryitemCount int32, platformCount int32, ) *Manufacturer`
+`func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64, ) *Manufacturer`
NewManufacturer instantiates a new Manufacturer object
This constructor will assign default values to properties that have it defined,
@@ -162,176 +156,26 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *Manufacturer) GetDevicetypeCount() int64`
GetDevicetypeCount returns the DevicetypeCount field if non-nil, zero value otherwise.
### GetDevicetypeCountOk
-`func (o *Manufacturer) GetDevicetypeCountOk() (*int32, bool)`
+`func (o *Manufacturer) GetDevicetypeCountOk() (*int64, bool)`
GetDevicetypeCountOk returns a tuple with the DevicetypeCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDevicetypeCount
-`func (o *Manufacturer) SetDevicetypeCount(v int32)`
+`func (o *Manufacturer) SetDevicetypeCount(v int64)`
SetDevicetypeCount sets DevicetypeCount field to given value.
-### GetInventoryitemCount
-
-`func (o *Manufacturer) GetInventoryitemCount() int32`
-
-GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise.
-
-### GetInventoryitemCountOk
-
-`func (o *Manufacturer) 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 *Manufacturer) SetInventoryitemCount(v int32)`
-
-SetInventoryitemCount sets InventoryitemCount field to given value.
-
-
-### GetPlatformCount
-
-`func (o *Manufacturer) GetPlatformCount() int32`
-
-GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise.
-
-### GetPlatformCountOk
-
-`func (o *Manufacturer) GetPlatformCountOk() (*int32, 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 int32)`
-
-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.md b/docs/ManufacturerRequest.md
index 6f878526ba..669fe23896 100644
--- a/docs/ManufacturerRequest.md
+++ b/docs/ManufacturerRequest.md
@@ -7,8 +7,6 @@ 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
@@ -94,56 +92,6 @@ 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 9cfaca2751..a9257180a8 100644
--- a/docs/Module.md
+++ b/docs/Module.md
@@ -7,24 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
+**Device** | [**Device**](Device.md) | |
**ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | |
-**ModuleType** | [**NestedModuleType**](NestedModuleType.md) | |
-**Status** | Pointer to [**ModuleStatus**](ModuleStatus.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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewModule
-`func NewModule(id int32, url string, display string, device NestedDevice, moduleBay NestedModuleBay, moduleType NestedModuleType, created NullableTime, lastUpdated NullableTime, ) *Module`
+`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module`
NewModule instantiates a new Module object
This constructor will assign default values to properties that have it defined,
@@ -101,20 +91,20 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *Module) GetDevice() NestedDevice`
+`func (o *Module) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *Module) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *Module) 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 *Module) SetDevice(v NestedDevice)`
+`func (o *Module) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -139,271 +129,6 @@ and a boolean to check if the value has been set.
SetModuleBay sets ModuleBay field to given value.
-### GetModuleType
-
-`func (o *Module) GetModuleType() NestedModuleType`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *Module) GetModuleTypeOk() (*NestedModuleType, 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 NestedModuleType)`
-
-SetModuleType sets ModuleType field to given value.
-
-
-### GetStatus
-
-`func (o *Module) GetStatus() ModuleStatus`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *Module) GetStatusOk() (*ModuleStatus, 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 ModuleStatus)`
-
-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.
-
-
-### 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.
-
-
-### 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 4cf3b183f4..71f7349397 100644
--- a/docs/ModuleBay.md
+++ b/docs/ModuleBay.md
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
+**Device** | [**Device**](Device.md) | |
**Name** | **string** | |
-**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional]
+**InstalledModule** | Pointer to [**NullableModule**](Module.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]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewModuleBay
-`func NewModuleBay(id int32, url string, display string, device NestedDevice, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay`
+`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay`
NewModuleBay instantiates a new ModuleBay object
This constructor will assign default values to properties that have it defined,
@@ -99,20 +99,20 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *ModuleBay) GetDevice() NestedDevice`
+`func (o *ModuleBay) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ModuleBay) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *ModuleBay) 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 *ModuleBay) SetDevice(v NestedDevice)`
+`func (o *ModuleBay) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -139,20 +139,20 @@ SetName sets Name field to given value.
### GetInstalledModule
-`func (o *ModuleBay) GetInstalledModule() ModuleBayNestedModule`
+`func (o *ModuleBay) GetInstalledModule() Module`
GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise.
### GetInstalledModuleOk
-`func (o *ModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)`
+`func (o *ModuleBay) GetInstalledModuleOk() (*Module, 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 ModuleBayNestedModule)`
+`func (o *ModuleBay) SetInstalledModule(v Module)`
SetInstalledModule sets InstalledModule field to given value.
diff --git a/docs/ModuleBayRequest.md b/docs/ModuleBayRequest.md
index 1888d0ac16..aa37cbe9d9 100644
--- a/docs/ModuleBayRequest.md
+++ b/docs/ModuleBayRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**Name** | **string** | |
-**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional]
+**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.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 +17,7 @@ Name | Type | Description | Notes
### NewModuleBayRequest
-`func NewModuleBayRequest(device NestedDeviceRequest, name string, ) *ModuleBayRequest`
+`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest`
NewModuleBayRequest instantiates a new ModuleBayRequest 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
### GetDevice
-`func (o *ModuleBayRequest) GetDevice() NestedDeviceRequest`
+`func (o *ModuleBayRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ModuleBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *ModuleBayRequest) 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 *ModuleBayRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -74,20 +74,20 @@ SetName sets Name field to given value.
### GetInstalledModule
-`func (o *ModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest`
+`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest`
GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise.
### GetInstalledModuleOk
-`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)`
+`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, 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 ModuleBayNestedModuleRequest)`
+`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)`
SetInstalledModule sets InstalledModule field to given value.
diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md
index 6787a84688..237edfcafb 100644
--- a/docs/ModuleBayTemplate.md
+++ b/docs/ModuleBayTemplate.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | |
+**DeviceType** | [**DeviceType**](DeviceType.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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewModuleBayTemplate
-`func NewModuleBayTemplate(id int32, url string, display string, deviceType NestedDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate`
+`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate`
NewModuleBayTemplate instantiates a new ModuleBayTemplate object
This constructor will assign default values to properties that have it defined,
@@ -96,20 +96,20 @@ SetDisplay sets Display field to given value.
### GetDeviceType
-`func (o *ModuleBayTemplate) GetDeviceType() NestedDeviceType`
+`func (o *ModuleBayTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`func (o *ModuleBayTemplate) 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 *ModuleBayTemplate) SetDeviceType(v NestedDeviceType)`
+`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)`
SetDeviceType sets DeviceType field to given value.
diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md
index 5292b86114..75345ace9c 100644
--- a/docs/ModuleBayTemplateRequest.md
+++ b/docs/ModuleBayTemplateRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | |
+**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]
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
### NewModuleBayTemplateRequest
-`func NewModuleBayTemplateRequest(deviceType NestedDeviceTypeRequest, name string, ) *ModuleBayTemplateRequest`
+`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,
@@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *ModuleBayTemplateRequest) GetDeviceType() NestedDeviceTypeRequest`
+`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`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 NestedDeviceTypeRequest)`
+`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
diff --git a/docs/ModuleNestedModuleBay.md b/docs/ModuleNestedModuleBay.md
deleted file mode 100644
index 20dff5699f..0000000000
--- a/docs/ModuleNestedModuleBay.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# ModuleNestedModuleBay
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewModuleNestedModuleBay
-
-`func NewModuleNestedModuleBay(id int32, url string, display string, name string, ) *ModuleNestedModuleBay`
-
-NewModuleNestedModuleBay instantiates a new ModuleNestedModuleBay object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewModuleNestedModuleBayWithDefaults
-
-`func NewModuleNestedModuleBayWithDefaults() *ModuleNestedModuleBay`
-
-NewModuleNestedModuleBayWithDefaults instantiates a new ModuleNestedModuleBay object
-This 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 *ModuleNestedModuleBay) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *ModuleNestedModuleBay) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *ModuleNestedModuleBay) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *ModuleNestedModuleBay) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) 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/ModuleNestedModuleBayRequest.md b/docs/ModuleNestedModuleBayRequest.md
deleted file mode 100644
index 349770d5aa..0000000000
--- a/docs/ModuleNestedModuleBayRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# ModuleNestedModuleBayRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewModuleNestedModuleBayRequest
-
-`func NewModuleNestedModuleBayRequest(name string, ) *ModuleNestedModuleBayRequest`
-
-NewModuleNestedModuleBayRequest instantiates a new ModuleNestedModuleBayRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewModuleNestedModuleBayRequestWithDefaults
-
-`func NewModuleNestedModuleBayRequestWithDefaults() *ModuleNestedModuleBayRequest`
-
-NewModuleNestedModuleBayRequestWithDefaults instantiates a new ModuleNestedModuleBayRequest object
-This 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 *ModuleNestedModuleBayRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *ModuleNestedModuleBayRequest) 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 *ModuleNestedModuleBayRequest) 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/ModuleRequest.md b/docs/ModuleRequest.md
index 095a674823..648ff41f3d 100644
--- a/docs/ModuleRequest.md
+++ b/docs/ModuleRequest.md
@@ -4,22 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | |
-**ModuleType** | [**NestedModuleTypeRequest**](NestedModuleTypeRequest.md) | |
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.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 NestedDeviceRequest, moduleBay NestedModuleBayRequest, moduleType NestedModuleTypeRequest, ) *ModuleRequest`
+`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest`
NewModuleRequest instantiates a new ModuleRequest object
This constructor will assign default values to properties that have it defined,
@@ -36,20 +28,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *ModuleRequest) GetDevice() NestedDeviceRequest`
+`func (o *ModuleRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ModuleRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *ModuleRequest) 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 *ModuleRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *ModuleRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -74,211 +66,6 @@ and a boolean to check if the value has been set.
SetModuleBay sets ModuleBay field to given value.
-### GetModuleType
-
-`func (o *ModuleRequest) GetModuleType() NestedModuleTypeRequest`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *ModuleRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, 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 NestedModuleTypeRequest)`
-
-SetModuleType sets ModuleType field to given value.
-
-
-### GetStatus
-
-`func (o *ModuleRequest) GetStatus() ModuleStatusValue`
-
-GetStatus returns the Status field if non-nil, zero value otherwise.
-
-### GetStatusOk
-
-`func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, 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 ModuleStatusValue)`
-
-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/ModuleStatus.md b/docs/ModuleStatus.md
deleted file mode 100644
index 5ad5a6dedc..0000000000
--- a/docs/ModuleStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# ModuleStatus
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
-**Label** | Pointer to [**ModuleStatusLabel**](ModuleStatusLabel.md) | | [optional]
-
-## Methods
-
-### NewModuleStatus
-
-`func NewModuleStatus() *ModuleStatus`
-
-NewModuleStatus instantiates a new ModuleStatus object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewModuleStatusWithDefaults
-
-`func NewModuleStatusWithDefaults() *ModuleStatus`
-
-NewModuleStatusWithDefaults instantiates a new ModuleStatus object
-This 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 *ModuleStatus) GetValue() ModuleStatusValue`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, 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 *ModuleStatus) SetValue(v ModuleStatusValue)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *ModuleStatus) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *ModuleStatus) GetLabel() ModuleStatusLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, 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 *ModuleStatus) SetLabel(v ModuleStatusLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *ModuleStatus) 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/ModuleType.md b/docs/ModuleType.md
index 9fb8598970..2c09e327c6 100644
--- a/docs/ModuleType.md
+++ b/docs/ModuleType.md
@@ -7,23 +7,15 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Manufacturer** | [**NestedManufacturer**](NestedManufacturer.md) | |
+**Manufacturer** | [**Manufacturer**](Manufacturer.md) | |
**Model** | **string** | |
-**PartNumber** | Pointer to **string** | Discrete part number (optional) | [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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewModuleType
-`func NewModuleType(id int32, url string, display string, manufacturer NestedManufacturer, model string, created NullableTime, lastUpdated NullableTime, ) *ModuleType`
+`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType`
NewModuleType instantiates a new ModuleType object
This constructor will assign default values to properties that have it defined,
@@ -100,20 +92,20 @@ SetDisplay sets Display field to given value.
### GetManufacturer
-`func (o *ModuleType) GetManufacturer() NestedManufacturer`
+`func (o *ModuleType) GetManufacturer() Manufacturer`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *ModuleType) GetManufacturerOk() (*NestedManufacturer, bool)`
+`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, 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 NestedManufacturer)`
+`func (o *ModuleType) SetManufacturer(v Manufacturer)`
SetManufacturer sets Manufacturer field to given value.
@@ -138,101 +130,6 @@ 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.
-
-### 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`
@@ -258,141 +155,6 @@ 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.
-
-
-### 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.
-
-
-### 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/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md
index ddac1bba9c..53185cdf3a 100644
--- a/docs/ModuleTypeRequest.md
+++ b/docs/ModuleTypeRequest.md
@@ -4,21 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | [**NestedManufacturerRequest**](NestedManufacturerRequest.md) | |
+**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | |
**Model** | **string** | |
-**PartNumber** | Pointer to **string** | Discrete part number (optional) | [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 NestedManufacturerRequest, model string, ) *ModuleTypeRequest`
+`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest`
NewModuleTypeRequest instantiates a new ModuleTypeRequest object
This constructor will assign default values to properties that have it defined,
@@ -35,20 +29,20 @@ but it doesn't guarantee that properties required by API are set
### GetManufacturer
-`func (o *ModuleTypeRequest) GetManufacturer() NestedManufacturerRequest`
+`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *ModuleTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool)`
+`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 NestedManufacturerRequest)`
+`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
@@ -73,101 +67,6 @@ 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.
-
-### 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`
@@ -193,81 +92,6 @@ 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/NestedASN.md b/docs/NestedASN.md
deleted file mode 100644
index a93d1ab99b..0000000000
--- a/docs/NestedASN.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedASN
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Asn** | **int64** | 16- or 32-bit autonomous system number |
-
-## Methods
-
-### NewNestedASN
-
-`func NewNestedASN(id int32, url string, display string, asn int64, ) *NestedASN`
-
-NewNestedASN instantiates a new NestedASN object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedASNWithDefaults
-
-`func NewNestedASNWithDefaults() *NestedASN`
-
-NewNestedASNWithDefaults instantiates a new NestedASN object
-This 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 *NestedASN) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedASN) 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 *NestedASN) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedASN) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedASN) 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 *NestedASN) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedASN) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedASN) 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 *NestedASN) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetAsn
-
-`func (o *NestedASN) GetAsn() int64`
-
-GetAsn returns the Asn field if non-nil, zero value otherwise.
-
-### GetAsnOk
-
-`func (o *NestedASN) GetAsnOk() (*int64, bool)`
-
-GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetAsn
-
-`func (o *NestedASN) SetAsn(v int64)`
-
-SetAsn sets Asn 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/NestedCable.md b/docs/NestedCable.md
deleted file mode 100644
index 698c764138..0000000000
--- a/docs/NestedCable.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# NestedCable
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Label** | Pointer to **string** | | [optional]
-
-## Methods
-
-### NewNestedCable
-
-`func NewNestedCable(id int32, url string, display string, ) *NestedCable`
-
-NewNestedCable instantiates a new NestedCable object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCableWithDefaults
-
-`func NewNestedCableWithDefaults() *NestedCable`
-
-NewNestedCableWithDefaults instantiates a new NestedCable object
-This 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 *NestedCable) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedCable) 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 *NestedCable) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedCable) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedCable) 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 *NestedCable) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedCable) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedCable) 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 *NestedCable) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetLabel
-
-`func (o *NestedCable) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *NestedCable) 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 *NestedCable) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *NestedCable) 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/NestedCableRequest.md b/docs/NestedCableRequest.md
deleted file mode 100644
index 46b09eadd1..0000000000
--- a/docs/NestedCableRequest.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# NestedCableRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Label** | Pointer to **string** | | [optional]
-
-## Methods
-
-### NewNestedCableRequest
-
-`func NewNestedCableRequest() *NestedCableRequest`
-
-NewNestedCableRequest instantiates a new NestedCableRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCableRequestWithDefaults
-
-`func NewNestedCableRequestWithDefaults() *NestedCableRequest`
-
-NewNestedCableRequestWithDefaults instantiates a new NestedCableRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetLabel
-
-`func (o *NestedCableRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *NestedCableRequest) 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 *NestedCableRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *NestedCableRequest) 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/NestedCircuit.md b/docs/NestedCircuit.md
deleted file mode 100644
index a2ebaed7f7..0000000000
--- a/docs/NestedCircuit.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedCircuit
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Cid** | **string** | Unique circuit ID |
-
-## Methods
-
-### NewNestedCircuit
-
-`func NewNestedCircuit(id int32, url string, display string, cid string, ) *NestedCircuit`
-
-NewNestedCircuit instantiates a new NestedCircuit object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCircuitWithDefaults
-
-`func NewNestedCircuitWithDefaults() *NestedCircuit`
-
-NewNestedCircuitWithDefaults instantiates a new NestedCircuit object
-This 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 *NestedCircuit) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedCircuit) 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 *NestedCircuit) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedCircuit) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedCircuit) 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 *NestedCircuit) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedCircuit) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedCircuit) 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 *NestedCircuit) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetCid
-
-`func (o *NestedCircuit) GetCid() string`
-
-GetCid returns the Cid field if non-nil, zero value otherwise.
-
-### GetCidOk
-
-`func (o *NestedCircuit) 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 *NestedCircuit) SetCid(v string)`
-
-SetCid sets Cid 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/NestedCircuitRequest.md b/docs/NestedCircuitRequest.md
deleted file mode 100644
index 0c7ea467ec..0000000000
--- a/docs/NestedCircuitRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedCircuitRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Cid** | **string** | Unique circuit ID |
-
-## Methods
-
-### NewNestedCircuitRequest
-
-`func NewNestedCircuitRequest(cid string, ) *NestedCircuitRequest`
-
-NewNestedCircuitRequest instantiates a new NestedCircuitRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCircuitRequestWithDefaults
-
-`func NewNestedCircuitRequestWithDefaults() *NestedCircuitRequest`
-
-NewNestedCircuitRequestWithDefaults instantiates a new NestedCircuitRequest object
-This 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 *NestedCircuitRequest) GetCid() string`
-
-GetCid returns the Cid field if non-nil, zero value otherwise.
-
-### GetCidOk
-
-`func (o *NestedCircuitRequest) 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 *NestedCircuitRequest) SetCid(v string)`
-
-SetCid sets Cid 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/NestedCircuitType.md b/docs/NestedCircuitType.md
deleted file mode 100644
index bb715cecb2..0000000000
--- a/docs/NestedCircuitType.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedCircuitType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedCircuitType
-
-`func NewNestedCircuitType(id int32, url string, display string, name string, slug string, ) *NestedCircuitType`
-
-NewNestedCircuitType instantiates a new NestedCircuitType object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCircuitTypeWithDefaults
-
-`func NewNestedCircuitTypeWithDefaults() *NestedCircuitType`
-
-NewNestedCircuitTypeWithDefaults instantiates a new NestedCircuitType object
-This 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 *NestedCircuitType) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedCircuitType) 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 *NestedCircuitType) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedCircuitType) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedCircuitType) 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 *NestedCircuitType) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedCircuitType) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedCircuitType) 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 *NestedCircuitType) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedCircuitType) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedCircuitType) 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 *NestedCircuitType) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedCircuitType) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedCircuitType) 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 *NestedCircuitType) 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/NestedCircuitTypeRequest.md b/docs/NestedCircuitTypeRequest.md
deleted file mode 100644
index 419386aeae..0000000000
--- a/docs/NestedCircuitTypeRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedCircuitTypeRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedCircuitTypeRequest
-
-`func NewNestedCircuitTypeRequest(name string, slug string, ) *NestedCircuitTypeRequest`
-
-NewNestedCircuitTypeRequest instantiates a new NestedCircuitTypeRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCircuitTypeRequestWithDefaults
-
-`func NewNestedCircuitTypeRequestWithDefaults() *NestedCircuitTypeRequest`
-
-NewNestedCircuitTypeRequestWithDefaults instantiates a new NestedCircuitTypeRequest object
-This 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 *NestedCircuitTypeRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedCircuitTypeRequest) 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 *NestedCircuitTypeRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedCircuitTypeRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedCircuitTypeRequest) 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 *NestedCircuitTypeRequest) 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/NestedCluster.md b/docs/NestedCluster.md
deleted file mode 100644
index ffe1a2c3a7..0000000000
--- a/docs/NestedCluster.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedCluster
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedCluster
-
-`func NewNestedCluster(id int32, url string, display string, name string, ) *NestedCluster`
-
-NewNestedCluster instantiates a new NestedCluster object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterWithDefaults
-
-`func NewNestedClusterWithDefaults() *NestedCluster`
-
-NewNestedClusterWithDefaults instantiates a new NestedCluster object
-This 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 *NestedCluster) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedCluster) 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 *NestedCluster) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedCluster) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedCluster) 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 *NestedCluster) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedCluster) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedCluster) 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 *NestedCluster) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedCluster) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedCluster) 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 *NestedCluster) 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/NestedClusterGroup.md b/docs/NestedClusterGroup.md
deleted file mode 100644
index fb157dc27d..0000000000
--- a/docs/NestedClusterGroup.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedClusterGroup
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedClusterGroup
-
-`func NewNestedClusterGroup(id int32, url string, display string, name string, slug string, ) *NestedClusterGroup`
-
-NewNestedClusterGroup instantiates a new NestedClusterGroup object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterGroupWithDefaults
-
-`func NewNestedClusterGroupWithDefaults() *NestedClusterGroup`
-
-NewNestedClusterGroupWithDefaults instantiates a new NestedClusterGroup object
-This 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 *NestedClusterGroup) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedClusterGroup) 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 *NestedClusterGroup) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedClusterGroup) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedClusterGroup) 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 *NestedClusterGroup) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedClusterGroup) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedClusterGroup) 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 *NestedClusterGroup) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedClusterGroup) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedClusterGroup) 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 *NestedClusterGroup) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedClusterGroup) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedClusterGroup) 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 *NestedClusterGroup) 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/NestedClusterGroupRequest.md b/docs/NestedClusterGroupRequest.md
deleted file mode 100644
index bd4eb8fce1..0000000000
--- a/docs/NestedClusterGroupRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedClusterGroupRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedClusterGroupRequest
-
-`func NewNestedClusterGroupRequest(name string, slug string, ) *NestedClusterGroupRequest`
-
-NewNestedClusterGroupRequest instantiates a new NestedClusterGroupRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterGroupRequestWithDefaults
-
-`func NewNestedClusterGroupRequestWithDefaults() *NestedClusterGroupRequest`
-
-NewNestedClusterGroupRequestWithDefaults instantiates a new NestedClusterGroupRequest object
-This 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 *NestedClusterGroupRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedClusterGroupRequest) 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 *NestedClusterGroupRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedClusterGroupRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedClusterGroupRequest) 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 *NestedClusterGroupRequest) 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/NestedClusterRequest.md b/docs/NestedClusterRequest.md
deleted file mode 100644
index a1c9ac382f..0000000000
--- a/docs/NestedClusterRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedClusterRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedClusterRequest
-
-`func NewNestedClusterRequest(name string, ) *NestedClusterRequest`
-
-NewNestedClusterRequest instantiates a new NestedClusterRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterRequestWithDefaults
-
-`func NewNestedClusterRequestWithDefaults() *NestedClusterRequest`
-
-NewNestedClusterRequestWithDefaults instantiates a new NestedClusterRequest object
-This 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 *NestedClusterRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedClusterRequest) 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 *NestedClusterRequest) 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/NestedClusterType.md b/docs/NestedClusterType.md
deleted file mode 100644
index a4f7edf802..0000000000
--- a/docs/NestedClusterType.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedClusterType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedClusterType
-
-`func NewNestedClusterType(id int32, url string, display string, name string, slug string, ) *NestedClusterType`
-
-NewNestedClusterType instantiates a new NestedClusterType object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterTypeWithDefaults
-
-`func NewNestedClusterTypeWithDefaults() *NestedClusterType`
-
-NewNestedClusterTypeWithDefaults instantiates a new NestedClusterType object
-This 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 *NestedClusterType) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedClusterType) 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 *NestedClusterType) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedClusterType) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedClusterType) 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 *NestedClusterType) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedClusterType) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedClusterType) 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 *NestedClusterType) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedClusterType) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedClusterType) 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 *NestedClusterType) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedClusterType) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedClusterType) 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 *NestedClusterType) 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/NestedClusterTypeRequest.md b/docs/NestedClusterTypeRequest.md
deleted file mode 100644
index fedeb5808f..0000000000
--- a/docs/NestedClusterTypeRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedClusterTypeRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedClusterTypeRequest
-
-`func NewNestedClusterTypeRequest(name string, slug string, ) *NestedClusterTypeRequest`
-
-NewNestedClusterTypeRequest instantiates a new NestedClusterTypeRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedClusterTypeRequestWithDefaults
-
-`func NewNestedClusterTypeRequestWithDefaults() *NestedClusterTypeRequest`
-
-NewNestedClusterTypeRequestWithDefaults instantiates a new NestedClusterTypeRequest object
-This 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 *NestedClusterTypeRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedClusterTypeRequest) 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 *NestedClusterTypeRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedClusterTypeRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedClusterTypeRequest) 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 *NestedClusterTypeRequest) 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/NestedConfigTemplate.md b/docs/NestedConfigTemplate.md
deleted file mode 100644
index 9966cbfcbd..0000000000
--- a/docs/NestedConfigTemplate.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedConfigTemplate
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedConfigTemplate
-
-`func NewNestedConfigTemplate(id int32, url string, display string, name string, ) *NestedConfigTemplate`
-
-NewNestedConfigTemplate instantiates a new NestedConfigTemplate object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedConfigTemplateWithDefaults
-
-`func NewNestedConfigTemplateWithDefaults() *NestedConfigTemplate`
-
-NewNestedConfigTemplateWithDefaults instantiates a new NestedConfigTemplate object
-This 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 *NestedConfigTemplate) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedConfigTemplate) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedConfigTemplate) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedConfigTemplate) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) 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/NestedConfigTemplateRequest.md b/docs/NestedConfigTemplateRequest.md
deleted file mode 100644
index 92503e556a..0000000000
--- a/docs/NestedConfigTemplateRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedConfigTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedConfigTemplateRequest
-
-`func NewNestedConfigTemplateRequest(name string, ) *NestedConfigTemplateRequest`
-
-NewNestedConfigTemplateRequest instantiates a new NestedConfigTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedConfigTemplateRequestWithDefaults
-
-`func NewNestedConfigTemplateRequestWithDefaults() *NestedConfigTemplateRequest`
-
-NewNestedConfigTemplateRequestWithDefaults instantiates a new NestedConfigTemplateRequest object
-This 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 *NestedConfigTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedConfigTemplateRequest) 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 *NestedConfigTemplateRequest) 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/NestedContact.md b/docs/NestedContact.md
deleted file mode 100644
index 6b6f18e069..0000000000
--- a/docs/NestedContact.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedContact
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedContact
-
-`func NewNestedContact(id int32, url string, display string, name string, ) *NestedContact`
-
-NewNestedContact instantiates a new NestedContact object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedContactWithDefaults
-
-`func NewNestedContactWithDefaults() *NestedContact`
-
-NewNestedContactWithDefaults instantiates a new NestedContact object
-This 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 *NestedContact) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedContact) 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 *NestedContact) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedContact) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedContact) 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 *NestedContact) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedContact) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedContact) 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 *NestedContact) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedContact) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedContact) 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 *NestedContact) 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/NestedContactRequest.md b/docs/NestedContactRequest.md
deleted file mode 100644
index 42cd913411..0000000000
--- a/docs/NestedContactRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedContactRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedContactRequest
-
-`func NewNestedContactRequest(name string, ) *NestedContactRequest`
-
-NewNestedContactRequest instantiates a new NestedContactRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedContactRequestWithDefaults
-
-`func NewNestedContactRequestWithDefaults() *NestedContactRequest`
-
-NewNestedContactRequestWithDefaults instantiates a new NestedContactRequest object
-This 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 *NestedContactRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedContactRequest) 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 *NestedContactRequest) 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/NestedContactRole.md b/docs/NestedContactRole.md
deleted file mode 100644
index 3eec92d8bd..0000000000
--- a/docs/NestedContactRole.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedContactRole
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedContactRole
-
-`func NewNestedContactRole(id int32, url string, display string, name string, slug string, ) *NestedContactRole`
-
-NewNestedContactRole instantiates a new NestedContactRole object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedContactRoleWithDefaults
-
-`func NewNestedContactRoleWithDefaults() *NestedContactRole`
-
-NewNestedContactRoleWithDefaults instantiates a new NestedContactRole object
-This 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 *NestedContactRole) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedContactRole) 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 *NestedContactRole) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedContactRole) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedContactRole) 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 *NestedContactRole) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedContactRole) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedContactRole) 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 *NestedContactRole) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedContactRole) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedContactRole) 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 *NestedContactRole) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedContactRole) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedContactRole) 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 *NestedContactRole) 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/NestedContactRoleRequest.md b/docs/NestedContactRoleRequest.md
deleted file mode 100644
index 49f2757400..0000000000
--- a/docs/NestedContactRoleRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedContactRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedContactRoleRequest
-
-`func NewNestedContactRoleRequest(name string, slug string, ) *NestedContactRoleRequest`
-
-NewNestedContactRoleRequest instantiates a new NestedContactRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedContactRoleRequestWithDefaults
-
-`func NewNestedContactRoleRequestWithDefaults() *NestedContactRoleRequest`
-
-NewNestedContactRoleRequestWithDefaults instantiates a new NestedContactRoleRequest object
-This 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 *NestedContactRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedContactRoleRequest) 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 *NestedContactRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedContactRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedContactRoleRequest) 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 *NestedContactRoleRequest) 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/NestedCustomFieldChoiceSet.md b/docs/NestedCustomFieldChoiceSet.md
deleted file mode 100644
index 7886bb406e..0000000000
--- a/docs/NestedCustomFieldChoiceSet.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedCustomFieldChoiceSet
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**ChoicesCount** | **string** | | [readonly]
-
-## Methods
-
-### NewNestedCustomFieldChoiceSet
-
-`func NewNestedCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, ) *NestedCustomFieldChoiceSet`
-
-NewNestedCustomFieldChoiceSet instantiates a new NestedCustomFieldChoiceSet object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCustomFieldChoiceSetWithDefaults
-
-`func NewNestedCustomFieldChoiceSetWithDefaults() *NestedCustomFieldChoiceSet`
-
-NewNestedCustomFieldChoiceSetWithDefaults instantiates a new NestedCustomFieldChoiceSet object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetId
-
-`func (o *NestedCustomFieldChoiceSet) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedCustomFieldChoiceSet) GetIdOk() (*int32, bool)`
-
-GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetId
-
-`func (o *NestedCustomFieldChoiceSet) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedCustomFieldChoiceSet) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedCustomFieldChoiceSet) GetUrlOk() (*string, bool)`
-
-GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUrl
-
-`func (o *NestedCustomFieldChoiceSet) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedCustomFieldChoiceSet) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedCustomFieldChoiceSet) GetDisplayOk() (*string, bool)`
-
-GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDisplay
-
-`func (o *NestedCustomFieldChoiceSet) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedCustomFieldChoiceSet) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedCustomFieldChoiceSet) GetNameOk() (*string, bool)`
-
-GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetName
-
-`func (o *NestedCustomFieldChoiceSet) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetChoicesCount
-
-`func (o *NestedCustomFieldChoiceSet) GetChoicesCount() string`
-
-GetChoicesCount returns the ChoicesCount field if non-nil, zero value otherwise.
-
-### GetChoicesCountOk
-
-`func (o *NestedCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool)`
-
-GetChoicesCountOk returns a tuple with the ChoicesCount field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetChoicesCount
-
-`func (o *NestedCustomFieldChoiceSet) SetChoicesCount(v string)`
-
-SetChoicesCount sets ChoicesCount field to given value.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NestedCustomFieldChoiceSetRequest.md b/docs/NestedCustomFieldChoiceSetRequest.md
deleted file mode 100644
index 1c7e5007a3..0000000000
--- a/docs/NestedCustomFieldChoiceSetRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedCustomFieldChoiceSetRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedCustomFieldChoiceSetRequest
-
-`func NewNestedCustomFieldChoiceSetRequest(name string, ) *NestedCustomFieldChoiceSetRequest`
-
-NewNestedCustomFieldChoiceSetRequest instantiates a new NestedCustomFieldChoiceSetRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedCustomFieldChoiceSetRequestWithDefaults
-
-`func NewNestedCustomFieldChoiceSetRequestWithDefaults() *NestedCustomFieldChoiceSetRequest`
-
-NewNestedCustomFieldChoiceSetRequestWithDefaults instantiates a new NestedCustomFieldChoiceSetRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetName
-
-`func (o *NestedCustomFieldChoiceSetRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)`
-
-GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetName
-
-`func (o *NestedCustomFieldChoiceSetRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NestedDataFile.md b/docs/NestedDataFile.md
deleted file mode 100644
index 26e9a9a46c..0000000000
--- a/docs/NestedDataFile.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedDataFile
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Path** | **string** | File path relative to the data source's root | [readonly]
-
-## Methods
-
-### NewNestedDataFile
-
-`func NewNestedDataFile(id int32, url string, display string, path string, ) *NestedDataFile`
-
-NewNestedDataFile instantiates a new NestedDataFile object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDataFileWithDefaults
-
-`func NewNestedDataFileWithDefaults() *NestedDataFile`
-
-NewNestedDataFileWithDefaults instantiates a new NestedDataFile object
-This 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 *NestedDataFile) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedDataFile) 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 *NestedDataFile) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedDataFile) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedDataFile) 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 *NestedDataFile) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedDataFile) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedDataFile) 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 *NestedDataFile) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetPath
-
-`func (o *NestedDataFile) GetPath() string`
-
-GetPath returns the Path field if non-nil, zero value otherwise.
-
-### GetPathOk
-
-`func (o *NestedDataFile) GetPathOk() (*string, bool)`
-
-GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPath
-
-`func (o *NestedDataFile) SetPath(v string)`
-
-SetPath sets Path 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/NestedDataSource.md b/docs/NestedDataSource.md
deleted file mode 100644
index 1bc5ef872e..0000000000
--- a/docs/NestedDataSource.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedDataSource
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedDataSource
-
-`func NewNestedDataSource(id int32, url string, display string, name string, ) *NestedDataSource`
-
-NewNestedDataSource instantiates a new NestedDataSource object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDataSourceWithDefaults
-
-`func NewNestedDataSourceWithDefaults() *NestedDataSource`
-
-NewNestedDataSourceWithDefaults instantiates a new NestedDataSource object
-This 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 *NestedDataSource) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedDataSource) 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 *NestedDataSource) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedDataSource) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedDataSource) 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 *NestedDataSource) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedDataSource) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedDataSource) 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 *NestedDataSource) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedDataSource) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedDataSource) 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 *NestedDataSource) 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/NestedDataSourceRequest.md b/docs/NestedDataSourceRequest.md
deleted file mode 100644
index 3f2252deac..0000000000
--- a/docs/NestedDataSourceRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedDataSourceRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedDataSourceRequest
-
-`func NewNestedDataSourceRequest(name string, ) *NestedDataSourceRequest`
-
-NewNestedDataSourceRequest instantiates a new NestedDataSourceRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDataSourceRequestWithDefaults
-
-`func NewNestedDataSourceRequestWithDefaults() *NestedDataSourceRequest`
-
-NewNestedDataSourceRequestWithDefaults instantiates a new NestedDataSourceRequest object
-This 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 *NestedDataSourceRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedDataSourceRequest) 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 *NestedDataSourceRequest) 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/NestedDeviceRole.md b/docs/NestedDeviceRole.md
deleted file mode 100644
index f5a7616c59..0000000000
--- a/docs/NestedDeviceRole.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedDeviceRole
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedDeviceRole
-
-`func NewNestedDeviceRole(id int32, url string, display string, name string, slug string, ) *NestedDeviceRole`
-
-NewNestedDeviceRole instantiates a new NestedDeviceRole object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDeviceRoleWithDefaults
-
-`func NewNestedDeviceRoleWithDefaults() *NestedDeviceRole`
-
-NewNestedDeviceRoleWithDefaults instantiates a new NestedDeviceRole object
-This 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 *NestedDeviceRole) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedDeviceRole) 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 *NestedDeviceRole) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedDeviceRole) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedDeviceRole) 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 *NestedDeviceRole) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedDeviceRole) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedDeviceRole) 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 *NestedDeviceRole) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedDeviceRole) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedDeviceRole) 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 *NestedDeviceRole) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedDeviceRole) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedDeviceRole) 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 *NestedDeviceRole) 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/NestedDeviceRoleRequest.md b/docs/NestedDeviceRoleRequest.md
deleted file mode 100644
index ae67800976..0000000000
--- a/docs/NestedDeviceRoleRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedDeviceRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedDeviceRoleRequest
-
-`func NewNestedDeviceRoleRequest(name string, slug string, ) *NestedDeviceRoleRequest`
-
-NewNestedDeviceRoleRequest instantiates a new NestedDeviceRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDeviceRoleRequestWithDefaults
-
-`func NewNestedDeviceRoleRequestWithDefaults() *NestedDeviceRoleRequest`
-
-NewNestedDeviceRoleRequestWithDefaults instantiates a new NestedDeviceRoleRequest object
-This 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 *NestedDeviceRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedDeviceRoleRequest) 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 *NestedDeviceRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedDeviceRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedDeviceRoleRequest) 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 *NestedDeviceRoleRequest) 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/NestedDeviceType.md b/docs/NestedDeviceType.md
deleted file mode 100644
index 43fc20e879..0000000000
--- a/docs/NestedDeviceType.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# NestedDeviceType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Manufacturer** | [**NestedManufacturer**](NestedManufacturer.md) | | [readonly]
-**Model** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedDeviceType
-
-`func NewNestedDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, ) *NestedDeviceType`
-
-NewNestedDeviceType instantiates a new NestedDeviceType object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDeviceTypeWithDefaults
-
-`func NewNestedDeviceTypeWithDefaults() *NestedDeviceType`
-
-NewNestedDeviceTypeWithDefaults instantiates a new NestedDeviceType object
-This 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 *NestedDeviceType) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedDeviceType) 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 *NestedDeviceType) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedDeviceType) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedDeviceType) 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 *NestedDeviceType) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedDeviceType) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedDeviceType) 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 *NestedDeviceType) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetManufacturer
-
-`func (o *NestedDeviceType) GetManufacturer() NestedManufacturer`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *NestedDeviceType) GetManufacturerOk() (*NestedManufacturer, 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 *NestedDeviceType) SetManufacturer(v NestedManufacturer)`
-
-SetManufacturer sets Manufacturer field to given value.
-
-
-### GetModel
-
-`func (o *NestedDeviceType) GetModel() string`
-
-GetModel returns the Model field if non-nil, zero value otherwise.
-
-### GetModelOk
-
-`func (o *NestedDeviceType) 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 *NestedDeviceType) SetModel(v string)`
-
-SetModel sets Model field to given value.
-
-
-### GetSlug
-
-`func (o *NestedDeviceType) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedDeviceType) 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 *NestedDeviceType) 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/NestedDeviceTypeRequest.md b/docs/NestedDeviceTypeRequest.md
deleted file mode 100644
index 41b8ef3d9e..0000000000
--- a/docs/NestedDeviceTypeRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedDeviceTypeRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Model** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedDeviceTypeRequest
-
-`func NewNestedDeviceTypeRequest(model string, slug string, ) *NestedDeviceTypeRequest`
-
-NewNestedDeviceTypeRequest instantiates a new NestedDeviceTypeRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedDeviceTypeRequestWithDefaults
-
-`func NewNestedDeviceTypeRequestWithDefaults() *NestedDeviceTypeRequest`
-
-NewNestedDeviceTypeRequestWithDefaults instantiates a new NestedDeviceTypeRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetModel
-
-`func (o *NestedDeviceTypeRequest) GetModel() string`
-
-GetModel returns the Model field if non-nil, zero value otherwise.
-
-### GetModelOk
-
-`func (o *NestedDeviceTypeRequest) 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 *NestedDeviceTypeRequest) SetModel(v string)`
-
-SetModel sets Model field to given value.
-
-
-### GetSlug
-
-`func (o *NestedDeviceTypeRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedDeviceTypeRequest) 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 *NestedDeviceTypeRequest) 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/NestedFHRPGroup.md b/docs/NestedFHRPGroup.md
deleted file mode 100644
index 10e7feb186..0000000000
--- a/docs/NestedFHRPGroup.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedFHRPGroup
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
-**GroupId** | **int32** | |
-
-## Methods
-
-### NewNestedFHRPGroup
-
-`func NewNestedFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *NestedFHRPGroup`
-
-NewNestedFHRPGroup instantiates a new NestedFHRPGroup object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedFHRPGroupWithDefaults
-
-`func NewNestedFHRPGroupWithDefaults() *NestedFHRPGroup`
-
-NewNestedFHRPGroupWithDefaults instantiates a new NestedFHRPGroup object
-This 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 *NestedFHRPGroup) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedFHRPGroup) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedFHRPGroup) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetProtocol
-
-`func (o *NestedFHRPGroup) GetProtocol() FHRPGroupProtocol`
-
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-
-### GetProtocolOk
-
-`func (o *NestedFHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, 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 *NestedFHRPGroup) SetProtocol(v FHRPGroupProtocol)`
-
-SetProtocol sets Protocol field to given value.
-
-
-### GetGroupId
-
-`func (o *NestedFHRPGroup) GetGroupId() int32`
-
-GetGroupId returns the GroupId field if non-nil, zero value otherwise.
-
-### GetGroupIdOk
-
-`func (o *NestedFHRPGroup) GetGroupIdOk() (*int32, bool)`
-
-GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetGroupId
-
-`func (o *NestedFHRPGroup) SetGroupId(v int32)`
-
-SetGroupId sets GroupId 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/NestedFHRPGroupRequest.md b/docs/NestedFHRPGroupRequest.md
deleted file mode 100644
index e6841ac0c8..0000000000
--- a/docs/NestedFHRPGroupRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedFHRPGroupRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | |
-**GroupId** | **int32** | |
-
-## Methods
-
-### NewNestedFHRPGroupRequest
-
-`func NewNestedFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *NestedFHRPGroupRequest`
-
-NewNestedFHRPGroupRequest instantiates a new NestedFHRPGroupRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedFHRPGroupRequestWithDefaults
-
-`func NewNestedFHRPGroupRequestWithDefaults() *NestedFHRPGroupRequest`
-
-NewNestedFHRPGroupRequestWithDefaults instantiates a new NestedFHRPGroupRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetProtocol
-
-`func (o *NestedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol`
-
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-
-### GetProtocolOk
-
-`func (o *NestedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, 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 *NestedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)`
-
-SetProtocol sets Protocol field to given value.
-
-
-### GetGroupId
-
-`func (o *NestedFHRPGroupRequest) GetGroupId() int32`
-
-GetGroupId returns the GroupId field if non-nil, zero value otherwise.
-
-### GetGroupIdOk
-
-`func (o *NestedFHRPGroupRequest) GetGroupIdOk() (*int32, bool)`
-
-GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetGroupId
-
-`func (o *NestedFHRPGroupRequest) SetGroupId(v int32)`
-
-SetGroupId sets GroupId 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/NestedRack.md b/docs/NestedGroup.md
similarity index 69%
rename from docs/NestedRack.md
rename to docs/NestedGroup.md
index 6fa57c4ca8..2510f7a46f 100644
--- a/docs/NestedRack.md
+++ b/docs/NestedGroup.md
@@ -1,4 +1,4 @@
-# NestedRack
+# NestedGroup
## Properties
@@ -11,99 +11,99 @@ Name | Type | Description | Notes
## Methods
-### NewNestedRack
+### NewNestedGroup
-`func NewNestedRack(id int32, url string, display string, name string, ) *NestedRack`
+`func NewNestedGroup(id int32, url string, display string, name string, ) *NestedGroup`
-NewNestedRack instantiates a new NestedRack object
+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
-### NewNestedRackWithDefaults
+### NewNestedGroupWithDefaults
-`func NewNestedRackWithDefaults() *NestedRack`
+`func NewNestedGroupWithDefaults() *NestedGroup`
-NewNestedRackWithDefaults instantiates a new NestedRack object
+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 *NestedRack) GetId() int32`
+`func (o *NestedGroup) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
-`func (o *NestedRack) GetIdOk() (*int32, bool)`
+`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 *NestedRack) SetId(v int32)`
+`func (o *NestedGroup) SetId(v int32)`
SetId sets Id field to given value.
### GetUrl
-`func (o *NestedRack) GetUrl() string`
+`func (o *NestedGroup) GetUrl() string`
GetUrl returns the Url field if non-nil, zero value otherwise.
### GetUrlOk
-`func (o *NestedRack) GetUrlOk() (*string, bool)`
+`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 *NestedRack) SetUrl(v string)`
+`func (o *NestedGroup) SetUrl(v string)`
SetUrl sets Url field to given value.
### GetDisplay
-`func (o *NestedRack) GetDisplay() string`
+`func (o *NestedGroup) GetDisplay() string`
GetDisplay returns the Display field if non-nil, zero value otherwise.
### GetDisplayOk
-`func (o *NestedRack) GetDisplayOk() (*string, bool)`
+`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 *NestedRack) SetDisplay(v string)`
+`func (o *NestedGroup) SetDisplay(v string)`
SetDisplay sets Display field to given value.
### GetName
-`func (o *NestedRack) GetName() string`
+`func (o *NestedGroup) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *NestedRack) GetNameOk() (*string, bool)`
+`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 *NestedRack) SetName(v string)`
+`func (o *NestedGroup) SetName(v string)`
SetName sets Name field to given value.
diff --git a/docs/NestedIKEPolicy.md b/docs/NestedIKEPolicy.md
deleted file mode 100644
index d95a55b372..0000000000
--- a/docs/NestedIKEPolicy.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedIKEPolicy
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIKEPolicy
-
-`func NewNestedIKEPolicy(id int32, url string, display string, name string, ) *NestedIKEPolicy`
-
-NewNestedIKEPolicy instantiates a new NestedIKEPolicy object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIKEPolicyWithDefaults
-
-`func NewNestedIKEPolicyWithDefaults() *NestedIKEPolicy`
-
-NewNestedIKEPolicyWithDefaults instantiates a new NestedIKEPolicy object
-This 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 *NestedIKEPolicy) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedIKEPolicy) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedIKEPolicy) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedIKEPolicy) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) 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/NestedIKEPolicyRequest.md b/docs/NestedIKEPolicyRequest.md
deleted file mode 100644
index 54714b7f3f..0000000000
--- a/docs/NestedIKEPolicyRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedIKEPolicyRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIKEPolicyRequest
-
-`func NewNestedIKEPolicyRequest(name string, ) *NestedIKEPolicyRequest`
-
-NewNestedIKEPolicyRequest instantiates a new NestedIKEPolicyRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIKEPolicyRequestWithDefaults
-
-`func NewNestedIKEPolicyRequestWithDefaults() *NestedIKEPolicyRequest`
-
-NewNestedIKEPolicyRequestWithDefaults instantiates a new NestedIKEPolicyRequest object
-This 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 *NestedIKEPolicyRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIKEPolicyRequest) 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 *NestedIKEPolicyRequest) 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/NestedIPAddress.md b/docs/NestedIPAddress.md
deleted file mode 100644
index 6511d27732..0000000000
--- a/docs/NestedIPAddress.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedIPAddress
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [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.
-
-
-### 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
deleted file mode 100644
index 731329f5bd..0000000000
--- a/docs/NestedIPAddressRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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/NestedIPSecPolicy.md b/docs/NestedIPSecPolicy.md
deleted file mode 100644
index c50867cb64..0000000000
--- a/docs/NestedIPSecPolicy.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedIPSecPolicy
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIPSecPolicy
-
-`func NewNestedIPSecPolicy(id int32, url string, display string, name string, ) *NestedIPSecPolicy`
-
-NewNestedIPSecPolicy instantiates a new NestedIPSecPolicy object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIPSecPolicyWithDefaults
-
-`func NewNestedIPSecPolicyWithDefaults() *NestedIPSecPolicy`
-
-NewNestedIPSecPolicyWithDefaults instantiates a new NestedIPSecPolicy object
-This 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 *NestedIPSecPolicy) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedIPSecPolicy) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedIPSecPolicy) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedIPSecPolicy) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) 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/NestedIPSecPolicyRequest.md b/docs/NestedIPSecPolicyRequest.md
deleted file mode 100644
index c74c084c1c..0000000000
--- a/docs/NestedIPSecPolicyRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedIPSecPolicyRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIPSecPolicyRequest
-
-`func NewNestedIPSecPolicyRequest(name string, ) *NestedIPSecPolicyRequest`
-
-NewNestedIPSecPolicyRequest instantiates a new NestedIPSecPolicyRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIPSecPolicyRequestWithDefaults
-
-`func NewNestedIPSecPolicyRequestWithDefaults() *NestedIPSecPolicyRequest`
-
-NewNestedIPSecPolicyRequestWithDefaults instantiates a new NestedIPSecPolicyRequest object
-This 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 *NestedIPSecPolicyRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIPSecPolicyRequest) 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 *NestedIPSecPolicyRequest) 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/NestedIPSecProfile.md b/docs/NestedIPSecProfile.md
deleted file mode 100644
index ebf3727295..0000000000
--- a/docs/NestedIPSecProfile.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedIPSecProfile
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIPSecProfile
-
-`func NewNestedIPSecProfile(id int32, url string, display string, name string, ) *NestedIPSecProfile`
-
-NewNestedIPSecProfile instantiates a new NestedIPSecProfile object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIPSecProfileWithDefaults
-
-`func NewNestedIPSecProfileWithDefaults() *NestedIPSecProfile`
-
-NewNestedIPSecProfileWithDefaults instantiates a new NestedIPSecProfile object
-This 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 *NestedIPSecProfile) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedIPSecProfile) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedIPSecProfile) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedIPSecProfile) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) 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/NestedIPSecProfileRequest.md b/docs/NestedIPSecProfileRequest.md
deleted file mode 100644
index 7ddf4a1c3e..0000000000
--- a/docs/NestedIPSecProfileRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedIPSecProfileRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedIPSecProfileRequest
-
-`func NewNestedIPSecProfileRequest(name string, ) *NestedIPSecProfileRequest`
-
-NewNestedIPSecProfileRequest instantiates a new NestedIPSecProfileRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedIPSecProfileRequestWithDefaults
-
-`func NewNestedIPSecProfileRequestWithDefaults() *NestedIPSecProfileRequest`
-
-NewNestedIPSecProfileRequestWithDefaults instantiates a new NestedIPSecProfileRequest object
-This 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 *NestedIPSecProfileRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedIPSecProfileRequest) 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 *NestedIPSecProfileRequest) 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/NestedInventoryItemRole.md b/docs/NestedInventoryItemRole.md
deleted file mode 100644
index 188d94967e..0000000000
--- a/docs/NestedInventoryItemRole.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedInventoryItemRole
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedInventoryItemRole
-
-`func NewNestedInventoryItemRole(id int32, url string, display string, name string, slug string, ) *NestedInventoryItemRole`
-
-NewNestedInventoryItemRole instantiates a new NestedInventoryItemRole object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedInventoryItemRoleWithDefaults
-
-`func NewNestedInventoryItemRoleWithDefaults() *NestedInventoryItemRole`
-
-NewNestedInventoryItemRoleWithDefaults instantiates a new NestedInventoryItemRole object
-This 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 *NestedInventoryItemRole) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedInventoryItemRole) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedInventoryItemRole) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedInventoryItemRole) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedInventoryItemRole) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) 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/NestedInventoryItemRoleRequest.md b/docs/NestedInventoryItemRoleRequest.md
deleted file mode 100644
index e8ba43b248..0000000000
--- a/docs/NestedInventoryItemRoleRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedInventoryItemRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedInventoryItemRoleRequest
-
-`func NewNestedInventoryItemRoleRequest(name string, slug string, ) *NestedInventoryItemRoleRequest`
-
-NewNestedInventoryItemRoleRequest instantiates a new NestedInventoryItemRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedInventoryItemRoleRequestWithDefaults
-
-`func NewNestedInventoryItemRoleRequestWithDefaults() *NestedInventoryItemRoleRequest`
-
-NewNestedInventoryItemRoleRequestWithDefaults instantiates a new NestedInventoryItemRoleRequest object
-This 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 *NestedInventoryItemRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedInventoryItemRoleRequest) 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 *NestedInventoryItemRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedInventoryItemRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedInventoryItemRoleRequest) 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 *NestedInventoryItemRoleRequest) 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/NestedL2VPN.md b/docs/NestedL2VPN.md
deleted file mode 100644
index d38167df08..0000000000
--- a/docs/NestedL2VPN.md
+++ /dev/null
@@ -1,192 +0,0 @@
-# NestedL2VPN
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Identifier** | Pointer to **NullableInt64** | | [optional]
-**Name** | **string** | |
-**Slug** | **string** | |
-**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | |
-
-## Methods
-
-### NewNestedL2VPN
-
-`func NewNestedL2VPN(id int32, url string, display string, name string, slug string, type_ L2VPNTypeValue, ) *NestedL2VPN`
-
-NewNestedL2VPN instantiates a new NestedL2VPN object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedL2VPNWithDefaults
-
-`func NewNestedL2VPNWithDefaults() *NestedL2VPN`
-
-NewNestedL2VPNWithDefaults instantiates a new NestedL2VPN object
-This 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 *NestedL2VPN) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedL2VPN) 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 *NestedL2VPN) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedL2VPN) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedL2VPN) 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 *NestedL2VPN) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedL2VPN) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedL2VPN) 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 *NestedL2VPN) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetIdentifier
-
-`func (o *NestedL2VPN) GetIdentifier() int64`
-
-GetIdentifier returns the Identifier field if non-nil, zero value otherwise.
-
-### GetIdentifierOk
-
-`func (o *NestedL2VPN) GetIdentifierOk() (*int64, bool)`
-
-GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetIdentifier
-
-`func (o *NestedL2VPN) SetIdentifier(v int64)`
-
-SetIdentifier sets Identifier field to given value.
-
-### HasIdentifier
-
-`func (o *NestedL2VPN) HasIdentifier() bool`
-
-HasIdentifier returns a boolean if a field has been set.
-
-### SetIdentifierNil
-
-`func (o *NestedL2VPN) SetIdentifierNil(b bool)`
-
- SetIdentifierNil sets the value for Identifier to be an explicit nil
-
-### UnsetIdentifier
-`func (o *NestedL2VPN) UnsetIdentifier()`
-
-UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
-### GetName
-
-`func (o *NestedL2VPN) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedL2VPN) 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 *NestedL2VPN) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedL2VPN) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedL2VPN) 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 *NestedL2VPN) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetType
-
-`func (o *NestedL2VPN) GetType() L2VPNTypeValue`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *NestedL2VPN) GetTypeOk() (*L2VPNTypeValue, 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 *NestedL2VPN) SetType(v L2VPNTypeValue)`
-
-SetType sets Type 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/NestedL2VPNRequest.md b/docs/NestedL2VPNRequest.md
deleted file mode 100644
index 5b6ba55749..0000000000
--- a/docs/NestedL2VPNRequest.md
+++ /dev/null
@@ -1,129 +0,0 @@
-# NestedL2VPNRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Identifier** | Pointer to **NullableInt64** | | [optional]
-**Name** | **string** | |
-**Slug** | **string** | |
-**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | |
-
-## Methods
-
-### NewNestedL2VPNRequest
-
-`func NewNestedL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *NestedL2VPNRequest`
-
-NewNestedL2VPNRequest instantiates a new NestedL2VPNRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedL2VPNRequestWithDefaults
-
-`func NewNestedL2VPNRequestWithDefaults() *NestedL2VPNRequest`
-
-NewNestedL2VPNRequestWithDefaults instantiates a new NestedL2VPNRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetIdentifier
-
-`func (o *NestedL2VPNRequest) GetIdentifier() int64`
-
-GetIdentifier returns the Identifier field if non-nil, zero value otherwise.
-
-### GetIdentifierOk
-
-`func (o *NestedL2VPNRequest) GetIdentifierOk() (*int64, bool)`
-
-GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetIdentifier
-
-`func (o *NestedL2VPNRequest) SetIdentifier(v int64)`
-
-SetIdentifier sets Identifier field to given value.
-
-### HasIdentifier
-
-`func (o *NestedL2VPNRequest) HasIdentifier() bool`
-
-HasIdentifier returns a boolean if a field has been set.
-
-### SetIdentifierNil
-
-`func (o *NestedL2VPNRequest) SetIdentifierNil(b bool)`
-
- SetIdentifierNil sets the value for Identifier to be an explicit nil
-
-### UnsetIdentifier
-`func (o *NestedL2VPNRequest) UnsetIdentifier()`
-
-UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
-### GetName
-
-`func (o *NestedL2VPNRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedL2VPNRequest) 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 *NestedL2VPNRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedL2VPNRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedL2VPNRequest) 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 *NestedL2VPNRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetType
-
-`func (o *NestedL2VPNRequest) GetType() L2VPNTypeValue`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *NestedL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, 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 *NestedL2VPNRequest) SetType(v L2VPNTypeValue)`
-
-SetType sets Type 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/NestedL2VPNTermination.md b/docs/NestedL2VPNTermination.md
deleted file mode 100644
index 0a8ad24c8a..0000000000
--- a/docs/NestedL2VPNTermination.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedL2VPNTermination
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**L2vpn** | [**NestedL2VPN**](NestedL2VPN.md) | |
-
-## Methods
-
-### NewNestedL2VPNTermination
-
-`func NewNestedL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN, ) *NestedL2VPNTermination`
-
-NewNestedL2VPNTermination instantiates a new NestedL2VPNTermination object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedL2VPNTerminationWithDefaults
-
-`func NewNestedL2VPNTerminationWithDefaults() *NestedL2VPNTermination`
-
-NewNestedL2VPNTerminationWithDefaults instantiates a new NestedL2VPNTermination object
-This 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 *NestedL2VPNTermination) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedL2VPNTermination) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedL2VPNTermination) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetL2vpn
-
-`func (o *NestedL2VPNTermination) GetL2vpn() NestedL2VPN`
-
-GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
-
-### GetL2vpnOk
-
-`func (o *NestedL2VPNTermination) GetL2vpnOk() (*NestedL2VPN, 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 *NestedL2VPNTermination) SetL2vpn(v NestedL2VPN)`
-
-SetL2vpn sets L2vpn 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/NestedL2VPNTerminationRequest.md b/docs/NestedL2VPNTerminationRequest.md
deleted file mode 100644
index 000217aa70..0000000000
--- a/docs/NestedL2VPNTerminationRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedL2VPNTerminationRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**L2vpn** | [**NestedL2VPNRequest**](NestedL2VPNRequest.md) | |
-
-## Methods
-
-### NewNestedL2VPNTerminationRequest
-
-`func NewNestedL2VPNTerminationRequest(l2vpn NestedL2VPNRequest, ) *NestedL2VPNTerminationRequest`
-
-NewNestedL2VPNTerminationRequest instantiates a new NestedL2VPNTerminationRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedL2VPNTerminationRequestWithDefaults
-
-`func NewNestedL2VPNTerminationRequestWithDefaults() *NestedL2VPNTerminationRequest`
-
-NewNestedL2VPNTerminationRequestWithDefaults instantiates a new NestedL2VPNTerminationRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetL2vpn
-
-`func (o *NestedL2VPNTerminationRequest) GetL2vpn() NestedL2VPNRequest`
-
-GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
-
-### GetL2vpnOk
-
-`func (o *NestedL2VPNTerminationRequest) GetL2vpnOk() (*NestedL2VPNRequest, 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 *NestedL2VPNTerminationRequest) SetL2vpn(v NestedL2VPNRequest)`
-
-SetL2vpn sets L2vpn 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/NestedLocation.md b/docs/NestedLocation.md
deleted file mode 100644
index dd365604eb..0000000000
--- a/docs/NestedLocation.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# NestedLocation
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [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.
-
-
-### 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
deleted file mode 100644
index d3b0a011eb..0000000000
--- a/docs/NestedLocationRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# 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/NestedManufacturer.md b/docs/NestedManufacturer.md
deleted file mode 100644
index dc8555f4c4..0000000000
--- a/docs/NestedManufacturer.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedManufacturer
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedManufacturer
-
-`func NewNestedManufacturer(id int32, url string, display string, name string, slug string, ) *NestedManufacturer`
-
-NewNestedManufacturer instantiates a new NestedManufacturer object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedManufacturerWithDefaults
-
-`func NewNestedManufacturerWithDefaults() *NestedManufacturer`
-
-NewNestedManufacturerWithDefaults instantiates a new NestedManufacturer object
-This 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 *NestedManufacturer) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedManufacturer) 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 *NestedManufacturer) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedManufacturer) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedManufacturer) 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 *NestedManufacturer) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedManufacturer) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedManufacturer) 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 *NestedManufacturer) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedManufacturer) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedManufacturer) 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 *NestedManufacturer) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedManufacturer) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedManufacturer) 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 *NestedManufacturer) 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/NestedManufacturerRequest.md b/docs/NestedManufacturerRequest.md
deleted file mode 100644
index 840efd312a..0000000000
--- a/docs/NestedManufacturerRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedManufacturerRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedManufacturerRequest
-
-`func NewNestedManufacturerRequest(name string, slug string, ) *NestedManufacturerRequest`
-
-NewNestedManufacturerRequest instantiates a new NestedManufacturerRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedManufacturerRequestWithDefaults
-
-`func NewNestedManufacturerRequestWithDefaults() *NestedManufacturerRequest`
-
-NewNestedManufacturerRequestWithDefaults instantiates a new NestedManufacturerRequest object
-This 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 *NestedManufacturerRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedManufacturerRequest) 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 *NestedManufacturerRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedManufacturerRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedManufacturerRequest) 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 *NestedManufacturerRequest) 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/NestedModuleType.md b/docs/NestedModuleType.md
deleted file mode 100644
index 5aec706bd3..0000000000
--- a/docs/NestedModuleType.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedModuleType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Manufacturer** | [**NestedManufacturer**](NestedManufacturer.md) | | [readonly]
-**Model** | **string** | |
-
-## Methods
-
-### NewNestedModuleType
-
-`func NewNestedModuleType(id int32, url string, display string, manufacturer NestedManufacturer, model string, ) *NestedModuleType`
-
-NewNestedModuleType instantiates a new NestedModuleType object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedModuleTypeWithDefaults
-
-`func NewNestedModuleTypeWithDefaults() *NestedModuleType`
-
-NewNestedModuleTypeWithDefaults instantiates a new NestedModuleType object
-This 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 *NestedModuleType) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedModuleType) 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 *NestedModuleType) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedModuleType) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedModuleType) 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 *NestedModuleType) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedModuleType) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedModuleType) 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 *NestedModuleType) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetManufacturer
-
-`func (o *NestedModuleType) GetManufacturer() NestedManufacturer`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *NestedModuleType) GetManufacturerOk() (*NestedManufacturer, 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 *NestedModuleType) SetManufacturer(v NestedManufacturer)`
-
-SetManufacturer sets Manufacturer field to given value.
-
-
-### GetModel
-
-`func (o *NestedModuleType) GetModel() string`
-
-GetModel returns the Model field if non-nil, zero value otherwise.
-
-### GetModelOk
-
-`func (o *NestedModuleType) 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 *NestedModuleType) SetModel(v string)`
-
-SetModel sets Model 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/NestedModuleTypeRequest.md b/docs/NestedModuleTypeRequest.md
deleted file mode 100644
index 1e7bc0e599..0000000000
--- a/docs/NestedModuleTypeRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedModuleTypeRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Model** | **string** | |
-
-## Methods
-
-### NewNestedModuleTypeRequest
-
-`func NewNestedModuleTypeRequest(model string, ) *NestedModuleTypeRequest`
-
-NewNestedModuleTypeRequest instantiates a new NestedModuleTypeRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedModuleTypeRequestWithDefaults
-
-`func NewNestedModuleTypeRequestWithDefaults() *NestedModuleTypeRequest`
-
-NewNestedModuleTypeRequestWithDefaults instantiates a new NestedModuleTypeRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetModel
-
-`func (o *NestedModuleTypeRequest) GetModel() string`
-
-GetModel returns the Model field if non-nil, zero value otherwise.
-
-### GetModelOk
-
-`func (o *NestedModuleTypeRequest) 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 *NestedModuleTypeRequest) SetModel(v string)`
-
-SetModel sets Model 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/NestedPlatform.md b/docs/NestedPlatform.md
deleted file mode 100644
index ac2fc1c6a4..0000000000
--- a/docs/NestedPlatform.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedPlatform
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedPlatform
-
-`func NewNestedPlatform(id int32, url string, display string, name string, slug string, ) *NestedPlatform`
-
-NewNestedPlatform instantiates a new NestedPlatform object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPlatformWithDefaults
-
-`func NewNestedPlatformWithDefaults() *NestedPlatform`
-
-NewNestedPlatformWithDefaults instantiates a new NestedPlatform object
-This 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 *NestedPlatform) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedPlatform) 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 *NestedPlatform) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedPlatform) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedPlatform) 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 *NestedPlatform) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedPlatform) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedPlatform) 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 *NestedPlatform) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedPlatform) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPlatform) 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 *NestedPlatform) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedPlatform) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedPlatform) 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 *NestedPlatform) 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/NestedPlatformRequest.md b/docs/NestedPlatformRequest.md
deleted file mode 100644
index b83b1d8034..0000000000
--- a/docs/NestedPlatformRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedPlatformRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedPlatformRequest
-
-`func NewNestedPlatformRequest(name string, slug string, ) *NestedPlatformRequest`
-
-NewNestedPlatformRequest instantiates a new NestedPlatformRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPlatformRequestWithDefaults
-
-`func NewNestedPlatformRequestWithDefaults() *NestedPlatformRequest`
-
-NewNestedPlatformRequestWithDefaults instantiates a new NestedPlatformRequest object
-This 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 *NestedPlatformRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPlatformRequest) 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 *NestedPlatformRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedPlatformRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedPlatformRequest) 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 *NestedPlatformRequest) 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/NestedPowerPanel.md b/docs/NestedPowerPanel.md
deleted file mode 100644
index 372a257238..0000000000
--- a/docs/NestedPowerPanel.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedPowerPanel
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedPowerPanel
-
-`func NewNestedPowerPanel(id int32, url string, display string, name string, ) *NestedPowerPanel`
-
-NewNestedPowerPanel instantiates a new NestedPowerPanel object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPanelWithDefaults
-
-`func NewNestedPowerPanelWithDefaults() *NestedPowerPanel`
-
-NewNestedPowerPanelWithDefaults instantiates a new NestedPowerPanel object
-This 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 *NestedPowerPanel) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedPowerPanel) 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 *NestedPowerPanel) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedPowerPanel) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedPowerPanel) 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 *NestedPowerPanel) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedPowerPanel) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedPowerPanel) 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 *NestedPowerPanel) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedPowerPanel) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPanel) 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 *NestedPowerPanel) 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/NestedPowerPanelRequest.md b/docs/NestedPowerPanelRequest.md
deleted file mode 100644
index a29e2baab6..0000000000
--- a/docs/NestedPowerPanelRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedPowerPanelRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedPowerPanelRequest
-
-`func NewNestedPowerPanelRequest(name string, ) *NestedPowerPanelRequest`
-
-NewNestedPowerPanelRequest instantiates a new NestedPowerPanelRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPanelRequestWithDefaults
-
-`func NewNestedPowerPanelRequestWithDefaults() *NestedPowerPanelRequest`
-
-NewNestedPowerPanelRequestWithDefaults instantiates a new NestedPowerPanelRequest object
-This 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 *NestedPowerPanelRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPanelRequest) 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 *NestedPowerPanelRequest) 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/NestedPowerPort.md b/docs/NestedPowerPort.md
deleted file mode 100644
index 74fb0a0eb1..0000000000
--- a/docs/NestedPowerPort.md
+++ /dev/null
@@ -1,192 +0,0 @@
-# NestedPowerPort
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | | [readonly]
-**Name** | **string** | |
-**Cable** | Pointer to **NullableInt32** | | [optional]
-**Occupied** | **bool** | | [readonly]
-
-## Methods
-
-### NewNestedPowerPort
-
-`func NewNestedPowerPort(id int32, url string, display string, device NestedDevice, name string, occupied bool, ) *NestedPowerPort`
-
-NewNestedPowerPort instantiates a new NestedPowerPort object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPortWithDefaults
-
-`func NewNestedPowerPortWithDefaults() *NestedPowerPort`
-
-NewNestedPowerPortWithDefaults instantiates a new NestedPowerPort object
-This 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 *NestedPowerPort) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedPowerPort) 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 *NestedPowerPort) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedPowerPort) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedPowerPort) 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 *NestedPowerPort) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedPowerPort) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedPowerPort) 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 *NestedPowerPort) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetDevice
-
-`func (o *NestedPowerPort) GetDevice() NestedDevice`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *NestedPowerPort) GetDeviceOk() (*NestedDevice, 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 *NestedPowerPort) SetDevice(v NestedDevice)`
-
-SetDevice sets Device field to given value.
-
-
-### GetName
-
-`func (o *NestedPowerPort) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPort) 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 *NestedPowerPort) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetCable
-
-`func (o *NestedPowerPort) GetCable() int32`
-
-GetCable returns the Cable field if non-nil, zero value otherwise.
-
-### GetCableOk
-
-`func (o *NestedPowerPort) GetCableOk() (*int32, 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 *NestedPowerPort) SetCable(v int32)`
-
-SetCable sets Cable field to given value.
-
-### HasCable
-
-`func (o *NestedPowerPort) HasCable() bool`
-
-HasCable returns a boolean if a field has been set.
-
-### SetCableNil
-
-`func (o *NestedPowerPort) SetCableNil(b bool)`
-
- SetCableNil sets the value for Cable to be an explicit nil
-
-### UnsetCable
-`func (o *NestedPowerPort) UnsetCable()`
-
-UnsetCable ensures that no value is present for Cable, not even an explicit nil
-### GetOccupied
-
-`func (o *NestedPowerPort) GetOccupied() bool`
-
-GetOccupied returns the Occupied field if non-nil, zero value otherwise.
-
-### GetOccupiedOk
-
-`func (o *NestedPowerPort) 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 *NestedPowerPort) 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/NestedPowerPortRequest.md b/docs/NestedPowerPortRequest.md
deleted file mode 100644
index 9e62428339..0000000000
--- a/docs/NestedPowerPortRequest.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# NestedPowerPortRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Cable** | Pointer to **NullableInt32** | | [optional]
-
-## Methods
-
-### NewNestedPowerPortRequest
-
-`func NewNestedPowerPortRequest(name string, ) *NestedPowerPortRequest`
-
-NewNestedPowerPortRequest instantiates a new NestedPowerPortRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPortRequestWithDefaults
-
-`func NewNestedPowerPortRequestWithDefaults() *NestedPowerPortRequest`
-
-NewNestedPowerPortRequestWithDefaults instantiates a new NestedPowerPortRequest object
-This 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 *NestedPowerPortRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPortRequest) 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 *NestedPowerPortRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetCable
-
-`func (o *NestedPowerPortRequest) GetCable() int32`
-
-GetCable returns the Cable field if non-nil, zero value otherwise.
-
-### GetCableOk
-
-`func (o *NestedPowerPortRequest) GetCableOk() (*int32, 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 *NestedPowerPortRequest) SetCable(v int32)`
-
-SetCable sets Cable field to given value.
-
-### HasCable
-
-`func (o *NestedPowerPortRequest) HasCable() bool`
-
-HasCable returns a boolean if a field has been set.
-
-### SetCableNil
-
-`func (o *NestedPowerPortRequest) SetCableNil(b bool)`
-
- SetCableNil sets the value for Cable to be an explicit nil
-
-### UnsetCable
-`func (o *NestedPowerPortRequest) UnsetCable()`
-
-UnsetCable ensures that no value is present for Cable, 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/NestedPowerPortTemplate.md b/docs/NestedPowerPortTemplate.md
deleted file mode 100644
index 670641925c..0000000000
--- a/docs/NestedPowerPortTemplate.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedPowerPortTemplate
-
-## 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. |
-
-## Methods
-
-### NewNestedPowerPortTemplate
-
-`func NewNestedPowerPortTemplate(id int32, url string, display string, name string, ) *NestedPowerPortTemplate`
-
-NewNestedPowerPortTemplate instantiates a new NestedPowerPortTemplate object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPortTemplateWithDefaults
-
-`func NewNestedPowerPortTemplateWithDefaults() *NestedPowerPortTemplate`
-
-NewNestedPowerPortTemplateWithDefaults instantiates a new NestedPowerPortTemplate object
-This 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 *NestedPowerPortTemplate) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedPowerPortTemplate) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedPowerPortTemplate) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedPowerPortTemplate) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) 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/NestedPowerPortTemplateRequest.md b/docs/NestedPowerPortTemplateRequest.md
deleted file mode 100644
index 32768e37f9..0000000000
--- a/docs/NestedPowerPortTemplateRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedPowerPortTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-
-## Methods
-
-### NewNestedPowerPortTemplateRequest
-
-`func NewNestedPowerPortTemplateRequest(name string, ) *NestedPowerPortTemplateRequest`
-
-NewNestedPowerPortTemplateRequest instantiates a new NestedPowerPortTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedPowerPortTemplateRequestWithDefaults
-
-`func NewNestedPowerPortTemplateRequestWithDefaults() *NestedPowerPortTemplateRequest`
-
-NewNestedPowerPortTemplateRequestWithDefaults instantiates a new NestedPowerPortTemplateRequest object
-This 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 *NestedPowerPortTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedPowerPortTemplateRequest) 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 *NestedPowerPortTemplateRequest) 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/NestedProvider.md b/docs/NestedProvider.md
deleted file mode 100644
index d9891262a2..0000000000
--- a/docs/NestedProvider.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedProvider
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | Full name of the provider |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedProvider
-
-`func NewNestedProvider(id int32, url string, display string, name string, slug string, ) *NestedProvider`
-
-NewNestedProvider instantiates a new NestedProvider object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedProviderWithDefaults
-
-`func NewNestedProviderWithDefaults() *NestedProvider`
-
-NewNestedProviderWithDefaults instantiates a new NestedProvider object
-This 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 *NestedProvider) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedProvider) 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 *NestedProvider) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedProvider) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedProvider) 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 *NestedProvider) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedProvider) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedProvider) 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 *NestedProvider) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedProvider) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedProvider) 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 *NestedProvider) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedProvider) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedProvider) 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 *NestedProvider) 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/NestedProviderAccount.md b/docs/NestedProviderAccount.md
deleted file mode 100644
index e76d3ad030..0000000000
--- a/docs/NestedProviderAccount.md
+++ /dev/null
@@ -1,140 +0,0 @@
-# NestedProviderAccount
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [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.
-
-
-### 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/NestedProviderAccountRequest.md b/docs/NestedProviderAccountRequest.md
deleted file mode 100644
index cf183e3d7a..0000000000
--- a/docs/NestedProviderAccountRequest.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# NestedProviderAccountRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | Pointer to **string** | | [optional]
-**Account** | **string** | |
-
-## Methods
-
-### NewNestedProviderAccountRequest
-
-`func NewNestedProviderAccountRequest(account string, ) *NestedProviderAccountRequest`
-
-NewNestedProviderAccountRequest instantiates a new NestedProviderAccountRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedProviderAccountRequestWithDefaults
-
-`func NewNestedProviderAccountRequestWithDefaults() *NestedProviderAccountRequest`
-
-NewNestedProviderAccountRequestWithDefaults instantiates a new NestedProviderAccountRequest object
-This 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 *NestedProviderAccountRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *NestedProviderAccountRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetAccount
-
-`func (o *NestedProviderAccountRequest) GetAccount() string`
-
-GetAccount returns the Account field if non-nil, zero value otherwise.
-
-### GetAccountOk
-
-`func (o *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) 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/NestedProviderNetwork.md b/docs/NestedProviderNetwork.md
deleted file mode 100644
index bec4ad71d6..0000000000
--- a/docs/NestedProviderNetwork.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedProviderNetwork
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedProviderNetwork
-
-`func NewNestedProviderNetwork(id int32, url string, display string, name string, ) *NestedProviderNetwork`
-
-NewNestedProviderNetwork instantiates a new NestedProviderNetwork object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedProviderNetworkWithDefaults
-
-`func NewNestedProviderNetworkWithDefaults() *NestedProviderNetwork`
-
-NewNestedProviderNetworkWithDefaults instantiates a new NestedProviderNetwork object
-This 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 *NestedProviderNetwork) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedProviderNetwork) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedProviderNetwork) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedProviderNetwork) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) 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/NestedProviderNetworkRequest.md b/docs/NestedProviderNetworkRequest.md
deleted file mode 100644
index b44b47fdf4..0000000000
--- a/docs/NestedProviderNetworkRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedProviderNetworkRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedProviderNetworkRequest
-
-`func NewNestedProviderNetworkRequest(name string, ) *NestedProviderNetworkRequest`
-
-NewNestedProviderNetworkRequest instantiates a new NestedProviderNetworkRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedProviderNetworkRequestWithDefaults
-
-`func NewNestedProviderNetworkRequestWithDefaults() *NestedProviderNetworkRequest`
-
-NewNestedProviderNetworkRequestWithDefaults instantiates a new NestedProviderNetworkRequest object
-This 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 *NestedProviderNetworkRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedProviderNetworkRequest) 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 *NestedProviderNetworkRequest) 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/NestedProviderRequest.md b/docs/NestedProviderRequest.md
deleted file mode 100644
index ee5999307c..0000000000
--- a/docs/NestedProviderRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedProviderRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | Full name of the provider |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedProviderRequest
-
-`func NewNestedProviderRequest(name string, slug string, ) *NestedProviderRequest`
-
-NewNestedProviderRequest instantiates a new NestedProviderRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedProviderRequestWithDefaults
-
-`func NewNestedProviderRequestWithDefaults() *NestedProviderRequest`
-
-NewNestedProviderRequestWithDefaults instantiates a new NestedProviderRequest object
-This 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 *NestedProviderRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedProviderRequest) 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 *NestedProviderRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedProviderRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedProviderRequest) 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 *NestedProviderRequest) 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/NestedRIR.md b/docs/NestedRIR.md
deleted file mode 100644
index d7f23b54cf..0000000000
--- a/docs/NestedRIR.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedRIR
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedRIR
-
-`func NewNestedRIR(id int32, url string, display string, name string, slug string, ) *NestedRIR`
-
-NewNestedRIR instantiates a new NestedRIR object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRIRWithDefaults
-
-`func NewNestedRIRWithDefaults() *NestedRIR`
-
-NewNestedRIRWithDefaults instantiates a new NestedRIR object
-This 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 *NestedRIR) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedRIR) 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 *NestedRIR) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedRIR) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedRIR) 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 *NestedRIR) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedRIR) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedRIR) 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 *NestedRIR) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedRIR) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRIR) 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 *NestedRIR) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedRIR) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedRIR) 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 *NestedRIR) 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/NestedRIRRequest.md b/docs/NestedRIRRequest.md
deleted file mode 100644
index cbb72abfc0..0000000000
--- a/docs/NestedRIRRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedRIRRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedRIRRequest
-
-`func NewNestedRIRRequest(name string, slug string, ) *NestedRIRRequest`
-
-NewNestedRIRRequest instantiates a new NestedRIRRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRIRRequestWithDefaults
-
-`func NewNestedRIRRequestWithDefaults() *NestedRIRRequest`
-
-NewNestedRIRRequestWithDefaults instantiates a new NestedRIRRequest object
-This 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 *NestedRIRRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRIRRequest) 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 *NestedRIRRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedRIRRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedRIRRequest) 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 *NestedRIRRequest) 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/NestedRackRequest.md b/docs/NestedRackRequest.md
deleted file mode 100644
index 9f72ed2c5b..0000000000
--- a/docs/NestedRackRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedRackRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedRackRequest
-
-`func NewNestedRackRequest(name string, ) *NestedRackRequest`
-
-NewNestedRackRequest instantiates a new NestedRackRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRackRequestWithDefaults
-
-`func NewNestedRackRequestWithDefaults() *NestedRackRequest`
-
-NewNestedRackRequestWithDefaults instantiates a new NestedRackRequest object
-This 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 *NestedRackRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRackRequest) 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 *NestedRackRequest) 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/NestedRackRoleRequest.md b/docs/NestedRackRoleRequest.md
deleted file mode 100644
index e1b6f61509..0000000000
--- a/docs/NestedRackRoleRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedRackRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedRackRoleRequest
-
-`func NewNestedRackRoleRequest(name string, slug string, ) *NestedRackRoleRequest`
-
-NewNestedRackRoleRequest instantiates a new NestedRackRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRackRoleRequestWithDefaults
-
-`func NewNestedRackRoleRequestWithDefaults() *NestedRackRoleRequest`
-
-NewNestedRackRoleRequestWithDefaults instantiates a new NestedRackRoleRequest object
-This 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 *NestedRackRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRackRoleRequest) 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 *NestedRackRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedRackRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedRackRoleRequest) 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 *NestedRackRoleRequest) 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/NestedRearPortTemplate.md b/docs/NestedRearPortTemplate.md
deleted file mode 100644
index e038846ef8..0000000000
--- a/docs/NestedRearPortTemplate.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedRearPortTemplate
-
-## 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. |
-
-## Methods
-
-### NewNestedRearPortTemplate
-
-`func NewNestedRearPortTemplate(id int32, url string, display string, name string, ) *NestedRearPortTemplate`
-
-NewNestedRearPortTemplate instantiates a new NestedRearPortTemplate object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRearPortTemplateWithDefaults
-
-`func NewNestedRearPortTemplateWithDefaults() *NestedRearPortTemplate`
-
-NewNestedRearPortTemplateWithDefaults instantiates a new NestedRearPortTemplate object
-This 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 *NestedRearPortTemplate) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedRearPortTemplate) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedRearPortTemplate) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedRearPortTemplate) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) 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/NestedRearPortTemplateRequest.md b/docs/NestedRearPortTemplateRequest.md
deleted file mode 100644
index 0b872826a8..0000000000
--- a/docs/NestedRearPortTemplateRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedRearPortTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-
-## Methods
-
-### NewNestedRearPortTemplateRequest
-
-`func NewNestedRearPortTemplateRequest(name string, ) *NestedRearPortTemplateRequest`
-
-NewNestedRearPortTemplateRequest instantiates a new NestedRearPortTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRearPortTemplateRequestWithDefaults
-
-`func NewNestedRearPortTemplateRequestWithDefaults() *NestedRearPortTemplateRequest`
-
-NewNestedRearPortTemplateRequestWithDefaults instantiates a new NestedRearPortTemplateRequest object
-This 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 *NestedRearPortTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRearPortTemplateRequest) 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 *NestedRearPortTemplateRequest) 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/NestedRole.md b/docs/NestedRole.md
deleted file mode 100644
index 0464490b7f..0000000000
--- a/docs/NestedRole.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedRole
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedRole
-
-`func NewNestedRole(id int32, url string, display string, name string, slug string, ) *NestedRole`
-
-NewNestedRole instantiates a new NestedRole object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRoleWithDefaults
-
-`func NewNestedRoleWithDefaults() *NestedRole`
-
-NewNestedRoleWithDefaults instantiates a new NestedRole object
-This 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 *NestedRole) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedRole) 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 *NestedRole) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedRole) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedRole) 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 *NestedRole) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedRole) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedRole) 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 *NestedRole) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedRole) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRole) 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 *NestedRole) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedRole) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedRole) 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 *NestedRole) 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/NestedRoleRequest.md b/docs/NestedRoleRequest.md
deleted file mode 100644
index c7e16f5dd6..0000000000
--- a/docs/NestedRoleRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedRoleRequest
-
-`func NewNestedRoleRequest(name string, slug string, ) *NestedRoleRequest`
-
-NewNestedRoleRequest instantiates a new NestedRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedRoleRequestWithDefaults
-
-`func NewNestedRoleRequestWithDefaults() *NestedRoleRequest`
-
-NewNestedRoleRequestWithDefaults instantiates a new NestedRoleRequest object
-This 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 *NestedRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedRoleRequest) 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 *NestedRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedRoleRequest) 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 *NestedRoleRequest) 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/NestedSite.md b/docs/NestedSite.md
deleted file mode 100644
index 55e1d3162b..0000000000
--- a/docs/NestedSite.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedSite
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | Full name of the site |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedSite
-
-`func NewNestedSite(id int32, url string, display string, name string, slug string, ) *NestedSite`
-
-NewNestedSite instantiates a new NestedSite object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedSiteWithDefaults
-
-`func NewNestedSiteWithDefaults() *NestedSite`
-
-NewNestedSiteWithDefaults instantiates a new NestedSite object
-This 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 *NestedSite) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedSite) 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 *NestedSite) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedSite) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedSite) 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 *NestedSite) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedSite) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedSite) 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 *NestedSite) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedSite) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedSite) 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 *NestedSite) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedSite) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedSite) 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 *NestedSite) 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/NestedSiteRequest.md b/docs/NestedSiteRequest.md
deleted file mode 100644
index d827f49e6f..0000000000
--- a/docs/NestedSiteRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedSiteRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | Full name of the site |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedSiteRequest
-
-`func NewNestedSiteRequest(name string, slug string, ) *NestedSiteRequest`
-
-NewNestedSiteRequest instantiates a new NestedSiteRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedSiteRequestWithDefaults
-
-`func NewNestedSiteRequestWithDefaults() *NestedSiteRequest`
-
-NewNestedSiteRequestWithDefaults instantiates a new NestedSiteRequest object
-This 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 *NestedSiteRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedSiteRequest) 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 *NestedSiteRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedSiteRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedSiteRequest) 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 *NestedSiteRequest) 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/NestedTenant.md b/docs/NestedTenant.md
deleted file mode 100644
index deb64e0f2a..0000000000
--- a/docs/NestedTenant.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedTenant
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedTenant
-
-`func NewNestedTenant(id int32, url string, display string, name string, slug string, ) *NestedTenant`
-
-NewNestedTenant instantiates a new NestedTenant object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTenantWithDefaults
-
-`func NewNestedTenantWithDefaults() *NestedTenant`
-
-NewNestedTenantWithDefaults instantiates a new NestedTenant object
-This 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 *NestedTenant) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedTenant) 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 *NestedTenant) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedTenant) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedTenant) 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 *NestedTenant) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedTenant) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedTenant) 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 *NestedTenant) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedTenant) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTenant) 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 *NestedTenant) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedTenant) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedTenant) 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 *NestedTenant) 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/NestedTenantRequest.md b/docs/NestedTenantRequest.md
deleted file mode 100644
index e474f4c3e5..0000000000
--- a/docs/NestedTenantRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedTenantRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedTenantRequest
-
-`func NewNestedTenantRequest(name string, slug string, ) *NestedTenantRequest`
-
-NewNestedTenantRequest instantiates a new NestedTenantRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTenantRequestWithDefaults
-
-`func NewNestedTenantRequestWithDefaults() *NestedTenantRequest`
-
-NewNestedTenantRequestWithDefaults instantiates a new NestedTenantRequest object
-This 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 *NestedTenantRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTenantRequest) 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 *NestedTenantRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedTenantRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedTenantRequest) 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 *NestedTenantRequest) 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/NestedTunnel.md b/docs/NestedTunnel.md
deleted file mode 100644
index 95004b61ee..0000000000
--- a/docs/NestedTunnel.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# NestedTunnel
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedTunnel
-
-`func NewNestedTunnel(id int32, url string, display string, name string, ) *NestedTunnel`
-
-NewNestedTunnel instantiates a new NestedTunnel object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTunnelWithDefaults
-
-`func NewNestedTunnelWithDefaults() *NestedTunnel`
-
-NewNestedTunnelWithDefaults instantiates a new NestedTunnel object
-This 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 *NestedTunnel) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedTunnel) 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 *NestedTunnel) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedTunnel) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedTunnel) 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 *NestedTunnel) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedTunnel) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedTunnel) 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 *NestedTunnel) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedTunnel) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTunnel) 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 *NestedTunnel) 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/NestedTunnelGroup.md b/docs/NestedTunnelGroup.md
deleted file mode 100644
index db336dbf46..0000000000
--- a/docs/NestedTunnelGroup.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedTunnelGroup
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedTunnelGroup
-
-`func NewNestedTunnelGroup(id int32, url string, display string, name string, slug string, ) *NestedTunnelGroup`
-
-NewNestedTunnelGroup instantiates a new NestedTunnelGroup object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTunnelGroupWithDefaults
-
-`func NewNestedTunnelGroupWithDefaults() *NestedTunnelGroup`
-
-NewNestedTunnelGroupWithDefaults instantiates a new NestedTunnelGroup object
-This 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 *NestedTunnelGroup) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedTunnelGroup) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedTunnelGroup) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedTunnelGroup) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedTunnelGroup) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) 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/NestedTunnelGroupRequest.md b/docs/NestedTunnelGroupRequest.md
deleted file mode 100644
index 8012588f60..0000000000
--- a/docs/NestedTunnelGroupRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedTunnelGroupRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedTunnelGroupRequest
-
-`func NewNestedTunnelGroupRequest(name string, slug string, ) *NestedTunnelGroupRequest`
-
-NewNestedTunnelGroupRequest instantiates a new NestedTunnelGroupRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTunnelGroupRequestWithDefaults
-
-`func NewNestedTunnelGroupRequestWithDefaults() *NestedTunnelGroupRequest`
-
-NewNestedTunnelGroupRequestWithDefaults instantiates a new NestedTunnelGroupRequest object
-This 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 *NestedTunnelGroupRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTunnelGroupRequest) 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 *NestedTunnelGroupRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedTunnelGroupRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedTunnelGroupRequest) 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 *NestedTunnelGroupRequest) 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/NestedTunnelRequest.md b/docs/NestedTunnelRequest.md
deleted file mode 100644
index 889ececbf5..0000000000
--- a/docs/NestedTunnelRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedTunnelRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-
-## Methods
-
-### NewNestedTunnelRequest
-
-`func NewNestedTunnelRequest(name string, ) *NestedTunnelRequest`
-
-NewNestedTunnelRequest instantiates a new NestedTunnelRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedTunnelRequestWithDefaults
-
-`func NewNestedTunnelRequestWithDefaults() *NestedTunnelRequest`
-
-NewNestedTunnelRequestWithDefaults instantiates a new NestedTunnelRequest object
-This 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 *NestedTunnelRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedTunnelRequest) 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 *NestedTunnelRequest) 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/NestedUserRequest.md b/docs/NestedUserRequest.md
deleted file mode 100644
index 1a04d3a12e..0000000000
--- a/docs/NestedUserRequest.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# NestedUserRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. |
-
-## Methods
-
-### NewNestedUserRequest
-
-`func NewNestedUserRequest(username string, ) *NestedUserRequest`
-
-NewNestedUserRequest instantiates a new NestedUserRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedUserRequestWithDefaults
-
-`func NewNestedUserRequestWithDefaults() *NestedUserRequest`
-
-NewNestedUserRequestWithDefaults instantiates a new NestedUserRequest object
-This 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 *NestedUserRequest) GetUsername() string`
-
-GetUsername returns the Username field if non-nil, zero value otherwise.
-
-### GetUsernameOk
-
-`func (o *NestedUserRequest) 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 *NestedUserRequest) 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/NestedVLAN.md b/docs/NestedVLAN.md
deleted file mode 100644
index e5042682c6..0000000000
--- a/docs/NestedVLAN.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedVLAN
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Vid** | **int32** | Numeric VLAN ID (1-4094) |
-**Name** | **string** | |
-
-## 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.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NestedVLANGroup.md b/docs/NestedVLANGroup.md
deleted file mode 100644
index 09481a3784..0000000000
--- a/docs/NestedVLANGroup.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedVLANGroup
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedVLANGroup
-
-`func NewNestedVLANGroup(id int32, url string, display string, name string, slug string, ) *NestedVLANGroup`
-
-NewNestedVLANGroup instantiates a new NestedVLANGroup object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVLANGroupWithDefaults
-
-`func NewNestedVLANGroupWithDefaults() *NestedVLANGroup`
-
-NewNestedVLANGroupWithDefaults instantiates a new NestedVLANGroup object
-This 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 *NestedVLANGroup) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedVLANGroup) 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 *NestedVLANGroup) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedVLANGroup) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedVLANGroup) 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 *NestedVLANGroup) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedVLANGroup) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedVLANGroup) 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 *NestedVLANGroup) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedVLANGroup) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVLANGroup) 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 *NestedVLANGroup) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedVLANGroup) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedVLANGroup) 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 *NestedVLANGroup) 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/NestedVLANGroupRequest.md b/docs/NestedVLANGroupRequest.md
deleted file mode 100644
index a3b9deb279..0000000000
--- a/docs/NestedVLANGroupRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedVLANGroupRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-
-## Methods
-
-### NewNestedVLANGroupRequest
-
-`func NewNestedVLANGroupRequest(name string, slug string, ) *NestedVLANGroupRequest`
-
-NewNestedVLANGroupRequest instantiates a new NestedVLANGroupRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVLANGroupRequestWithDefaults
-
-`func NewNestedVLANGroupRequestWithDefaults() *NestedVLANGroupRequest`
-
-NewNestedVLANGroupRequestWithDefaults instantiates a new NestedVLANGroupRequest object
-This 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 *NestedVLANGroupRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVLANGroupRequest) 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 *NestedVLANGroupRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *NestedVLANGroupRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *NestedVLANGroupRequest) 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 *NestedVLANGroupRequest) 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/NestedVLANRequest.md b/docs/NestedVLANRequest.md
deleted file mode 100644
index ea2cd377a5..0000000000
--- a/docs/NestedVLANRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedVLANRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Vid** | **int32** | Numeric VLAN ID (1-4094) |
-**Name** | **string** | |
-
-## 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.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NestedVRF.md b/docs/NestedVRF.md
deleted file mode 100644
index 6454bec05d..0000000000
--- a/docs/NestedVRF.md
+++ /dev/null
@@ -1,150 +0,0 @@
-# NestedVRF
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional]
-
-## Methods
-
-### NewNestedVRF
-
-`func NewNestedVRF(id int32, url string, display string, name string, ) *NestedVRF`
-
-NewNestedVRF instantiates a new NestedVRF object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVRFWithDefaults
-
-`func NewNestedVRFWithDefaults() *NestedVRF`
-
-NewNestedVRFWithDefaults instantiates a new NestedVRF object
-This 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 *NestedVRF) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedVRF) 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 *NestedVRF) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedVRF) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedVRF) 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 *NestedVRF) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedVRF) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedVRF) 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 *NestedVRF) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedVRF) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVRF) 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 *NestedVRF) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetRd
-
-`func (o *NestedVRF) GetRd() string`
-
-GetRd returns the Rd field if non-nil, zero value otherwise.
-
-### GetRdOk
-
-`func (o *NestedVRF) GetRdOk() (*string, bool)`
-
-GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRd
-
-`func (o *NestedVRF) SetRd(v string)`
-
-SetRd sets Rd field to given value.
-
-### HasRd
-
-`func (o *NestedVRF) HasRd() bool`
-
-HasRd returns a boolean if a field has been set.
-
-### SetRdNil
-
-`func (o *NestedVRF) SetRdNil(b bool)`
-
- SetRdNil sets the value for Rd to be an explicit nil
-
-### UnsetRd
-`func (o *NestedVRF) UnsetRd()`
-
-UnsetRd ensures that no value is present for Rd, 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/NestedVRFRequest.md b/docs/NestedVRFRequest.md
deleted file mode 100644
index 26572a1787..0000000000
--- a/docs/NestedVRFRequest.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# NestedVRFRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional]
-
-## Methods
-
-### NewNestedVRFRequest
-
-`func NewNestedVRFRequest(name string, ) *NestedVRFRequest`
-
-NewNestedVRFRequest instantiates a new NestedVRFRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVRFRequestWithDefaults
-
-`func NewNestedVRFRequestWithDefaults() *NestedVRFRequest`
-
-NewNestedVRFRequestWithDefaults instantiates a new NestedVRFRequest object
-This 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 *NestedVRFRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVRFRequest) 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 *NestedVRFRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetRd
-
-`func (o *NestedVRFRequest) GetRd() string`
-
-GetRd returns the Rd field if non-nil, zero value otherwise.
-
-### GetRdOk
-
-`func (o *NestedVRFRequest) GetRdOk() (*string, bool)`
-
-GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRd
-
-`func (o *NestedVRFRequest) SetRd(v string)`
-
-SetRd sets Rd field to given value.
-
-### HasRd
-
-`func (o *NestedVRFRequest) HasRd() bool`
-
-HasRd returns a boolean if a field has been set.
-
-### SetRdNil
-
-`func (o *NestedVRFRequest) SetRdNil(b bool)`
-
- SetRdNil sets the value for Rd to be an explicit nil
-
-### UnsetRd
-`func (o *NestedVRFRequest) UnsetRd()`
-
-UnsetRd ensures that no value is present for Rd, 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/NestedVirtualChassis.md b/docs/NestedVirtualChassis.md
deleted file mode 100644
index 6c1719cad9..0000000000
--- a/docs/NestedVirtualChassis.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# NestedVirtualChassis
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [readonly]
-**Display** | **string** | | [readonly]
-**Name** | **string** | |
-**Master** | [**NestedDevice**](NestedDevice.md) | |
-
-## Methods
-
-### NewNestedVirtualChassis
-
-`func NewNestedVirtualChassis(id int32, url string, display string, name string, master NestedDevice, ) *NestedVirtualChassis`
-
-NewNestedVirtualChassis instantiates a new NestedVirtualChassis object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVirtualChassisWithDefaults
-
-`func NewNestedVirtualChassisWithDefaults() *NestedVirtualChassis`
-
-NewNestedVirtualChassisWithDefaults instantiates a new NestedVirtualChassis object
-This 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 *NestedVirtualChassis) GetId() int32`
-
-GetId returns the Id field if non-nil, zero value otherwise.
-
-### GetIdOk
-
-`func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) SetId(v int32)`
-
-SetId sets Id field to given value.
-
-
-### GetUrl
-
-`func (o *NestedVirtualChassis) GetUrl() string`
-
-GetUrl returns the Url field if non-nil, zero value otherwise.
-
-### GetUrlOk
-
-`func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) SetUrl(v string)`
-
-SetUrl sets Url field to given value.
-
-
-### GetDisplay
-
-`func (o *NestedVirtualChassis) GetDisplay() string`
-
-GetDisplay returns the Display field if non-nil, zero value otherwise.
-
-### GetDisplayOk
-
-`func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) SetDisplay(v string)`
-
-SetDisplay sets Display field to given value.
-
-
-### GetName
-
-`func (o *NestedVirtualChassis) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetMaster
-
-`func (o *NestedVirtualChassis) GetMaster() NestedDevice`
-
-GetMaster returns the Master field if non-nil, zero value otherwise.
-
-### GetMasterOk
-
-`func (o *NestedVirtualChassis) GetMasterOk() (*NestedDevice, bool)`
-
-GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetMaster
-
-`func (o *NestedVirtualChassis) SetMaster(v NestedDevice)`
-
-SetMaster sets Master 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/NestedVirtualChassisRequest.md b/docs/NestedVirtualChassisRequest.md
deleted file mode 100644
index 0ace4401bd..0000000000
--- a/docs/NestedVirtualChassisRequest.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# NestedVirtualChassisRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Master** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-
-## Methods
-
-### NewNestedVirtualChassisRequest
-
-`func NewNestedVirtualChassisRequest(name string, master NestedDeviceRequest, ) *NestedVirtualChassisRequest`
-
-NewNestedVirtualChassisRequest instantiates a new NestedVirtualChassisRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewNestedVirtualChassisRequestWithDefaults
-
-`func NewNestedVirtualChassisRequestWithDefaults() *NestedVirtualChassisRequest`
-
-NewNestedVirtualChassisRequestWithDefaults instantiates a new NestedVirtualChassisRequest object
-This 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 *NestedVirtualChassisRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *NestedVirtualChassisRequest) 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 *NestedVirtualChassisRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetMaster
-
-`func (o *NestedVirtualChassisRequest) GetMaster() NestedDeviceRequest`
-
-GetMaster returns the Master field if non-nil, zero value otherwise.
-
-### GetMasterOk
-
-`func (o *NestedVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool)`
-
-GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetMaster
-
-`func (o *NestedVirtualChassisRequest) SetMaster(v NestedDeviceRequest)`
-
-SetMaster sets Master 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/NestedWirelessLANGroup.md b/docs/NestedWirelessLANGroup.md
deleted file mode 100644
index d7239e89f4..0000000000
--- a/docs/NestedWirelessLANGroup.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# NestedWirelessLANGroup
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **int32** | | [readonly]
-**Url** | **string** | | [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.
-
-
-### 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/ObjectChange.md b/docs/ObjectChange.md
index 005c506e08..574ef3fe50 100644
--- a/docs/ObjectChange.md
+++ b/docs/ObjectChange.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Time** | **time.Time** | | [readonly]
-**User** | [**NestedUser**](NestedUser.md) | | [readonly]
+**User** | [**User**](User.md) | | [readonly]
**UserName** | **string** | | [readonly]
**RequestId** | **string** | | [readonly]
**Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | |
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewObjectChange
-`func NewObjectChange(id int32, url string, display string, time time.Time, user NestedUser, 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 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,
@@ -119,20 +119,20 @@ SetTime sets Time field to given value.
### GetUser
-`func (o *ObjectChange) GetUser() NestedUser`
+`func (o *ObjectChange) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *ObjectChange) GetUserOk() (*NestedUser, bool)`
+`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 NestedUser)`
+`func (o *ObjectChange) SetUser(v User)`
SetUser sets User field to given value.
diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md
index c75369cb84..fec4199e46 100644
--- a/docs/ObjectPermission.md
+++ b/docs/ObjectPermission.md
@@ -11,10 +11,10 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**ObjectTypes** | **[]string** | |
-**Groups** | Pointer to **[]int32** | | [optional]
-**Users** | Pointer to **[]int32** | | [optional]
**Actions** | **[]string** | The list of actions granted by this permission |
**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Groups** | Pointer to [**[]NestedGroup**](NestedGroup.md) | | [optional]
+**Users** | Pointer to [**[]NestedUser**](NestedUser.md) | | [optional]
## Methods
@@ -185,56 +185,6 @@ and a boolean to check if the value has been set.
SetObjectTypes sets ObjectTypes field to given value.
-### GetGroups
-
-`func (o *ObjectPermission) GetGroups() []int32`
-
-GetGroups returns the Groups field if non-nil, zero value otherwise.
-
-### GetGroupsOk
-
-`func (o *ObjectPermission) 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 *ObjectPermission) SetGroups(v []int32)`
-
-SetGroups sets Groups field to given value.
-
-### HasGroups
-
-`func (o *ObjectPermission) HasGroups() bool`
-
-HasGroups returns a boolean if a field has been set.
-
-### GetUsers
-
-`func (o *ObjectPermission) GetUsers() []int32`
-
-GetUsers returns the Users field if non-nil, zero value otherwise.
-
-### GetUsersOk
-
-`func (o *ObjectPermission) 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 *ObjectPermission) SetUsers(v []int32)`
-
-SetUsers sets Users field to given value.
-
-### HasUsers
-
-`func (o *ObjectPermission) HasUsers() bool`
-
-HasUsers returns a boolean if a field has been set.
-
### GetActions
`func (o *ObjectPermission) GetActions() []string`
@@ -290,6 +240,56 @@ HasConstraints returns a boolean if a field has been set.
`func (o *ObjectPermission) UnsetConstraints()`
UnsetConstraints ensures that no value is present for Constraints, not even an explicit nil
+### GetGroups
+
+`func (o *ObjectPermission) GetGroups() []NestedGroup`
+
+GetGroups returns the Groups field if non-nil, zero value otherwise.
+
+### GetGroupsOk
+
+`func (o *ObjectPermission) GetGroupsOk() (*[]NestedGroup, 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 *ObjectPermission) SetGroups(v []NestedGroup)`
+
+SetGroups sets Groups field to given value.
+
+### HasGroups
+
+`func (o *ObjectPermission) HasGroups() bool`
+
+HasGroups returns a boolean if a field has been set.
+
+### GetUsers
+
+`func (o *ObjectPermission) GetUsers() []NestedUser`
+
+GetUsers returns the Users field if non-nil, zero value otherwise.
+
+### GetUsersOk
+
+`func (o *ObjectPermission) GetUsersOk() (*[]NestedUser, 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 *ObjectPermission) SetUsers(v []NestedUser)`
+
+SetUsers sets Users field to given value.
+
+### HasUsers
+
+`func (o *ObjectPermission) 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/ObjectPermissionRequest.md b/docs/ObjectPermissionRequest.md
index 844d8d443f..1b247331f3 100644
--- a/docs/ObjectPermissionRequest.md
+++ b/docs/ObjectPermissionRequest.md
@@ -8,10 +8,10 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**ObjectTypes** | **[]string** | |
-**Groups** | Pointer to **[]int32** | | [optional]
-**Users** | Pointer to **[]int32** | | [optional]
**Actions** | **[]string** | The list of actions granted by this permission |
**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Groups** | Pointer to **[]int32** | | [optional]
+**Users** | Pointer to **[]int32** | | [optional]
## Methods
@@ -122,56 +122,6 @@ and a boolean to check if the value has been set.
SetObjectTypes sets ObjectTypes field to given value.
-### GetGroups
-
-`func (o *ObjectPermissionRequest) GetGroups() []int32`
-
-GetGroups returns the Groups field if non-nil, zero value otherwise.
-
-### GetGroupsOk
-
-`func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetGroups(v []int32)`
-
-SetGroups sets Groups field to given value.
-
-### HasGroups
-
-`func (o *ObjectPermissionRequest) HasGroups() bool`
-
-HasGroups returns a boolean if a field has been set.
-
-### GetUsers
-
-`func (o *ObjectPermissionRequest) GetUsers() []int32`
-
-GetUsers returns the Users field if non-nil, zero value otherwise.
-
-### GetUsersOk
-
-`func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetUsers(v []int32)`
-
-SetUsers sets Users field to given value.
-
-### HasUsers
-
-`func (o *ObjectPermissionRequest) HasUsers() bool`
-
-HasUsers returns a boolean if a field has been set.
-
### GetActions
`func (o *ObjectPermissionRequest) GetActions() []string`
@@ -227,6 +177,56 @@ HasConstraints returns a boolean if a field has been set.
`func (o *ObjectPermissionRequest) UnsetConstraints()`
UnsetConstraints ensures that no value is present for Constraints, not even an explicit nil
+### GetGroups
+
+`func (o *ObjectPermissionRequest) GetGroups() []int32`
+
+GetGroups returns the Groups field if non-nil, zero value otherwise.
+
+### GetGroupsOk
+
+`func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetGroups(v []int32)`
+
+SetGroups sets Groups field to given value.
+
+### HasGroups
+
+`func (o *ObjectPermissionRequest) HasGroups() bool`
+
+HasGroups returns a boolean if a field has been set.
+
+### GetUsers
+
+`func (o *ObjectPermissionRequest) GetUsers() []int32`
+
+GetUsers returns the Users field if non-nil, zero value otherwise.
+
+### GetUsersOk
+
+`func (o *ObjectPermissionRequest) 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 *ObjectPermissionRequest) SetUsers(v []int32)`
+
+SetUsers sets Users field to given value.
+
+### HasUsers
+
+`func (o *ObjectPermissionRequest) 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/ContentType.md b/docs/ObjectType.md
similarity index 69%
rename from docs/ContentType.md
rename to docs/ObjectType.md
index 1fba79d4a6..fe0cc93c18 100644
--- a/docs/ContentType.md
+++ b/docs/ObjectType.md
@@ -1,4 +1,4 @@
-# ContentType
+# ObjectType
## Properties
@@ -12,119 +12,119 @@ Name | Type | Description | Notes
## Methods
-### NewContentType
+### NewObjectType
-`func NewContentType(id int32, url string, display string, appLabel string, model string, ) *ContentType`
+`func NewObjectType(id int32, url string, display string, appLabel string, model string, ) *ObjectType`
-NewContentType instantiates a new ContentType object
+NewObjectType instantiates a new ObjectType object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewContentTypeWithDefaults
+### NewObjectTypeWithDefaults
-`func NewContentTypeWithDefaults() *ContentType`
+`func NewObjectTypeWithDefaults() *ObjectType`
-NewContentTypeWithDefaults instantiates a new ContentType object
+NewObjectTypeWithDefaults instantiates a new ObjectType object
This 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 *ContentType) GetId() int32`
+`func (o *ObjectType) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
-`func (o *ContentType) GetIdOk() (*int32, bool)`
+`func (o *ObjectType) 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 *ContentType) SetId(v int32)`
+`func (o *ObjectType) SetId(v int32)`
SetId sets Id field to given value.
### GetUrl
-`func (o *ContentType) GetUrl() string`
+`func (o *ObjectType) GetUrl() string`
GetUrl returns the Url field if non-nil, zero value otherwise.
### GetUrlOk
-`func (o *ContentType) GetUrlOk() (*string, bool)`
+`func (o *ObjectType) 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 *ContentType) SetUrl(v string)`
+`func (o *ObjectType) SetUrl(v string)`
SetUrl sets Url field to given value.
### GetDisplay
-`func (o *ContentType) GetDisplay() string`
+`func (o *ObjectType) GetDisplay() string`
GetDisplay returns the Display field if non-nil, zero value otherwise.
### GetDisplayOk
-`func (o *ContentType) GetDisplayOk() (*string, bool)`
+`func (o *ObjectType) 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 *ContentType) SetDisplay(v string)`
+`func (o *ObjectType) SetDisplay(v string)`
SetDisplay sets Display field to given value.
### GetAppLabel
-`func (o *ContentType) GetAppLabel() string`
+`func (o *ObjectType) GetAppLabel() string`
GetAppLabel returns the AppLabel field if non-nil, zero value otherwise.
### GetAppLabelOk
-`func (o *ContentType) GetAppLabelOk() (*string, bool)`
+`func (o *ObjectType) GetAppLabelOk() (*string, bool)`
GetAppLabelOk returns a tuple with the AppLabel field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAppLabel
-`func (o *ContentType) SetAppLabel(v string)`
+`func (o *ObjectType) SetAppLabel(v string)`
SetAppLabel sets AppLabel field to given value.
### GetModel
-`func (o *ContentType) GetModel() string`
+`func (o *ObjectType) GetModel() string`
GetModel returns the Model field if non-nil, zero value otherwise.
### GetModelOk
-`func (o *ContentType) GetModelOk() (*string, bool)`
+`func (o *ObjectType) 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 *ContentType) SetModel(v string)`
+`func (o *ObjectType) SetModel(v string)`
SetModel sets Model field to given value.
diff --git a/docs/PaginatedASNList.md b/docs/PaginatedASNList.md
index 81a9f9d2c5..1c1b4ef416 100644
--- a/docs/PaginatedASNList.md
+++ b/docs/PaginatedASNList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ASN**](ASN.md) | | [optional]
+**Results** | [**[]ASN**](ASN.md) | |
## Methods
### NewPaginatedASNList
-`func NewPaginatedASNList() *PaginatedASNList`
+`func NewPaginatedASNList(count int32, results []ASN, ) *PaginatedASNList`
NewPaginatedASNList instantiates a new PaginatedASNList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedASNList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedASNList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedASNRangeList.md b/docs/PaginatedASNRangeList.md
index 61e58a4fd0..84550726fc 100644
--- a/docs/PaginatedASNRangeList.md
+++ b/docs/PaginatedASNRangeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ASNRange**](ASNRange.md) | | [optional]
+**Results** | [**[]ASNRange**](ASNRange.md) | |
## Methods
### NewPaginatedASNRangeList
-`func NewPaginatedASNRangeList() *PaginatedASNRangeList`
+`func NewPaginatedASNRangeList(count int32, results []ASNRange, ) *PaginatedASNRangeList`
NewPaginatedASNRangeList instantiates a new PaginatedASNRangeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedASNRangeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedASNRangeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedAggregateList.md b/docs/PaginatedAggregateList.md
index 7c214cc283..d460fc19f0 100644
--- a/docs/PaginatedAggregateList.md
+++ b/docs/PaginatedAggregateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Aggregate**](Aggregate.md) | | [optional]
+**Results** | [**[]Aggregate**](Aggregate.md) | |
## Methods
### NewPaginatedAggregateList
-`func NewPaginatedAggregateList() *PaginatedAggregateList`
+`func NewPaginatedAggregateList(count int32, results []Aggregate, ) *PaginatedAggregateList`
NewPaginatedAggregateList instantiates a new PaginatedAggregateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedAggregateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedAggregateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedBookmarkList.md b/docs/PaginatedBookmarkList.md
index d77cd07586..9f66271305 100644
--- a/docs/PaginatedBookmarkList.md
+++ b/docs/PaginatedBookmarkList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Bookmark**](Bookmark.md) | | [optional]
+**Results** | [**[]Bookmark**](Bookmark.md) | |
## Methods
### NewPaginatedBookmarkList
-`func NewPaginatedBookmarkList() *PaginatedBookmarkList`
+`func NewPaginatedBookmarkList(count int32, results []Bookmark, ) *PaginatedBookmarkList`
NewPaginatedBookmarkList instantiates a new PaginatedBookmarkList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedBookmarkList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedBookmarkList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCableList.md b/docs/PaginatedCableList.md
index 8cd135739f..4e867038c9 100644
--- a/docs/PaginatedCableList.md
+++ b/docs/PaginatedCableList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Cable**](Cable.md) | | [optional]
+**Results** | [**[]Cable**](Cable.md) | |
## Methods
### NewPaginatedCableList
-`func NewPaginatedCableList() *PaginatedCableList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCableList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCableList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCableTerminationList.md b/docs/PaginatedCableTerminationList.md
index de403477f9..d80b25824a 100644
--- a/docs/PaginatedCableTerminationList.md
+++ b/docs/PaginatedCableTerminationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CableTermination**](CableTermination.md) | | [optional]
+**Results** | [**[]CableTermination**](CableTermination.md) | |
## Methods
### NewPaginatedCableTerminationList
-`func NewPaginatedCableTerminationList() *PaginatedCableTerminationList`
+`func NewPaginatedCableTerminationList(count int32, results []CableTermination, ) *PaginatedCableTerminationList`
NewPaginatedCableTerminationList instantiates a new PaginatedCableTerminationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCableTerminationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCableTerminationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCircuitList.md b/docs/PaginatedCircuitList.md
index 134e6670fc..99a9f3f564 100644
--- a/docs/PaginatedCircuitList.md
+++ b/docs/PaginatedCircuitList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Circuit**](Circuit.md) | | [optional]
+**Results** | [**[]Circuit**](Circuit.md) | |
## Methods
### NewPaginatedCircuitList
-`func NewPaginatedCircuitList() *PaginatedCircuitList`
+`func NewPaginatedCircuitList(count int32, results []Circuit, ) *PaginatedCircuitList`
NewPaginatedCircuitList instantiates a new PaginatedCircuitList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCircuitList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCircuitList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCircuitTerminationList.md b/docs/PaginatedCircuitTerminationList.md
index 8ac85e423b..aea6150f63 100644
--- a/docs/PaginatedCircuitTerminationList.md
+++ b/docs/PaginatedCircuitTerminationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CircuitTermination**](CircuitTermination.md) | | [optional]
+**Results** | [**[]CircuitTermination**](CircuitTermination.md) | |
## Methods
### NewPaginatedCircuitTerminationList
-`func NewPaginatedCircuitTerminationList() *PaginatedCircuitTerminationList`
+`func NewPaginatedCircuitTerminationList(count int32, results []CircuitTermination, ) *PaginatedCircuitTerminationList`
NewPaginatedCircuitTerminationList instantiates a new PaginatedCircuitTerminationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCircuitTerminationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCircuitTerminationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCircuitTypeList.md b/docs/PaginatedCircuitTypeList.md
index 781198ddb0..38340929ea 100644
--- a/docs/PaginatedCircuitTypeList.md
+++ b/docs/PaginatedCircuitTypeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CircuitType**](CircuitType.md) | | [optional]
+**Results** | [**[]CircuitType**](CircuitType.md) | |
## Methods
### NewPaginatedCircuitTypeList
-`func NewPaginatedCircuitTypeList() *PaginatedCircuitTypeList`
+`func NewPaginatedCircuitTypeList(count int32, results []CircuitType, ) *PaginatedCircuitTypeList`
NewPaginatedCircuitTypeList instantiates a new PaginatedCircuitTypeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCircuitTypeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCircuitTypeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedClusterGroupList.md b/docs/PaginatedClusterGroupList.md
index 776af61243..8a0e6fb138 100644
--- a/docs/PaginatedClusterGroupList.md
+++ b/docs/PaginatedClusterGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ClusterGroup**](ClusterGroup.md) | | [optional]
+**Results** | [**[]ClusterGroup**](ClusterGroup.md) | |
## Methods
### NewPaginatedClusterGroupList
-`func NewPaginatedClusterGroupList() *PaginatedClusterGroupList`
+`func NewPaginatedClusterGroupList(count int32, results []ClusterGroup, ) *PaginatedClusterGroupList`
NewPaginatedClusterGroupList instantiates a new PaginatedClusterGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedClusterGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedClusterGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedClusterList.md b/docs/PaginatedClusterList.md
index a9703b8591..9a8655f6a2 100644
--- a/docs/PaginatedClusterList.md
+++ b/docs/PaginatedClusterList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Cluster**](Cluster.md) | | [optional]
+**Results** | [**[]Cluster**](Cluster.md) | |
## Methods
### NewPaginatedClusterList
-`func NewPaginatedClusterList() *PaginatedClusterList`
+`func NewPaginatedClusterList(count int32, results []Cluster, ) *PaginatedClusterList`
NewPaginatedClusterList instantiates a new PaginatedClusterList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedClusterList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedClusterList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedClusterTypeList.md b/docs/PaginatedClusterTypeList.md
index 6dcd73e898..2eaac1d2b0 100644
--- a/docs/PaginatedClusterTypeList.md
+++ b/docs/PaginatedClusterTypeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ClusterType**](ClusterType.md) | | [optional]
+**Results** | [**[]ClusterType**](ClusterType.md) | |
## Methods
### NewPaginatedClusterTypeList
-`func NewPaginatedClusterTypeList() *PaginatedClusterTypeList`
+`func NewPaginatedClusterTypeList(count int32, results []ClusterType, ) *PaginatedClusterTypeList`
NewPaginatedClusterTypeList instantiates a new PaginatedClusterTypeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedClusterTypeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedClusterTypeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConfigContextList.md b/docs/PaginatedConfigContextList.md
index 97cec0a35d..2e3b70d5ce 100644
--- a/docs/PaginatedConfigContextList.md
+++ b/docs/PaginatedConfigContextList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConfigContext**](ConfigContext.md) | | [optional]
+**Results** | [**[]ConfigContext**](ConfigContext.md) | |
## Methods
### NewPaginatedConfigContextList
-`func NewPaginatedConfigContextList() *PaginatedConfigContextList`
+`func NewPaginatedConfigContextList(count int32, results []ConfigContext, ) *PaginatedConfigContextList`
NewPaginatedConfigContextList instantiates a new PaginatedConfigContextList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConfigContextList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConfigContextList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConfigTemplateList.md b/docs/PaginatedConfigTemplateList.md
index fa37ce6ac3..f876311b90 100644
--- a/docs/PaginatedConfigTemplateList.md
+++ b/docs/PaginatedConfigTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConfigTemplate**](ConfigTemplate.md) | | [optional]
+**Results** | [**[]ConfigTemplate**](ConfigTemplate.md) | |
## Methods
### NewPaginatedConfigTemplateList
-`func NewPaginatedConfigTemplateList() *PaginatedConfigTemplateList`
+`func NewPaginatedConfigTemplateList(count int32, results []ConfigTemplate, ) *PaginatedConfigTemplateList`
NewPaginatedConfigTemplateList instantiates a new PaginatedConfigTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConfigTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConfigTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConsolePortList.md b/docs/PaginatedConsolePortList.md
index 62981242d5..9d29d59a90 100644
--- a/docs/PaginatedConsolePortList.md
+++ b/docs/PaginatedConsolePortList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConsolePort**](ConsolePort.md) | | [optional]
+**Results** | [**[]ConsolePort**](ConsolePort.md) | |
## Methods
### NewPaginatedConsolePortList
-`func NewPaginatedConsolePortList() *PaginatedConsolePortList`
+`func NewPaginatedConsolePortList(count int32, results []ConsolePort, ) *PaginatedConsolePortList`
NewPaginatedConsolePortList instantiates a new PaginatedConsolePortList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConsolePortList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConsolePortList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConsolePortTemplateList.md b/docs/PaginatedConsolePortTemplateList.md
index 59fe4e67ee..580b455c7e 100644
--- a/docs/PaginatedConsolePortTemplateList.md
+++ b/docs/PaginatedConsolePortTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConsolePortTemplate**](ConsolePortTemplate.md) | | [optional]
+**Results** | [**[]ConsolePortTemplate**](ConsolePortTemplate.md) | |
## Methods
### NewPaginatedConsolePortTemplateList
-`func NewPaginatedConsolePortTemplateList() *PaginatedConsolePortTemplateList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConsolePortTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConsolePortTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConsoleServerPortList.md b/docs/PaginatedConsoleServerPortList.md
index c40911a036..4fd9bacafb 100644
--- a/docs/PaginatedConsoleServerPortList.md
+++ b/docs/PaginatedConsoleServerPortList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConsoleServerPort**](ConsoleServerPort.md) | | [optional]
+**Results** | [**[]ConsoleServerPort**](ConsoleServerPort.md) | |
## Methods
### NewPaginatedConsoleServerPortList
-`func NewPaginatedConsoleServerPortList() *PaginatedConsoleServerPortList`
+`func NewPaginatedConsoleServerPortList(count int32, results []ConsoleServerPort, ) *PaginatedConsoleServerPortList`
NewPaginatedConsoleServerPortList instantiates a new PaginatedConsoleServerPortList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConsoleServerPortList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConsoleServerPortList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedConsoleServerPortTemplateList.md b/docs/PaginatedConsoleServerPortTemplateList.md
index 56f325bd4d..ff833cbb2d 100644
--- a/docs/PaginatedConsoleServerPortTemplateList.md
+++ b/docs/PaginatedConsoleServerPortTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ConsoleServerPortTemplate**](ConsoleServerPortTemplate.md) | | [optional]
+**Results** | [**[]ConsoleServerPortTemplate**](ConsoleServerPortTemplate.md) | |
## Methods
### NewPaginatedConsoleServerPortTemplateList
-`func NewPaginatedConsoleServerPortTemplateList() *PaginatedConsoleServerPortTemplateList`
+`func NewPaginatedConsoleServerPortTemplateList(count int32, results []ConsoleServerPortTemplate, ) *PaginatedConsoleServerPortTemplateList`
NewPaginatedConsoleServerPortTemplateList instantiates a new PaginatedConsoleServerPortTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedConsoleServerPortTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedConsoleServerPortTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedContactAssignmentList.md b/docs/PaginatedContactAssignmentList.md
index 4b3f1e7c5f..c81fe1f1f1 100644
--- a/docs/PaginatedContactAssignmentList.md
+++ b/docs/PaginatedContactAssignmentList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ContactAssignment**](ContactAssignment.md) | | [optional]
+**Results** | [**[]ContactAssignment**](ContactAssignment.md) | |
## Methods
### NewPaginatedContactAssignmentList
-`func NewPaginatedContactAssignmentList() *PaginatedContactAssignmentList`
+`func NewPaginatedContactAssignmentList(count int32, results []ContactAssignment, ) *PaginatedContactAssignmentList`
NewPaginatedContactAssignmentList instantiates a new PaginatedContactAssignmentList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedContactAssignmentList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedContactAssignmentList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedContactGroupList.md b/docs/PaginatedContactGroupList.md
index 08657cf41f..e1cf4c6967 100644
--- a/docs/PaginatedContactGroupList.md
+++ b/docs/PaginatedContactGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ContactGroup**](ContactGroup.md) | | [optional]
+**Results** | [**[]ContactGroup**](ContactGroup.md) | |
## Methods
### NewPaginatedContactGroupList
-`func NewPaginatedContactGroupList() *PaginatedContactGroupList`
+`func NewPaginatedContactGroupList(count int32, results []ContactGroup, ) *PaginatedContactGroupList`
NewPaginatedContactGroupList instantiates a new PaginatedContactGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedContactGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedContactGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedContactList.md b/docs/PaginatedContactList.md
index 99dbe81a8a..54ea85fa54 100644
--- a/docs/PaginatedContactList.md
+++ b/docs/PaginatedContactList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Contact**](Contact.md) | | [optional]
+**Results** | [**[]Contact**](Contact.md) | |
## Methods
### NewPaginatedContactList
-`func NewPaginatedContactList() *PaginatedContactList`
+`func NewPaginatedContactList(count int32, results []Contact, ) *PaginatedContactList`
NewPaginatedContactList instantiates a new PaginatedContactList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedContactList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedContactList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedContactRoleList.md b/docs/PaginatedContactRoleList.md
index 52f0ab2bd0..b4adf0ddb5 100644
--- a/docs/PaginatedContactRoleList.md
+++ b/docs/PaginatedContactRoleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ContactRole**](ContactRole.md) | | [optional]
+**Results** | [**[]ContactRole**](ContactRole.md) | |
## Methods
### NewPaginatedContactRoleList
-`func NewPaginatedContactRoleList() *PaginatedContactRoleList`
+`func NewPaginatedContactRoleList(count int32, results []ContactRole, ) *PaginatedContactRoleList`
NewPaginatedContactRoleList instantiates a new PaginatedContactRoleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedContactRoleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedContactRoleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCustomFieldChoiceSetList.md b/docs/PaginatedCustomFieldChoiceSetList.md
index 20d4c53352..f2c0d41bd1 100644
--- a/docs/PaginatedCustomFieldChoiceSetList.md
+++ b/docs/PaginatedCustomFieldChoiceSetList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional]
+**Results** | [**[]CustomFieldChoiceSet**](CustomFieldChoiceSet.md) | |
## Methods
### NewPaginatedCustomFieldChoiceSetList
-`func NewPaginatedCustomFieldChoiceSetList() *PaginatedCustomFieldChoiceSetList`
+`func NewPaginatedCustomFieldChoiceSetList(count int32, results []CustomFieldChoiceSet, ) *PaginatedCustomFieldChoiceSetList`
NewPaginatedCustomFieldChoiceSetList instantiates a new PaginatedCustomFieldChoiceSetList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCustomFieldChoiceSetList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCustomFieldChoiceSetList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCustomFieldList.md b/docs/PaginatedCustomFieldList.md
index d8992018ef..4e41812bdf 100644
--- a/docs/PaginatedCustomFieldList.md
+++ b/docs/PaginatedCustomFieldList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CustomField**](CustomField.md) | | [optional]
+**Results** | [**[]CustomField**](CustomField.md) | |
## Methods
### NewPaginatedCustomFieldList
-`func NewPaginatedCustomFieldList() *PaginatedCustomFieldList`
+`func NewPaginatedCustomFieldList(count int32, results []CustomField, ) *PaginatedCustomFieldList`
NewPaginatedCustomFieldList instantiates a new PaginatedCustomFieldList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCustomFieldList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCustomFieldList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedCustomLinkList.md b/docs/PaginatedCustomLinkList.md
index cf0960ca2b..c0d9bfef0f 100644
--- a/docs/PaginatedCustomLinkList.md
+++ b/docs/PaginatedCustomLinkList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]CustomLink**](CustomLink.md) | | [optional]
+**Results** | [**[]CustomLink**](CustomLink.md) | |
## Methods
### NewPaginatedCustomLinkList
-`func NewPaginatedCustomLinkList() *PaginatedCustomLinkList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedCustomLinkList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedCustomLinkList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDataFileList.md b/docs/PaginatedDataFileList.md
index 570c68e727..95bdcb5bbd 100644
--- a/docs/PaginatedDataFileList.md
+++ b/docs/PaginatedDataFileList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DataFile**](DataFile.md) | | [optional]
+**Results** | [**[]DataFile**](DataFile.md) | |
## Methods
### NewPaginatedDataFileList
-`func NewPaginatedDataFileList() *PaginatedDataFileList`
+`func NewPaginatedDataFileList(count int32, results []DataFile, ) *PaginatedDataFileList`
NewPaginatedDataFileList instantiates a new PaginatedDataFileList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDataFileList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDataFileList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDataSourceList.md b/docs/PaginatedDataSourceList.md
index cd96c3e2fc..c2503ee324 100644
--- a/docs/PaginatedDataSourceList.md
+++ b/docs/PaginatedDataSourceList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DataSource**](DataSource.md) | | [optional]
+**Results** | [**[]DataSource**](DataSource.md) | |
## Methods
### NewPaginatedDataSourceList
-`func NewPaginatedDataSourceList() *PaginatedDataSourceList`
+`func NewPaginatedDataSourceList(count int32, results []DataSource, ) *PaginatedDataSourceList`
NewPaginatedDataSourceList instantiates a new PaginatedDataSourceList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDataSourceList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDataSourceList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDeviceBayList.md b/docs/PaginatedDeviceBayList.md
index 8ab645923a..1553331d64 100644
--- a/docs/PaginatedDeviceBayList.md
+++ b/docs/PaginatedDeviceBayList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DeviceBay**](DeviceBay.md) | | [optional]
+**Results** | [**[]DeviceBay**](DeviceBay.md) | |
## Methods
### NewPaginatedDeviceBayList
-`func NewPaginatedDeviceBayList() *PaginatedDeviceBayList`
+`func NewPaginatedDeviceBayList(count int32, results []DeviceBay, ) *PaginatedDeviceBayList`
NewPaginatedDeviceBayList instantiates a new PaginatedDeviceBayList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDeviceBayList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDeviceBayList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDeviceBayTemplateList.md b/docs/PaginatedDeviceBayTemplateList.md
index 2a040ee864..1198c3bea8 100644
--- a/docs/PaginatedDeviceBayTemplateList.md
+++ b/docs/PaginatedDeviceBayTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DeviceBayTemplate**](DeviceBayTemplate.md) | | [optional]
+**Results** | [**[]DeviceBayTemplate**](DeviceBayTemplate.md) | |
## Methods
### NewPaginatedDeviceBayTemplateList
-`func NewPaginatedDeviceBayTemplateList() *PaginatedDeviceBayTemplateList`
+`func NewPaginatedDeviceBayTemplateList(count int32, results []DeviceBayTemplate, ) *PaginatedDeviceBayTemplateList`
NewPaginatedDeviceBayTemplateList instantiates a new PaginatedDeviceBayTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDeviceBayTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDeviceBayTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDeviceRoleList.md b/docs/PaginatedDeviceRoleList.md
index 788e947064..f113c9ce60 100644
--- a/docs/PaginatedDeviceRoleList.md
+++ b/docs/PaginatedDeviceRoleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DeviceRole**](DeviceRole.md) | | [optional]
+**Results** | [**[]DeviceRole**](DeviceRole.md) | |
## Methods
### NewPaginatedDeviceRoleList
-`func NewPaginatedDeviceRoleList() *PaginatedDeviceRoleList`
+`func NewPaginatedDeviceRoleList(count int32, results []DeviceRole, ) *PaginatedDeviceRoleList`
NewPaginatedDeviceRoleList instantiates a new PaginatedDeviceRoleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDeviceRoleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDeviceRoleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDeviceTypeList.md b/docs/PaginatedDeviceTypeList.md
index e7950b8344..e338cef1c3 100644
--- a/docs/PaginatedDeviceTypeList.md
+++ b/docs/PaginatedDeviceTypeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DeviceType**](DeviceType.md) | | [optional]
+**Results** | [**[]DeviceType**](DeviceType.md) | |
## Methods
### NewPaginatedDeviceTypeList
-`func NewPaginatedDeviceTypeList() *PaginatedDeviceTypeList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDeviceTypeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDeviceTypeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedDeviceWithConfigContextList.md b/docs/PaginatedDeviceWithConfigContextList.md
index a68681c4b9..c5a9466d30 100644
--- a/docs/PaginatedDeviceWithConfigContextList.md
+++ b/docs/PaginatedDeviceWithConfigContextList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]DeviceWithConfigContext**](DeviceWithConfigContext.md) | | [optional]
+**Results** | [**[]DeviceWithConfigContext**](DeviceWithConfigContext.md) | |
## Methods
### NewPaginatedDeviceWithConfigContextList
-`func NewPaginatedDeviceWithConfigContextList() *PaginatedDeviceWithConfigContextList`
+`func NewPaginatedDeviceWithConfigContextList(count int32, results []DeviceWithConfigContext, ) *PaginatedDeviceWithConfigContextList`
NewPaginatedDeviceWithConfigContextList instantiates a new PaginatedDeviceWithConfigContextList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedDeviceWithConfigContextList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedDeviceWithConfigContextList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedEventRuleList.md b/docs/PaginatedEventRuleList.md
index d08c1a1ba8..33e9578c77 100644
--- a/docs/PaginatedEventRuleList.md
+++ b/docs/PaginatedEventRuleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]EventRule**](EventRule.md) | | [optional]
+**Results** | [**[]EventRule**](EventRule.md) | |
## Methods
### NewPaginatedEventRuleList
-`func NewPaginatedEventRuleList() *PaginatedEventRuleList`
+`func NewPaginatedEventRuleList(count int32, results []EventRule, ) *PaginatedEventRuleList`
NewPaginatedEventRuleList instantiates a new PaginatedEventRuleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedEventRuleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedEventRuleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedExportTemplateList.md b/docs/PaginatedExportTemplateList.md
index 64487126e4..3538f98d56 100644
--- a/docs/PaginatedExportTemplateList.md
+++ b/docs/PaginatedExportTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ExportTemplate**](ExportTemplate.md) | | [optional]
+**Results** | [**[]ExportTemplate**](ExportTemplate.md) | |
## Methods
### NewPaginatedExportTemplateList
-`func NewPaginatedExportTemplateList() *PaginatedExportTemplateList`
+`func NewPaginatedExportTemplateList(count int32, results []ExportTemplate, ) *PaginatedExportTemplateList`
NewPaginatedExportTemplateList instantiates a new PaginatedExportTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedExportTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedExportTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedFHRPGroupAssignmentList.md b/docs/PaginatedFHRPGroupAssignmentList.md
index debcb5d716..e0a8282760 100644
--- a/docs/PaginatedFHRPGroupAssignmentList.md
+++ b/docs/PaginatedFHRPGroupAssignmentList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]FHRPGroupAssignment**](FHRPGroupAssignment.md) | | [optional]
+**Results** | [**[]FHRPGroupAssignment**](FHRPGroupAssignment.md) | |
## Methods
### NewPaginatedFHRPGroupAssignmentList
-`func NewPaginatedFHRPGroupAssignmentList() *PaginatedFHRPGroupAssignmentList`
+`func NewPaginatedFHRPGroupAssignmentList(count int32, results []FHRPGroupAssignment, ) *PaginatedFHRPGroupAssignmentList`
NewPaginatedFHRPGroupAssignmentList instantiates a new PaginatedFHRPGroupAssignmentList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedFHRPGroupAssignmentList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedFHRPGroupAssignmentList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedFHRPGroupList.md b/docs/PaginatedFHRPGroupList.md
index 54fd7509f6..1fe4502d09 100644
--- a/docs/PaginatedFHRPGroupList.md
+++ b/docs/PaginatedFHRPGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]FHRPGroup**](FHRPGroup.md) | | [optional]
+**Results** | [**[]FHRPGroup**](FHRPGroup.md) | |
## Methods
### NewPaginatedFHRPGroupList
-`func NewPaginatedFHRPGroupList() *PaginatedFHRPGroupList`
+`func NewPaginatedFHRPGroupList(count int32, results []FHRPGroup, ) *PaginatedFHRPGroupList`
NewPaginatedFHRPGroupList instantiates a new PaginatedFHRPGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedFHRPGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedFHRPGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedFrontPortList.md b/docs/PaginatedFrontPortList.md
index 6af2ecbbbf..2fa7b1b41c 100644
--- a/docs/PaginatedFrontPortList.md
+++ b/docs/PaginatedFrontPortList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]FrontPort**](FrontPort.md) | | [optional]
+**Results** | [**[]FrontPort**](FrontPort.md) | |
## Methods
### NewPaginatedFrontPortList
-`func NewPaginatedFrontPortList() *PaginatedFrontPortList`
+`func NewPaginatedFrontPortList(count int32, results []FrontPort, ) *PaginatedFrontPortList`
NewPaginatedFrontPortList instantiates a new PaginatedFrontPortList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedFrontPortList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedFrontPortList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedFrontPortTemplateList.md b/docs/PaginatedFrontPortTemplateList.md
index dec38816da..ec75b74346 100644
--- a/docs/PaginatedFrontPortTemplateList.md
+++ b/docs/PaginatedFrontPortTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]FrontPortTemplate**](FrontPortTemplate.md) | | [optional]
+**Results** | [**[]FrontPortTemplate**](FrontPortTemplate.md) | |
## Methods
### NewPaginatedFrontPortTemplateList
-`func NewPaginatedFrontPortTemplateList() *PaginatedFrontPortTemplateList`
+`func NewPaginatedFrontPortTemplateList(count int32, results []FrontPortTemplate, ) *PaginatedFrontPortTemplateList`
NewPaginatedFrontPortTemplateList instantiates a new PaginatedFrontPortTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedFrontPortTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedFrontPortTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedGroupList.md b/docs/PaginatedGroupList.md
index 8cb6311382..3b266d8802 100644
--- a/docs/PaginatedGroupList.md
+++ b/docs/PaginatedGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Group**](Group.md) | | [optional]
+**Results** | [**[]Group**](Group.md) | |
## Methods
### NewPaginatedGroupList
-`func NewPaginatedGroupList() *PaginatedGroupList`
+`func NewPaginatedGroupList(count int32, results []Group, ) *PaginatedGroupList`
NewPaginatedGroupList instantiates a new PaginatedGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIKEPolicyList.md b/docs/PaginatedIKEPolicyList.md
index c37731c405..c61cdee91c 100644
--- a/docs/PaginatedIKEPolicyList.md
+++ b/docs/PaginatedIKEPolicyList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IKEPolicy**](IKEPolicy.md) | | [optional]
+**Results** | [**[]IKEPolicy**](IKEPolicy.md) | |
## Methods
### NewPaginatedIKEPolicyList
-`func NewPaginatedIKEPolicyList() *PaginatedIKEPolicyList`
+`func NewPaginatedIKEPolicyList(count int32, results []IKEPolicy, ) *PaginatedIKEPolicyList`
NewPaginatedIKEPolicyList instantiates a new PaginatedIKEPolicyList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIKEPolicyList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIKEPolicyList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIKEProposalList.md b/docs/PaginatedIKEProposalList.md
index c8ae2696e5..320eb62274 100644
--- a/docs/PaginatedIKEProposalList.md
+++ b/docs/PaginatedIKEProposalList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional]
+**Results** | [**[]IKEProposal**](IKEProposal.md) | |
## Methods
### NewPaginatedIKEProposalList
-`func NewPaginatedIKEProposalList() *PaginatedIKEProposalList`
+`func NewPaginatedIKEProposalList(count int32, results []IKEProposal, ) *PaginatedIKEProposalList`
NewPaginatedIKEProposalList instantiates a new PaginatedIKEProposalList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIKEProposalList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIKEProposalList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIPAddressList.md b/docs/PaginatedIPAddressList.md
index e9ef67ccc7..e1e9a88200 100644
--- a/docs/PaginatedIPAddressList.md
+++ b/docs/PaginatedIPAddressList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IPAddress**](IPAddress.md) | | [optional]
+**Results** | [**[]IPAddress**](IPAddress.md) | |
## Methods
### NewPaginatedIPAddressList
-`func NewPaginatedIPAddressList() *PaginatedIPAddressList`
+`func NewPaginatedIPAddressList(count int32, results []IPAddress, ) *PaginatedIPAddressList`
NewPaginatedIPAddressList instantiates a new PaginatedIPAddressList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIPAddressList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIPAddressList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIPRangeList.md b/docs/PaginatedIPRangeList.md
index 9c749854ad..d04680df98 100644
--- a/docs/PaginatedIPRangeList.md
+++ b/docs/PaginatedIPRangeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IPRange**](IPRange.md) | | [optional]
+**Results** | [**[]IPRange**](IPRange.md) | |
## Methods
### NewPaginatedIPRangeList
-`func NewPaginatedIPRangeList() *PaginatedIPRangeList`
+`func NewPaginatedIPRangeList(count int32, results []IPRange, ) *PaginatedIPRangeList`
NewPaginatedIPRangeList instantiates a new PaginatedIPRangeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIPRangeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIPRangeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIPSecPolicyList.md b/docs/PaginatedIPSecPolicyList.md
index 18542a53de..6fbac66e44 100644
--- a/docs/PaginatedIPSecPolicyList.md
+++ b/docs/PaginatedIPSecPolicyList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IPSecPolicy**](IPSecPolicy.md) | | [optional]
+**Results** | [**[]IPSecPolicy**](IPSecPolicy.md) | |
## Methods
### NewPaginatedIPSecPolicyList
-`func NewPaginatedIPSecPolicyList() *PaginatedIPSecPolicyList`
+`func NewPaginatedIPSecPolicyList(count int32, results []IPSecPolicy, ) *PaginatedIPSecPolicyList`
NewPaginatedIPSecPolicyList instantiates a new PaginatedIPSecPolicyList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIPSecPolicyList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIPSecPolicyList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIPSecProfileList.md b/docs/PaginatedIPSecProfileList.md
index 9b85a1b7a5..aa9b77dc92 100644
--- a/docs/PaginatedIPSecProfileList.md
+++ b/docs/PaginatedIPSecProfileList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IPSecProfile**](IPSecProfile.md) | | [optional]
+**Results** | [**[]IPSecProfile**](IPSecProfile.md) | |
## Methods
### NewPaginatedIPSecProfileList
-`func NewPaginatedIPSecProfileList() *PaginatedIPSecProfileList`
+`func NewPaginatedIPSecProfileList(count int32, results []IPSecProfile, ) *PaginatedIPSecProfileList`
NewPaginatedIPSecProfileList instantiates a new PaginatedIPSecProfileList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIPSecProfileList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIPSecProfileList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedIPSecProposalList.md b/docs/PaginatedIPSecProposalList.md
index df1d55e917..4b18e5766a 100644
--- a/docs/PaginatedIPSecProposalList.md
+++ b/docs/PaginatedIPSecProposalList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]IPSecProposal**](IPSecProposal.md) | | [optional]
+**Results** | [**[]IPSecProposal**](IPSecProposal.md) | |
## Methods
### NewPaginatedIPSecProposalList
-`func NewPaginatedIPSecProposalList() *PaginatedIPSecProposalList`
+`func NewPaginatedIPSecProposalList(count int32, results []IPSecProposal, ) *PaginatedIPSecProposalList`
NewPaginatedIPSecProposalList instantiates a new PaginatedIPSecProposalList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedIPSecProposalList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedIPSecProposalList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedImageAttachmentList.md b/docs/PaginatedImageAttachmentList.md
index 689b46b11f..1bdca57db5 100644
--- a/docs/PaginatedImageAttachmentList.md
+++ b/docs/PaginatedImageAttachmentList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ImageAttachment**](ImageAttachment.md) | | [optional]
+**Results** | [**[]ImageAttachment**](ImageAttachment.md) | |
## Methods
### NewPaginatedImageAttachmentList
-`func NewPaginatedImageAttachmentList() *PaginatedImageAttachmentList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedImageAttachmentList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedImageAttachmentList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedInterfaceList.md b/docs/PaginatedInterfaceList.md
index 4a5799df0f..261b63763a 100644
--- a/docs/PaginatedInterfaceList.md
+++ b/docs/PaginatedInterfaceList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Interface**](Interface.md) | | [optional]
+**Results** | [**[]Interface**](Interface.md) | |
## Methods
### NewPaginatedInterfaceList
-`func NewPaginatedInterfaceList() *PaginatedInterfaceList`
+`func NewPaginatedInterfaceList(count int32, results []Interface, ) *PaginatedInterfaceList`
NewPaginatedInterfaceList instantiates a new PaginatedInterfaceList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedInterfaceList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedInterfaceList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedInterfaceTemplateList.md b/docs/PaginatedInterfaceTemplateList.md
index 7faf8bc5fd..ed61c49ddc 100644
--- a/docs/PaginatedInterfaceTemplateList.md
+++ b/docs/PaginatedInterfaceTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]InterfaceTemplate**](InterfaceTemplate.md) | | [optional]
+**Results** | [**[]InterfaceTemplate**](InterfaceTemplate.md) | |
## Methods
### NewPaginatedInterfaceTemplateList
-`func NewPaginatedInterfaceTemplateList() *PaginatedInterfaceTemplateList`
+`func NewPaginatedInterfaceTemplateList(count int32, results []InterfaceTemplate, ) *PaginatedInterfaceTemplateList`
NewPaginatedInterfaceTemplateList instantiates a new PaginatedInterfaceTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedInterfaceTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedInterfaceTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedInventoryItemList.md b/docs/PaginatedInventoryItemList.md
index c03e46a0a4..d49810cd0d 100644
--- a/docs/PaginatedInventoryItemList.md
+++ b/docs/PaginatedInventoryItemList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]InventoryItem**](InventoryItem.md) | | [optional]
+**Results** | [**[]InventoryItem**](InventoryItem.md) | |
## Methods
### NewPaginatedInventoryItemList
-`func NewPaginatedInventoryItemList() *PaginatedInventoryItemList`
+`func NewPaginatedInventoryItemList(count int32, results []InventoryItem, ) *PaginatedInventoryItemList`
NewPaginatedInventoryItemList instantiates a new PaginatedInventoryItemList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedInventoryItemList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedInventoryItemList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedInventoryItemRoleList.md b/docs/PaginatedInventoryItemRoleList.md
index 8056c59a00..deef9cebfb 100644
--- a/docs/PaginatedInventoryItemRoleList.md
+++ b/docs/PaginatedInventoryItemRoleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]InventoryItemRole**](InventoryItemRole.md) | | [optional]
+**Results** | [**[]InventoryItemRole**](InventoryItemRole.md) | |
## Methods
### NewPaginatedInventoryItemRoleList
-`func NewPaginatedInventoryItemRoleList() *PaginatedInventoryItemRoleList`
+`func NewPaginatedInventoryItemRoleList(count int32, results []InventoryItemRole, ) *PaginatedInventoryItemRoleList`
NewPaginatedInventoryItemRoleList instantiates a new PaginatedInventoryItemRoleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedInventoryItemRoleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedInventoryItemRoleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedInventoryItemTemplateList.md b/docs/PaginatedInventoryItemTemplateList.md
index dc6007085e..8df573c3db 100644
--- a/docs/PaginatedInventoryItemTemplateList.md
+++ b/docs/PaginatedInventoryItemTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]InventoryItemTemplate**](InventoryItemTemplate.md) | | [optional]
+**Results** | [**[]InventoryItemTemplate**](InventoryItemTemplate.md) | |
## Methods
### NewPaginatedInventoryItemTemplateList
-`func NewPaginatedInventoryItemTemplateList() *PaginatedInventoryItemTemplateList`
+`func NewPaginatedInventoryItemTemplateList(count int32, results []InventoryItemTemplate, ) *PaginatedInventoryItemTemplateList`
NewPaginatedInventoryItemTemplateList instantiates a new PaginatedInventoryItemTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedInventoryItemTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedInventoryItemTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedJobList.md b/docs/PaginatedJobList.md
index 0a6672ffcd..01917a216d 100644
--- a/docs/PaginatedJobList.md
+++ b/docs/PaginatedJobList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Job**](Job.md) | | [optional]
+**Results** | [**[]Job**](Job.md) | |
## Methods
### NewPaginatedJobList
-`func NewPaginatedJobList() *PaginatedJobList`
+`func NewPaginatedJobList(count int32, results []Job, ) *PaginatedJobList`
NewPaginatedJobList instantiates a new PaginatedJobList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedJobList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedJobList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedJournalEntryList.md b/docs/PaginatedJournalEntryList.md
index e733015b74..a0bf828778 100644
--- a/docs/PaginatedJournalEntryList.md
+++ b/docs/PaginatedJournalEntryList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]JournalEntry**](JournalEntry.md) | | [optional]
+**Results** | [**[]JournalEntry**](JournalEntry.md) | |
## Methods
### NewPaginatedJournalEntryList
-`func NewPaginatedJournalEntryList() *PaginatedJournalEntryList`
+`func NewPaginatedJournalEntryList(count int32, results []JournalEntry, ) *PaginatedJournalEntryList`
NewPaginatedJournalEntryList instantiates a new PaginatedJournalEntryList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedJournalEntryList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedJournalEntryList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedL2VPNList.md b/docs/PaginatedL2VPNList.md
index bd4644eaca..6951b6291e 100644
--- a/docs/PaginatedL2VPNList.md
+++ b/docs/PaginatedL2VPNList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]L2VPN**](L2VPN.md) | | [optional]
+**Results** | [**[]L2VPN**](L2VPN.md) | |
## Methods
### NewPaginatedL2VPNList
-`func NewPaginatedL2VPNList() *PaginatedL2VPNList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedL2VPNList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedL2VPNList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedL2VPNTerminationList.md b/docs/PaginatedL2VPNTerminationList.md
index 7067096d50..90a5a54060 100644
--- a/docs/PaginatedL2VPNTerminationList.md
+++ b/docs/PaginatedL2VPNTerminationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]L2VPNTermination**](L2VPNTermination.md) | | [optional]
+**Results** | [**[]L2VPNTermination**](L2VPNTermination.md) | |
## Methods
### NewPaginatedL2VPNTerminationList
-`func NewPaginatedL2VPNTerminationList() *PaginatedL2VPNTerminationList`
+`func NewPaginatedL2VPNTerminationList(count int32, results []L2VPNTermination, ) *PaginatedL2VPNTerminationList`
NewPaginatedL2VPNTerminationList instantiates a new PaginatedL2VPNTerminationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedL2VPNTerminationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedL2VPNTerminationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedLocationList.md b/docs/PaginatedLocationList.md
index afcdb1e354..d5eef6b6a8 100644
--- a/docs/PaginatedLocationList.md
+++ b/docs/PaginatedLocationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Location**](Location.md) | | [optional]
+**Results** | [**[]Location**](Location.md) | |
## Methods
### NewPaginatedLocationList
-`func NewPaginatedLocationList() *PaginatedLocationList`
+`func NewPaginatedLocationList(count int32, results []Location, ) *PaginatedLocationList`
NewPaginatedLocationList instantiates a new PaginatedLocationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedLocationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedLocationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedManufacturerList.md b/docs/PaginatedManufacturerList.md
index 4317cd1e1e..d2a3b79d0f 100644
--- a/docs/PaginatedManufacturerList.md
+++ b/docs/PaginatedManufacturerList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Manufacturer**](Manufacturer.md) | | [optional]
+**Results** | [**[]Manufacturer**](Manufacturer.md) | |
## Methods
### NewPaginatedManufacturerList
-`func NewPaginatedManufacturerList() *PaginatedManufacturerList`
+`func NewPaginatedManufacturerList(count int32, results []Manufacturer, ) *PaginatedManufacturerList`
NewPaginatedManufacturerList instantiates a new PaginatedManufacturerList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedManufacturerList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedManufacturerList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedModuleBayList.md b/docs/PaginatedModuleBayList.md
index a79a1b595c..3fd6a0e6f0 100644
--- a/docs/PaginatedModuleBayList.md
+++ b/docs/PaginatedModuleBayList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ModuleBay**](ModuleBay.md) | | [optional]
+**Results** | [**[]ModuleBay**](ModuleBay.md) | |
## Methods
### NewPaginatedModuleBayList
-`func NewPaginatedModuleBayList() *PaginatedModuleBayList`
+`func NewPaginatedModuleBayList(count int32, results []ModuleBay, ) *PaginatedModuleBayList`
NewPaginatedModuleBayList instantiates a new PaginatedModuleBayList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedModuleBayList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedModuleBayList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedModuleBayTemplateList.md b/docs/PaginatedModuleBayTemplateList.md
index 87fe86454e..275fe4cb82 100644
--- a/docs/PaginatedModuleBayTemplateList.md
+++ b/docs/PaginatedModuleBayTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ModuleBayTemplate**](ModuleBayTemplate.md) | | [optional]
+**Results** | [**[]ModuleBayTemplate**](ModuleBayTemplate.md) | |
## Methods
### NewPaginatedModuleBayTemplateList
-`func NewPaginatedModuleBayTemplateList() *PaginatedModuleBayTemplateList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedModuleBayTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedModuleBayTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedModuleList.md b/docs/PaginatedModuleList.md
index 2c73f3b820..a3799376e1 100644
--- a/docs/PaginatedModuleList.md
+++ b/docs/PaginatedModuleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Module**](Module.md) | | [optional]
+**Results** | [**[]Module**](Module.md) | |
## Methods
### NewPaginatedModuleList
-`func NewPaginatedModuleList() *PaginatedModuleList`
+`func NewPaginatedModuleList(count int32, results []Module, ) *PaginatedModuleList`
NewPaginatedModuleList instantiates a new PaginatedModuleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedModuleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedModuleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedModuleTypeList.md b/docs/PaginatedModuleTypeList.md
index b78caa9820..1ed7a12eca 100644
--- a/docs/PaginatedModuleTypeList.md
+++ b/docs/PaginatedModuleTypeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ModuleType**](ModuleType.md) | | [optional]
+**Results** | [**[]ModuleType**](ModuleType.md) | |
## Methods
### NewPaginatedModuleTypeList
-`func NewPaginatedModuleTypeList() *PaginatedModuleTypeList`
+`func NewPaginatedModuleTypeList(count int32, results []ModuleType, ) *PaginatedModuleTypeList`
NewPaginatedModuleTypeList instantiates a new PaginatedModuleTypeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedModuleTypeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedModuleTypeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedObjectChangeList.md b/docs/PaginatedObjectChangeList.md
index 08d4c77b96..3a42b04df7 100644
--- a/docs/PaginatedObjectChangeList.md
+++ b/docs/PaginatedObjectChangeList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ObjectChange**](ObjectChange.md) | | [optional]
+**Results** | [**[]ObjectChange**](ObjectChange.md) | |
## Methods
### NewPaginatedObjectChangeList
-`func NewPaginatedObjectChangeList() *PaginatedObjectChangeList`
+`func NewPaginatedObjectChangeList(count int32, results []ObjectChange, ) *PaginatedObjectChangeList`
NewPaginatedObjectChangeList instantiates a new PaginatedObjectChangeList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedObjectChangeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedObjectChangeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedObjectPermissionList.md b/docs/PaginatedObjectPermissionList.md
index dcdfd14178..a11dc7cdeb 100644
--- a/docs/PaginatedObjectPermissionList.md
+++ b/docs/PaginatedObjectPermissionList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional]
+**Results** | [**[]ObjectPermission**](ObjectPermission.md) | |
## Methods
### NewPaginatedObjectPermissionList
-`func NewPaginatedObjectPermissionList() *PaginatedObjectPermissionList`
+`func NewPaginatedObjectPermissionList(count int32, results []ObjectPermission, ) *PaginatedObjectPermissionList`
NewPaginatedObjectPermissionList instantiates a new PaginatedObjectPermissionList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedObjectPermissionList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedObjectPermissionList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedObjectTypeList.md b/docs/PaginatedObjectTypeList.md
new file mode 100644
index 0000000000..ac4b00791d
--- /dev/null
+++ b/docs/PaginatedObjectTypeList.md
@@ -0,0 +1,144 @@
+# PaginatedObjectTypeList
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Count** | **int32** | |
+**Next** | Pointer to **NullableString** | | [optional]
+**Previous** | Pointer to **NullableString** | | [optional]
+**Results** | [**[]ObjectType**](ObjectType.md) | |
+
+## Methods
+
+### NewPaginatedObjectTypeList
+
+`func NewPaginatedObjectTypeList(count int32, results []ObjectType, ) *PaginatedObjectTypeList`
+
+NewPaginatedObjectTypeList instantiates a new PaginatedObjectTypeList object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPaginatedObjectTypeListWithDefaults
+
+`func NewPaginatedObjectTypeListWithDefaults() *PaginatedObjectTypeList`
+
+NewPaginatedObjectTypeListWithDefaults instantiates a new PaginatedObjectTypeList object
+This 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 *PaginatedObjectTypeList) GetCount() int32`
+
+GetCount returns the Count field if non-nil, zero value otherwise.
+
+### GetCountOk
+
+`func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) SetCount(v int32)`
+
+SetCount sets Count field to given value.
+
+
+### GetNext
+
+`func (o *PaginatedObjectTypeList) GetNext() string`
+
+GetNext returns the Next field if non-nil, zero value otherwise.
+
+### GetNextOk
+
+`func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) SetNext(v string)`
+
+SetNext sets Next field to given value.
+
+### HasNext
+
+`func (o *PaginatedObjectTypeList) HasNext() bool`
+
+HasNext returns a boolean if a field has been set.
+
+### SetNextNil
+
+`func (o *PaginatedObjectTypeList) SetNextNil(b bool)`
+
+ SetNextNil sets the value for Next to be an explicit nil
+
+### UnsetNext
+`func (o *PaginatedObjectTypeList) UnsetNext()`
+
+UnsetNext ensures that no value is present for Next, not even an explicit nil
+### GetPrevious
+
+`func (o *PaginatedObjectTypeList) GetPrevious() string`
+
+GetPrevious returns the Previous field if non-nil, zero value otherwise.
+
+### GetPreviousOk
+
+`func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) SetPrevious(v string)`
+
+SetPrevious sets Previous field to given value.
+
+### HasPrevious
+
+`func (o *PaginatedObjectTypeList) HasPrevious() bool`
+
+HasPrevious returns a boolean if a field has been set.
+
+### SetPreviousNil
+
+`func (o *PaginatedObjectTypeList) SetPreviousNil(b bool)`
+
+ SetPreviousNil sets the value for Previous to be an explicit nil
+
+### UnsetPrevious
+`func (o *PaginatedObjectTypeList) UnsetPrevious()`
+
+UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+### GetResults
+
+`func (o *PaginatedObjectTypeList) GetResults() []ObjectType`
+
+GetResults returns the Results field if non-nil, zero value otherwise.
+
+### GetResultsOk
+
+`func (o *PaginatedObjectTypeList) GetResultsOk() (*[]ObjectType, 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 *PaginatedObjectTypeList) SetResults(v []ObjectType)`
+
+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/PaginatedPlatformList.md b/docs/PaginatedPlatformList.md
index ee4ab40a3d..c1285ed6d3 100644
--- a/docs/PaginatedPlatformList.md
+++ b/docs/PaginatedPlatformList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Platform**](Platform.md) | | [optional]
+**Results** | [**[]Platform**](Platform.md) | |
## Methods
### NewPaginatedPlatformList
-`func NewPaginatedPlatformList() *PaginatedPlatformList`
+`func NewPaginatedPlatformList(count int32, results []Platform, ) *PaginatedPlatformList`
NewPaginatedPlatformList instantiates a new PaginatedPlatformList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPlatformList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPlatformList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerFeedList.md b/docs/PaginatedPowerFeedList.md
index e632c9d96f..c79e14bebb 100644
--- a/docs/PaginatedPowerFeedList.md
+++ b/docs/PaginatedPowerFeedList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerFeed**](PowerFeed.md) | | [optional]
+**Results** | [**[]PowerFeed**](PowerFeed.md) | |
## Methods
### NewPaginatedPowerFeedList
-`func NewPaginatedPowerFeedList() *PaginatedPowerFeedList`
+`func NewPaginatedPowerFeedList(count int32, results []PowerFeed, ) *PaginatedPowerFeedList`
NewPaginatedPowerFeedList instantiates a new PaginatedPowerFeedList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerFeedList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerFeedList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerOutletList.md b/docs/PaginatedPowerOutletList.md
index c38023c056..46ab3493d7 100644
--- a/docs/PaginatedPowerOutletList.md
+++ b/docs/PaginatedPowerOutletList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerOutlet**](PowerOutlet.md) | | [optional]
+**Results** | [**[]PowerOutlet**](PowerOutlet.md) | |
## Methods
### NewPaginatedPowerOutletList
-`func NewPaginatedPowerOutletList() *PaginatedPowerOutletList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerOutletList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerOutletList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerOutletTemplateList.md b/docs/PaginatedPowerOutletTemplateList.md
index 047c3f49c9..5072dace78 100644
--- a/docs/PaginatedPowerOutletTemplateList.md
+++ b/docs/PaginatedPowerOutletTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerOutletTemplate**](PowerOutletTemplate.md) | | [optional]
+**Results** | [**[]PowerOutletTemplate**](PowerOutletTemplate.md) | |
## Methods
### NewPaginatedPowerOutletTemplateList
-`func NewPaginatedPowerOutletTemplateList() *PaginatedPowerOutletTemplateList`
+`func NewPaginatedPowerOutletTemplateList(count int32, results []PowerOutletTemplate, ) *PaginatedPowerOutletTemplateList`
NewPaginatedPowerOutletTemplateList instantiates a new PaginatedPowerOutletTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerOutletTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerOutletTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerPanelList.md b/docs/PaginatedPowerPanelList.md
index 0398f1aa85..148df6a372 100644
--- a/docs/PaginatedPowerPanelList.md
+++ b/docs/PaginatedPowerPanelList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerPanel**](PowerPanel.md) | | [optional]
+**Results** | [**[]PowerPanel**](PowerPanel.md) | |
## Methods
### NewPaginatedPowerPanelList
-`func NewPaginatedPowerPanelList() *PaginatedPowerPanelList`
+`func NewPaginatedPowerPanelList(count int32, results []PowerPanel, ) *PaginatedPowerPanelList`
NewPaginatedPowerPanelList instantiates a new PaginatedPowerPanelList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerPanelList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerPanelList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerPortList.md b/docs/PaginatedPowerPortList.md
index e07bdc5a4b..f850d78d3f 100644
--- a/docs/PaginatedPowerPortList.md
+++ b/docs/PaginatedPowerPortList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerPort**](PowerPort.md) | | [optional]
+**Results** | [**[]PowerPort**](PowerPort.md) | |
## Methods
### NewPaginatedPowerPortList
-`func NewPaginatedPowerPortList() *PaginatedPowerPortList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerPortList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerPortList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPowerPortTemplateList.md b/docs/PaginatedPowerPortTemplateList.md
index 6576467906..7f6bc42c31 100644
--- a/docs/PaginatedPowerPortTemplateList.md
+++ b/docs/PaginatedPowerPortTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]PowerPortTemplate**](PowerPortTemplate.md) | | [optional]
+**Results** | [**[]PowerPortTemplate**](PowerPortTemplate.md) | |
## Methods
### NewPaginatedPowerPortTemplateList
-`func NewPaginatedPowerPortTemplateList() *PaginatedPowerPortTemplateList`
+`func NewPaginatedPowerPortTemplateList(count int32, results []PowerPortTemplate, ) *PaginatedPowerPortTemplateList`
NewPaginatedPowerPortTemplateList instantiates a new PaginatedPowerPortTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPowerPortTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPowerPortTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedPrefixList.md b/docs/PaginatedPrefixList.md
index 5d5c12bd2d..20a94c5f3b 100644
--- a/docs/PaginatedPrefixList.md
+++ b/docs/PaginatedPrefixList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Prefix**](Prefix.md) | | [optional]
+**Results** | [**[]Prefix**](Prefix.md) | |
## Methods
### NewPaginatedPrefixList
-`func NewPaginatedPrefixList() *PaginatedPrefixList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedPrefixList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedPrefixList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedProviderAccountList.md b/docs/PaginatedProviderAccountList.md
index 25c81ce959..8c79bc3c5b 100644
--- a/docs/PaginatedProviderAccountList.md
+++ b/docs/PaginatedProviderAccountList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ProviderAccount**](ProviderAccount.md) | | [optional]
+**Results** | [**[]ProviderAccount**](ProviderAccount.md) | |
## Methods
### NewPaginatedProviderAccountList
-`func NewPaginatedProviderAccountList() *PaginatedProviderAccountList`
+`func NewPaginatedProviderAccountList(count int32, results []ProviderAccount, ) *PaginatedProviderAccountList`
NewPaginatedProviderAccountList instantiates a new PaginatedProviderAccountList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedProviderAccountList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedProviderAccountList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedProviderList.md b/docs/PaginatedProviderList.md
index 4160ab866c..b9f56aaab9 100644
--- a/docs/PaginatedProviderList.md
+++ b/docs/PaginatedProviderList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Provider**](Provider.md) | | [optional]
+**Results** | [**[]Provider**](Provider.md) | |
## Methods
### NewPaginatedProviderList
-`func NewPaginatedProviderList() *PaginatedProviderList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedProviderList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedProviderList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedProviderNetworkList.md b/docs/PaginatedProviderNetworkList.md
index ec3315d6c3..9a1d2f4475 100644
--- a/docs/PaginatedProviderNetworkList.md
+++ b/docs/PaginatedProviderNetworkList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ProviderNetwork**](ProviderNetwork.md) | | [optional]
+**Results** | [**[]ProviderNetwork**](ProviderNetwork.md) | |
## Methods
### NewPaginatedProviderNetworkList
-`func NewPaginatedProviderNetworkList() *PaginatedProviderNetworkList`
+`func NewPaginatedProviderNetworkList(count int32, results []ProviderNetwork, ) *PaginatedProviderNetworkList`
NewPaginatedProviderNetworkList instantiates a new PaginatedProviderNetworkList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedProviderNetworkList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedProviderNetworkList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRIRList.md b/docs/PaginatedRIRList.md
index 0f27b19b8a..bf994fd112 100644
--- a/docs/PaginatedRIRList.md
+++ b/docs/PaginatedRIRList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RIR**](RIR.md) | | [optional]
+**Results** | [**[]RIR**](RIR.md) | |
## Methods
### NewPaginatedRIRList
-`func NewPaginatedRIRList() *PaginatedRIRList`
+`func NewPaginatedRIRList(count int32, results []RIR, ) *PaginatedRIRList`
NewPaginatedRIRList instantiates a new PaginatedRIRList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRIRList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRIRList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRackList.md b/docs/PaginatedRackList.md
index 713d8cafcb..b3f2344391 100644
--- a/docs/PaginatedRackList.md
+++ b/docs/PaginatedRackList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Rack**](Rack.md) | | [optional]
+**Results** | [**[]Rack**](Rack.md) | |
## Methods
### NewPaginatedRackList
-`func NewPaginatedRackList() *PaginatedRackList`
+`func NewPaginatedRackList(count int32, results []Rack, ) *PaginatedRackList`
NewPaginatedRackList instantiates a new PaginatedRackList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRackList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRackList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRackReservationList.md b/docs/PaginatedRackReservationList.md
index e94c94aec8..8ade9c19b3 100644
--- a/docs/PaginatedRackReservationList.md
+++ b/docs/PaginatedRackReservationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RackReservation**](RackReservation.md) | | [optional]
+**Results** | [**[]RackReservation**](RackReservation.md) | |
## Methods
### NewPaginatedRackReservationList
-`func NewPaginatedRackReservationList() *PaginatedRackReservationList`
+`func NewPaginatedRackReservationList(count int32, results []RackReservation, ) *PaginatedRackReservationList`
NewPaginatedRackReservationList instantiates a new PaginatedRackReservationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRackReservationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRackReservationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRackRoleList.md b/docs/PaginatedRackRoleList.md
index 8c68a966b8..2e2cc8167b 100644
--- a/docs/PaginatedRackRoleList.md
+++ b/docs/PaginatedRackRoleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RackRole**](RackRole.md) | | [optional]
+**Results** | [**[]RackRole**](RackRole.md) | |
## Methods
### NewPaginatedRackRoleList
-`func NewPaginatedRackRoleList() *PaginatedRackRoleList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRackRoleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRackRoleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRackUnitList.md b/docs/PaginatedRackUnitList.md
index 1d161db6c0..3546dc7800 100644
--- a/docs/PaginatedRackUnitList.md
+++ b/docs/PaginatedRackUnitList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RackUnit**](RackUnit.md) | | [optional]
+**Results** | [**[]RackUnit**](RackUnit.md) | |
## Methods
### NewPaginatedRackUnitList
-`func NewPaginatedRackUnitList() *PaginatedRackUnitList`
+`func NewPaginatedRackUnitList(count int32, results []RackUnit, ) *PaginatedRackUnitList`
NewPaginatedRackUnitList instantiates a new PaginatedRackUnitList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRackUnitList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRackUnitList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRearPortList.md b/docs/PaginatedRearPortList.md
index 792a4a7c75..05c3123278 100644
--- a/docs/PaginatedRearPortList.md
+++ b/docs/PaginatedRearPortList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RearPort**](RearPort.md) | | [optional]
+**Results** | [**[]RearPort**](RearPort.md) | |
## Methods
### NewPaginatedRearPortList
-`func NewPaginatedRearPortList() *PaginatedRearPortList`
+`func NewPaginatedRearPortList(count int32, results []RearPort, ) *PaginatedRearPortList`
NewPaginatedRearPortList instantiates a new PaginatedRearPortList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRearPortList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRearPortList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRearPortTemplateList.md b/docs/PaginatedRearPortTemplateList.md
index 99d92f43ed..2caf75982c 100644
--- a/docs/PaginatedRearPortTemplateList.md
+++ b/docs/PaginatedRearPortTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RearPortTemplate**](RearPortTemplate.md) | | [optional]
+**Results** | [**[]RearPortTemplate**](RearPortTemplate.md) | |
## Methods
### NewPaginatedRearPortTemplateList
-`func NewPaginatedRearPortTemplateList() *PaginatedRearPortTemplateList`
+`func NewPaginatedRearPortTemplateList(count int32, results []RearPortTemplate, ) *PaginatedRearPortTemplateList`
NewPaginatedRearPortTemplateList instantiates a new PaginatedRearPortTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRearPortTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRearPortTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRegionList.md b/docs/PaginatedRegionList.md
index 6b819d61eb..e5c5526853 100644
--- a/docs/PaginatedRegionList.md
+++ b/docs/PaginatedRegionList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Region**](Region.md) | | [optional]
+**Results** | [**[]Region**](Region.md) | |
## Methods
### NewPaginatedRegionList
-`func NewPaginatedRegionList() *PaginatedRegionList`
+`func NewPaginatedRegionList(count int32, results []Region, ) *PaginatedRegionList`
NewPaginatedRegionList instantiates a new PaginatedRegionList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRegionList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRegionList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRoleList.md b/docs/PaginatedRoleList.md
index e032f0dedc..4f04591d0b 100644
--- a/docs/PaginatedRoleList.md
+++ b/docs/PaginatedRoleList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Role**](Role.md) | | [optional]
+**Results** | [**[]Role**](Role.md) | |
## Methods
### NewPaginatedRoleList
-`func NewPaginatedRoleList() *PaginatedRoleList`
+`func NewPaginatedRoleList(count int32, results []Role, ) *PaginatedRoleList`
NewPaginatedRoleList instantiates a new PaginatedRoleList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRoleList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRoleList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedRouteTargetList.md b/docs/PaginatedRouteTargetList.md
index b3f4f677a8..faee0b4662 100644
--- a/docs/PaginatedRouteTargetList.md
+++ b/docs/PaginatedRouteTargetList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional]
+**Results** | [**[]RouteTarget**](RouteTarget.md) | |
## Methods
### NewPaginatedRouteTargetList
-`func NewPaginatedRouteTargetList() *PaginatedRouteTargetList`
+`func NewPaginatedRouteTargetList(count int32, results []RouteTarget, ) *PaginatedRouteTargetList`
NewPaginatedRouteTargetList instantiates a new PaginatedRouteTargetList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedRouteTargetList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedRouteTargetList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedSavedFilterList.md b/docs/PaginatedSavedFilterList.md
index 42c878c3a9..e61e958e0e 100644
--- a/docs/PaginatedSavedFilterList.md
+++ b/docs/PaginatedSavedFilterList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]SavedFilter**](SavedFilter.md) | | [optional]
+**Results** | [**[]SavedFilter**](SavedFilter.md) | |
## Methods
### NewPaginatedSavedFilterList
-`func NewPaginatedSavedFilterList() *PaginatedSavedFilterList`
+`func NewPaginatedSavedFilterList(count int32, results []SavedFilter, ) *PaginatedSavedFilterList`
NewPaginatedSavedFilterList instantiates a new PaginatedSavedFilterList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedSavedFilterList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedSavedFilterList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedContentTypeList.md b/docs/PaginatedScriptList.md
similarity index 57%
rename from docs/PaginatedContentTypeList.md
rename to docs/PaginatedScriptList.md
index 42324fa7d0..8c8d4fe005 100644
--- a/docs/PaginatedContentTypeList.md
+++ b/docs/PaginatedScriptList.md
@@ -1,152 +1,142 @@
-# PaginatedContentTypeList
+# PaginatedScriptList
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ContentType**](ContentType.md) | | [optional]
+**Results** | [**[]Script**](Script.md) | |
## Methods
-### NewPaginatedContentTypeList
+### NewPaginatedScriptList
-`func NewPaginatedContentTypeList() *PaginatedContentTypeList`
+`func NewPaginatedScriptList(count int32, results []Script, ) *PaginatedScriptList`
-NewPaginatedContentTypeList instantiates a new PaginatedContentTypeList object
+NewPaginatedScriptList instantiates a new PaginatedScriptList object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPaginatedContentTypeListWithDefaults
+### NewPaginatedScriptListWithDefaults
-`func NewPaginatedContentTypeListWithDefaults() *PaginatedContentTypeList`
+`func NewPaginatedScriptListWithDefaults() *PaginatedScriptList`
-NewPaginatedContentTypeListWithDefaults instantiates a new PaginatedContentTypeList object
+NewPaginatedScriptListWithDefaults instantiates a new PaginatedScriptList object
This 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 *PaginatedContentTypeList) GetCount() int32`
+`func (o *PaginatedScriptList) GetCount() int32`
GetCount returns the Count field if non-nil, zero value otherwise.
### GetCountOk
-`func (o *PaginatedContentTypeList) GetCountOk() (*int32, bool)`
+`func (o *PaginatedScriptList) 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 *PaginatedContentTypeList) SetCount(v int32)`
+`func (o *PaginatedScriptList) SetCount(v int32)`
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedContentTypeList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
-`func (o *PaginatedContentTypeList) GetNext() string`
+`func (o *PaginatedScriptList) GetNext() string`
GetNext returns the Next field if non-nil, zero value otherwise.
### GetNextOk
-`func (o *PaginatedContentTypeList) GetNextOk() (*string, bool)`
+`func (o *PaginatedScriptList) 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 *PaginatedContentTypeList) SetNext(v string)`
+`func (o *PaginatedScriptList) SetNext(v string)`
SetNext sets Next field to given value.
### HasNext
-`func (o *PaginatedContentTypeList) HasNext() bool`
+`func (o *PaginatedScriptList) HasNext() bool`
HasNext returns a boolean if a field has been set.
### SetNextNil
-`func (o *PaginatedContentTypeList) SetNextNil(b bool)`
+`func (o *PaginatedScriptList) SetNextNil(b bool)`
SetNextNil sets the value for Next to be an explicit nil
### UnsetNext
-`func (o *PaginatedContentTypeList) UnsetNext()`
+`func (o *PaginatedScriptList) UnsetNext()`
UnsetNext ensures that no value is present for Next, not even an explicit nil
### GetPrevious
-`func (o *PaginatedContentTypeList) GetPrevious() string`
+`func (o *PaginatedScriptList) GetPrevious() string`
GetPrevious returns the Previous field if non-nil, zero value otherwise.
### GetPreviousOk
-`func (o *PaginatedContentTypeList) GetPreviousOk() (*string, bool)`
+`func (o *PaginatedScriptList) 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 *PaginatedContentTypeList) SetPrevious(v string)`
+`func (o *PaginatedScriptList) SetPrevious(v string)`
SetPrevious sets Previous field to given value.
### HasPrevious
-`func (o *PaginatedContentTypeList) HasPrevious() bool`
+`func (o *PaginatedScriptList) HasPrevious() bool`
HasPrevious returns a boolean if a field has been set.
### SetPreviousNil
-`func (o *PaginatedContentTypeList) SetPreviousNil(b bool)`
+`func (o *PaginatedScriptList) SetPreviousNil(b bool)`
SetPreviousNil sets the value for Previous to be an explicit nil
### UnsetPrevious
-`func (o *PaginatedContentTypeList) UnsetPrevious()`
+`func (o *PaginatedScriptList) UnsetPrevious()`
UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
### GetResults
-`func (o *PaginatedContentTypeList) GetResults() []ContentType`
+`func (o *PaginatedScriptList) GetResults() []Script`
GetResults returns the Results field if non-nil, zero value otherwise.
### GetResultsOk
-`func (o *PaginatedContentTypeList) GetResultsOk() (*[]ContentType, bool)`
+`func (o *PaginatedScriptList) GetResultsOk() (*[]Script, 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 *PaginatedContentTypeList) SetResults(v []ContentType)`
+`func (o *PaginatedScriptList) SetResults(v []Script)`
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedContentTypeList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedServiceList.md b/docs/PaginatedServiceList.md
index 11f3a81d37..7d9802514b 100644
--- a/docs/PaginatedServiceList.md
+++ b/docs/PaginatedServiceList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Service**](Service.md) | | [optional]
+**Results** | [**[]Service**](Service.md) | |
## Methods
### NewPaginatedServiceList
-`func NewPaginatedServiceList() *PaginatedServiceList`
+`func NewPaginatedServiceList(count int32, results []Service, ) *PaginatedServiceList`
NewPaginatedServiceList instantiates a new PaginatedServiceList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedServiceList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedServiceList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedServiceTemplateList.md b/docs/PaginatedServiceTemplateList.md
index 4bd0a48913..9164ce726f 100644
--- a/docs/PaginatedServiceTemplateList.md
+++ b/docs/PaginatedServiceTemplateList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]ServiceTemplate**](ServiceTemplate.md) | | [optional]
+**Results** | [**[]ServiceTemplate**](ServiceTemplate.md) | |
## Methods
### NewPaginatedServiceTemplateList
-`func NewPaginatedServiceTemplateList() *PaginatedServiceTemplateList`
+`func NewPaginatedServiceTemplateList(count int32, results []ServiceTemplate, ) *PaginatedServiceTemplateList`
NewPaginatedServiceTemplateList instantiates a new PaginatedServiceTemplateList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedServiceTemplateList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedServiceTemplateList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedSiteGroupList.md b/docs/PaginatedSiteGroupList.md
index 603d233216..4dc50acace 100644
--- a/docs/PaginatedSiteGroupList.md
+++ b/docs/PaginatedSiteGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]SiteGroup**](SiteGroup.md) | | [optional]
+**Results** | [**[]SiteGroup**](SiteGroup.md) | |
## Methods
### NewPaginatedSiteGroupList
-`func NewPaginatedSiteGroupList() *PaginatedSiteGroupList`
+`func NewPaginatedSiteGroupList(count int32, results []SiteGroup, ) *PaginatedSiteGroupList`
NewPaginatedSiteGroupList instantiates a new PaginatedSiteGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedSiteGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedSiteGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedSiteList.md b/docs/PaginatedSiteList.md
index 69c5d3c118..c251e6fd63 100644
--- a/docs/PaginatedSiteList.md
+++ b/docs/PaginatedSiteList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Site**](Site.md) | | [optional]
+**Results** | [**[]Site**](Site.md) | |
## Methods
### NewPaginatedSiteList
-`func NewPaginatedSiteList() *PaginatedSiteList`
+`func NewPaginatedSiteList(count int32, results []Site, ) *PaginatedSiteList`
NewPaginatedSiteList instantiates a new PaginatedSiteList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedSiteList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedSiteList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTagList.md b/docs/PaginatedTagList.md
index 3d588a692a..b3fbea9f41 100644
--- a/docs/PaginatedTagList.md
+++ b/docs/PaginatedTagList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Tag**](Tag.md) | | [optional]
+**Results** | [**[]Tag**](Tag.md) | |
## Methods
### NewPaginatedTagList
-`func NewPaginatedTagList() *PaginatedTagList`
+`func NewPaginatedTagList(count int32, results []Tag, ) *PaginatedTagList`
NewPaginatedTagList instantiates a new PaginatedTagList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTagList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTagList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTenantGroupList.md b/docs/PaginatedTenantGroupList.md
index b86dd48515..ec8b1ad0f5 100644
--- a/docs/PaginatedTenantGroupList.md
+++ b/docs/PaginatedTenantGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional]
+**Results** | [**[]TenantGroup**](TenantGroup.md) | |
## Methods
### NewPaginatedTenantGroupList
-`func NewPaginatedTenantGroupList() *PaginatedTenantGroupList`
+`func NewPaginatedTenantGroupList(count int32, results []TenantGroup, ) *PaginatedTenantGroupList`
NewPaginatedTenantGroupList instantiates a new PaginatedTenantGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTenantGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTenantGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTenantList.md b/docs/PaginatedTenantList.md
index 4d07306268..a171c3c7ab 100644
--- a/docs/PaginatedTenantList.md
+++ b/docs/PaginatedTenantList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Tenant**](Tenant.md) | | [optional]
+**Results** | [**[]Tenant**](Tenant.md) | |
## Methods
### NewPaginatedTenantList
-`func NewPaginatedTenantList() *PaginatedTenantList`
+`func NewPaginatedTenantList(count int32, results []Tenant, ) *PaginatedTenantList`
NewPaginatedTenantList instantiates a new PaginatedTenantList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTenantList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTenantList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTokenList.md b/docs/PaginatedTokenList.md
index be60879478..e45ec67dc1 100644
--- a/docs/PaginatedTokenList.md
+++ b/docs/PaginatedTokenList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Token**](Token.md) | | [optional]
+**Results** | [**[]Token**](Token.md) | |
## Methods
### NewPaginatedTokenList
-`func NewPaginatedTokenList() *PaginatedTokenList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTokenList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTokenList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTunnelGroupList.md b/docs/PaginatedTunnelGroupList.md
index 23ff0c6bc8..b313e7be9d 100644
--- a/docs/PaginatedTunnelGroupList.md
+++ b/docs/PaginatedTunnelGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]TunnelGroup**](TunnelGroup.md) | | [optional]
+**Results** | [**[]TunnelGroup**](TunnelGroup.md) | |
## Methods
### NewPaginatedTunnelGroupList
-`func NewPaginatedTunnelGroupList() *PaginatedTunnelGroupList`
+`func NewPaginatedTunnelGroupList(count int32, results []TunnelGroup, ) *PaginatedTunnelGroupList`
NewPaginatedTunnelGroupList instantiates a new PaginatedTunnelGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTunnelGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTunnelGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTunnelList.md b/docs/PaginatedTunnelList.md
index 64e022fdc7..fa59456213 100644
--- a/docs/PaginatedTunnelList.md
+++ b/docs/PaginatedTunnelList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Tunnel**](Tunnel.md) | | [optional]
+**Results** | [**[]Tunnel**](Tunnel.md) | |
## Methods
### NewPaginatedTunnelList
-`func NewPaginatedTunnelList() *PaginatedTunnelList`
+`func NewPaginatedTunnelList(count int32, results []Tunnel, ) *PaginatedTunnelList`
NewPaginatedTunnelList instantiates a new PaginatedTunnelList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTunnelList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTunnelList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedTunnelTerminationList.md b/docs/PaginatedTunnelTerminationList.md
index 9bf96bbca7..edfe74bee7 100644
--- a/docs/PaginatedTunnelTerminationList.md
+++ b/docs/PaginatedTunnelTerminationList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]TunnelTermination**](TunnelTermination.md) | | [optional]
+**Results** | [**[]TunnelTermination**](TunnelTermination.md) | |
## Methods
### NewPaginatedTunnelTerminationList
-`func NewPaginatedTunnelTerminationList() *PaginatedTunnelTerminationList`
+`func NewPaginatedTunnelTerminationList(count int32, results []TunnelTermination, ) *PaginatedTunnelTerminationList`
NewPaginatedTunnelTerminationList instantiates a new PaginatedTunnelTerminationList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedTunnelTerminationList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedTunnelTerminationList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedUserList.md b/docs/PaginatedUserList.md
index ecd4ba3cf8..9ddacfa123 100644
--- a/docs/PaginatedUserList.md
+++ b/docs/PaginatedUserList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]User**](User.md) | | [optional]
+**Results** | [**[]User**](User.md) | |
## Methods
### NewPaginatedUserList
-`func NewPaginatedUserList() *PaginatedUserList`
+`func NewPaginatedUserList(count int32, results []User, ) *PaginatedUserList`
NewPaginatedUserList instantiates a new PaginatedUserList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedUserList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedUserList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVLANGroupList.md b/docs/PaginatedVLANGroupList.md
index 2172e7b07d..14712d5f7b 100644
--- a/docs/PaginatedVLANGroupList.md
+++ b/docs/PaginatedVLANGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VLANGroup**](VLANGroup.md) | | [optional]
+**Results** | [**[]VLANGroup**](VLANGroup.md) | |
## Methods
### NewPaginatedVLANGroupList
-`func NewPaginatedVLANGroupList() *PaginatedVLANGroupList`
+`func NewPaginatedVLANGroupList(count int32, results []VLANGroup, ) *PaginatedVLANGroupList`
NewPaginatedVLANGroupList instantiates a new PaginatedVLANGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVLANGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVLANGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVLANList.md b/docs/PaginatedVLANList.md
index cc18af0832..036f83910c 100644
--- a/docs/PaginatedVLANList.md
+++ b/docs/PaginatedVLANList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VLAN**](VLAN.md) | | [optional]
+**Results** | [**[]VLAN**](VLAN.md) | |
## Methods
### NewPaginatedVLANList
-`func NewPaginatedVLANList() *PaginatedVLANList`
+`func NewPaginatedVLANList(count int32, results []VLAN, ) *PaginatedVLANList`
NewPaginatedVLANList instantiates a new PaginatedVLANList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVLANList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVLANList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVMInterfaceList.md b/docs/PaginatedVMInterfaceList.md
index e73cdb07f1..451bdc9c23 100644
--- a/docs/PaginatedVMInterfaceList.md
+++ b/docs/PaginatedVMInterfaceList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VMInterface**](VMInterface.md) | | [optional]
+**Results** | [**[]VMInterface**](VMInterface.md) | |
## Methods
### NewPaginatedVMInterfaceList
-`func NewPaginatedVMInterfaceList() *PaginatedVMInterfaceList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVMInterfaceList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVMInterfaceList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVRFList.md b/docs/PaginatedVRFList.md
index 33a1fd0dc4..2cf4cb417f 100644
--- a/docs/PaginatedVRFList.md
+++ b/docs/PaginatedVRFList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VRF**](VRF.md) | | [optional]
+**Results** | [**[]VRF**](VRF.md) | |
## Methods
### NewPaginatedVRFList
-`func NewPaginatedVRFList() *PaginatedVRFList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVRFList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVRFList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVirtualChassisList.md b/docs/PaginatedVirtualChassisList.md
index 3c3df17c0e..9deb39df3b 100644
--- a/docs/PaginatedVirtualChassisList.md
+++ b/docs/PaginatedVirtualChassisList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VirtualChassis**](VirtualChassis.md) | | [optional]
+**Results** | [**[]VirtualChassis**](VirtualChassis.md) | |
## Methods
### NewPaginatedVirtualChassisList
-`func NewPaginatedVirtualChassisList() *PaginatedVirtualChassisList`
+`func NewPaginatedVirtualChassisList(count int32, results []VirtualChassis, ) *PaginatedVirtualChassisList`
NewPaginatedVirtualChassisList instantiates a new PaginatedVirtualChassisList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVirtualChassisList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVirtualChassisList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVirtualDeviceContextList.md b/docs/PaginatedVirtualDeviceContextList.md
index fdc30d5329..7f89b6404c 100644
--- a/docs/PaginatedVirtualDeviceContextList.md
+++ b/docs/PaginatedVirtualDeviceContextList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional]
+**Results** | [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | |
## Methods
### NewPaginatedVirtualDeviceContextList
-`func NewPaginatedVirtualDeviceContextList() *PaginatedVirtualDeviceContextList`
+`func NewPaginatedVirtualDeviceContextList(count int32, results []VirtualDeviceContext, ) *PaginatedVirtualDeviceContextList`
NewPaginatedVirtualDeviceContextList instantiates a new PaginatedVirtualDeviceContextList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVirtualDeviceContextList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVirtualDeviceContextList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVirtualDiskList.md b/docs/PaginatedVirtualDiskList.md
index 1c7dca803a..1f134d96a7 100644
--- a/docs/PaginatedVirtualDiskList.md
+++ b/docs/PaginatedVirtualDiskList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VirtualDisk**](VirtualDisk.md) | | [optional]
+**Results** | [**[]VirtualDisk**](VirtualDisk.md) | |
## Methods
### NewPaginatedVirtualDiskList
-`func NewPaginatedVirtualDiskList() *PaginatedVirtualDiskList`
+`func NewPaginatedVirtualDiskList(count int32, results []VirtualDisk, ) *PaginatedVirtualDiskList`
NewPaginatedVirtualDiskList instantiates a new PaginatedVirtualDiskList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVirtualDiskList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVirtualDiskList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedVirtualMachineWithConfigContextList.md b/docs/PaginatedVirtualMachineWithConfigContextList.md
index 88d27639f5..fcf19de752 100644
--- a/docs/PaginatedVirtualMachineWithConfigContextList.md
+++ b/docs/PaginatedVirtualMachineWithConfigContextList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.md) | | [optional]
+**Results** | [**[]VirtualMachineWithConfigContext**](VirtualMachineWithConfigContext.md) | |
## Methods
### NewPaginatedVirtualMachineWithConfigContextList
-`func NewPaginatedVirtualMachineWithConfigContextList() *PaginatedVirtualMachineWithConfigContextList`
+`func NewPaginatedVirtualMachineWithConfigContextList(count int32, results []VirtualMachineWithConfigContext, ) *PaginatedVirtualMachineWithConfigContextList`
NewPaginatedVirtualMachineWithConfigContextList instantiates a new PaginatedVirtualMachineWithConfigContextList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedVirtualMachineWithConfigContextList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedVirtualMachineWithConfigContextList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedWebhookList.md b/docs/PaginatedWebhookList.md
index b1ae09b915..cbd64e4029 100644
--- a/docs/PaginatedWebhookList.md
+++ b/docs/PaginatedWebhookList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]Webhook**](Webhook.md) | | [optional]
+**Results** | [**[]Webhook**](Webhook.md) | |
## Methods
### NewPaginatedWebhookList
-`func NewPaginatedWebhookList() *PaginatedWebhookList`
+`func NewPaginatedWebhookList(count int32, results []Webhook, ) *PaginatedWebhookList`
NewPaginatedWebhookList instantiates a new PaginatedWebhookList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedWebhookList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedWebhookList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedWirelessLANGroupList.md b/docs/PaginatedWirelessLANGroupList.md
index efea0e61d5..6f4eee8ce9 100644
--- a/docs/PaginatedWirelessLANGroupList.md
+++ b/docs/PaginatedWirelessLANGroupList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]WirelessLANGroup**](WirelessLANGroup.md) | | [optional]
+**Results** | [**[]WirelessLANGroup**](WirelessLANGroup.md) | |
## Methods
### NewPaginatedWirelessLANGroupList
-`func NewPaginatedWirelessLANGroupList() *PaginatedWirelessLANGroupList`
+`func NewPaginatedWirelessLANGroupList(count int32, results []WirelessLANGroup, ) *PaginatedWirelessLANGroupList`
NewPaginatedWirelessLANGroupList instantiates a new PaginatedWirelessLANGroupList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedWirelessLANGroupList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedWirelessLANGroupList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedWirelessLANList.md b/docs/PaginatedWirelessLANList.md
index e980439f7d..c5034dce85 100644
--- a/docs/PaginatedWirelessLANList.md
+++ b/docs/PaginatedWirelessLANList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional]
+**Results** | [**[]WirelessLAN**](WirelessLAN.md) | |
## Methods
### NewPaginatedWirelessLANList
-`func NewPaginatedWirelessLANList() *PaginatedWirelessLANList`
+`func NewPaginatedWirelessLANList(count int32, results []WirelessLAN, ) *PaginatedWirelessLANList`
NewPaginatedWirelessLANList instantiates a new PaginatedWirelessLANList object
This constructor will assign default values to properties that have it defined,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedWirelessLANList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedWirelessLANList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PaginatedWirelessLinkList.md b/docs/PaginatedWirelessLinkList.md
index cc444da6ad..a3ca5e55ec 100644
--- a/docs/PaginatedWirelessLinkList.md
+++ b/docs/PaginatedWirelessLinkList.md
@@ -4,16 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Count** | Pointer to **int32** | | [optional]
+**Count** | **int32** | |
**Next** | Pointer to **NullableString** | | [optional]
**Previous** | Pointer to **NullableString** | | [optional]
-**Results** | Pointer to [**[]WirelessLink**](WirelessLink.md) | | [optional]
+**Results** | [**[]WirelessLink**](WirelessLink.md) | |
## Methods
### NewPaginatedWirelessLinkList
-`func NewPaginatedWirelessLinkList() *PaginatedWirelessLinkList`
+`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,
@@ -47,11 +47,6 @@ and a boolean to check if the value has been set.
SetCount sets Count field to given value.
-### HasCount
-
-`func (o *PaginatedWirelessLinkList) HasCount() bool`
-
-HasCount returns a boolean if a field has been set.
### GetNext
@@ -142,11 +137,6 @@ and a boolean to check if the value has been set.
SetResults sets Results field to given value.
-### HasResults
-
-`func (o *PaginatedWirelessLinkList) HasResults() bool`
-
-HasResults returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ParentChildStatus.md b/docs/ParentChildStatus.md
index e31f44efa8..52285ecc69 100644
--- a/docs/ParentChildStatus.md
+++ b/docs/ParentChildStatus.md
@@ -3,11 +3,9 @@
## Enum
-* `PARENT` (value: `"parent"`)
-
* `CHILD` (value: `"child"`)
-* `EMPTY` (value: `""`)
+* `PARENT` (value: `"parent"`)
[[Back to Model list]](../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/ParentChildStatus1.md
similarity index 89%
rename from docs/DeviceTypeSubdeviceRoleValue.md
rename to docs/ParentChildStatus1.md
index 21912d5303..1fc96347f4 100644
--- a/docs/DeviceTypeSubdeviceRoleValue.md
+++ b/docs/ParentChildStatus1.md
@@ -1,4 +1,4 @@
-# DeviceTypeSubdeviceRoleValue
+# ParentChildStatus1
## Enum
diff --git a/docs/PatchedWritableASNRangeRequest.md b/docs/PatchedASNRangeRequest.md
similarity index 59%
rename from docs/PatchedWritableASNRangeRequest.md
rename to docs/PatchedASNRangeRequest.md
index 8f4ba8720d..a777fc11f7 100644
--- a/docs/PatchedWritableASNRangeRequest.md
+++ b/docs/PatchedASNRangeRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableASNRangeRequest
+# PatchedASNRangeRequest
## Properties
@@ -6,265 +6,265 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Rir** | Pointer to **int32** | | [optional]
+**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional]
**Start** | Pointer to **int64** | | [optional]
**End** | Pointer to **int64** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
-### NewPatchedWritableASNRangeRequest
+### NewPatchedASNRangeRequest
-`func NewPatchedWritableASNRangeRequest() *PatchedWritableASNRangeRequest`
+`func NewPatchedASNRangeRequest() *PatchedASNRangeRequest`
-NewPatchedWritableASNRangeRequest instantiates a new PatchedWritableASNRangeRequest object
+NewPatchedASNRangeRequest instantiates a new PatchedASNRangeRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableASNRangeRequestWithDefaults
+### NewPatchedASNRangeRequestWithDefaults
-`func NewPatchedWritableASNRangeRequestWithDefaults() *PatchedWritableASNRangeRequest`
+`func NewPatchedASNRangeRequestWithDefaults() *PatchedASNRangeRequest`
-NewPatchedWritableASNRangeRequestWithDefaults instantiates a new PatchedWritableASNRangeRequest object
+NewPatchedASNRangeRequestWithDefaults instantiates a new PatchedASNRangeRequest object
This 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 *PatchedWritableASNRangeRequest) GetName() string`
+`func (o *PatchedASNRangeRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableASNRangeRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetName(v string)`
+`func (o *PatchedASNRangeRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableASNRangeRequest) HasName() bool`
+`func (o *PatchedASNRangeRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetSlug
-`func (o *PatchedWritableASNRangeRequest) GetSlug() string`
+`func (o *PatchedASNRangeRequest) GetSlug() string`
GetSlug returns the Slug field if non-nil, zero value otherwise.
### GetSlugOk
-`func (o *PatchedWritableASNRangeRequest) GetSlugOk() (*string, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetSlug(v string)`
+`func (o *PatchedASNRangeRequest) SetSlug(v string)`
SetSlug sets Slug field to given value.
### HasSlug
-`func (o *PatchedWritableASNRangeRequest) HasSlug() bool`
+`func (o *PatchedASNRangeRequest) HasSlug() bool`
HasSlug returns a boolean if a field has been set.
### GetRir
-`func (o *PatchedWritableASNRangeRequest) GetRir() int32`
+`func (o *PatchedASNRangeRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *PatchedWritableASNRangeRequest) GetRirOk() (*int32, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetRir(v int32)`
+`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
### HasRir
-`func (o *PatchedWritableASNRangeRequest) HasRir() bool`
+`func (o *PatchedASNRangeRequest) HasRir() bool`
HasRir returns a boolean if a field has been set.
### GetStart
-`func (o *PatchedWritableASNRangeRequest) GetStart() int64`
+`func (o *PatchedASNRangeRequest) GetStart() int64`
GetStart returns the Start field if non-nil, zero value otherwise.
### GetStartOk
-`func (o *PatchedWritableASNRangeRequest) GetStartOk() (*int64, bool)`
+`func (o *PatchedASNRangeRequest) GetStartOk() (*int64, bool)`
GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStart
-`func (o *PatchedWritableASNRangeRequest) SetStart(v int64)`
+`func (o *PatchedASNRangeRequest) SetStart(v int64)`
SetStart sets Start field to given value.
### HasStart
-`func (o *PatchedWritableASNRangeRequest) HasStart() bool`
+`func (o *PatchedASNRangeRequest) HasStart() bool`
HasStart returns a boolean if a field has been set.
### GetEnd
-`func (o *PatchedWritableASNRangeRequest) GetEnd() int64`
+`func (o *PatchedASNRangeRequest) GetEnd() int64`
GetEnd returns the End field if non-nil, zero value otherwise.
### GetEndOk
-`func (o *PatchedWritableASNRangeRequest) GetEndOk() (*int64, bool)`
+`func (o *PatchedASNRangeRequest) GetEndOk() (*int64, bool)`
GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEnd
-`func (o *PatchedWritableASNRangeRequest) SetEnd(v int64)`
+`func (o *PatchedASNRangeRequest) SetEnd(v int64)`
SetEnd sets End field to given value.
### HasEnd
-`func (o *PatchedWritableASNRangeRequest) HasEnd() bool`
+`func (o *PatchedASNRangeRequest) HasEnd() bool`
HasEnd returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableASNRangeRequest) GetTenant() int32`
+`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableASNRangeRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetTenant(v int32)`
+`func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
### HasTenant
-`func (o *PatchedWritableASNRangeRequest) HasTenant() bool`
+`func (o *PatchedASNRangeRequest) HasTenant() bool`
HasTenant returns a boolean if a field has been set.
### SetTenantNil
-`func (o *PatchedWritableASNRangeRequest) SetTenantNil(b bool)`
+`func (o *PatchedASNRangeRequest) SetTenantNil(b bool)`
SetTenantNil sets the value for Tenant to be an explicit nil
### UnsetTenant
-`func (o *PatchedWritableASNRangeRequest) UnsetTenant()`
+`func (o *PatchedASNRangeRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableASNRangeRequest) GetDescription() string`
+`func (o *PatchedASNRangeRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableASNRangeRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetDescription(v string)`
+`func (o *PatchedASNRangeRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableASNRangeRequest) HasDescription() bool`
+`func (o *PatchedASNRangeRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableASNRangeRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedASNRangeRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableASNRangeRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedASNRangeRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableASNRangeRequest) HasTags() bool`
+`func (o *PatchedASNRangeRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableASNRangeRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedASNRangeRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableASNRangeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedASNRangeRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableASNRangeRequest) HasCustomFields() bool`
+`func (o *PatchedASNRangeRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableASNRequest.md b/docs/PatchedASNRequest.md
similarity index 61%
rename from docs/PatchedWritableASNRequest.md
rename to docs/PatchedASNRequest.md
index 8faf67c14f..4df3e7c67d 100644
--- a/docs/PatchedWritableASNRequest.md
+++ b/docs/PatchedASNRequest.md
@@ -1,12 +1,12 @@
-# PatchedWritableASNRequest
+# PatchedASNRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional]
-**Rir** | Pointer to **int32** | Regional Internet Registry responsible for this AS number space | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [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]
@@ -14,205 +14,215 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableASNRequest
+### NewPatchedASNRequest
-`func NewPatchedWritableASNRequest() *PatchedWritableASNRequest`
+`func NewPatchedASNRequest() *PatchedASNRequest`
-NewPatchedWritableASNRequest instantiates a new PatchedWritableASNRequest object
+NewPatchedASNRequest instantiates a new PatchedASNRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableASNRequestWithDefaults
+### NewPatchedASNRequestWithDefaults
-`func NewPatchedWritableASNRequestWithDefaults() *PatchedWritableASNRequest`
+`func NewPatchedASNRequestWithDefaults() *PatchedASNRequest`
-NewPatchedWritableASNRequestWithDefaults instantiates a new PatchedWritableASNRequest object
+NewPatchedASNRequestWithDefaults instantiates a new PatchedASNRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAsn
-`func (o *PatchedWritableASNRequest) GetAsn() int64`
+`func (o *PatchedASNRequest) GetAsn() int64`
GetAsn returns the Asn field if non-nil, zero value otherwise.
### GetAsnOk
-`func (o *PatchedWritableASNRequest) GetAsnOk() (*int64, bool)`
+`func (o *PatchedASNRequest) GetAsnOk() (*int64, bool)`
GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAsn
-`func (o *PatchedWritableASNRequest) SetAsn(v int64)`
+`func (o *PatchedASNRequest) SetAsn(v int64)`
SetAsn sets Asn field to given value.
### HasAsn
-`func (o *PatchedWritableASNRequest) HasAsn() bool`
+`func (o *PatchedASNRequest) HasAsn() bool`
HasAsn returns a boolean if a field has been set.
### GetRir
-`func (o *PatchedWritableASNRequest) GetRir() int32`
+`func (o *PatchedASNRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *PatchedWritableASNRequest) GetRirOk() (*int32, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetRir(v int32)`
+`func (o *PatchedASNRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
### HasRir
-`func (o *PatchedWritableASNRequest) HasRir() bool`
+`func (o *PatchedASNRequest) HasRir() bool`
HasRir returns a boolean if a field has been set.
+### SetRirNil
+
+`func (o *PatchedASNRequest) SetRirNil(b bool)`
+
+ SetRirNil sets the value for Rir to be an explicit nil
+
+### UnsetRir
+`func (o *PatchedASNRequest) UnsetRir()`
+
+UnsetRir ensures that no value is present for Rir, not even an explicit nil
### GetTenant
-`func (o *PatchedWritableASNRequest) GetTenant() int32`
+`func (o *PatchedASNRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableASNRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetTenant(v int32)`
+`func (o *PatchedASNRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
### HasTenant
-`func (o *PatchedWritableASNRequest) HasTenant() bool`
+`func (o *PatchedASNRequest) HasTenant() bool`
HasTenant returns a boolean if a field has been set.
### SetTenantNil
-`func (o *PatchedWritableASNRequest) SetTenantNil(b bool)`
+`func (o *PatchedASNRequest) SetTenantNil(b bool)`
SetTenantNil sets the value for Tenant to be an explicit nil
### UnsetTenant
-`func (o *PatchedWritableASNRequest) UnsetTenant()`
+`func (o *PatchedASNRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableASNRequest) GetDescription() string`
+`func (o *PatchedASNRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableASNRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetDescription(v string)`
+`func (o *PatchedASNRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableASNRequest) HasDescription() bool`
+`func (o *PatchedASNRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableASNRequest) GetComments() string`
+`func (o *PatchedASNRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableASNRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetComments(v string)`
+`func (o *PatchedASNRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableASNRequest) HasComments() bool`
+`func (o *PatchedASNRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableASNRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedASNRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableASNRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedASNRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableASNRequest) HasTags() bool`
+`func (o *PatchedASNRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableASNRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedASNRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableASNRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedASNRequest) 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 *PatchedWritableASNRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedASNRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableASNRequest) HasCustomFields() bool`
+`func (o *PatchedASNRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableBookmarkRequest.md b/docs/PatchedBookmarkRequest.md
similarity index 59%
rename from docs/PatchedWritableBookmarkRequest.md
rename to docs/PatchedBookmarkRequest.md
index 09f35c9d49..344f1ee74c 100644
--- a/docs/PatchedWritableBookmarkRequest.md
+++ b/docs/PatchedBookmarkRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableBookmarkRequest
+# PatchedBookmarkRequest
## Properties
@@ -6,99 +6,99 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ObjectType** | Pointer to **string** | | [optional]
**ObjectId** | Pointer to **int64** | | [optional]
-**User** | Pointer to **int32** | | [optional]
+**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional]
## Methods
-### NewPatchedWritableBookmarkRequest
+### NewPatchedBookmarkRequest
-`func NewPatchedWritableBookmarkRequest() *PatchedWritableBookmarkRequest`
+`func NewPatchedBookmarkRequest() *PatchedBookmarkRequest`
-NewPatchedWritableBookmarkRequest instantiates a new PatchedWritableBookmarkRequest object
+NewPatchedBookmarkRequest instantiates a new PatchedBookmarkRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableBookmarkRequestWithDefaults
+### NewPatchedBookmarkRequestWithDefaults
-`func NewPatchedWritableBookmarkRequestWithDefaults() *PatchedWritableBookmarkRequest`
+`func NewPatchedBookmarkRequestWithDefaults() *PatchedBookmarkRequest`
-NewPatchedWritableBookmarkRequestWithDefaults instantiates a new PatchedWritableBookmarkRequest object
+NewPatchedBookmarkRequestWithDefaults instantiates a new PatchedBookmarkRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetObjectType
-`func (o *PatchedWritableBookmarkRequest) GetObjectType() string`
+`func (o *PatchedBookmarkRequest) GetObjectType() string`
GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
### GetObjectTypeOk
-`func (o *PatchedWritableBookmarkRequest) GetObjectTypeOk() (*string, bool)`
+`func (o *PatchedBookmarkRequest) GetObjectTypeOk() (*string, bool)`
GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetObjectType
-`func (o *PatchedWritableBookmarkRequest) SetObjectType(v string)`
+`func (o *PatchedBookmarkRequest) SetObjectType(v string)`
SetObjectType sets ObjectType field to given value.
### HasObjectType
-`func (o *PatchedWritableBookmarkRequest) HasObjectType() bool`
+`func (o *PatchedBookmarkRequest) HasObjectType() bool`
HasObjectType returns a boolean if a field has been set.
### GetObjectId
-`func (o *PatchedWritableBookmarkRequest) GetObjectId() int64`
+`func (o *PatchedBookmarkRequest) GetObjectId() int64`
GetObjectId returns the ObjectId field if non-nil, zero value otherwise.
### GetObjectIdOk
-`func (o *PatchedWritableBookmarkRequest) GetObjectIdOk() (*int64, bool)`
+`func (o *PatchedBookmarkRequest) GetObjectIdOk() (*int64, bool)`
GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetObjectId
-`func (o *PatchedWritableBookmarkRequest) SetObjectId(v int64)`
+`func (o *PatchedBookmarkRequest) SetObjectId(v int64)`
SetObjectId sets ObjectId field to given value.
### HasObjectId
-`func (o *PatchedWritableBookmarkRequest) HasObjectId() bool`
+`func (o *PatchedBookmarkRequest) HasObjectId() bool`
HasObjectId returns a boolean if a field has been set.
### GetUser
-`func (o *PatchedWritableBookmarkRequest) GetUser() int32`
+`func (o *PatchedBookmarkRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *PatchedWritableBookmarkRequest) GetUserOk() (*int32, bool)`
+`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)`
GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUser
-`func (o *PatchedWritableBookmarkRequest) SetUser(v int32)`
+`func (o *PatchedBookmarkRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
### HasUser
-`func (o *PatchedWritableBookmarkRequest) HasUser() bool`
+`func (o *PatchedBookmarkRequest) HasUser() bool`
HasUser returns a boolean if a field has been set.
diff --git a/docs/PatchedCableTerminationRequest.md b/docs/PatchedCableTerminationRequest.md
index 160b254e15..23fb9580b2 100644
--- a/docs/PatchedCableTerminationRequest.md
+++ b/docs/PatchedCableTerminationRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cable** | Pointer to **int32** | | [optional]
-**CableEnd** | Pointer to [**End**](End.md) | | [optional]
+**CableEnd** | Pointer to [**End1**](End1.md) | | [optional]
**TerminationType** | Pointer to **string** | | [optional]
**TerminationId** | Pointer to **int64** | | [optional]
@@ -55,20 +55,20 @@ HasCable returns a boolean if a field has been set.
### GetCableEnd
-`func (o *PatchedCableTerminationRequest) GetCableEnd() End`
+`func (o *PatchedCableTerminationRequest) GetCableEnd() End1`
GetCableEnd returns the CableEnd field if non-nil, zero value otherwise.
### GetCableEndOk
-`func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End, bool)`
+`func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End1, 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 *PatchedCableTerminationRequest) SetCableEnd(v End)`
+`func (o *PatchedCableTerminationRequest) SetCableEnd(v End1)`
SetCableEnd sets CableEnd field to given value.
diff --git a/docs/WritableCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md
similarity index 58%
rename from docs/WritableCircuitTerminationRequest.md
rename to docs/PatchedCircuitTerminationRequest.md
index 86d3063bba..1785e201e3 100644
--- a/docs/WritableCircuitTerminationRequest.md
+++ b/docs/PatchedCircuitTerminationRequest.md
@@ -1,13 +1,13 @@
-# WritableCircuitTerminationRequest
+# PatchedCircuitTerminationRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Circuit** | **int32** | |
-**TermSide** | [**Termination**](Termination.md) | |
-**Site** | Pointer to **NullableInt32** | | [optional]
-**ProviderNetwork** | Pointer to **NullableInt32** | | [optional]
+**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]
**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]
@@ -19,350 +19,360 @@ Name | Type | Description | Notes
## Methods
-### NewWritableCircuitTerminationRequest
+### NewPatchedCircuitTerminationRequest
-`func NewWritableCircuitTerminationRequest(circuit int32, termSide Termination, ) *WritableCircuitTerminationRequest`
+`func NewPatchedCircuitTerminationRequest() *PatchedCircuitTerminationRequest`
-NewWritableCircuitTerminationRequest instantiates a new WritableCircuitTerminationRequest object
+NewPatchedCircuitTerminationRequest instantiates a new PatchedCircuitTerminationRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableCircuitTerminationRequestWithDefaults
+### NewPatchedCircuitTerminationRequestWithDefaults
-`func NewWritableCircuitTerminationRequestWithDefaults() *WritableCircuitTerminationRequest`
+`func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminationRequest`
-NewWritableCircuitTerminationRequestWithDefaults instantiates a new WritableCircuitTerminationRequest object
+NewPatchedCircuitTerminationRequestWithDefaults instantiates a new PatchedCircuitTerminationRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetCircuit
-`func (o *WritableCircuitTerminationRequest) GetCircuit() int32`
+`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest`
GetCircuit returns the Circuit field if non-nil, zero value otherwise.
### GetCircuitOk
-`func (o *WritableCircuitTerminationRequest) GetCircuitOk() (*int32, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, 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 *WritableCircuitTerminationRequest) SetCircuit(v int32)`
+`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)`
SetCircuit sets Circuit field to given value.
+### HasCircuit
+
+`func (o *PatchedCircuitTerminationRequest) HasCircuit() bool`
+
+HasCircuit returns a boolean if a field has been set.
### GetTermSide
-`func (o *WritableCircuitTerminationRequest) GetTermSide() Termination`
+`func (o *PatchedCircuitTerminationRequest) GetTermSide() Termination1`
GetTermSide returns the TermSide field if non-nil, zero value otherwise.
### GetTermSideOk
-`func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*Termination, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*Termination1, 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 *WritableCircuitTerminationRequest) SetTermSide(v Termination)`
+`func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1)`
SetTermSide sets TermSide field to given value.
+### HasTermSide
+
+`func (o *PatchedCircuitTerminationRequest) HasTermSide() bool`
+
+HasTermSide returns a boolean if a field has been set.
### GetSite
-`func (o *WritableCircuitTerminationRequest) GetSite() int32`
+`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableCircuitTerminationRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetSite(v int32)`
+`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
### HasSite
-`func (o *WritableCircuitTerminationRequest) HasSite() bool`
+`func (o *PatchedCircuitTerminationRequest) HasSite() bool`
HasSite returns a boolean if a field has been set.
### SetSiteNil
-`func (o *WritableCircuitTerminationRequest) SetSiteNil(b bool)`
+`func (o *PatchedCircuitTerminationRequest) SetSiteNil(b bool)`
SetSiteNil sets the value for Site to be an explicit nil
### UnsetSite
-`func (o *WritableCircuitTerminationRequest) UnsetSite()`
+`func (o *PatchedCircuitTerminationRequest) UnsetSite()`
UnsetSite ensures that no value is present for Site, not even an explicit nil
### GetProviderNetwork
-`func (o *WritableCircuitTerminationRequest) GetProviderNetwork() int32`
+`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest`
GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
### GetProviderNetworkOk
-`func (o *WritableCircuitTerminationRequest) GetProviderNetworkOk() (*int32, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, 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 *WritableCircuitTerminationRequest) SetProviderNetwork(v int32)`
+`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)`
SetProviderNetwork sets ProviderNetwork field to given value.
### HasProviderNetwork
-`func (o *WritableCircuitTerminationRequest) HasProviderNetwork() bool`
+`func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool`
HasProviderNetwork returns a boolean if a field has been set.
### SetProviderNetworkNil
-`func (o *WritableCircuitTerminationRequest) SetProviderNetworkNil(b bool)`
+`func (o *PatchedCircuitTerminationRequest) SetProviderNetworkNil(b bool)`
SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
### UnsetProviderNetwork
-`func (o *WritableCircuitTerminationRequest) UnsetProviderNetwork()`
+`func (o *PatchedCircuitTerminationRequest) UnsetProviderNetwork()`
UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
### GetPortSpeed
-`func (o *WritableCircuitTerminationRequest) GetPortSpeed() int32`
+`func (o *PatchedCircuitTerminationRequest) GetPortSpeed() int32`
GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise.
### GetPortSpeedOk
-`func (o *WritableCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)`
GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPortSpeed
-`func (o *WritableCircuitTerminationRequest) SetPortSpeed(v int32)`
+`func (o *PatchedCircuitTerminationRequest) SetPortSpeed(v int32)`
SetPortSpeed sets PortSpeed field to given value.
### HasPortSpeed
-`func (o *WritableCircuitTerminationRequest) HasPortSpeed() bool`
+`func (o *PatchedCircuitTerminationRequest) HasPortSpeed() bool`
HasPortSpeed returns a boolean if a field has been set.
### SetPortSpeedNil
-`func (o *WritableCircuitTerminationRequest) SetPortSpeedNil(b bool)`
+`func (o *PatchedCircuitTerminationRequest) SetPortSpeedNil(b bool)`
SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
### UnsetPortSpeed
-`func (o *WritableCircuitTerminationRequest) UnsetPortSpeed()`
+`func (o *PatchedCircuitTerminationRequest) UnsetPortSpeed()`
UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
### GetUpstreamSpeed
-`func (o *WritableCircuitTerminationRequest) GetUpstreamSpeed() int32`
+`func (o *PatchedCircuitTerminationRequest) GetUpstreamSpeed() int32`
GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise.
### GetUpstreamSpeedOk
-`func (o *WritableCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)`
GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUpstreamSpeed
-`func (o *WritableCircuitTerminationRequest) SetUpstreamSpeed(v int32)`
+`func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeed(v int32)`
SetUpstreamSpeed sets UpstreamSpeed field to given value.
### HasUpstreamSpeed
-`func (o *WritableCircuitTerminationRequest) HasUpstreamSpeed() bool`
+`func (o *PatchedCircuitTerminationRequest) HasUpstreamSpeed() bool`
HasUpstreamSpeed returns a boolean if a field has been set.
### SetUpstreamSpeedNil
-`func (o *WritableCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)`
+`func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)`
SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
### UnsetUpstreamSpeed
-`func (o *WritableCircuitTerminationRequest) UnsetUpstreamSpeed()`
+`func (o *PatchedCircuitTerminationRequest) UnsetUpstreamSpeed()`
UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
### GetXconnectId
-`func (o *WritableCircuitTerminationRequest) GetXconnectId() string`
+`func (o *PatchedCircuitTerminationRequest) GetXconnectId() string`
GetXconnectId returns the XconnectId field if non-nil, zero value otherwise.
### GetXconnectIdOk
-`func (o *WritableCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)`
GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetXconnectId
-`func (o *WritableCircuitTerminationRequest) SetXconnectId(v string)`
+`func (o *PatchedCircuitTerminationRequest) SetXconnectId(v string)`
SetXconnectId sets XconnectId field to given value.
### HasXconnectId
-`func (o *WritableCircuitTerminationRequest) HasXconnectId() bool`
+`func (o *PatchedCircuitTerminationRequest) HasXconnectId() bool`
HasXconnectId returns a boolean if a field has been set.
### GetPpInfo
-`func (o *WritableCircuitTerminationRequest) GetPpInfo() string`
+`func (o *PatchedCircuitTerminationRequest) GetPpInfo() string`
GetPpInfo returns the PpInfo field if non-nil, zero value otherwise.
### GetPpInfoOk
-`func (o *WritableCircuitTerminationRequest) GetPpInfoOk() (*string, bool)`
+`func (o *PatchedCircuitTerminationRequest) GetPpInfoOk() (*string, bool)`
GetPpInfoOk returns a tuple with the PpInfo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPpInfo
-`func (o *WritableCircuitTerminationRequest) SetPpInfo(v string)`
+`func (o *PatchedCircuitTerminationRequest) SetPpInfo(v string)`
SetPpInfo sets PpInfo field to given value.
### HasPpInfo
-`func (o *WritableCircuitTerminationRequest) HasPpInfo() bool`
+`func (o *PatchedCircuitTerminationRequest) HasPpInfo() bool`
HasPpInfo returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableCircuitTerminationRequest) GetDescription() string`
+`func (o *PatchedCircuitTerminationRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableCircuitTerminationRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetDescription(v string)`
+`func (o *PatchedCircuitTerminationRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableCircuitTerminationRequest) HasDescription() bool`
+`func (o *PatchedCircuitTerminationRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetMarkConnected
-`func (o *WritableCircuitTerminationRequest) GetMarkConnected() bool`
+`func (o *PatchedCircuitTerminationRequest) GetMarkConnected() bool`
GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise.
### GetMarkConnectedOk
-`func (o *WritableCircuitTerminationRequest) GetMarkConnectedOk() (*bool, bool)`
+`func (o *PatchedCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetMarkConnected(v bool)`
+`func (o *PatchedCircuitTerminationRequest) SetMarkConnected(v bool)`
SetMarkConnected sets MarkConnected field to given value.
### HasMarkConnected
-`func (o *WritableCircuitTerminationRequest) HasMarkConnected() bool`
+`func (o *PatchedCircuitTerminationRequest) HasMarkConnected() bool`
HasMarkConnected returns a boolean if a field has been set.
### GetTags
-`func (o *WritableCircuitTerminationRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedCircuitTerminationRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableCircuitTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedCircuitTerminationRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableCircuitTerminationRequest) HasTags() bool`
+`func (o *PatchedCircuitTerminationRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *WritableCircuitTerminationRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedCircuitTerminationRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *WritableCircuitTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedCircuitTerminationRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *WritableCircuitTerminationRequest) HasCustomFields() bool`
+`func (o *PatchedCircuitTerminationRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/WritableConfigContextRequest.md b/docs/PatchedConfigContextRequest.md
similarity index 61%
rename from docs/WritableConfigContextRequest.md
rename to docs/PatchedConfigContextRequest.md
index 07c9605b2f..c4a77f8872 100644
--- a/docs/WritableConfigContextRequest.md
+++ b/docs/PatchedConfigContextRequest.md
@@ -1,10 +1,10 @@
-# WritableConfigContextRequest
+# PatchedConfigContextRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Name** | **string** | |
+**Name** | Pointer to **string** | | [optional]
**Weight** | Pointer to **int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**IsActive** | Pointer to **bool** | | [optional]
@@ -21,511 +21,511 @@ Name | Type | Description | Notes
**TenantGroups** | Pointer to **[]int32** | | [optional]
**Tenants** | Pointer to **[]int32** | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
-**DataSource** | Pointer to **NullableInt32** | Remote data source | [optional]
-**Data** | **interface{}** | |
+**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional]
+**Data** | Pointer to **interface{}** | | [optional]
## Methods
-### NewWritableConfigContextRequest
+### NewPatchedConfigContextRequest
-`func NewWritableConfigContextRequest(name string, data interface{}, ) *WritableConfigContextRequest`
+`func NewPatchedConfigContextRequest() *PatchedConfigContextRequest`
-NewWritableConfigContextRequest instantiates a new WritableConfigContextRequest object
+NewPatchedConfigContextRequest instantiates a new PatchedConfigContextRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableConfigContextRequestWithDefaults
+### NewPatchedConfigContextRequestWithDefaults
-`func NewWritableConfigContextRequestWithDefaults() *WritableConfigContextRequest`
+`func NewPatchedConfigContextRequestWithDefaults() *PatchedConfigContextRequest`
-NewWritableConfigContextRequestWithDefaults instantiates a new WritableConfigContextRequest object
+NewPatchedConfigContextRequestWithDefaults instantiates a new PatchedConfigContextRequest object
This 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 *WritableConfigContextRequest) GetName() string`
+`func (o *PatchedConfigContextRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *WritableConfigContextRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetName(v string)`
+`func (o *PatchedConfigContextRequest) SetName(v string)`
SetName sets Name field to given value.
+### HasName
+
+`func (o *PatchedConfigContextRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
### GetWeight
-`func (o *WritableConfigContextRequest) GetWeight() int32`
+`func (o *PatchedConfigContextRequest) GetWeight() int32`
GetWeight returns the Weight field if non-nil, zero value otherwise.
### GetWeightOk
-`func (o *WritableConfigContextRequest) GetWeightOk() (*int32, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetWeight(v int32)`
+`func (o *PatchedConfigContextRequest) SetWeight(v int32)`
SetWeight sets Weight field to given value.
### HasWeight
-`func (o *WritableConfigContextRequest) HasWeight() bool`
+`func (o *PatchedConfigContextRequest) HasWeight() bool`
HasWeight returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableConfigContextRequest) GetDescription() string`
+`func (o *PatchedConfigContextRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableConfigContextRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetDescription(v string)`
+`func (o *PatchedConfigContextRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableConfigContextRequest) HasDescription() bool`
+`func (o *PatchedConfigContextRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetIsActive
-`func (o *WritableConfigContextRequest) GetIsActive() bool`
+`func (o *PatchedConfigContextRequest) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
-`func (o *WritableConfigContextRequest) GetIsActiveOk() (*bool, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetIsActive(v bool)`
+`func (o *PatchedConfigContextRequest) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### HasIsActive
-`func (o *WritableConfigContextRequest) HasIsActive() bool`
+`func (o *PatchedConfigContextRequest) HasIsActive() bool`
HasIsActive returns a boolean if a field has been set.
### GetRegions
-`func (o *WritableConfigContextRequest) GetRegions() []int32`
+`func (o *PatchedConfigContextRequest) GetRegions() []int32`
GetRegions returns the Regions field if non-nil, zero value otherwise.
### GetRegionsOk
-`func (o *WritableConfigContextRequest) GetRegionsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetRegionsOk() (*[]int32, bool)`
GetRegionsOk returns a tuple with the Regions field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRegions
-`func (o *WritableConfigContextRequest) SetRegions(v []int32)`
+`func (o *PatchedConfigContextRequest) SetRegions(v []int32)`
SetRegions sets Regions field to given value.
### HasRegions
-`func (o *WritableConfigContextRequest) HasRegions() bool`
+`func (o *PatchedConfigContextRequest) HasRegions() bool`
HasRegions returns a boolean if a field has been set.
### GetSiteGroups
-`func (o *WritableConfigContextRequest) GetSiteGroups() []int32`
+`func (o *PatchedConfigContextRequest) GetSiteGroups() []int32`
GetSiteGroups returns the SiteGroups field if non-nil, zero value otherwise.
### GetSiteGroupsOk
-`func (o *WritableConfigContextRequest) GetSiteGroupsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetSiteGroupsOk() (*[]int32, bool)`
GetSiteGroupsOk returns a tuple with the SiteGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSiteGroups
-`func (o *WritableConfigContextRequest) SetSiteGroups(v []int32)`
+`func (o *PatchedConfigContextRequest) SetSiteGroups(v []int32)`
SetSiteGroups sets SiteGroups field to given value.
### HasSiteGroups
-`func (o *WritableConfigContextRequest) HasSiteGroups() bool`
+`func (o *PatchedConfigContextRequest) HasSiteGroups() bool`
HasSiteGroups returns a boolean if a field has been set.
### GetSites
-`func (o *WritableConfigContextRequest) GetSites() []int32`
+`func (o *PatchedConfigContextRequest) GetSites() []int32`
GetSites returns the Sites field if non-nil, zero value otherwise.
### GetSitesOk
-`func (o *WritableConfigContextRequest) GetSitesOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetSitesOk() (*[]int32, bool)`
GetSitesOk returns a tuple with the Sites field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSites
-`func (o *WritableConfigContextRequest) SetSites(v []int32)`
+`func (o *PatchedConfigContextRequest) SetSites(v []int32)`
SetSites sets Sites field to given value.
### HasSites
-`func (o *WritableConfigContextRequest) HasSites() bool`
+`func (o *PatchedConfigContextRequest) HasSites() bool`
HasSites returns a boolean if a field has been set.
### GetLocations
-`func (o *WritableConfigContextRequest) GetLocations() []int32`
+`func (o *PatchedConfigContextRequest) GetLocations() []int32`
GetLocations returns the Locations field if non-nil, zero value otherwise.
### GetLocationsOk
-`func (o *WritableConfigContextRequest) GetLocationsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetLocationsOk() (*[]int32, bool)`
GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLocations
-`func (o *WritableConfigContextRequest) SetLocations(v []int32)`
+`func (o *PatchedConfigContextRequest) SetLocations(v []int32)`
SetLocations sets Locations field to given value.
### HasLocations
-`func (o *WritableConfigContextRequest) HasLocations() bool`
+`func (o *PatchedConfigContextRequest) HasLocations() bool`
HasLocations returns a boolean if a field has been set.
### GetDeviceTypes
-`func (o *WritableConfigContextRequest) GetDeviceTypes() []int32`
+`func (o *PatchedConfigContextRequest) GetDeviceTypes() []int32`
GetDeviceTypes returns the DeviceTypes field if non-nil, zero value otherwise.
### GetDeviceTypesOk
-`func (o *WritableConfigContextRequest) GetDeviceTypesOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetDeviceTypesOk() (*[]int32, bool)`
GetDeviceTypesOk returns a tuple with the DeviceTypes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDeviceTypes
-`func (o *WritableConfigContextRequest) SetDeviceTypes(v []int32)`
+`func (o *PatchedConfigContextRequest) SetDeviceTypes(v []int32)`
SetDeviceTypes sets DeviceTypes field to given value.
### HasDeviceTypes
-`func (o *WritableConfigContextRequest) HasDeviceTypes() bool`
+`func (o *PatchedConfigContextRequest) HasDeviceTypes() bool`
HasDeviceTypes returns a boolean if a field has been set.
### GetRoles
-`func (o *WritableConfigContextRequest) GetRoles() []int32`
+`func (o *PatchedConfigContextRequest) GetRoles() []int32`
GetRoles returns the Roles field if non-nil, zero value otherwise.
### GetRolesOk
-`func (o *WritableConfigContextRequest) GetRolesOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetRolesOk() (*[]int32, bool)`
GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRoles
-`func (o *WritableConfigContextRequest) SetRoles(v []int32)`
+`func (o *PatchedConfigContextRequest) SetRoles(v []int32)`
SetRoles sets Roles field to given value.
### HasRoles
-`func (o *WritableConfigContextRequest) HasRoles() bool`
+`func (o *PatchedConfigContextRequest) HasRoles() bool`
HasRoles returns a boolean if a field has been set.
### GetPlatforms
-`func (o *WritableConfigContextRequest) GetPlatforms() []int32`
+`func (o *PatchedConfigContextRequest) GetPlatforms() []int32`
GetPlatforms returns the Platforms field if non-nil, zero value otherwise.
### GetPlatformsOk
-`func (o *WritableConfigContextRequest) GetPlatformsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetPlatformsOk() (*[]int32, bool)`
GetPlatformsOk returns a tuple with the Platforms field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPlatforms
-`func (o *WritableConfigContextRequest) SetPlatforms(v []int32)`
+`func (o *PatchedConfigContextRequest) SetPlatforms(v []int32)`
SetPlatforms sets Platforms field to given value.
### HasPlatforms
-`func (o *WritableConfigContextRequest) HasPlatforms() bool`
+`func (o *PatchedConfigContextRequest) HasPlatforms() bool`
HasPlatforms returns a boolean if a field has been set.
### GetClusterTypes
-`func (o *WritableConfigContextRequest) GetClusterTypes() []int32`
+`func (o *PatchedConfigContextRequest) GetClusterTypes() []int32`
GetClusterTypes returns the ClusterTypes field if non-nil, zero value otherwise.
### GetClusterTypesOk
-`func (o *WritableConfigContextRequest) GetClusterTypesOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetClusterTypesOk() (*[]int32, bool)`
GetClusterTypesOk returns a tuple with the ClusterTypes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusterTypes
-`func (o *WritableConfigContextRequest) SetClusterTypes(v []int32)`
+`func (o *PatchedConfigContextRequest) SetClusterTypes(v []int32)`
SetClusterTypes sets ClusterTypes field to given value.
### HasClusterTypes
-`func (o *WritableConfigContextRequest) HasClusterTypes() bool`
+`func (o *PatchedConfigContextRequest) HasClusterTypes() bool`
HasClusterTypes returns a boolean if a field has been set.
### GetClusterGroups
-`func (o *WritableConfigContextRequest) GetClusterGroups() []int32`
+`func (o *PatchedConfigContextRequest) GetClusterGroups() []int32`
GetClusterGroups returns the ClusterGroups field if non-nil, zero value otherwise.
### GetClusterGroupsOk
-`func (o *WritableConfigContextRequest) GetClusterGroupsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetClusterGroupsOk() (*[]int32, bool)`
GetClusterGroupsOk returns a tuple with the ClusterGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusterGroups
-`func (o *WritableConfigContextRequest) SetClusterGroups(v []int32)`
+`func (o *PatchedConfigContextRequest) SetClusterGroups(v []int32)`
SetClusterGroups sets ClusterGroups field to given value.
### HasClusterGroups
-`func (o *WritableConfigContextRequest) HasClusterGroups() bool`
+`func (o *PatchedConfigContextRequest) HasClusterGroups() bool`
HasClusterGroups returns a boolean if a field has been set.
### GetClusters
-`func (o *WritableConfigContextRequest) GetClusters() []int32`
+`func (o *PatchedConfigContextRequest) GetClusters() []int32`
GetClusters returns the Clusters field if non-nil, zero value otherwise.
### GetClustersOk
-`func (o *WritableConfigContextRequest) GetClustersOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetClustersOk() (*[]int32, bool)`
GetClustersOk returns a tuple with the Clusters field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetClusters
-`func (o *WritableConfigContextRequest) SetClusters(v []int32)`
+`func (o *PatchedConfigContextRequest) SetClusters(v []int32)`
SetClusters sets Clusters field to given value.
### HasClusters
-`func (o *WritableConfigContextRequest) HasClusters() bool`
+`func (o *PatchedConfigContextRequest) HasClusters() bool`
HasClusters returns a boolean if a field has been set.
### GetTenantGroups
-`func (o *WritableConfigContextRequest) GetTenantGroups() []int32`
+`func (o *PatchedConfigContextRequest) GetTenantGroups() []int32`
GetTenantGroups returns the TenantGroups field if non-nil, zero value otherwise.
### GetTenantGroupsOk
-`func (o *WritableConfigContextRequest) GetTenantGroupsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetTenantGroupsOk() (*[]int32, bool)`
GetTenantGroupsOk returns a tuple with the TenantGroups field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTenantGroups
-`func (o *WritableConfigContextRequest) SetTenantGroups(v []int32)`
+`func (o *PatchedConfigContextRequest) SetTenantGroups(v []int32)`
SetTenantGroups sets TenantGroups field to given value.
### HasTenantGroups
-`func (o *WritableConfigContextRequest) HasTenantGroups() bool`
+`func (o *PatchedConfigContextRequest) HasTenantGroups() bool`
HasTenantGroups returns a boolean if a field has been set.
### GetTenants
-`func (o *WritableConfigContextRequest) GetTenants() []int32`
+`func (o *PatchedConfigContextRequest) GetTenants() []int32`
GetTenants returns the Tenants field if non-nil, zero value otherwise.
### GetTenantsOk
-`func (o *WritableConfigContextRequest) GetTenantsOk() (*[]int32, bool)`
+`func (o *PatchedConfigContextRequest) GetTenantsOk() (*[]int32, bool)`
GetTenantsOk returns a tuple with the Tenants field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTenants
-`func (o *WritableConfigContextRequest) SetTenants(v []int32)`
+`func (o *PatchedConfigContextRequest) SetTenants(v []int32)`
SetTenants sets Tenants field to given value.
### HasTenants
-`func (o *WritableConfigContextRequest) HasTenants() bool`
+`func (o *PatchedConfigContextRequest) HasTenants() bool`
HasTenants returns a boolean if a field has been set.
### GetTags
-`func (o *WritableConfigContextRequest) GetTags() []string`
+`func (o *PatchedConfigContextRequest) GetTags() []string`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableConfigContextRequest) GetTagsOk() (*[]string, bool)`
+`func (o *PatchedConfigContextRequest) GetTagsOk() (*[]string, 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 *WritableConfigContextRequest) SetTags(v []string)`
+`func (o *PatchedConfigContextRequest) SetTags(v []string)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableConfigContextRequest) HasTags() bool`
+`func (o *PatchedConfigContextRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetDataSource
-`func (o *WritableConfigContextRequest) GetDataSource() int32`
+`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *WritableConfigContextRequest) GetDataSourceOk() (*int32, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetDataSource(v int32)`
+`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)`
SetDataSource sets DataSource field to given value.
### HasDataSource
-`func (o *WritableConfigContextRequest) HasDataSource() bool`
+`func (o *PatchedConfigContextRequest) HasDataSource() bool`
HasDataSource returns a boolean if a field has been set.
-### SetDataSourceNil
-
-`func (o *WritableConfigContextRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *WritableConfigContextRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
### GetData
-`func (o *WritableConfigContextRequest) GetData() interface{}`
+`func (o *PatchedConfigContextRequest) GetData() interface{}`
GetData returns the Data field if non-nil, zero value otherwise.
### GetDataOk
-`func (o *WritableConfigContextRequest) GetDataOk() (*interface{}, bool)`
+`func (o *PatchedConfigContextRequest) 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 *WritableConfigContextRequest) SetData(v interface{})`
+`func (o *PatchedConfigContextRequest) SetData(v interface{})`
SetData sets Data field to given value.
+### HasData
+
+`func (o *PatchedConfigContextRequest) HasData() bool`
+
+HasData returns a boolean if a field has been set.
### SetDataNil
-`func (o *WritableConfigContextRequest) SetDataNil(b bool)`
+`func (o *PatchedConfigContextRequest) SetDataNil(b bool)`
SetDataNil sets the value for Data to be an explicit nil
### UnsetData
-`func (o *WritableConfigContextRequest) UnsetData()`
+`func (o *PatchedConfigContextRequest) UnsetData()`
UnsetData ensures that no value is present for Data, not even an explicit nil
diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md
new file mode 100644
index 0000000000..c9b1475925
--- /dev/null
+++ b/docs/PatchedConfigTemplateRequest.md
@@ -0,0 +1,196 @@
+# PatchedConfigTemplateRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | Pointer to **string** | | [optional]
+**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]
+**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
+
+## Methods
+
+### NewPatchedConfigTemplateRequest
+
+`func NewPatchedConfigTemplateRequest() *PatchedConfigTemplateRequest`
+
+NewPatchedConfigTemplateRequest instantiates a new PatchedConfigTemplateRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewPatchedConfigTemplateRequestWithDefaults
+
+`func NewPatchedConfigTemplateRequestWithDefaults() *PatchedConfigTemplateRequest`
+
+NewPatchedConfigTemplateRequestWithDefaults instantiates a new PatchedConfigTemplateRequest object
+This 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 *PatchedConfigTemplateRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *PatchedConfigTemplateRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetDescription
+
+`func (o *PatchedConfigTemplateRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedConfigTemplateRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetEnvironmentParams
+
+`func (o *PatchedConfigTemplateRequest) GetEnvironmentParams() interface{}`
+
+GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
+
+### GetEnvironmentParamsOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetEnvironmentParams(v interface{})`
+
+SetEnvironmentParams sets EnvironmentParams field to given value.
+
+### HasEnvironmentParams
+
+`func (o *PatchedConfigTemplateRequest) HasEnvironmentParams() bool`
+
+HasEnvironmentParams returns a boolean if a field has been set.
+
+### SetEnvironmentParamsNil
+
+`func (o *PatchedConfigTemplateRequest) SetEnvironmentParamsNil(b bool)`
+
+ SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil
+
+### UnsetEnvironmentParams
+`func (o *PatchedConfigTemplateRequest) UnsetEnvironmentParams()`
+
+UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil
+### GetTemplateCode
+
+`func (o *PatchedConfigTemplateRequest) GetTemplateCode() string`
+
+GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise.
+
+### GetTemplateCodeOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetTemplateCode(v string)`
+
+SetTemplateCode sets TemplateCode field to given value.
+
+### HasTemplateCode
+
+`func (o *PatchedConfigTemplateRequest) HasTemplateCode() bool`
+
+HasTemplateCode returns a boolean if a field has been set.
+
+### GetDataSource
+
+`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest`
+
+GetDataSource returns the DataSource field if non-nil, zero value otherwise.
+
+### GetDataSourceOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)`
+
+SetDataSource sets DataSource field to given value.
+
+### HasDataSource
+
+`func (o *PatchedConfigTemplateRequest) HasDataSource() bool`
+
+HasDataSource returns a boolean if a field has been set.
+
+### GetTags
+
+`func (o *PatchedConfigTemplateRequest) GetTags() []NestedTagRequest`
+
+GetTags returns the Tags field if non-nil, zero value otherwise.
+
+### GetTagsOk
+
+`func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetTags(v []NestedTagRequest)`
+
+SetTags sets Tags field to given value.
+
+### HasTags
+
+`func (o *PatchedConfigTemplateRequest) 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/WritableContactRequest.md b/docs/PatchedContactRequest.md
similarity index 62%
rename from docs/WritableContactRequest.md
rename to docs/PatchedContactRequest.md
index be19e058e8..d1ad6719e2 100644
--- a/docs/WritableContactRequest.md
+++ b/docs/PatchedContactRequest.md
@@ -1,11 +1,11 @@
-# WritableContactRequest
+# PatchedContactRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Name** | **string** | |
+**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional]
+**Name** | Pointer to **string** | | [optional]
**Title** | Pointer to **string** | | [optional]
**Phone** | Pointer to **string** | | [optional]
**Email** | Pointer to **string** | | [optional]
@@ -18,300 +18,305 @@ Name | Type | Description | Notes
## Methods
-### NewWritableContactRequest
+### NewPatchedContactRequest
-`func NewWritableContactRequest(name string, ) *WritableContactRequest`
+`func NewPatchedContactRequest() *PatchedContactRequest`
-NewWritableContactRequest instantiates a new WritableContactRequest object
+NewPatchedContactRequest instantiates a new PatchedContactRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableContactRequestWithDefaults
+### NewPatchedContactRequestWithDefaults
-`func NewWritableContactRequestWithDefaults() *WritableContactRequest`
+`func NewPatchedContactRequestWithDefaults() *PatchedContactRequest`
-NewWritableContactRequestWithDefaults instantiates a new WritableContactRequest object
+NewPatchedContactRequestWithDefaults instantiates a new PatchedContactRequest object
This 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 *WritableContactRequest) GetGroup() int32`
+`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableContactRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, 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 *WritableContactRequest) SetGroup(v int32)`
+`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)`
SetGroup sets Group field to given value.
### HasGroup
-`func (o *WritableContactRequest) HasGroup() bool`
+`func (o *PatchedContactRequest) HasGroup() bool`
HasGroup returns a boolean if a field has been set.
### SetGroupNil
-`func (o *WritableContactRequest) SetGroupNil(b bool)`
+`func (o *PatchedContactRequest) SetGroupNil(b bool)`
SetGroupNil sets the value for Group to be an explicit nil
### UnsetGroup
-`func (o *WritableContactRequest) UnsetGroup()`
+`func (o *PatchedContactRequest) UnsetGroup()`
UnsetGroup ensures that no value is present for Group, not even an explicit nil
### GetName
-`func (o *WritableContactRequest) GetName() string`
+`func (o *PatchedContactRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *WritableContactRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetName(v string)`
+`func (o *PatchedContactRequest) SetName(v string)`
SetName sets Name field to given value.
+### HasName
+
+`func (o *PatchedContactRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
### GetTitle
-`func (o *WritableContactRequest) GetTitle() string`
+`func (o *PatchedContactRequest) GetTitle() string`
GetTitle returns the Title field if non-nil, zero value otherwise.
### GetTitleOk
-`func (o *WritableContactRequest) GetTitleOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetTitle(v string)`
+`func (o *PatchedContactRequest) SetTitle(v string)`
SetTitle sets Title field to given value.
### HasTitle
-`func (o *WritableContactRequest) HasTitle() bool`
+`func (o *PatchedContactRequest) HasTitle() bool`
HasTitle returns a boolean if a field has been set.
### GetPhone
-`func (o *WritableContactRequest) GetPhone() string`
+`func (o *PatchedContactRequest) GetPhone() string`
GetPhone returns the Phone field if non-nil, zero value otherwise.
### GetPhoneOk
-`func (o *WritableContactRequest) GetPhoneOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetPhone(v string)`
+`func (o *PatchedContactRequest) SetPhone(v string)`
SetPhone sets Phone field to given value.
### HasPhone
-`func (o *WritableContactRequest) HasPhone() bool`
+`func (o *PatchedContactRequest) HasPhone() bool`
HasPhone returns a boolean if a field has been set.
### GetEmail
-`func (o *WritableContactRequest) GetEmail() string`
+`func (o *PatchedContactRequest) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
-`func (o *WritableContactRequest) GetEmailOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetEmail(v string)`
+`func (o *PatchedContactRequest) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
-`func (o *WritableContactRequest) HasEmail() bool`
+`func (o *PatchedContactRequest) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### GetAddress
-`func (o *WritableContactRequest) GetAddress() string`
+`func (o *PatchedContactRequest) GetAddress() string`
GetAddress returns the Address field if non-nil, zero value otherwise.
### GetAddressOk
-`func (o *WritableContactRequest) GetAddressOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetAddress(v string)`
+`func (o *PatchedContactRequest) SetAddress(v string)`
SetAddress sets Address field to given value.
### HasAddress
-`func (o *WritableContactRequest) HasAddress() bool`
+`func (o *PatchedContactRequest) HasAddress() bool`
HasAddress returns a boolean if a field has been set.
### GetLink
-`func (o *WritableContactRequest) GetLink() string`
+`func (o *PatchedContactRequest) GetLink() string`
GetLink returns the Link field if non-nil, zero value otherwise.
### GetLinkOk
-`func (o *WritableContactRequest) GetLinkOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetLink(v string)`
+`func (o *PatchedContactRequest) SetLink(v string)`
SetLink sets Link field to given value.
### HasLink
-`func (o *WritableContactRequest) HasLink() bool`
+`func (o *PatchedContactRequest) HasLink() bool`
HasLink returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableContactRequest) GetDescription() string`
+`func (o *PatchedContactRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableContactRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetDescription(v string)`
+`func (o *PatchedContactRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableContactRequest) HasDescription() bool`
+`func (o *PatchedContactRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *WritableContactRequest) GetComments() string`
+`func (o *PatchedContactRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *WritableContactRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetComments(v string)`
+`func (o *PatchedContactRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *WritableContactRequest) HasComments() bool`
+`func (o *PatchedContactRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *WritableContactRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedContactRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableContactRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedContactRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableContactRequest) HasTags() bool`
+`func (o *PatchedContactRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *WritableContactRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedContactRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *WritableContactRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedContactRequest) 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 *WritableContactRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedContactRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *WritableContactRequest) HasCustomFields() bool`
+`func (o *PatchedContactRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedCustomLinkRequest.md b/docs/PatchedCustomLinkRequest.md
index bacf0db117..6c94fd6306 100644
--- a/docs/PatchedCustomLinkRequest.md
+++ b/docs/PatchedCustomLinkRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
+**ObjectTypes** | Pointer to **[]string** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**LinkText** | Pointer to **string** | Jinja2 template code for link text | [optional]
@@ -33,30 +33,30 @@ NewPatchedCustomLinkRequestWithDefaults instantiates a new PatchedCustomLinkRequ
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *PatchedCustomLinkRequest) GetContentTypes() []string`
+`func (o *PatchedCustomLinkRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *PatchedCustomLinkRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *PatchedCustomLinkRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *PatchedCustomLinkRequest) SetContentTypes(v []string)`
+`func (o *PatchedCustomLinkRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
-### HasContentTypes
+### HasObjectTypes
-`func (o *PatchedCustomLinkRequest) HasContentTypes() bool`
+`func (o *PatchedCustomLinkRequest) HasObjectTypes() bool`
-HasContentTypes returns a boolean if a field has been set.
+HasObjectTypes returns a boolean if a field has been set.
### GetName
diff --git a/docs/PatchedWritableDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md
similarity index 59%
rename from docs/PatchedWritableDeviceBayRequest.md
rename to docs/PatchedDeviceBayRequest.md
index 8c4d9a0af8..bf25fd2a40 100644
--- a/docs/PatchedWritableDeviceBayRequest.md
+++ b/docs/PatchedDeviceBayRequest.md
@@ -1,218 +1,218 @@
-# PatchedWritableDeviceBayRequest
+# PatchedDeviceBayRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Description** | Pointer to **string** | | [optional]
-**InstalledDevice** | Pointer to **NullableInt32** | | [optional]
+**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
-### NewPatchedWritableDeviceBayRequest
+### NewPatchedDeviceBayRequest
-`func NewPatchedWritableDeviceBayRequest() *PatchedWritableDeviceBayRequest`
+`func NewPatchedDeviceBayRequest() *PatchedDeviceBayRequest`
-NewPatchedWritableDeviceBayRequest instantiates a new PatchedWritableDeviceBayRequest object
+NewPatchedDeviceBayRequest instantiates a new PatchedDeviceBayRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableDeviceBayRequestWithDefaults
+### NewPatchedDeviceBayRequestWithDefaults
-`func NewPatchedWritableDeviceBayRequestWithDefaults() *PatchedWritableDeviceBayRequest`
+`func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest`
-NewPatchedWritableDeviceBayRequestWithDefaults instantiates a new PatchedWritableDeviceBayRequest object
+NewPatchedDeviceBayRequestWithDefaults instantiates a new PatchedDeviceBayRequest object
This 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 *PatchedWritableDeviceBayRequest) GetDevice() int32`
+`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableDeviceBayRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetDevice(v int32)`
+`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### HasDevice
-`func (o *PatchedWritableDeviceBayRequest) HasDevice() bool`
+`func (o *PatchedDeviceBayRequest) HasDevice() bool`
HasDevice returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableDeviceBayRequest) GetName() string`
+`func (o *PatchedDeviceBayRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableDeviceBayRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetName(v string)`
+`func (o *PatchedDeviceBayRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableDeviceBayRequest) HasName() bool`
+`func (o *PatchedDeviceBayRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetLabel
-`func (o *PatchedWritableDeviceBayRequest) GetLabel() string`
+`func (o *PatchedDeviceBayRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PatchedWritableDeviceBayRequest) GetLabelOk() (*string, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetLabel(v string)`
+`func (o *PatchedDeviceBayRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *PatchedWritableDeviceBayRequest) HasLabel() bool`
+`func (o *PatchedDeviceBayRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableDeviceBayRequest) GetDescription() string`
+`func (o *PatchedDeviceBayRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableDeviceBayRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetDescription(v string)`
+`func (o *PatchedDeviceBayRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableDeviceBayRequest) HasDescription() bool`
+`func (o *PatchedDeviceBayRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetInstalledDevice
-`func (o *PatchedWritableDeviceBayRequest) GetInstalledDevice() int32`
+`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest`
GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise.
### GetInstalledDeviceOk
-`func (o *PatchedWritableDeviceBayRequest) GetInstalledDeviceOk() (*int32, bool)`
+`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, 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 *PatchedWritableDeviceBayRequest) SetInstalledDevice(v int32)`
+`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)`
SetInstalledDevice sets InstalledDevice field to given value.
### HasInstalledDevice
-`func (o *PatchedWritableDeviceBayRequest) HasInstalledDevice() bool`
+`func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool`
HasInstalledDevice returns a boolean if a field has been set.
### SetInstalledDeviceNil
-`func (o *PatchedWritableDeviceBayRequest) SetInstalledDeviceNil(b bool)`
+`func (o *PatchedDeviceBayRequest) SetInstalledDeviceNil(b bool)`
SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
### UnsetInstalledDevice
-`func (o *PatchedWritableDeviceBayRequest) UnsetInstalledDevice()`
+`func (o *PatchedDeviceBayRequest) UnsetInstalledDevice()`
UnsetInstalledDevice ensures that no value is present for InstalledDevice, not even an explicit nil
### GetTags
-`func (o *PatchedWritableDeviceBayRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedDeviceBayRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableDeviceBayRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedDeviceBayRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableDeviceBayRequest) HasTags() bool`
+`func (o *PatchedDeviceBayRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableDeviceBayRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedDeviceBayRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableDeviceBayRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedDeviceBayRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableDeviceBayRequest) HasCustomFields() bool`
+`func (o *PatchedDeviceBayRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md
similarity index 57%
rename from docs/PatchedWritableDeviceBayTemplateRequest.md
rename to docs/PatchedDeviceBayTemplateRequest.md
index 60785486f5..5ba265ed2b 100644
--- a/docs/PatchedWritableDeviceBayTemplateRequest.md
+++ b/docs/PatchedDeviceBayTemplateRequest.md
@@ -1,130 +1,130 @@
-# PatchedWritableDeviceBayTemplateRequest
+# PatchedDeviceBayTemplateRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **int32** | | [optional]
+**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]
**Description** | Pointer to **string** | | [optional]
## Methods
-### NewPatchedWritableDeviceBayTemplateRequest
+### NewPatchedDeviceBayTemplateRequest
-`func NewPatchedWritableDeviceBayTemplateRequest() *PatchedWritableDeviceBayTemplateRequest`
+`func NewPatchedDeviceBayTemplateRequest() *PatchedDeviceBayTemplateRequest`
-NewPatchedWritableDeviceBayTemplateRequest instantiates a new PatchedWritableDeviceBayTemplateRequest object
+NewPatchedDeviceBayTemplateRequest instantiates a new PatchedDeviceBayTemplateRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableDeviceBayTemplateRequestWithDefaults
+### NewPatchedDeviceBayTemplateRequestWithDefaults
-`func NewPatchedWritableDeviceBayTemplateRequestWithDefaults() *PatchedWritableDeviceBayTemplateRequest`
+`func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateRequest`
-NewPatchedWritableDeviceBayTemplateRequestWithDefaults instantiates a new PatchedWritableDeviceBayTemplateRequest object
+NewPatchedDeviceBayTemplateRequestWithDefaults instantiates a new PatchedDeviceBayTemplateRequest object
This 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 *PatchedWritableDeviceBayTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
### HasDeviceType
-`func (o *PatchedWritableDeviceBayTemplateRequest) HasDeviceType() bool`
+`func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool`
HasDeviceType returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetName() string`
+`func (o *PatchedDeviceBayTemplateRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) SetName(v string)`
+`func (o *PatchedDeviceBayTemplateRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableDeviceBayTemplateRequest) HasName() bool`
+`func (o *PatchedDeviceBayTemplateRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetLabel
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetLabel() string`
+`func (o *PatchedDeviceBayTemplateRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetLabelOk() (*string, bool)`
+`func (o *PatchedDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) SetLabel(v string)`
+`func (o *PatchedDeviceBayTemplateRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *PatchedWritableDeviceBayTemplateRequest) HasLabel() bool`
+`func (o *PatchedDeviceBayTemplateRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetDescription() string`
+`func (o *PatchedDeviceBayTemplateRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableDeviceBayTemplateRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) SetDescription(v string)`
+`func (o *PatchedDeviceBayTemplateRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableDeviceBayTemplateRequest) HasDescription() bool`
+`func (o *PatchedDeviceBayTemplateRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md
similarity index 60%
rename from docs/PatchedWritableDeviceRoleRequest.md
rename to docs/PatchedDeviceRoleRequest.md
index fa656e795b..19824a38b8 100644
--- a/docs/PatchedWritableDeviceRoleRequest.md
+++ b/docs/PatchedDeviceRoleRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableDeviceRoleRequest
+# PatchedDeviceRoleRequest
## Properties
@@ -8,237 +8,237 @@ 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 **NullableInt32** | | [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
-### NewPatchedWritableDeviceRoleRequest
+### NewPatchedDeviceRoleRequest
-`func NewPatchedWritableDeviceRoleRequest() *PatchedWritableDeviceRoleRequest`
+`func NewPatchedDeviceRoleRequest() *PatchedDeviceRoleRequest`
-NewPatchedWritableDeviceRoleRequest instantiates a new PatchedWritableDeviceRoleRequest object
+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
-### NewPatchedWritableDeviceRoleRequestWithDefaults
+### NewPatchedDeviceRoleRequestWithDefaults
-`func NewPatchedWritableDeviceRoleRequestWithDefaults() *PatchedWritableDeviceRoleRequest`
+`func NewPatchedDeviceRoleRequestWithDefaults() *PatchedDeviceRoleRequest`
-NewPatchedWritableDeviceRoleRequestWithDefaults instantiates a new PatchedWritableDeviceRoleRequest object
+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 *PatchedWritableDeviceRoleRequest) GetName() string`
+`func (o *PatchedDeviceRoleRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableDeviceRoleRequest) GetNameOk() (*string, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetName(v string)`
+`func (o *PatchedDeviceRoleRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableDeviceRoleRequest) HasName() bool`
+`func (o *PatchedDeviceRoleRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetSlug
-`func (o *PatchedWritableDeviceRoleRequest) GetSlug() string`
+`func (o *PatchedDeviceRoleRequest) GetSlug() string`
GetSlug returns the Slug field if non-nil, zero value otherwise.
### GetSlugOk
-`func (o *PatchedWritableDeviceRoleRequest) GetSlugOk() (*string, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetSlug(v string)`
+`func (o *PatchedDeviceRoleRequest) SetSlug(v string)`
SetSlug sets Slug field to given value.
### HasSlug
-`func (o *PatchedWritableDeviceRoleRequest) HasSlug() bool`
+`func (o *PatchedDeviceRoleRequest) HasSlug() bool`
HasSlug returns a boolean if a field has been set.
### GetColor
-`func (o *PatchedWritableDeviceRoleRequest) GetColor() string`
+`func (o *PatchedDeviceRoleRequest) GetColor() string`
GetColor returns the Color field if non-nil, zero value otherwise.
### GetColorOk
-`func (o *PatchedWritableDeviceRoleRequest) GetColorOk() (*string, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetColor(v string)`
+`func (o *PatchedDeviceRoleRequest) SetColor(v string)`
SetColor sets Color field to given value.
### HasColor
-`func (o *PatchedWritableDeviceRoleRequest) HasColor() bool`
+`func (o *PatchedDeviceRoleRequest) HasColor() bool`
HasColor returns a boolean if a field has been set.
### GetVmRole
-`func (o *PatchedWritableDeviceRoleRequest) GetVmRole() bool`
+`func (o *PatchedDeviceRoleRequest) GetVmRole() bool`
GetVmRole returns the VmRole field if non-nil, zero value otherwise.
### GetVmRoleOk
-`func (o *PatchedWritableDeviceRoleRequest) GetVmRoleOk() (*bool, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetVmRole(v bool)`
+`func (o *PatchedDeviceRoleRequest) SetVmRole(v bool)`
SetVmRole sets VmRole field to given value.
### HasVmRole
-`func (o *PatchedWritableDeviceRoleRequest) HasVmRole() bool`
+`func (o *PatchedDeviceRoleRequest) HasVmRole() bool`
HasVmRole returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplate() int32`
+`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplateOk() (*int32, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetConfigTemplate(v int32)`
+`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
### HasConfigTemplate
-`func (o *PatchedWritableDeviceRoleRequest) HasConfigTemplate() bool`
+`func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool`
HasConfigTemplate returns a boolean if a field has been set.
### SetConfigTemplateNil
-`func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplateNil(b bool)`
+`func (o *PatchedDeviceRoleRequest) SetConfigTemplateNil(b bool)`
SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
### UnsetConfigTemplate
-`func (o *PatchedWritableDeviceRoleRequest) UnsetConfigTemplate()`
+`func (o *PatchedDeviceRoleRequest) UnsetConfigTemplate()`
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableDeviceRoleRequest) GetDescription() string`
+`func (o *PatchedDeviceRoleRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableDeviceRoleRequest) GetDescriptionOk() (*string, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetDescription(v string)`
+`func (o *PatchedDeviceRoleRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableDeviceRoleRequest) HasDescription() bool`
+`func (o *PatchedDeviceRoleRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableDeviceRoleRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedDeviceRoleRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableDeviceRoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedDeviceRoleRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableDeviceRoleRequest) HasTags() bool`
+`func (o *PatchedDeviceRoleRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableDeviceRoleRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedDeviceRoleRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableDeviceRoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`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 *PatchedWritableDeviceRoleRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedDeviceRoleRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableDeviceRoleRequest) HasCustomFields() bool`
+`func (o *PatchedDeviceRoleRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md
similarity index 53%
rename from docs/PatchedWritableExportTemplateRequest.md
rename to docs/PatchedExportTemplateRequest.md
index 601b0dec3f..0a424e1f2a 100644
--- a/docs/PatchedWritableExportTemplateRequest.md
+++ b/docs/PatchedExportTemplateRequest.md
@@ -1,247 +1,237 @@
-# PatchedWritableExportTemplateRequest
+# PatchedExportTemplateRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
+**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 **NullableInt32** | Remote data source | [optional]
+**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional]
## Methods
-### NewPatchedWritableExportTemplateRequest
+### NewPatchedExportTemplateRequest
-`func NewPatchedWritableExportTemplateRequest() *PatchedWritableExportTemplateRequest`
+`func NewPatchedExportTemplateRequest() *PatchedExportTemplateRequest`
-NewPatchedWritableExportTemplateRequest instantiates a new PatchedWritableExportTemplateRequest object
+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
-### NewPatchedWritableExportTemplateRequestWithDefaults
+### NewPatchedExportTemplateRequestWithDefaults
-`func NewPatchedWritableExportTemplateRequestWithDefaults() *PatchedWritableExportTemplateRequest`
+`func NewPatchedExportTemplateRequestWithDefaults() *PatchedExportTemplateRequest`
-NewPatchedWritableExportTemplateRequestWithDefaults instantiates a new PatchedWritableExportTemplateRequest object
+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
-### GetContentTypes
+### GetObjectTypes
-`func (o *PatchedWritableExportTemplateRequest) GetContentTypes() []string`
+`func (o *PatchedExportTemplateRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *PatchedWritableExportTemplateRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *PatchedExportTemplateRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *PatchedWritableExportTemplateRequest) SetContentTypes(v []string)`
+`func (o *PatchedExportTemplateRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
-### HasContentTypes
+### HasObjectTypes
-`func (o *PatchedWritableExportTemplateRequest) HasContentTypes() bool`
+`func (o *PatchedExportTemplateRequest) HasObjectTypes() bool`
-HasContentTypes returns a boolean if a field has been set.
+HasObjectTypes returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableExportTemplateRequest) GetName() string`
+`func (o *PatchedExportTemplateRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableExportTemplateRequest) GetNameOk() (*string, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetName(v string)`
+`func (o *PatchedExportTemplateRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableExportTemplateRequest) HasName() bool`
+`func (o *PatchedExportTemplateRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableExportTemplateRequest) GetDescription() string`
+`func (o *PatchedExportTemplateRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableExportTemplateRequest) GetDescriptionOk() (*string, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetDescription(v string)`
+`func (o *PatchedExportTemplateRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableExportTemplateRequest) HasDescription() bool`
+`func (o *PatchedExportTemplateRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetTemplateCode
-`func (o *PatchedWritableExportTemplateRequest) GetTemplateCode() string`
+`func (o *PatchedExportTemplateRequest) GetTemplateCode() string`
GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise.
### GetTemplateCodeOk
-`func (o *PatchedWritableExportTemplateRequest) GetTemplateCodeOk() (*string, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetTemplateCode(v string)`
+`func (o *PatchedExportTemplateRequest) SetTemplateCode(v string)`
SetTemplateCode sets TemplateCode field to given value.
### HasTemplateCode
-`func (o *PatchedWritableExportTemplateRequest) HasTemplateCode() bool`
+`func (o *PatchedExportTemplateRequest) HasTemplateCode() bool`
HasTemplateCode returns a boolean if a field has been set.
### GetMimeType
-`func (o *PatchedWritableExportTemplateRequest) GetMimeType() string`
+`func (o *PatchedExportTemplateRequest) GetMimeType() string`
GetMimeType returns the MimeType field if non-nil, zero value otherwise.
### GetMimeTypeOk
-`func (o *PatchedWritableExportTemplateRequest) GetMimeTypeOk() (*string, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetMimeType(v string)`
+`func (o *PatchedExportTemplateRequest) SetMimeType(v string)`
SetMimeType sets MimeType field to given value.
### HasMimeType
-`func (o *PatchedWritableExportTemplateRequest) HasMimeType() bool`
+`func (o *PatchedExportTemplateRequest) HasMimeType() bool`
HasMimeType returns a boolean if a field has been set.
### GetFileExtension
-`func (o *PatchedWritableExportTemplateRequest) GetFileExtension() string`
+`func (o *PatchedExportTemplateRequest) GetFileExtension() string`
GetFileExtension returns the FileExtension field if non-nil, zero value otherwise.
### GetFileExtensionOk
-`func (o *PatchedWritableExportTemplateRequest) GetFileExtensionOk() (*string, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetFileExtension(v string)`
+`func (o *PatchedExportTemplateRequest) SetFileExtension(v string)`
SetFileExtension sets FileExtension field to given value.
### HasFileExtension
-`func (o *PatchedWritableExportTemplateRequest) HasFileExtension() bool`
+`func (o *PatchedExportTemplateRequest) HasFileExtension() bool`
HasFileExtension returns a boolean if a field has been set.
### GetAsAttachment
-`func (o *PatchedWritableExportTemplateRequest) GetAsAttachment() bool`
+`func (o *PatchedExportTemplateRequest) GetAsAttachment() bool`
GetAsAttachment returns the AsAttachment field if non-nil, zero value otherwise.
### GetAsAttachmentOk
-`func (o *PatchedWritableExportTemplateRequest) GetAsAttachmentOk() (*bool, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetAsAttachment(v bool)`
+`func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool)`
SetAsAttachment sets AsAttachment field to given value.
### HasAsAttachment
-`func (o *PatchedWritableExportTemplateRequest) HasAsAttachment() bool`
+`func (o *PatchedExportTemplateRequest) HasAsAttachment() bool`
HasAsAttachment returns a boolean if a field has been set.
### GetDataSource
-`func (o *PatchedWritableExportTemplateRequest) GetDataSource() int32`
+`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest`
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
### GetDataSourceOk
-`func (o *PatchedWritableExportTemplateRequest) GetDataSourceOk() (*int32, bool)`
+`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 *PatchedWritableExportTemplateRequest) SetDataSource(v int32)`
+`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)`
SetDataSource sets DataSource field to given value.
### HasDataSource
-`func (o *PatchedWritableExportTemplateRequest) HasDataSource() bool`
+`func (o *PatchedExportTemplateRequest) HasDataSource() bool`
HasDataSource returns a boolean if a field has been set.
-### SetDataSourceNil
-
-`func (o *PatchedWritableExportTemplateRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *PatchedWritableExportTemplateRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, 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/PatchedWritableFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md
similarity index 56%
rename from docs/PatchedWritableFHRPGroupAssignmentRequest.md
rename to docs/PatchedFHRPGroupAssignmentRequest.md
index 6eb12d4318..4e987d7522 100644
--- a/docs/PatchedWritableFHRPGroupAssignmentRequest.md
+++ b/docs/PatchedFHRPGroupAssignmentRequest.md
@@ -1,130 +1,130 @@
-# PatchedWritableFHRPGroupAssignmentRequest
+# PatchedFHRPGroupAssignmentRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Group** | Pointer to **int32** | | [optional]
+**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional]
**InterfaceType** | Pointer to **string** | | [optional]
**InterfaceId** | Pointer to **int64** | | [optional]
**Priority** | Pointer to **int32** | | [optional]
## Methods
-### NewPatchedWritableFHRPGroupAssignmentRequest
+### NewPatchedFHRPGroupAssignmentRequest
-`func NewPatchedWritableFHRPGroupAssignmentRequest() *PatchedWritableFHRPGroupAssignmentRequest`
+`func NewPatchedFHRPGroupAssignmentRequest() *PatchedFHRPGroupAssignmentRequest`
-NewPatchedWritableFHRPGroupAssignmentRequest instantiates a new PatchedWritableFHRPGroupAssignmentRequest object
+NewPatchedFHRPGroupAssignmentRequest instantiates a new PatchedFHRPGroupAssignmentRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableFHRPGroupAssignmentRequestWithDefaults
+### NewPatchedFHRPGroupAssignmentRequestWithDefaults
-`func NewPatchedWritableFHRPGroupAssignmentRequestWithDefaults() *PatchedWritableFHRPGroupAssignmentRequest`
+`func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignmentRequest`
-NewPatchedWritableFHRPGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableFHRPGroupAssignmentRequest object
+NewPatchedFHRPGroupAssignmentRequestWithDefaults instantiates a new PatchedFHRPGroupAssignmentRequest object
This 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 *PatchedWritableFHRPGroupAssignmentRequest) GetGroup() int32`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, 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 *PatchedWritableFHRPGroupAssignmentRequest) SetGroup(v int32)`
+`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)`
SetGroup sets Group field to given value.
### HasGroup
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) HasGroup() bool`
+`func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool`
HasGroup returns a boolean if a field has been set.
### GetInterfaceType
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceType() string`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceType() string`
GetInterfaceType returns the InterfaceType field if non-nil, zero value otherwise.
### GetInterfaceTypeOk
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool)`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool)`
GetInterfaceTypeOk returns a tuple with the InterfaceType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInterfaceType
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) SetInterfaceType(v string)`
+`func (o *PatchedFHRPGroupAssignmentRequest) SetInterfaceType(v string)`
SetInterfaceType sets InterfaceType field to given value.
### HasInterfaceType
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceType() bool`
+`func (o *PatchedFHRPGroupAssignmentRequest) HasInterfaceType() bool`
HasInterfaceType returns a boolean if a field has been set.
### GetInterfaceId
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceId() int64`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceId() int64`
GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise.
### GetInterfaceIdOk
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool)`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool)`
GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInterfaceId
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) SetInterfaceId(v int64)`
+`func (o *PatchedFHRPGroupAssignmentRequest) SetInterfaceId(v int64)`
SetInterfaceId sets InterfaceId field to given value.
### HasInterfaceId
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceId() bool`
+`func (o *PatchedFHRPGroupAssignmentRequest) HasInterfaceId() bool`
HasInterfaceId returns a boolean if a field has been set.
### GetPriority
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetPriority() int32`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetPriority() int32`
GetPriority returns the Priority field if non-nil, zero value otherwise.
### GetPriorityOk
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, bool)`
+`func (o *PatchedFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, 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 *PatchedWritableFHRPGroupAssignmentRequest) SetPriority(v int32)`
+`func (o *PatchedFHRPGroupAssignmentRequest) SetPriority(v int32)`
SetPriority sets Priority field to given value.
### HasPriority
-`func (o *PatchedWritableFHRPGroupAssignmentRequest) HasPriority() bool`
+`func (o *PatchedFHRPGroupAssignmentRequest) HasPriority() bool`
HasPriority returns a boolean if a field has been set.
diff --git a/docs/PatchedGroupRequest.md b/docs/PatchedGroupRequest.md
index 531e668bca..e15730e824 100644
--- a/docs/PatchedGroupRequest.md
+++ b/docs/PatchedGroupRequest.md
@@ -5,6 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
+**Description** | Pointer to **string** | | [optional]
+**Permissions** | Pointer to **[]int32** | | [optional]
## Methods
@@ -50,6 +52,56 @@ SetName sets Name field to given value.
HasName returns a boolean if a field has been set.
+### GetDescription
+
+`func (o *PatchedGroupRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *PatchedGroupRequest) 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 *PatchedGroupRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *PatchedGroupRequest) HasDescription() bool`
+
+HasDescription returns a boolean if a field has been set.
+
+### GetPermissions
+
+`func (o *PatchedGroupRequest) GetPermissions() []int32`
+
+GetPermissions returns the Permissions field if non-nil, zero value otherwise.
+
+### GetPermissionsOk
+
+`func (o *PatchedGroupRequest) 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 *PatchedGroupRequest) SetPermissions(v []int32)`
+
+SetPermissions sets Permissions field to given value.
+
+### HasPermissions
+
+`func (o *PatchedGroupRequest) 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/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md
index 7da168ae66..de2766af0c 100644
--- a/docs/PatchedImageAttachmentRequest.md
+++ b/docs/PatchedImageAttachmentRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentType** | Pointer to **string** | | [optional]
+**ObjectType** | Pointer to **string** | | [optional]
**ObjectId** | Pointer to **int64** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Image** | Pointer to ***os.File** | | [optional]
@@ -30,30 +30,30 @@ NewPatchedImageAttachmentRequestWithDefaults instantiates a new PatchedImageAtta
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentType
+### GetObjectType
-`func (o *PatchedImageAttachmentRequest) GetContentType() string`
+`func (o *PatchedImageAttachmentRequest) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *PatchedImageAttachmentRequest) GetContentTypeOk() (*string, bool)`
+`func (o *PatchedImageAttachmentRequest) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *PatchedImageAttachmentRequest) SetContentType(v string)`
+`func (o *PatchedImageAttachmentRequest) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
-### HasContentType
+### HasObjectType
-`func (o *PatchedImageAttachmentRequest) HasContentType() bool`
+`func (o *PatchedImageAttachmentRequest) HasObjectType() bool`
-HasContentType returns a boolean if a field has been set.
+HasObjectType returns a boolean if a field has been set.
### GetObjectId
diff --git a/docs/WritableInventoryItemRequest.md b/docs/PatchedInventoryItemRequest.md
similarity index 60%
rename from docs/WritableInventoryItemRequest.md
rename to docs/PatchedInventoryItemRequest.md
index 48b8b1c5dd..29a3617b6e 100644
--- a/docs/WritableInventoryItemRequest.md
+++ b/docs/PatchedInventoryItemRequest.md
@@ -1,15 +1,15 @@
-# WritableInventoryItemRequest
+# PatchedInventoryItemRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
-**Name** | **string** | |
+**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
-**Role** | Pointer to **NullableInt32** | | [optional]
-**Manufacturer** | Pointer to **NullableInt32** | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.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,445 +22,455 @@ Name | Type | Description | Notes
## Methods
-### NewWritableInventoryItemRequest
+### NewPatchedInventoryItemRequest
-`func NewWritableInventoryItemRequest(device int32, name string, ) *WritableInventoryItemRequest`
+`func NewPatchedInventoryItemRequest() *PatchedInventoryItemRequest`
-NewWritableInventoryItemRequest instantiates a new WritableInventoryItemRequest object
+NewPatchedInventoryItemRequest instantiates a new PatchedInventoryItemRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableInventoryItemRequestWithDefaults
+### NewPatchedInventoryItemRequestWithDefaults
-`func NewWritableInventoryItemRequestWithDefaults() *WritableInventoryItemRequest`
+`func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest`
-NewWritableInventoryItemRequestWithDefaults instantiates a new WritableInventoryItemRequest object
+NewPatchedInventoryItemRequestWithDefaults instantiates a new PatchedInventoryItemRequest object
This 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 *WritableInventoryItemRequest) GetDevice() int32`
+`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableInventoryItemRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetDevice(v int32)`
+`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)`
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 *WritableInventoryItemRequest) GetParent() int32`
+`func (o *PatchedInventoryItemRequest) GetParent() int32`
GetParent returns the Parent field if non-nil, zero value otherwise.
### GetParentOk
-`func (o *WritableInventoryItemRequest) GetParentOk() (*int32, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetParent(v int32)`
+`func (o *PatchedInventoryItemRequest) SetParent(v int32)`
SetParent sets Parent field to given value.
### HasParent
-`func (o *WritableInventoryItemRequest) HasParent() bool`
+`func (o *PatchedInventoryItemRequest) HasParent() bool`
HasParent returns a boolean if a field has been set.
### SetParentNil
-`func (o *WritableInventoryItemRequest) SetParentNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetParentNil(b bool)`
SetParentNil sets the value for Parent to be an explicit nil
### UnsetParent
-`func (o *WritableInventoryItemRequest) UnsetParent()`
+`func (o *PatchedInventoryItemRequest) UnsetParent()`
UnsetParent ensures that no value is present for Parent, not even an explicit nil
### GetName
-`func (o *WritableInventoryItemRequest) GetName() string`
+`func (o *PatchedInventoryItemRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *WritableInventoryItemRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetName(v string)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) GetLabel() string`
+`func (o *PatchedInventoryItemRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *WritableInventoryItemRequest) GetLabelOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetLabel(v string)`
+`func (o *PatchedInventoryItemRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *WritableInventoryItemRequest) HasLabel() bool`
+`func (o *PatchedInventoryItemRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetRole
-`func (o *WritableInventoryItemRequest) GetRole() int32`
+`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableInventoryItemRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, 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 *WritableInventoryItemRequest) SetRole(v int32)`
+`func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)`
SetRole sets Role field to given value.
### HasRole
-`func (o *WritableInventoryItemRequest) HasRole() bool`
+`func (o *PatchedInventoryItemRequest) HasRole() bool`
HasRole returns a boolean if a field has been set.
### SetRoleNil
-`func (o *WritableInventoryItemRequest) SetRoleNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetRoleNil(b bool)`
SetRoleNil sets the value for Role to be an explicit nil
### UnsetRole
-`func (o *WritableInventoryItemRequest) UnsetRole()`
+`func (o *PatchedInventoryItemRequest) UnsetRole()`
UnsetRole ensures that no value is present for Role, not even an explicit nil
### GetManufacturer
-`func (o *WritableInventoryItemRequest) GetManufacturer() int32`
+`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *WritableInventoryItemRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, 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 *WritableInventoryItemRequest) SetManufacturer(v int32)`
+`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
### HasManufacturer
-`func (o *WritableInventoryItemRequest) HasManufacturer() bool`
+`func (o *PatchedInventoryItemRequest) HasManufacturer() bool`
HasManufacturer returns a boolean if a field has been set.
### SetManufacturerNil
-`func (o *WritableInventoryItemRequest) SetManufacturerNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetManufacturerNil(b bool)`
SetManufacturerNil sets the value for Manufacturer to be an explicit nil
### UnsetManufacturer
-`func (o *WritableInventoryItemRequest) UnsetManufacturer()`
+`func (o *PatchedInventoryItemRequest) UnsetManufacturer()`
UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
### GetPartId
-`func (o *WritableInventoryItemRequest) GetPartId() string`
+`func (o *PatchedInventoryItemRequest) GetPartId() string`
GetPartId returns the PartId field if non-nil, zero value otherwise.
### GetPartIdOk
-`func (o *WritableInventoryItemRequest) GetPartIdOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetPartId(v string)`
+`func (o *PatchedInventoryItemRequest) SetPartId(v string)`
SetPartId sets PartId field to given value.
### HasPartId
-`func (o *WritableInventoryItemRequest) HasPartId() bool`
+`func (o *PatchedInventoryItemRequest) HasPartId() bool`
HasPartId returns a boolean if a field has been set.
### GetSerial
-`func (o *WritableInventoryItemRequest) GetSerial() string`
+`func (o *PatchedInventoryItemRequest) GetSerial() string`
GetSerial returns the Serial field if non-nil, zero value otherwise.
### GetSerialOk
-`func (o *WritableInventoryItemRequest) GetSerialOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetSerial(v string)`
+`func (o *PatchedInventoryItemRequest) SetSerial(v string)`
SetSerial sets Serial field to given value.
### HasSerial
-`func (o *WritableInventoryItemRequest) HasSerial() bool`
+`func (o *PatchedInventoryItemRequest) HasSerial() bool`
HasSerial returns a boolean if a field has been set.
### GetAssetTag
-`func (o *WritableInventoryItemRequest) GetAssetTag() string`
+`func (o *PatchedInventoryItemRequest) GetAssetTag() string`
GetAssetTag returns the AssetTag field if non-nil, zero value otherwise.
### GetAssetTagOk
-`func (o *WritableInventoryItemRequest) GetAssetTagOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetAssetTag(v string)`
+`func (o *PatchedInventoryItemRequest) SetAssetTag(v string)`
SetAssetTag sets AssetTag field to given value.
### HasAssetTag
-`func (o *WritableInventoryItemRequest) HasAssetTag() bool`
+`func (o *PatchedInventoryItemRequest) HasAssetTag() bool`
HasAssetTag returns a boolean if a field has been set.
### SetAssetTagNil
-`func (o *WritableInventoryItemRequest) SetAssetTagNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetAssetTagNil(b bool)`
SetAssetTagNil sets the value for AssetTag to be an explicit nil
### UnsetAssetTag
-`func (o *WritableInventoryItemRequest) UnsetAssetTag()`
+`func (o *PatchedInventoryItemRequest) UnsetAssetTag()`
UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil
### GetDiscovered
-`func (o *WritableInventoryItemRequest) GetDiscovered() bool`
+`func (o *PatchedInventoryItemRequest) GetDiscovered() bool`
GetDiscovered returns the Discovered field if non-nil, zero value otherwise.
### GetDiscoveredOk
-`func (o *WritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetDiscovered(v bool)`
+`func (o *PatchedInventoryItemRequest) SetDiscovered(v bool)`
SetDiscovered sets Discovered field to given value.
### HasDiscovered
-`func (o *WritableInventoryItemRequest) HasDiscovered() bool`
+`func (o *PatchedInventoryItemRequest) HasDiscovered() bool`
HasDiscovered returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableInventoryItemRequest) GetDescription() string`
+`func (o *PatchedInventoryItemRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableInventoryItemRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetDescription(v string)`
+`func (o *PatchedInventoryItemRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableInventoryItemRequest) HasDescription() bool`
+`func (o *PatchedInventoryItemRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComponentType
-`func (o *WritableInventoryItemRequest) GetComponentType() string`
+`func (o *PatchedInventoryItemRequest) GetComponentType() string`
GetComponentType returns the ComponentType field if non-nil, zero value otherwise.
### GetComponentTypeOk
-`func (o *WritableInventoryItemRequest) GetComponentTypeOk() (*string, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetComponentType(v string)`
+`func (o *PatchedInventoryItemRequest) SetComponentType(v string)`
SetComponentType sets ComponentType field to given value.
### HasComponentType
-`func (o *WritableInventoryItemRequest) HasComponentType() bool`
+`func (o *PatchedInventoryItemRequest) HasComponentType() bool`
HasComponentType returns a boolean if a field has been set.
### SetComponentTypeNil
-`func (o *WritableInventoryItemRequest) SetComponentTypeNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetComponentTypeNil(b bool)`
SetComponentTypeNil sets the value for ComponentType to be an explicit nil
### UnsetComponentType
-`func (o *WritableInventoryItemRequest) UnsetComponentType()`
+`func (o *PatchedInventoryItemRequest) UnsetComponentType()`
UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
### GetComponentId
-`func (o *WritableInventoryItemRequest) GetComponentId() int64`
+`func (o *PatchedInventoryItemRequest) GetComponentId() int64`
GetComponentId returns the ComponentId field if non-nil, zero value otherwise.
### GetComponentIdOk
-`func (o *WritableInventoryItemRequest) GetComponentIdOk() (*int64, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetComponentId(v int64)`
+`func (o *PatchedInventoryItemRequest) SetComponentId(v int64)`
SetComponentId sets ComponentId field to given value.
### HasComponentId
-`func (o *WritableInventoryItemRequest) HasComponentId() bool`
+`func (o *PatchedInventoryItemRequest) HasComponentId() bool`
HasComponentId returns a boolean if a field has been set.
### SetComponentIdNil
-`func (o *WritableInventoryItemRequest) SetComponentIdNil(b bool)`
+`func (o *PatchedInventoryItemRequest) SetComponentIdNil(b bool)`
SetComponentIdNil sets the value for ComponentId to be an explicit nil
### UnsetComponentId
-`func (o *WritableInventoryItemRequest) UnsetComponentId()`
+`func (o *PatchedInventoryItemRequest) UnsetComponentId()`
UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
### GetTags
-`func (o *WritableInventoryItemRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedInventoryItemRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableInventoryItemRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedInventoryItemRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableInventoryItemRequest) HasTags() bool`
+`func (o *PatchedInventoryItemRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *WritableInventoryItemRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedInventoryItemRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *WritableInventoryItemRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedInventoryItemRequest) 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 *WritableInventoryItemRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedInventoryItemRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *WritableInventoryItemRequest) HasCustomFields() bool`
+`func (o *PatchedInventoryItemRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md
similarity index 57%
rename from docs/PatchedWritableInventoryItemTemplateRequest.md
rename to docs/PatchedInventoryItemTemplateRequest.md
index d8b68f4831..8bc9025d49 100644
--- a/docs/PatchedWritableInventoryItemTemplateRequest.md
+++ b/docs/PatchedInventoryItemTemplateRequest.md
@@ -1,15 +1,15 @@
-# PatchedWritableInventoryItemTemplateRequest
+# PatchedInventoryItemTemplateRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **int32** | | [optional]
+**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.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 **NullableInt32** | | [optional]
-**Manufacturer** | Pointer to **NullableInt32** | | [optional]
+**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional]
**PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional]
**Description** | Pointer to **string** | | [optional]
**ComponentType** | Pointer to **NullableString** | | [optional]
@@ -17,321 +17,321 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableInventoryItemTemplateRequest
+### NewPatchedInventoryItemTemplateRequest
-`func NewPatchedWritableInventoryItemTemplateRequest() *PatchedWritableInventoryItemTemplateRequest`
+`func NewPatchedInventoryItemTemplateRequest() *PatchedInventoryItemTemplateRequest`
-NewPatchedWritableInventoryItemTemplateRequest instantiates a new PatchedWritableInventoryItemTemplateRequest object
+NewPatchedInventoryItemTemplateRequest instantiates a new PatchedInventoryItemTemplateRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableInventoryItemTemplateRequestWithDefaults
+### NewPatchedInventoryItemTemplateRequestWithDefaults
-`func NewPatchedWritableInventoryItemTemplateRequestWithDefaults() *PatchedWritableInventoryItemTemplateRequest`
+`func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemTemplateRequest`
-NewPatchedWritableInventoryItemTemplateRequestWithDefaults instantiates a new PatchedWritableInventoryItemTemplateRequest object
+NewPatchedInventoryItemTemplateRequestWithDefaults instantiates a new PatchedInventoryItemTemplateRequest object
This 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 *PatchedWritableInventoryItemTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
### HasDeviceType
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasDeviceType() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool`
HasDeviceType returns a boolean if a field has been set.
### GetParent
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetParent() int32`
+`func (o *PatchedInventoryItemTemplateRequest) GetParent() int32`
GetParent returns the Parent field if non-nil, zero value otherwise.
### GetParentOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetParentOk() (*int32, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetParent(v int32)`
+`func (o *PatchedInventoryItemTemplateRequest) SetParent(v int32)`
SetParent sets Parent field to given value.
### HasParent
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasParent() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasParent() bool`
HasParent returns a boolean if a field has been set.
### SetParentNil
-`func (o *PatchedWritableInventoryItemTemplateRequest) SetParentNil(b bool)`
+`func (o *PatchedInventoryItemTemplateRequest) SetParentNil(b bool)`
SetParentNil sets the value for Parent to be an explicit nil
### UnsetParent
-`func (o *PatchedWritableInventoryItemTemplateRequest) UnsetParent()`
+`func (o *PatchedInventoryItemTemplateRequest) UnsetParent()`
UnsetParent ensures that no value is present for Parent, not even an explicit nil
### GetName
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetName() string`
+`func (o *PatchedInventoryItemTemplateRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetName(v string)`
+`func (o *PatchedInventoryItemTemplateRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasName() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetLabel
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetLabel() string`
+`func (o *PatchedInventoryItemTemplateRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetLabelOk() (*string, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetLabel(v string)`
+`func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasLabel() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetRole
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetRole() int32`
+`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, 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 *PatchedWritableInventoryItemTemplateRequest) SetRole(v int32)`
+`func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)`
SetRole sets Role field to given value.
### HasRole
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasRole() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasRole() bool`
HasRole returns a boolean if a field has been set.
### SetRoleNil
-`func (o *PatchedWritableInventoryItemTemplateRequest) SetRoleNil(b bool)`
+`func (o *PatchedInventoryItemTemplateRequest) SetRoleNil(b bool)`
SetRoleNil sets the value for Role to be an explicit nil
### UnsetRole
-`func (o *PatchedWritableInventoryItemTemplateRequest) UnsetRole()`
+`func (o *PatchedInventoryItemTemplateRequest) UnsetRole()`
UnsetRole ensures that no value is present for Role, not even an explicit nil
### GetManufacturer
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetManufacturer() int32`
+`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, 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 *PatchedWritableInventoryItemTemplateRequest) SetManufacturer(v int32)`
+`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
### HasManufacturer
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasManufacturer() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool`
HasManufacturer returns a boolean if a field has been set.
### SetManufacturerNil
-`func (o *PatchedWritableInventoryItemTemplateRequest) SetManufacturerNil(b bool)`
+`func (o *PatchedInventoryItemTemplateRequest) SetManufacturerNil(b bool)`
SetManufacturerNil sets the value for Manufacturer to be an explicit nil
### UnsetManufacturer
-`func (o *PatchedWritableInventoryItemTemplateRequest) UnsetManufacturer()`
+`func (o *PatchedInventoryItemTemplateRequest) UnsetManufacturer()`
UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
### GetPartId
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetPartId() string`
+`func (o *PatchedInventoryItemTemplateRequest) GetPartId() string`
GetPartId returns the PartId field if non-nil, zero value otherwise.
### GetPartIdOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetPartIdOk() (*string, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetPartId(v string)`
+`func (o *PatchedInventoryItemTemplateRequest) SetPartId(v string)`
SetPartId sets PartId field to given value.
### HasPartId
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasPartId() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasPartId() bool`
HasPartId returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetDescription() string`
+`func (o *PatchedInventoryItemTemplateRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetDescription(v string)`
+`func (o *PatchedInventoryItemTemplateRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasDescription() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComponentType
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentType() string`
+`func (o *PatchedInventoryItemTemplateRequest) GetComponentType() string`
GetComponentType returns the ComponentType field if non-nil, zero value otherwise.
### GetComponentTypeOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentTypeOk() (*string, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetComponentType(v string)`
+`func (o *PatchedInventoryItemTemplateRequest) SetComponentType(v string)`
SetComponentType sets ComponentType field to given value.
### HasComponentType
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentType() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasComponentType() bool`
HasComponentType returns a boolean if a field has been set.
### SetComponentTypeNil
-`func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentTypeNil(b bool)`
+`func (o *PatchedInventoryItemTemplateRequest) SetComponentTypeNil(b bool)`
SetComponentTypeNil sets the value for ComponentType to be an explicit nil
### UnsetComponentType
-`func (o *PatchedWritableInventoryItemTemplateRequest) UnsetComponentType()`
+`func (o *PatchedInventoryItemTemplateRequest) UnsetComponentType()`
UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
### GetComponentId
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentId() int64`
+`func (o *PatchedInventoryItemTemplateRequest) GetComponentId() int64`
GetComponentId returns the ComponentId field if non-nil, zero value otherwise.
### GetComponentIdOk
-`func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentIdOk() (*int64, bool)`
+`func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) SetComponentId(v int64)`
+`func (o *PatchedInventoryItemTemplateRequest) SetComponentId(v int64)`
SetComponentId sets ComponentId field to given value.
### HasComponentId
-`func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentId() bool`
+`func (o *PatchedInventoryItemTemplateRequest) HasComponentId() bool`
HasComponentId returns a boolean if a field has been set.
### SetComponentIdNil
-`func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentIdNil(b bool)`
+`func (o *PatchedInventoryItemTemplateRequest) SetComponentIdNil(b bool)`
SetComponentIdNil sets the value for ComponentId to be an explicit nil
### UnsetComponentId
-`func (o *PatchedWritableInventoryItemTemplateRequest) UnsetComponentId()`
+`func (o *PatchedInventoryItemTemplateRequest) UnsetComponentId()`
UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
diff --git a/docs/PatchedWritableL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md
similarity index 57%
rename from docs/PatchedWritableL2VPNTerminationRequest.md
rename to docs/PatchedL2VPNTerminationRequest.md
index 109fbde747..52faa0e937 100644
--- a/docs/PatchedWritableL2VPNTerminationRequest.md
+++ b/docs/PatchedL2VPNTerminationRequest.md
@@ -1,10 +1,10 @@
-# PatchedWritableL2VPNTerminationRequest
+# PatchedL2VPNTerminationRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**L2vpn** | Pointer to **int32** | | [optional]
+**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional]
**AssignedObjectType** | Pointer to **string** | | [optional]
**AssignedObjectId** | Pointer to **int64** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -12,145 +12,145 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableL2VPNTerminationRequest
+### NewPatchedL2VPNTerminationRequest
-`func NewPatchedWritableL2VPNTerminationRequest() *PatchedWritableL2VPNTerminationRequest`
+`func NewPatchedL2VPNTerminationRequest() *PatchedL2VPNTerminationRequest`
-NewPatchedWritableL2VPNTerminationRequest instantiates a new PatchedWritableL2VPNTerminationRequest object
+NewPatchedL2VPNTerminationRequest instantiates a new PatchedL2VPNTerminationRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableL2VPNTerminationRequestWithDefaults
+### NewPatchedL2VPNTerminationRequestWithDefaults
-`func NewPatchedWritableL2VPNTerminationRequestWithDefaults() *PatchedWritableL2VPNTerminationRequest`
+`func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationRequest`
-NewPatchedWritableL2VPNTerminationRequestWithDefaults instantiates a new PatchedWritableL2VPNTerminationRequest object
+NewPatchedL2VPNTerminationRequestWithDefaults instantiates a new PatchedL2VPNTerminationRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetL2vpn
-`func (o *PatchedWritableL2VPNTerminationRequest) GetL2vpn() int32`
+`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest`
GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
### GetL2vpnOk
-`func (o *PatchedWritableL2VPNTerminationRequest) GetL2vpnOk() (*int32, bool)`
+`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, 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 *PatchedWritableL2VPNTerminationRequest) SetL2vpn(v int32)`
+`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)`
SetL2vpn sets L2vpn field to given value.
### HasL2vpn
-`func (o *PatchedWritableL2VPNTerminationRequest) HasL2vpn() bool`
+`func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool`
HasL2vpn returns a boolean if a field has been set.
### GetAssignedObjectType
-`func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectType() string`
+`func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectType() string`
GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise.
### GetAssignedObjectTypeOk
-`func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)`
+`func (o *PatchedL2VPNTerminationRequest) 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 *PatchedWritableL2VPNTerminationRequest) SetAssignedObjectType(v string)`
+`func (o *PatchedL2VPNTerminationRequest) SetAssignedObjectType(v string)`
SetAssignedObjectType sets AssignedObjectType field to given value.
### HasAssignedObjectType
-`func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectType() bool`
+`func (o *PatchedL2VPNTerminationRequest) HasAssignedObjectType() bool`
HasAssignedObjectType returns a boolean if a field has been set.
### GetAssignedObjectId
-`func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectId() int64`
+`func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectId() int64`
GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise.
### GetAssignedObjectIdOk
-`func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)`
+`func (o *PatchedL2VPNTerminationRequest) 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 *PatchedWritableL2VPNTerminationRequest) SetAssignedObjectId(v int64)`
+`func (o *PatchedL2VPNTerminationRequest) SetAssignedObjectId(v int64)`
SetAssignedObjectId sets AssignedObjectId field to given value.
### HasAssignedObjectId
-`func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectId() bool`
+`func (o *PatchedL2VPNTerminationRequest) HasAssignedObjectId() bool`
HasAssignedObjectId returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableL2VPNTerminationRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedL2VPNTerminationRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableL2VPNTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedL2VPNTerminationRequest) 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 *PatchedWritableL2VPNTerminationRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedL2VPNTerminationRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableL2VPNTerminationRequest) HasTags() bool`
+`func (o *PatchedL2VPNTerminationRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableL2VPNTerminationRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedL2VPNTerminationRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableL2VPNTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedL2VPNTerminationRequest) 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 *PatchedWritableL2VPNTerminationRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedL2VPNTerminationRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableL2VPNTerminationRequest) HasCustomFields() bool`
+`func (o *PatchedL2VPNTerminationRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableModuleBayRequest.md b/docs/PatchedModuleBayRequest.md
similarity index 59%
rename from docs/PatchedWritableModuleBayRequest.md
rename to docs/PatchedModuleBayRequest.md
index f13f70a855..57abae4fcc 100644
--- a/docs/PatchedWritableModuleBayRequest.md
+++ b/docs/PatchedModuleBayRequest.md
@@ -1,12 +1,12 @@
-# PatchedWritableModuleBayRequest
+# PatchedModuleBayRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
-**InstalledModule** | Pointer to **int32** | | [optional]
+**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.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]
@@ -15,220 +15,230 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableModuleBayRequest
+### NewPatchedModuleBayRequest
-`func NewPatchedWritableModuleBayRequest() *PatchedWritableModuleBayRequest`
+`func NewPatchedModuleBayRequest() *PatchedModuleBayRequest`
-NewPatchedWritableModuleBayRequest instantiates a new PatchedWritableModuleBayRequest object
+NewPatchedModuleBayRequest instantiates a new PatchedModuleBayRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableModuleBayRequestWithDefaults
+### NewPatchedModuleBayRequestWithDefaults
-`func NewPatchedWritableModuleBayRequestWithDefaults() *PatchedWritableModuleBayRequest`
+`func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest`
-NewPatchedWritableModuleBayRequestWithDefaults instantiates a new PatchedWritableModuleBayRequest object
+NewPatchedModuleBayRequestWithDefaults instantiates a new PatchedModuleBayRequest object
This 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 *PatchedWritableModuleBayRequest) GetDevice() int32`
+`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableModuleBayRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetDevice(v int32)`
+`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### HasDevice
-`func (o *PatchedWritableModuleBayRequest) HasDevice() bool`
+`func (o *PatchedModuleBayRequest) HasDevice() bool`
HasDevice returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableModuleBayRequest) GetName() string`
+`func (o *PatchedModuleBayRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableModuleBayRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetName(v string)`
+`func (o *PatchedModuleBayRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableModuleBayRequest) HasName() bool`
+`func (o *PatchedModuleBayRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetInstalledModule
-`func (o *PatchedWritableModuleBayRequest) GetInstalledModule() int32`
+`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest`
GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise.
### GetInstalledModuleOk
-`func (o *PatchedWritableModuleBayRequest) GetInstalledModuleOk() (*int32, bool)`
+`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, 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 *PatchedWritableModuleBayRequest) SetInstalledModule(v int32)`
+`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)`
SetInstalledModule sets InstalledModule field to given value.
### HasInstalledModule
-`func (o *PatchedWritableModuleBayRequest) HasInstalledModule() bool`
+`func (o *PatchedModuleBayRequest) HasInstalledModule() bool`
HasInstalledModule returns a boolean if a field has been set.
+### SetInstalledModuleNil
+
+`func (o *PatchedModuleBayRequest) SetInstalledModuleNil(b bool)`
+
+ SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil
+
+### UnsetInstalledModule
+`func (o *PatchedModuleBayRequest) UnsetInstalledModule()`
+
+UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil
### GetLabel
-`func (o *PatchedWritableModuleBayRequest) GetLabel() string`
+`func (o *PatchedModuleBayRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PatchedWritableModuleBayRequest) GetLabelOk() (*string, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetLabel(v string)`
+`func (o *PatchedModuleBayRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *PatchedWritableModuleBayRequest) HasLabel() bool`
+`func (o *PatchedModuleBayRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetPosition
-`func (o *PatchedWritableModuleBayRequest) GetPosition() string`
+`func (o *PatchedModuleBayRequest) GetPosition() string`
GetPosition returns the Position field if non-nil, zero value otherwise.
### GetPositionOk
-`func (o *PatchedWritableModuleBayRequest) GetPositionOk() (*string, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetPosition(v string)`
+`func (o *PatchedModuleBayRequest) SetPosition(v string)`
SetPosition sets Position field to given value.
### HasPosition
-`func (o *PatchedWritableModuleBayRequest) HasPosition() bool`
+`func (o *PatchedModuleBayRequest) HasPosition() bool`
HasPosition returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableModuleBayRequest) GetDescription() string`
+`func (o *PatchedModuleBayRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableModuleBayRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetDescription(v string)`
+`func (o *PatchedModuleBayRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableModuleBayRequest) HasDescription() bool`
+`func (o *PatchedModuleBayRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableModuleBayRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedModuleBayRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableModuleBayRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedModuleBayRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableModuleBayRequest) HasTags() bool`
+`func (o *PatchedModuleBayRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableModuleBayRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedModuleBayRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableModuleBayRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedModuleBayRequest) 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 *PatchedWritableModuleBayRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedModuleBayRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableModuleBayRequest) HasCustomFields() bool`
+`func (o *PatchedModuleBayRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md
similarity index 58%
rename from docs/PatchedWritableModuleBayTemplateRequest.md
rename to docs/PatchedModuleBayTemplateRequest.md
index aa17715398..afa822d29c 100644
--- a/docs/PatchedWritableModuleBayTemplateRequest.md
+++ b/docs/PatchedModuleBayTemplateRequest.md
@@ -1,10 +1,10 @@
-# PatchedWritableModuleBayTemplateRequest
+# PatchedModuleBayTemplateRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **int32** | | [optional]
+**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]
@@ -12,145 +12,145 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableModuleBayTemplateRequest
+### NewPatchedModuleBayTemplateRequest
-`func NewPatchedWritableModuleBayTemplateRequest() *PatchedWritableModuleBayTemplateRequest`
+`func NewPatchedModuleBayTemplateRequest() *PatchedModuleBayTemplateRequest`
-NewPatchedWritableModuleBayTemplateRequest instantiates a new PatchedWritableModuleBayTemplateRequest object
+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
-### NewPatchedWritableModuleBayTemplateRequestWithDefaults
+### NewPatchedModuleBayTemplateRequestWithDefaults
-`func NewPatchedWritableModuleBayTemplateRequestWithDefaults() *PatchedWritableModuleBayTemplateRequest`
+`func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateRequest`
-NewPatchedWritableModuleBayTemplateRequestWithDefaults instantiates a new PatchedWritableModuleBayTemplateRequest object
+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 *PatchedWritableModuleBayTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableModuleBayTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`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 *PatchedWritableModuleBayTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
### HasDeviceType
-`func (o *PatchedWritableModuleBayTemplateRequest) HasDeviceType() bool`
+`func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool`
HasDeviceType returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableModuleBayTemplateRequest) GetName() string`
+`func (o *PatchedModuleBayTemplateRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableModuleBayTemplateRequest) GetNameOk() (*string, bool)`
+`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 *PatchedWritableModuleBayTemplateRequest) SetName(v string)`
+`func (o *PatchedModuleBayTemplateRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableModuleBayTemplateRequest) HasName() bool`
+`func (o *PatchedModuleBayTemplateRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetLabel
-`func (o *PatchedWritableModuleBayTemplateRequest) GetLabel() string`
+`func (o *PatchedModuleBayTemplateRequest) GetLabel() string`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *PatchedWritableModuleBayTemplateRequest) GetLabelOk() (*string, bool)`
+`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 *PatchedWritableModuleBayTemplateRequest) SetLabel(v string)`
+`func (o *PatchedModuleBayTemplateRequest) SetLabel(v string)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *PatchedWritableModuleBayTemplateRequest) HasLabel() bool`
+`func (o *PatchedModuleBayTemplateRequest) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
### GetPosition
-`func (o *PatchedWritableModuleBayTemplateRequest) GetPosition() string`
+`func (o *PatchedModuleBayTemplateRequest) GetPosition() string`
GetPosition returns the Position field if non-nil, zero value otherwise.
### GetPositionOk
-`func (o *PatchedWritableModuleBayTemplateRequest) GetPositionOk() (*string, bool)`
+`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 *PatchedWritableModuleBayTemplateRequest) SetPosition(v string)`
+`func (o *PatchedModuleBayTemplateRequest) SetPosition(v string)`
SetPosition sets Position field to given value.
### HasPosition
-`func (o *PatchedWritableModuleBayTemplateRequest) HasPosition() bool`
+`func (o *PatchedModuleBayTemplateRequest) HasPosition() bool`
HasPosition returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableModuleBayTemplateRequest) GetDescription() string`
+`func (o *PatchedModuleBayTemplateRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableModuleBayTemplateRequest) GetDescriptionOk() (*string, bool)`
+`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 *PatchedWritableModuleBayTemplateRequest) SetDescription(v string)`
+`func (o *PatchedModuleBayTemplateRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableModuleBayTemplateRequest) HasDescription() bool`
+`func (o *PatchedModuleBayTemplateRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableObjectPermissionRequest.md b/docs/PatchedObjectPermissionRequest.md
similarity index 59%
rename from docs/PatchedWritableObjectPermissionRequest.md
rename to docs/PatchedObjectPermissionRequest.md
index a43df18b21..bed5c38010 100644
--- a/docs/PatchedWritableObjectPermissionRequest.md
+++ b/docs/PatchedObjectPermissionRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableObjectPermissionRequest
+# PatchedObjectPermissionRequest
## Properties
@@ -8,240 +8,240 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**ObjectTypes** | Pointer to **[]string** | | [optional]
-**Groups** | Pointer to **[]int32** | | [optional]
-**Users** | Pointer to **[]int32** | | [optional]
**Actions** | Pointer to **[]string** | The list of actions granted by this permission | [optional]
**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
+**Groups** | Pointer to **[]int32** | | [optional]
+**Users** | Pointer to **[]int32** | | [optional]
## Methods
-### NewPatchedWritableObjectPermissionRequest
+### NewPatchedObjectPermissionRequest
-`func NewPatchedWritableObjectPermissionRequest() *PatchedWritableObjectPermissionRequest`
+`func NewPatchedObjectPermissionRequest() *PatchedObjectPermissionRequest`
-NewPatchedWritableObjectPermissionRequest instantiates a new PatchedWritableObjectPermissionRequest object
+NewPatchedObjectPermissionRequest instantiates a new PatchedObjectPermissionRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableObjectPermissionRequestWithDefaults
+### NewPatchedObjectPermissionRequestWithDefaults
-`func NewPatchedWritableObjectPermissionRequestWithDefaults() *PatchedWritableObjectPermissionRequest`
+`func NewPatchedObjectPermissionRequestWithDefaults() *PatchedObjectPermissionRequest`
-NewPatchedWritableObjectPermissionRequestWithDefaults instantiates a new PatchedWritableObjectPermissionRequest object
+NewPatchedObjectPermissionRequestWithDefaults instantiates a new PatchedObjectPermissionRequest object
This 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 *PatchedWritableObjectPermissionRequest) GetName() string`
+`func (o *PatchedObjectPermissionRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableObjectPermissionRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) SetName(v string)`
+`func (o *PatchedObjectPermissionRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableObjectPermissionRequest) HasName() bool`
+`func (o *PatchedObjectPermissionRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableObjectPermissionRequest) GetDescription() string`
+`func (o *PatchedObjectPermissionRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableObjectPermissionRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) SetDescription(v string)`
+`func (o *PatchedObjectPermissionRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableObjectPermissionRequest) HasDescription() bool`
+`func (o *PatchedObjectPermissionRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetEnabled
-`func (o *PatchedWritableObjectPermissionRequest) GetEnabled() bool`
+`func (o *PatchedObjectPermissionRequest) GetEnabled() bool`
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
### GetEnabledOk
-`func (o *PatchedWritableObjectPermissionRequest) GetEnabledOk() (*bool, bool)`
+`func (o *PatchedObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) SetEnabled(v bool)`
+`func (o *PatchedObjectPermissionRequest) SetEnabled(v bool)`
SetEnabled sets Enabled field to given value.
### HasEnabled
-`func (o *PatchedWritableObjectPermissionRequest) HasEnabled() bool`
+`func (o *PatchedObjectPermissionRequest) HasEnabled() bool`
HasEnabled returns a boolean if a field has been set.
### GetObjectTypes
-`func (o *PatchedWritableObjectPermissionRequest) GetObjectTypes() []string`
+`func (o *PatchedObjectPermissionRequest) GetObjectTypes() []string`
GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
### GetObjectTypesOk
-`func (o *PatchedWritableObjectPermissionRequest) GetObjectTypesOk() (*[]string, bool)`
+`func (o *PatchedObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) SetObjectTypes(v []string)`
+`func (o *PatchedObjectPermissionRequest) SetObjectTypes(v []string)`
SetObjectTypes sets ObjectTypes field to given value.
### HasObjectTypes
-`func (o *PatchedWritableObjectPermissionRequest) HasObjectTypes() bool`
+`func (o *PatchedObjectPermissionRequest) HasObjectTypes() bool`
HasObjectTypes returns a boolean if a field has been set.
-### GetGroups
+### GetActions
-`func (o *PatchedWritableObjectPermissionRequest) GetGroups() []int32`
+`func (o *PatchedObjectPermissionRequest) GetActions() []string`
-GetGroups returns the Groups field if non-nil, zero value otherwise.
+GetActions returns the Actions field if non-nil, zero value otherwise.
-### GetGroupsOk
+### GetActionsOk
-`func (o *PatchedWritableObjectPermissionRequest) GetGroupsOk() (*[]int32, bool)`
+`func (o *PatchedObjectPermissionRequest) GetActionsOk() (*[]string, bool)`
-GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise
+GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetGroups
+### SetActions
-`func (o *PatchedWritableObjectPermissionRequest) SetGroups(v []int32)`
+`func (o *PatchedObjectPermissionRequest) SetActions(v []string)`
-SetGroups sets Groups field to given value.
+SetActions sets Actions field to given value.
-### HasGroups
+### HasActions
-`func (o *PatchedWritableObjectPermissionRequest) HasGroups() bool`
+`func (o *PatchedObjectPermissionRequest) HasActions() bool`
-HasGroups returns a boolean if a field has been set.
+HasActions returns a boolean if a field has been set.
-### GetUsers
+### GetConstraints
-`func (o *PatchedWritableObjectPermissionRequest) GetUsers() []int32`
+`func (o *PatchedObjectPermissionRequest) GetConstraints() interface{}`
-GetUsers returns the Users field if non-nil, zero value otherwise.
+GetConstraints returns the Constraints field if non-nil, zero value otherwise.
-### GetUsersOk
+### GetConstraintsOk
-`func (o *PatchedWritableObjectPermissionRequest) GetUsersOk() (*[]int32, bool)`
+`func (o *PatchedObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool)`
-GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise
+GetConstraintsOk returns a tuple with the Constraints field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetUsers
+### SetConstraints
-`func (o *PatchedWritableObjectPermissionRequest) SetUsers(v []int32)`
+`func (o *PatchedObjectPermissionRequest) SetConstraints(v interface{})`
-SetUsers sets Users field to given value.
+SetConstraints sets Constraints field to given value.
-### HasUsers
+### HasConstraints
-`func (o *PatchedWritableObjectPermissionRequest) HasUsers() bool`
+`func (o *PatchedObjectPermissionRequest) HasConstraints() bool`
-HasUsers returns a boolean if a field has been set.
+HasConstraints returns a boolean if a field has been set.
-### GetActions
+### SetConstraintsNil
-`func (o *PatchedWritableObjectPermissionRequest) GetActions() []string`
+`func (o *PatchedObjectPermissionRequest) SetConstraintsNil(b bool)`
-GetActions returns the Actions field if non-nil, zero value otherwise.
+ SetConstraintsNil sets the value for Constraints to be an explicit nil
-### GetActionsOk
+### UnsetConstraints
+`func (o *PatchedObjectPermissionRequest) UnsetConstraints()`
-`func (o *PatchedWritableObjectPermissionRequest) GetActionsOk() (*[]string, bool)`
+UnsetConstraints ensures that no value is present for Constraints, not even an explicit nil
+### GetGroups
-GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
+`func (o *PatchedObjectPermissionRequest) GetGroups() []int32`
-### SetActions
+GetGroups returns the Groups field if non-nil, zero value otherwise.
-`func (o *PatchedWritableObjectPermissionRequest) SetActions(v []string)`
+### GetGroupsOk
-SetActions sets Actions field to given value.
+`func (o *PatchedObjectPermissionRequest) GetGroupsOk() (*[]int32, bool)`
-### HasActions
+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.
-`func (o *PatchedWritableObjectPermissionRequest) HasActions() bool`
+### SetGroups
-HasActions returns a boolean if a field has been set.
+`func (o *PatchedObjectPermissionRequest) SetGroups(v []int32)`
-### GetConstraints
+SetGroups sets Groups field to given value.
-`func (o *PatchedWritableObjectPermissionRequest) GetConstraints() interface{}`
+### HasGroups
-GetConstraints returns the Constraints field if non-nil, zero value otherwise.
+`func (o *PatchedObjectPermissionRequest) HasGroups() bool`
-### GetConstraintsOk
+HasGroups returns a boolean if a field has been set.
-`func (o *PatchedWritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool)`
+### GetUsers
-GetConstraintsOk returns a tuple with the Constraints field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
+`func (o *PatchedObjectPermissionRequest) GetUsers() []int32`
-### SetConstraints
+GetUsers returns the Users field if non-nil, zero value otherwise.
-`func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v interface{})`
+### GetUsersOk
-SetConstraints sets Constraints field to given value.
+`func (o *PatchedObjectPermissionRequest) GetUsersOk() (*[]int32, bool)`
-### HasConstraints
+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.
-`func (o *PatchedWritableObjectPermissionRequest) HasConstraints() bool`
+### SetUsers
-HasConstraints returns a boolean if a field has been set.
+`func (o *PatchedObjectPermissionRequest) SetUsers(v []int32)`
-### SetConstraintsNil
+SetUsers sets Users field to given value.
-`func (o *PatchedWritableObjectPermissionRequest) SetConstraintsNil(b bool)`
+### HasUsers
- SetConstraintsNil sets the value for Constraints to be an explicit nil
+`func (o *PatchedObjectPermissionRequest) HasUsers() bool`
-### UnsetConstraints
-`func (o *PatchedWritableObjectPermissionRequest) UnsetConstraints()`
+HasUsers returns a boolean if a field has been set.
-UnsetConstraints ensures that no value is present for Constraints, 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/PatchedWritablePlatformRequest.md b/docs/PatchedPlatformRequest.md
similarity index 59%
rename from docs/PatchedWritablePlatformRequest.md
rename to docs/PatchedPlatformRequest.md
index e94f0b4332..8c681c6587 100644
--- a/docs/PatchedWritablePlatformRequest.md
+++ b/docs/PatchedPlatformRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritablePlatformRequest
+# PatchedPlatformRequest
## Properties
@@ -6,223 +6,223 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Manufacturer** | Pointer to **NullableInt32** | Optionally limit this platform to devices of a certain manufacturer | [optional]
-**ConfigTemplate** | Pointer to **NullableInt32** | | [optional]
+**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [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
-### NewPatchedWritablePlatformRequest
+### NewPatchedPlatformRequest
-`func NewPatchedWritablePlatformRequest() *PatchedWritablePlatformRequest`
+`func NewPatchedPlatformRequest() *PatchedPlatformRequest`
-NewPatchedWritablePlatformRequest instantiates a new PatchedWritablePlatformRequest object
+NewPatchedPlatformRequest instantiates a new PatchedPlatformRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritablePlatformRequestWithDefaults
+### NewPatchedPlatformRequestWithDefaults
-`func NewPatchedWritablePlatformRequestWithDefaults() *PatchedWritablePlatformRequest`
+`func NewPatchedPlatformRequestWithDefaults() *PatchedPlatformRequest`
-NewPatchedWritablePlatformRequestWithDefaults instantiates a new PatchedWritablePlatformRequest object
+NewPatchedPlatformRequestWithDefaults instantiates a new PatchedPlatformRequest object
This 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 *PatchedWritablePlatformRequest) GetName() string`
+`func (o *PatchedPlatformRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritablePlatformRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetName(v string)`
+`func (o *PatchedPlatformRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritablePlatformRequest) HasName() bool`
+`func (o *PatchedPlatformRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetSlug
-`func (o *PatchedWritablePlatformRequest) GetSlug() string`
+`func (o *PatchedPlatformRequest) GetSlug() string`
GetSlug returns the Slug field if non-nil, zero value otherwise.
### GetSlugOk
-`func (o *PatchedWritablePlatformRequest) GetSlugOk() (*string, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetSlug(v string)`
+`func (o *PatchedPlatformRequest) SetSlug(v string)`
SetSlug sets Slug field to given value.
### HasSlug
-`func (o *PatchedWritablePlatformRequest) HasSlug() bool`
+`func (o *PatchedPlatformRequest) HasSlug() bool`
HasSlug returns a boolean if a field has been set.
### GetManufacturer
-`func (o *PatchedWritablePlatformRequest) GetManufacturer() int32`
+`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *PatchedWritablePlatformRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, 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 *PatchedWritablePlatformRequest) SetManufacturer(v int32)`
+`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
### HasManufacturer
-`func (o *PatchedWritablePlatformRequest) HasManufacturer() bool`
+`func (o *PatchedPlatformRequest) HasManufacturer() bool`
HasManufacturer returns a boolean if a field has been set.
### SetManufacturerNil
-`func (o *PatchedWritablePlatformRequest) SetManufacturerNil(b bool)`
+`func (o *PatchedPlatformRequest) SetManufacturerNil(b bool)`
SetManufacturerNil sets the value for Manufacturer to be an explicit nil
### UnsetManufacturer
-`func (o *PatchedWritablePlatformRequest) UnsetManufacturer()`
+`func (o *PatchedPlatformRequest) UnsetManufacturer()`
UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
### GetConfigTemplate
-`func (o *PatchedWritablePlatformRequest) GetConfigTemplate() int32`
+`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *PatchedWritablePlatformRequest) GetConfigTemplateOk() (*int32, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetConfigTemplate(v int32)`
+`func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
### HasConfigTemplate
-`func (o *PatchedWritablePlatformRequest) HasConfigTemplate() bool`
+`func (o *PatchedPlatformRequest) HasConfigTemplate() bool`
HasConfigTemplate returns a boolean if a field has been set.
### SetConfigTemplateNil
-`func (o *PatchedWritablePlatformRequest) SetConfigTemplateNil(b bool)`
+`func (o *PatchedPlatformRequest) SetConfigTemplateNil(b bool)`
SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
### UnsetConfigTemplate
-`func (o *PatchedWritablePlatformRequest) UnsetConfigTemplate()`
+`func (o *PatchedPlatformRequest) UnsetConfigTemplate()`
UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
### GetDescription
-`func (o *PatchedWritablePlatformRequest) GetDescription() string`
+`func (o *PatchedPlatformRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritablePlatformRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetDescription(v string)`
+`func (o *PatchedPlatformRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritablePlatformRequest) HasDescription() bool`
+`func (o *PatchedPlatformRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritablePlatformRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedPlatformRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritablePlatformRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedPlatformRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritablePlatformRequest) HasTags() bool`
+`func (o *PatchedPlatformRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritablePlatformRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedPlatformRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritablePlatformRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedPlatformRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritablePlatformRequest) HasCustomFields() bool`
+`func (o *PatchedPlatformRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritablePowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md
similarity index 59%
rename from docs/PatchedWritablePowerPanelRequest.md
rename to docs/PatchedPowerPanelRequest.md
index c481173435..1f2bda37d8 100644
--- a/docs/PatchedWritablePowerPanelRequest.md
+++ b/docs/PatchedPowerPanelRequest.md
@@ -1,11 +1,11 @@
-# PatchedWritablePowerPanelRequest
+# PatchedPowerPanelRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Site** | Pointer to **int32** | | [optional]
-**Location** | Pointer to **NullableInt32** | | [optional]
+**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional]
+**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -14,205 +14,205 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritablePowerPanelRequest
+### NewPatchedPowerPanelRequest
-`func NewPatchedWritablePowerPanelRequest() *PatchedWritablePowerPanelRequest`
+`func NewPatchedPowerPanelRequest() *PatchedPowerPanelRequest`
-NewPatchedWritablePowerPanelRequest instantiates a new PatchedWritablePowerPanelRequest object
+NewPatchedPowerPanelRequest instantiates a new PatchedPowerPanelRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritablePowerPanelRequestWithDefaults
+### NewPatchedPowerPanelRequestWithDefaults
-`func NewPatchedWritablePowerPanelRequestWithDefaults() *PatchedWritablePowerPanelRequest`
+`func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest`
-NewPatchedWritablePowerPanelRequestWithDefaults instantiates a new PatchedWritablePowerPanelRequest object
+NewPatchedPowerPanelRequestWithDefaults instantiates a new PatchedPowerPanelRequest object
This 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 *PatchedWritablePowerPanelRequest) GetSite() int32`
+`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritablePowerPanelRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetSite(v int32)`
+`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
### HasSite
-`func (o *PatchedWritablePowerPanelRequest) HasSite() bool`
+`func (o *PatchedPowerPanelRequest) HasSite() bool`
HasSite returns a boolean if a field has been set.
### GetLocation
-`func (o *PatchedWritablePowerPanelRequest) GetLocation() int32`
+`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *PatchedWritablePowerPanelRequest) GetLocationOk() (*int32, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetLocation(v int32)`
+`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)`
SetLocation sets Location field to given value.
### HasLocation
-`func (o *PatchedWritablePowerPanelRequest) HasLocation() bool`
+`func (o *PatchedPowerPanelRequest) HasLocation() bool`
HasLocation returns a boolean if a field has been set.
### SetLocationNil
-`func (o *PatchedWritablePowerPanelRequest) SetLocationNil(b bool)`
+`func (o *PatchedPowerPanelRequest) SetLocationNil(b bool)`
SetLocationNil sets the value for Location to be an explicit nil
### UnsetLocation
-`func (o *PatchedWritablePowerPanelRequest) UnsetLocation()`
+`func (o *PatchedPowerPanelRequest) UnsetLocation()`
UnsetLocation ensures that no value is present for Location, not even an explicit nil
### GetName
-`func (o *PatchedWritablePowerPanelRequest) GetName() string`
+`func (o *PatchedPowerPanelRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritablePowerPanelRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetName(v string)`
+`func (o *PatchedPowerPanelRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritablePowerPanelRequest) HasName() bool`
+`func (o *PatchedPowerPanelRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritablePowerPanelRequest) GetDescription() string`
+`func (o *PatchedPowerPanelRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritablePowerPanelRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetDescription(v string)`
+`func (o *PatchedPowerPanelRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritablePowerPanelRequest) HasDescription() bool`
+`func (o *PatchedPowerPanelRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritablePowerPanelRequest) GetComments() string`
+`func (o *PatchedPowerPanelRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritablePowerPanelRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetComments(v string)`
+`func (o *PatchedPowerPanelRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritablePowerPanelRequest) HasComments() bool`
+`func (o *PatchedPowerPanelRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritablePowerPanelRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedPowerPanelRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritablePowerPanelRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedPowerPanelRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritablePowerPanelRequest) HasTags() bool`
+`func (o *PatchedPowerPanelRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritablePowerPanelRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedPowerPanelRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritablePowerPanelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedPowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedPowerPanelRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritablePowerPanelRequest) HasCustomFields() bool`
+`func (o *PatchedPowerPanelRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/WritableProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md
similarity index 57%
rename from docs/WritableProviderAccountRequest.md
rename to docs/PatchedProviderAccountRequest.md
index 0754f51e83..e4f8fd72e4 100644
--- a/docs/WritableProviderAccountRequest.md
+++ b/docs/PatchedProviderAccountRequest.md
@@ -1,12 +1,12 @@
-# WritableProviderAccountRequest
+# PatchedProviderAccountRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Provider** | **int32** | |
-**Name** | Pointer to **string** | | [optional]
-**Account** | **string** | |
+**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional]
+**Name** | Pointer to **string** | | [optional] [default to ""]
+**Account** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -14,185 +14,195 @@ Name | Type | Description | Notes
## Methods
-### NewWritableProviderAccountRequest
+### NewPatchedProviderAccountRequest
-`func NewWritableProviderAccountRequest(provider int32, account string, ) *WritableProviderAccountRequest`
+`func NewPatchedProviderAccountRequest() *PatchedProviderAccountRequest`
-NewWritableProviderAccountRequest instantiates a new WritableProviderAccountRequest object
+NewPatchedProviderAccountRequest instantiates a new PatchedProviderAccountRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableProviderAccountRequestWithDefaults
+### NewPatchedProviderAccountRequestWithDefaults
-`func NewWritableProviderAccountRequestWithDefaults() *WritableProviderAccountRequest`
+`func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountRequest`
-NewWritableProviderAccountRequestWithDefaults instantiates a new WritableProviderAccountRequest object
+NewPatchedProviderAccountRequestWithDefaults instantiates a new PatchedProviderAccountRequest object
This 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 *WritableProviderAccountRequest) GetProvider() int32`
+`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest`
GetProvider returns the Provider field if non-nil, zero value otherwise.
### GetProviderOk
-`func (o *WritableProviderAccountRequest) GetProviderOk() (*int32, bool)`
+`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, 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 *WritableProviderAccountRequest) SetProvider(v int32)`
+`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)`
SetProvider sets Provider field to given value.
+### HasProvider
+
+`func (o *PatchedProviderAccountRequest) HasProvider() bool`
+
+HasProvider returns a boolean if a field has been set.
### GetName
-`func (o *WritableProviderAccountRequest) GetName() string`
+`func (o *PatchedProviderAccountRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *WritableProviderAccountRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetName(v string)`
+`func (o *PatchedProviderAccountRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *WritableProviderAccountRequest) HasName() bool`
+`func (o *PatchedProviderAccountRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetAccount
-`func (o *WritableProviderAccountRequest) GetAccount() string`
+`func (o *PatchedProviderAccountRequest) GetAccount() string`
GetAccount returns the Account field if non-nil, zero value otherwise.
### GetAccountOk
-`func (o *WritableProviderAccountRequest) GetAccountOk() (*string, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetAccount(v string)`
+`func (o *PatchedProviderAccountRequest) SetAccount(v string)`
SetAccount sets Account field to given value.
+### HasAccount
+
+`func (o *PatchedProviderAccountRequest) HasAccount() bool`
+
+HasAccount returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableProviderAccountRequest) GetDescription() string`
+`func (o *PatchedProviderAccountRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableProviderAccountRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetDescription(v string)`
+`func (o *PatchedProviderAccountRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableProviderAccountRequest) HasDescription() bool`
+`func (o *PatchedProviderAccountRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *WritableProviderAccountRequest) GetComments() string`
+`func (o *PatchedProviderAccountRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *WritableProviderAccountRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetComments(v string)`
+`func (o *PatchedProviderAccountRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *WritableProviderAccountRequest) HasComments() bool`
+`func (o *PatchedProviderAccountRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *WritableProviderAccountRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedProviderAccountRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableProviderAccountRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedProviderAccountRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableProviderAccountRequest) HasTags() bool`
+`func (o *PatchedProviderAccountRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *WritableProviderAccountRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedProviderAccountRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *WritableProviderAccountRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedProviderAccountRequest) 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 *WritableProviderAccountRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedProviderAccountRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *WritableProviderAccountRequest) HasCustomFields() bool`
+`func (o *PatchedProviderAccountRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md
similarity index 58%
rename from docs/PatchedWritableProviderNetworkRequest.md
rename to docs/PatchedProviderNetworkRequest.md
index 089f2508ae..71345eb121 100644
--- a/docs/PatchedWritableProviderNetworkRequest.md
+++ b/docs/PatchedProviderNetworkRequest.md
@@ -1,10 +1,10 @@
-# PatchedWritableProviderNetworkRequest
+# PatchedProviderNetworkRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Provider** | Pointer to **int32** | | [optional]
+**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**ServiceId** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -14,195 +14,195 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableProviderNetworkRequest
+### NewPatchedProviderNetworkRequest
-`func NewPatchedWritableProviderNetworkRequest() *PatchedWritableProviderNetworkRequest`
+`func NewPatchedProviderNetworkRequest() *PatchedProviderNetworkRequest`
-NewPatchedWritableProviderNetworkRequest instantiates a new PatchedWritableProviderNetworkRequest object
+NewPatchedProviderNetworkRequest instantiates a new PatchedProviderNetworkRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableProviderNetworkRequestWithDefaults
+### NewPatchedProviderNetworkRequestWithDefaults
-`func NewPatchedWritableProviderNetworkRequestWithDefaults() *PatchedWritableProviderNetworkRequest`
+`func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkRequest`
-NewPatchedWritableProviderNetworkRequestWithDefaults instantiates a new PatchedWritableProviderNetworkRequest object
+NewPatchedProviderNetworkRequestWithDefaults instantiates a new PatchedProviderNetworkRequest object
This 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 *PatchedWritableProviderNetworkRequest) GetProvider() int32`
+`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest`
GetProvider returns the Provider field if non-nil, zero value otherwise.
### GetProviderOk
-`func (o *PatchedWritableProviderNetworkRequest) GetProviderOk() (*int32, bool)`
+`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, 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 *PatchedWritableProviderNetworkRequest) SetProvider(v int32)`
+`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)`
SetProvider sets Provider field to given value.
### HasProvider
-`func (o *PatchedWritableProviderNetworkRequest) HasProvider() bool`
+`func (o *PatchedProviderNetworkRequest) HasProvider() bool`
HasProvider returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableProviderNetworkRequest) GetName() string`
+`func (o *PatchedProviderNetworkRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableProviderNetworkRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetName(v string)`
+`func (o *PatchedProviderNetworkRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableProviderNetworkRequest) HasName() bool`
+`func (o *PatchedProviderNetworkRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetServiceId
-`func (o *PatchedWritableProviderNetworkRequest) GetServiceId() string`
+`func (o *PatchedProviderNetworkRequest) GetServiceId() string`
GetServiceId returns the ServiceId field if non-nil, zero value otherwise.
### GetServiceIdOk
-`func (o *PatchedWritableProviderNetworkRequest) GetServiceIdOk() (*string, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetServiceId(v string)`
+`func (o *PatchedProviderNetworkRequest) SetServiceId(v string)`
SetServiceId sets ServiceId field to given value.
### HasServiceId
-`func (o *PatchedWritableProviderNetworkRequest) HasServiceId() bool`
+`func (o *PatchedProviderNetworkRequest) HasServiceId() bool`
HasServiceId returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableProviderNetworkRequest) GetDescription() string`
+`func (o *PatchedProviderNetworkRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableProviderNetworkRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetDescription(v string)`
+`func (o *PatchedProviderNetworkRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableProviderNetworkRequest) HasDescription() bool`
+`func (o *PatchedProviderNetworkRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableProviderNetworkRequest) GetComments() string`
+`func (o *PatchedProviderNetworkRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableProviderNetworkRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetComments(v string)`
+`func (o *PatchedProviderNetworkRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableProviderNetworkRequest) HasComments() bool`
+`func (o *PatchedProviderNetworkRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableProviderNetworkRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedProviderNetworkRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableProviderNetworkRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedProviderNetworkRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableProviderNetworkRequest) HasTags() bool`
+`func (o *PatchedProviderNetworkRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableProviderNetworkRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedProviderNetworkRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableProviderNetworkRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedProviderNetworkRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableProviderNetworkRequest) HasCustomFields() bool`
+`func (o *PatchedProviderNetworkRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableProviderRequest.md b/docs/PatchedProviderRequest.md
similarity index 61%
rename from docs/PatchedWritableProviderRequest.md
rename to docs/PatchedProviderRequest.md
index 540da416cf..f9b3eaa8ca 100644
--- a/docs/PatchedWritableProviderRequest.md
+++ b/docs/PatchedProviderRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableProviderRequest
+# PatchedProviderRequest
## Properties
@@ -15,220 +15,220 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableProviderRequest
+### NewPatchedProviderRequest
-`func NewPatchedWritableProviderRequest() *PatchedWritableProviderRequest`
+`func NewPatchedProviderRequest() *PatchedProviderRequest`
-NewPatchedWritableProviderRequest instantiates a new PatchedWritableProviderRequest object
+NewPatchedProviderRequest instantiates a new PatchedProviderRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableProviderRequestWithDefaults
+### NewPatchedProviderRequestWithDefaults
-`func NewPatchedWritableProviderRequestWithDefaults() *PatchedWritableProviderRequest`
+`func NewPatchedProviderRequestWithDefaults() *PatchedProviderRequest`
-NewPatchedWritableProviderRequestWithDefaults instantiates a new PatchedWritableProviderRequest object
+NewPatchedProviderRequestWithDefaults instantiates a new PatchedProviderRequest object
This 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 *PatchedWritableProviderRequest) GetName() string`
+`func (o *PatchedProviderRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableProviderRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetName(v string)`
+`func (o *PatchedProviderRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableProviderRequest) HasName() bool`
+`func (o *PatchedProviderRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetSlug
-`func (o *PatchedWritableProviderRequest) GetSlug() string`
+`func (o *PatchedProviderRequest) GetSlug() string`
GetSlug returns the Slug field if non-nil, zero value otherwise.
### GetSlugOk
-`func (o *PatchedWritableProviderRequest) GetSlugOk() (*string, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetSlug(v string)`
+`func (o *PatchedProviderRequest) SetSlug(v string)`
SetSlug sets Slug field to given value.
### HasSlug
-`func (o *PatchedWritableProviderRequest) HasSlug() bool`
+`func (o *PatchedProviderRequest) HasSlug() bool`
HasSlug returns a boolean if a field has been set.
### GetAccounts
-`func (o *PatchedWritableProviderRequest) GetAccounts() []int32`
+`func (o *PatchedProviderRequest) GetAccounts() []int32`
GetAccounts returns the Accounts field if non-nil, zero value otherwise.
### GetAccountsOk
-`func (o *PatchedWritableProviderRequest) GetAccountsOk() (*[]int32, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetAccounts(v []int32)`
+`func (o *PatchedProviderRequest) SetAccounts(v []int32)`
SetAccounts sets Accounts field to given value.
### HasAccounts
-`func (o *PatchedWritableProviderRequest) HasAccounts() bool`
+`func (o *PatchedProviderRequest) HasAccounts() bool`
HasAccounts returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableProviderRequest) GetDescription() string`
+`func (o *PatchedProviderRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableProviderRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetDescription(v string)`
+`func (o *PatchedProviderRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableProviderRequest) HasDescription() bool`
+`func (o *PatchedProviderRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableProviderRequest) GetComments() string`
+`func (o *PatchedProviderRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableProviderRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetComments(v string)`
+`func (o *PatchedProviderRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableProviderRequest) HasComments() bool`
+`func (o *PatchedProviderRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetAsns
-`func (o *PatchedWritableProviderRequest) GetAsns() []int32`
+`func (o *PatchedProviderRequest) GetAsns() []int32`
GetAsns returns the Asns field if non-nil, zero value otherwise.
### GetAsnsOk
-`func (o *PatchedWritableProviderRequest) GetAsnsOk() (*[]int32, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetAsns(v []int32)`
+`func (o *PatchedProviderRequest) SetAsns(v []int32)`
SetAsns sets Asns field to given value.
### HasAsns
-`func (o *PatchedWritableProviderRequest) HasAsns() bool`
+`func (o *PatchedProviderRequest) HasAsns() bool`
HasAsns returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableProviderRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedProviderRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableProviderRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedProviderRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableProviderRequest) HasTags() bool`
+`func (o *PatchedProviderRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableProviderRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedProviderRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableProviderRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedProviderRequest) 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 *PatchedWritableProviderRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedProviderRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableProviderRequest) HasCustomFields() bool`
+`func (o *PatchedProviderRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableRackReservationRequest.md b/docs/PatchedRackReservationRequest.md
similarity index 56%
rename from docs/PatchedWritableRackReservationRequest.md
rename to docs/PatchedRackReservationRequest.md
index f820252e96..5347665db9 100644
--- a/docs/PatchedWritableRackReservationRequest.md
+++ b/docs/PatchedRackReservationRequest.md
@@ -1,13 +1,13 @@
-# PatchedWritableRackReservationRequest
+# PatchedRackReservationRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Rack** | Pointer to **int32** | | [optional]
+**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional]
**Units** | Pointer to **[]int32** | | [optional]
-**User** | Pointer to **int32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**User** | Pointer to [**UserRequest**](UserRequest.md) | | [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]
@@ -15,230 +15,230 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableRackReservationRequest
+### NewPatchedRackReservationRequest
-`func NewPatchedWritableRackReservationRequest() *PatchedWritableRackReservationRequest`
+`func NewPatchedRackReservationRequest() *PatchedRackReservationRequest`
-NewPatchedWritableRackReservationRequest instantiates a new PatchedWritableRackReservationRequest object
+NewPatchedRackReservationRequest instantiates a new PatchedRackReservationRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableRackReservationRequestWithDefaults
+### NewPatchedRackReservationRequestWithDefaults
-`func NewPatchedWritableRackReservationRequestWithDefaults() *PatchedWritableRackReservationRequest`
+`func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationRequest`
-NewPatchedWritableRackReservationRequestWithDefaults instantiates a new PatchedWritableRackReservationRequest object
+NewPatchedRackReservationRequestWithDefaults instantiates a new PatchedRackReservationRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetRack
-`func (o *PatchedWritableRackReservationRequest) GetRack() int32`
+`func (o *PatchedRackReservationRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *PatchedWritableRackReservationRequest) GetRackOk() (*int32, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetRack(v int32)`
+`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)`
SetRack sets Rack field to given value.
### HasRack
-`func (o *PatchedWritableRackReservationRequest) HasRack() bool`
+`func (o *PatchedRackReservationRequest) HasRack() bool`
HasRack returns a boolean if a field has been set.
### GetUnits
-`func (o *PatchedWritableRackReservationRequest) GetUnits() []int32`
+`func (o *PatchedRackReservationRequest) GetUnits() []int32`
GetUnits returns the Units field if non-nil, zero value otherwise.
### GetUnitsOk
-`func (o *PatchedWritableRackReservationRequest) GetUnitsOk() (*[]int32, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetUnits(v []int32)`
+`func (o *PatchedRackReservationRequest) SetUnits(v []int32)`
SetUnits sets Units field to given value.
### HasUnits
-`func (o *PatchedWritableRackReservationRequest) HasUnits() bool`
+`func (o *PatchedRackReservationRequest) HasUnits() bool`
HasUnits returns a boolean if a field has been set.
### GetUser
-`func (o *PatchedWritableRackReservationRequest) GetUser() int32`
+`func (o *PatchedRackReservationRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *PatchedWritableRackReservationRequest) GetUserOk() (*int32, bool)`
+`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, 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 *PatchedWritableRackReservationRequest) SetUser(v int32)`
+`func (o *PatchedRackReservationRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
### HasUser
-`func (o *PatchedWritableRackReservationRequest) HasUser() bool`
+`func (o *PatchedRackReservationRequest) HasUser() bool`
HasUser returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableRackReservationRequest) GetTenant() int32`
+`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableRackReservationRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetTenant(v int32)`
+`func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
### HasTenant
-`func (o *PatchedWritableRackReservationRequest) HasTenant() bool`
+`func (o *PatchedRackReservationRequest) HasTenant() bool`
HasTenant returns a boolean if a field has been set.
### SetTenantNil
-`func (o *PatchedWritableRackReservationRequest) SetTenantNil(b bool)`
+`func (o *PatchedRackReservationRequest) SetTenantNil(b bool)`
SetTenantNil sets the value for Tenant to be an explicit nil
### UnsetTenant
-`func (o *PatchedWritableRackReservationRequest) UnsetTenant()`
+`func (o *PatchedRackReservationRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableRackReservationRequest) GetDescription() string`
+`func (o *PatchedRackReservationRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableRackReservationRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetDescription(v string)`
+`func (o *PatchedRackReservationRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableRackReservationRequest) HasDescription() bool`
+`func (o *PatchedRackReservationRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableRackReservationRequest) GetComments() string`
+`func (o *PatchedRackReservationRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableRackReservationRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetComments(v string)`
+`func (o *PatchedRackReservationRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableRackReservationRequest) HasComments() bool`
+`func (o *PatchedRackReservationRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableRackReservationRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedRackReservationRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableRackReservationRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedRackReservationRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableRackReservationRequest) HasTags() bool`
+`func (o *PatchedRackReservationRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableRackReservationRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedRackReservationRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableRackReservationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedRackReservationRequest) 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 *PatchedWritableRackReservationRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedRackReservationRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableRackReservationRequest) HasCustomFields() bool`
+`func (o *PatchedRackReservationRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md
similarity index 59%
rename from docs/PatchedWritableRouteTargetRequest.md
rename to docs/PatchedRouteTargetRequest.md
index 13554fbaff..a08f52e557 100644
--- a/docs/PatchedWritableRouteTargetRequest.md
+++ b/docs/PatchedRouteTargetRequest.md
@@ -1,11 +1,11 @@
-# PatchedWritableRouteTargetRequest
+# PatchedRouteTargetRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
@@ -13,180 +13,180 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableRouteTargetRequest
+### NewPatchedRouteTargetRequest
-`func NewPatchedWritableRouteTargetRequest() *PatchedWritableRouteTargetRequest`
+`func NewPatchedRouteTargetRequest() *PatchedRouteTargetRequest`
-NewPatchedWritableRouteTargetRequest instantiates a new PatchedWritableRouteTargetRequest object
+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
-### NewPatchedWritableRouteTargetRequestWithDefaults
+### NewPatchedRouteTargetRequestWithDefaults
-`func NewPatchedWritableRouteTargetRequestWithDefaults() *PatchedWritableRouteTargetRequest`
+`func NewPatchedRouteTargetRequestWithDefaults() *PatchedRouteTargetRequest`
-NewPatchedWritableRouteTargetRequestWithDefaults instantiates a new PatchedWritableRouteTargetRequest object
+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 *PatchedWritableRouteTargetRequest) GetName() string`
+`func (o *PatchedRouteTargetRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableRouteTargetRequest) GetNameOk() (*string, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetName(v string)`
+`func (o *PatchedRouteTargetRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableRouteTargetRequest) HasName() bool`
+`func (o *PatchedRouteTargetRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableRouteTargetRequest) GetTenant() int32`
+`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableRouteTargetRequest) GetTenantOk() (*int32, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetTenant(v int32)`
+`func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
### HasTenant
-`func (o *PatchedWritableRouteTargetRequest) HasTenant() bool`
+`func (o *PatchedRouteTargetRequest) HasTenant() bool`
HasTenant returns a boolean if a field has been set.
### SetTenantNil
-`func (o *PatchedWritableRouteTargetRequest) SetTenantNil(b bool)`
+`func (o *PatchedRouteTargetRequest) SetTenantNil(b bool)`
SetTenantNil sets the value for Tenant to be an explicit nil
### UnsetTenant
-`func (o *PatchedWritableRouteTargetRequest) UnsetTenant()`
+`func (o *PatchedRouteTargetRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableRouteTargetRequest) GetDescription() string`
+`func (o *PatchedRouteTargetRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableRouteTargetRequest) GetDescriptionOk() (*string, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetDescription(v string)`
+`func (o *PatchedRouteTargetRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableRouteTargetRequest) HasDescription() bool`
+`func (o *PatchedRouteTargetRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableRouteTargetRequest) GetComments() string`
+`func (o *PatchedRouteTargetRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableRouteTargetRequest) GetCommentsOk() (*string, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetComments(v string)`
+`func (o *PatchedRouteTargetRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableRouteTargetRequest) HasComments() bool`
+`func (o *PatchedRouteTargetRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableRouteTargetRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedRouteTargetRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableRouteTargetRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedRouteTargetRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableRouteTargetRequest) HasTags() bool`
+`func (o *PatchedRouteTargetRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableRouteTargetRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedRouteTargetRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableRouteTargetRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`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 *PatchedWritableRouteTargetRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedRouteTargetRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableRouteTargetRequest) HasCustomFields() bool`
+`func (o *PatchedRouteTargetRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedSavedFilterRequest.md b/docs/PatchedSavedFilterRequest.md
index 21e21f3c91..b21ec342cd 100644
--- a/docs/PatchedSavedFilterRequest.md
+++ b/docs/PatchedSavedFilterRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
+**ObjectTypes** | Pointer to **[]string** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
@@ -33,30 +33,30 @@ NewPatchedSavedFilterRequestWithDefaults instantiates a new PatchedSavedFilterRe
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *PatchedSavedFilterRequest) GetContentTypes() []string`
+`func (o *PatchedSavedFilterRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *PatchedSavedFilterRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *PatchedSavedFilterRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *PatchedSavedFilterRequest) SetContentTypes(v []string)`
+`func (o *PatchedSavedFilterRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
-### HasContentTypes
+### HasObjectTypes
-`func (o *PatchedSavedFilterRequest) HasContentTypes() bool`
+`func (o *PatchedSavedFilterRequest) HasObjectTypes() bool`
-HasContentTypes returns a boolean if a field has been set.
+HasObjectTypes returns a boolean if a field has been set.
### GetName
diff --git a/docs/PatchedWritableTenantRequest.md b/docs/PatchedTenantRequest.md
similarity index 61%
rename from docs/PatchedWritableTenantRequest.md
rename to docs/PatchedTenantRequest.md
index 01569e8110..660e888105 100644
--- a/docs/PatchedWritableTenantRequest.md
+++ b/docs/PatchedTenantRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableTenantRequest
+# PatchedTenantRequest
## Properties
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
+**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -14,205 +14,205 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableTenantRequest
+### NewPatchedTenantRequest
-`func NewPatchedWritableTenantRequest() *PatchedWritableTenantRequest`
+`func NewPatchedTenantRequest() *PatchedTenantRequest`
-NewPatchedWritableTenantRequest instantiates a new PatchedWritableTenantRequest object
+NewPatchedTenantRequest instantiates a new PatchedTenantRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableTenantRequestWithDefaults
+### NewPatchedTenantRequestWithDefaults
-`func NewPatchedWritableTenantRequestWithDefaults() *PatchedWritableTenantRequest`
+`func NewPatchedTenantRequestWithDefaults() *PatchedTenantRequest`
-NewPatchedWritableTenantRequestWithDefaults instantiates a new PatchedWritableTenantRequest object
+NewPatchedTenantRequestWithDefaults instantiates a new PatchedTenantRequest object
This 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 *PatchedWritableTenantRequest) GetName() string`
+`func (o *PatchedTenantRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableTenantRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetName(v string)`
+`func (o *PatchedTenantRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableTenantRequest) HasName() bool`
+`func (o *PatchedTenantRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetSlug
-`func (o *PatchedWritableTenantRequest) GetSlug() string`
+`func (o *PatchedTenantRequest) GetSlug() string`
GetSlug returns the Slug field if non-nil, zero value otherwise.
### GetSlugOk
-`func (o *PatchedWritableTenantRequest) GetSlugOk() (*string, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetSlug(v string)`
+`func (o *PatchedTenantRequest) SetSlug(v string)`
SetSlug sets Slug field to given value.
### HasSlug
-`func (o *PatchedWritableTenantRequest) HasSlug() bool`
+`func (o *PatchedTenantRequest) HasSlug() bool`
HasSlug returns a boolean if a field has been set.
### GetGroup
-`func (o *PatchedWritableTenantRequest) GetGroup() int32`
+`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableTenantRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, 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 *PatchedWritableTenantRequest) SetGroup(v int32)`
+`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)`
SetGroup sets Group field to given value.
### HasGroup
-`func (o *PatchedWritableTenantRequest) HasGroup() bool`
+`func (o *PatchedTenantRequest) HasGroup() bool`
HasGroup returns a boolean if a field has been set.
### SetGroupNil
-`func (o *PatchedWritableTenantRequest) SetGroupNil(b bool)`
+`func (o *PatchedTenantRequest) SetGroupNil(b bool)`
SetGroupNil sets the value for Group to be an explicit nil
### UnsetGroup
-`func (o *PatchedWritableTenantRequest) UnsetGroup()`
+`func (o *PatchedTenantRequest) UnsetGroup()`
UnsetGroup ensures that no value is present for Group, not even an explicit nil
### GetDescription
-`func (o *PatchedWritableTenantRequest) GetDescription() string`
+`func (o *PatchedTenantRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableTenantRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetDescription(v string)`
+`func (o *PatchedTenantRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableTenantRequest) HasDescription() bool`
+`func (o *PatchedTenantRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *PatchedWritableTenantRequest) GetComments() string`
+`func (o *PatchedTenantRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *PatchedWritableTenantRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetComments(v string)`
+`func (o *PatchedTenantRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *PatchedWritableTenantRequest) HasComments() bool`
+`func (o *PatchedTenantRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableTenantRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedTenantRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableTenantRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedTenantRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableTenantRequest) HasTags() bool`
+`func (o *PatchedTenantRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableTenantRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedTenantRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableTenantRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedTenantRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableTenantRequest) HasCustomFields() bool`
+`func (o *PatchedTenantRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/WritableTokenRequest.md b/docs/PatchedTokenRequest.md
similarity index 64%
rename from docs/WritableTokenRequest.md
rename to docs/PatchedTokenRequest.md
index 07541e3a1b..a62dfd87e8 100644
--- a/docs/WritableTokenRequest.md
+++ b/docs/PatchedTokenRequest.md
@@ -1,10 +1,10 @@
-# WritableTokenRequest
+# PatchedTokenRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**User** | **int32** | |
+**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional]
**Expires** | Pointer to **NullableTime** | | [optional]
**LastUsed** | Pointer to **NullableTime** | | [optional]
**Key** | Pointer to **string** | | [optional]
@@ -13,185 +13,190 @@ Name | Type | Description | Notes
## Methods
-### NewWritableTokenRequest
+### NewPatchedTokenRequest
-`func NewWritableTokenRequest(user int32, ) *WritableTokenRequest`
+`func NewPatchedTokenRequest() *PatchedTokenRequest`
-NewWritableTokenRequest instantiates a new WritableTokenRequest object
+NewPatchedTokenRequest instantiates a new PatchedTokenRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableTokenRequestWithDefaults
+### NewPatchedTokenRequestWithDefaults
-`func NewWritableTokenRequestWithDefaults() *WritableTokenRequest`
+`func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest`
-NewWritableTokenRequestWithDefaults instantiates a new WritableTokenRequest object
+NewPatchedTokenRequestWithDefaults instantiates a new PatchedTokenRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetUser
-`func (o *WritableTokenRequest) GetUser() int32`
+`func (o *PatchedTokenRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *WritableTokenRequest) GetUserOk() (*int32, bool)`
+`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, 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 *WritableTokenRequest) SetUser(v int32)`
+`func (o *PatchedTokenRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
+### HasUser
+
+`func (o *PatchedTokenRequest) HasUser() bool`
+
+HasUser returns a boolean if a field has been set.
### GetExpires
-`func (o *WritableTokenRequest) GetExpires() time.Time`
+`func (o *PatchedTokenRequest) GetExpires() time.Time`
GetExpires returns the Expires field if non-nil, zero value otherwise.
### GetExpiresOk
-`func (o *WritableTokenRequest) GetExpiresOk() (*time.Time, bool)`
+`func (o *PatchedTokenRequest) 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 *WritableTokenRequest) SetExpires(v time.Time)`
+`func (o *PatchedTokenRequest) SetExpires(v time.Time)`
SetExpires sets Expires field to given value.
### HasExpires
-`func (o *WritableTokenRequest) HasExpires() bool`
+`func (o *PatchedTokenRequest) HasExpires() bool`
HasExpires returns a boolean if a field has been set.
### SetExpiresNil
-`func (o *WritableTokenRequest) SetExpiresNil(b bool)`
+`func (o *PatchedTokenRequest) SetExpiresNil(b bool)`
SetExpiresNil sets the value for Expires to be an explicit nil
### UnsetExpires
-`func (o *WritableTokenRequest) UnsetExpires()`
+`func (o *PatchedTokenRequest) UnsetExpires()`
UnsetExpires ensures that no value is present for Expires, not even an explicit nil
### GetLastUsed
-`func (o *WritableTokenRequest) GetLastUsed() time.Time`
+`func (o *PatchedTokenRequest) GetLastUsed() time.Time`
GetLastUsed returns the LastUsed field if non-nil, zero value otherwise.
### GetLastUsedOk
-`func (o *WritableTokenRequest) GetLastUsedOk() (*time.Time, bool)`
+`func (o *PatchedTokenRequest) 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 *WritableTokenRequest) SetLastUsed(v time.Time)`
+`func (o *PatchedTokenRequest) SetLastUsed(v time.Time)`
SetLastUsed sets LastUsed field to given value.
### HasLastUsed
-`func (o *WritableTokenRequest) HasLastUsed() bool`
+`func (o *PatchedTokenRequest) HasLastUsed() bool`
HasLastUsed returns a boolean if a field has been set.
### SetLastUsedNil
-`func (o *WritableTokenRequest) SetLastUsedNil(b bool)`
+`func (o *PatchedTokenRequest) SetLastUsedNil(b bool)`
SetLastUsedNil sets the value for LastUsed to be an explicit nil
### UnsetLastUsed
-`func (o *WritableTokenRequest) UnsetLastUsed()`
+`func (o *PatchedTokenRequest) UnsetLastUsed()`
UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil
### GetKey
-`func (o *WritableTokenRequest) GetKey() string`
+`func (o *PatchedTokenRequest) GetKey() string`
GetKey returns the Key field if non-nil, zero value otherwise.
### GetKeyOk
-`func (o *WritableTokenRequest) GetKeyOk() (*string, bool)`
+`func (o *PatchedTokenRequest) 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 *WritableTokenRequest) SetKey(v string)`
+`func (o *PatchedTokenRequest) SetKey(v string)`
SetKey sets Key field to given value.
### HasKey
-`func (o *WritableTokenRequest) HasKey() bool`
+`func (o *PatchedTokenRequest) HasKey() bool`
HasKey returns a boolean if a field has been set.
### GetWriteEnabled
-`func (o *WritableTokenRequest) GetWriteEnabled() bool`
+`func (o *PatchedTokenRequest) GetWriteEnabled() bool`
GetWriteEnabled returns the WriteEnabled field if non-nil, zero value otherwise.
### GetWriteEnabledOk
-`func (o *WritableTokenRequest) GetWriteEnabledOk() (*bool, bool)`
+`func (o *PatchedTokenRequest) 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 *WritableTokenRequest) SetWriteEnabled(v bool)`
+`func (o *PatchedTokenRequest) SetWriteEnabled(v bool)`
SetWriteEnabled sets WriteEnabled field to given value.
### HasWriteEnabled
-`func (o *WritableTokenRequest) HasWriteEnabled() bool`
+`func (o *PatchedTokenRequest) HasWriteEnabled() bool`
HasWriteEnabled returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableTokenRequest) GetDescription() string`
+`func (o *PatchedTokenRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableTokenRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedTokenRequest) 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 *WritableTokenRequest) SetDescription(v string)`
+`func (o *PatchedTokenRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableTokenRequest) HasDescription() bool`
+`func (o *PatchedTokenRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableUserRequest.md b/docs/PatchedUserRequest.md
similarity index 61%
rename from docs/PatchedWritableUserRequest.md
rename to docs/PatchedUserRequest.md
index f4f90e6ddf..137162edef 100644
--- a/docs/PatchedWritableUserRequest.md
+++ b/docs/PatchedUserRequest.md
@@ -1,4 +1,4 @@
-# PatchedWritableUserRequest
+# PatchedUserRequest
## Properties
@@ -13,287 +13,313 @@ Name | Type | Description | Notes
**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** | The groups this user belongs to. A user will get all permissions granted to each of their groups. | [optional]
+**Groups** | Pointer to **[]int32** | | [optional]
+**Permissions** | Pointer to **[]int32** | | [optional]
## Methods
-### NewPatchedWritableUserRequest
+### NewPatchedUserRequest
-`func NewPatchedWritableUserRequest() *PatchedWritableUserRequest`
+`func NewPatchedUserRequest() *PatchedUserRequest`
-NewPatchedWritableUserRequest instantiates a new PatchedWritableUserRequest object
+NewPatchedUserRequest instantiates a new PatchedUserRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableUserRequestWithDefaults
+### NewPatchedUserRequestWithDefaults
-`func NewPatchedWritableUserRequestWithDefaults() *PatchedWritableUserRequest`
+`func NewPatchedUserRequestWithDefaults() *PatchedUserRequest`
-NewPatchedWritableUserRequestWithDefaults instantiates a new PatchedWritableUserRequest object
+NewPatchedUserRequestWithDefaults instantiates a new PatchedUserRequest object
This 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 *PatchedWritableUserRequest) GetUsername() string`
+`func (o *PatchedUserRequest) GetUsername() string`
GetUsername returns the Username field if non-nil, zero value otherwise.
### GetUsernameOk
-`func (o *PatchedWritableUserRequest) GetUsernameOk() (*string, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetUsername(v string)`
+`func (o *PatchedUserRequest) SetUsername(v string)`
SetUsername sets Username field to given value.
### HasUsername
-`func (o *PatchedWritableUserRequest) HasUsername() bool`
+`func (o *PatchedUserRequest) HasUsername() bool`
HasUsername returns a boolean if a field has been set.
### GetPassword
-`func (o *PatchedWritableUserRequest) GetPassword() string`
+`func (o *PatchedUserRequest) GetPassword() string`
GetPassword returns the Password field if non-nil, zero value otherwise.
### GetPasswordOk
-`func (o *PatchedWritableUserRequest) GetPasswordOk() (*string, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetPassword(v string)`
+`func (o *PatchedUserRequest) SetPassword(v string)`
SetPassword sets Password field to given value.
### HasPassword
-`func (o *PatchedWritableUserRequest) HasPassword() bool`
+`func (o *PatchedUserRequest) HasPassword() bool`
HasPassword returns a boolean if a field has been set.
### GetFirstName
-`func (o *PatchedWritableUserRequest) GetFirstName() string`
+`func (o *PatchedUserRequest) GetFirstName() string`
GetFirstName returns the FirstName field if non-nil, zero value otherwise.
### GetFirstNameOk
-`func (o *PatchedWritableUserRequest) GetFirstNameOk() (*string, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetFirstName(v string)`
+`func (o *PatchedUserRequest) SetFirstName(v string)`
SetFirstName sets FirstName field to given value.
### HasFirstName
-`func (o *PatchedWritableUserRequest) HasFirstName() bool`
+`func (o *PatchedUserRequest) HasFirstName() bool`
HasFirstName returns a boolean if a field has been set.
### GetLastName
-`func (o *PatchedWritableUserRequest) GetLastName() string`
+`func (o *PatchedUserRequest) GetLastName() string`
GetLastName returns the LastName field if non-nil, zero value otherwise.
### GetLastNameOk
-`func (o *PatchedWritableUserRequest) GetLastNameOk() (*string, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetLastName(v string)`
+`func (o *PatchedUserRequest) SetLastName(v string)`
SetLastName sets LastName field to given value.
### HasLastName
-`func (o *PatchedWritableUserRequest) HasLastName() bool`
+`func (o *PatchedUserRequest) HasLastName() bool`
HasLastName returns a boolean if a field has been set.
### GetEmail
-`func (o *PatchedWritableUserRequest) GetEmail() string`
+`func (o *PatchedUserRequest) GetEmail() string`
GetEmail returns the Email field if non-nil, zero value otherwise.
### GetEmailOk
-`func (o *PatchedWritableUserRequest) GetEmailOk() (*string, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetEmail(v string)`
+`func (o *PatchedUserRequest) SetEmail(v string)`
SetEmail sets Email field to given value.
### HasEmail
-`func (o *PatchedWritableUserRequest) HasEmail() bool`
+`func (o *PatchedUserRequest) HasEmail() bool`
HasEmail returns a boolean if a field has been set.
### GetIsStaff
-`func (o *PatchedWritableUserRequest) GetIsStaff() bool`
+`func (o *PatchedUserRequest) GetIsStaff() bool`
GetIsStaff returns the IsStaff field if non-nil, zero value otherwise.
### GetIsStaffOk
-`func (o *PatchedWritableUserRequest) GetIsStaffOk() (*bool, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetIsStaff(v bool)`
+`func (o *PatchedUserRequest) SetIsStaff(v bool)`
SetIsStaff sets IsStaff field to given value.
### HasIsStaff
-`func (o *PatchedWritableUserRequest) HasIsStaff() bool`
+`func (o *PatchedUserRequest) HasIsStaff() bool`
HasIsStaff returns a boolean if a field has been set.
### GetIsActive
-`func (o *PatchedWritableUserRequest) GetIsActive() bool`
+`func (o *PatchedUserRequest) GetIsActive() bool`
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
### GetIsActiveOk
-`func (o *PatchedWritableUserRequest) GetIsActiveOk() (*bool, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetIsActive(v bool)`
+`func (o *PatchedUserRequest) SetIsActive(v bool)`
SetIsActive sets IsActive field to given value.
### HasIsActive
-`func (o *PatchedWritableUserRequest) HasIsActive() bool`
+`func (o *PatchedUserRequest) HasIsActive() bool`
HasIsActive returns a boolean if a field has been set.
### GetDateJoined
-`func (o *PatchedWritableUserRequest) GetDateJoined() time.Time`
+`func (o *PatchedUserRequest) GetDateJoined() time.Time`
GetDateJoined returns the DateJoined field if non-nil, zero value otherwise.
### GetDateJoinedOk
-`func (o *PatchedWritableUserRequest) GetDateJoinedOk() (*time.Time, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetDateJoined(v time.Time)`
+`func (o *PatchedUserRequest) SetDateJoined(v time.Time)`
SetDateJoined sets DateJoined field to given value.
### HasDateJoined
-`func (o *PatchedWritableUserRequest) HasDateJoined() bool`
+`func (o *PatchedUserRequest) HasDateJoined() bool`
HasDateJoined returns a boolean if a field has been set.
### GetLastLogin
-`func (o *PatchedWritableUserRequest) GetLastLogin() time.Time`
+`func (o *PatchedUserRequest) GetLastLogin() time.Time`
GetLastLogin returns the LastLogin field if non-nil, zero value otherwise.
### GetLastLoginOk
-`func (o *PatchedWritableUserRequest) GetLastLoginOk() (*time.Time, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetLastLogin(v time.Time)`
+`func (o *PatchedUserRequest) SetLastLogin(v time.Time)`
SetLastLogin sets LastLogin field to given value.
### HasLastLogin
-`func (o *PatchedWritableUserRequest) HasLastLogin() bool`
+`func (o *PatchedUserRequest) HasLastLogin() bool`
HasLastLogin returns a boolean if a field has been set.
### SetLastLoginNil
-`func (o *PatchedWritableUserRequest) SetLastLoginNil(b bool)`
+`func (o *PatchedUserRequest) SetLastLoginNil(b bool)`
SetLastLoginNil sets the value for LastLogin to be an explicit nil
### UnsetLastLogin
-`func (o *PatchedWritableUserRequest) UnsetLastLogin()`
+`func (o *PatchedUserRequest) UnsetLastLogin()`
UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil
### GetGroups
-`func (o *PatchedWritableUserRequest) GetGroups() []int32`
+`func (o *PatchedUserRequest) GetGroups() []int32`
GetGroups returns the Groups field if non-nil, zero value otherwise.
### GetGroupsOk
-`func (o *PatchedWritableUserRequest) GetGroupsOk() (*[]int32, bool)`
+`func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) SetGroups(v []int32)`
+`func (o *PatchedUserRequest) SetGroups(v []int32)`
SetGroups sets Groups field to given value.
### HasGroups
-`func (o *PatchedWritableUserRequest) HasGroups() bool`
+`func (o *PatchedUserRequest) HasGroups() bool`
HasGroups returns a boolean if a field has been set.
+### GetPermissions
+
+`func (o *PatchedUserRequest) GetPermissions() []int32`
+
+GetPermissions returns the Permissions field if non-nil, zero value otherwise.
+
+### GetPermissionsOk
+
+`func (o *PatchedUserRequest) 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 *PatchedUserRequest) SetPermissions(v []int32)`
+
+SetPermissions sets Permissions field to given value.
+
+### HasPermissions
+
+`func (o *PatchedUserRequest) 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/WritableVRFRequest.md b/docs/PatchedVRFRequest.md
similarity index 65%
rename from docs/WritableVRFRequest.md
rename to docs/PatchedVRFRequest.md
index f50d2042b5..5c927e21cf 100644
--- a/docs/WritableVRFRequest.md
+++ b/docs/PatchedVRFRequest.md
@@ -1,12 +1,12 @@
-# WritableVRFRequest
+# PatchedVRFRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Name** | **string** | |
+**Name** | Pointer to **string** | | [optional]
**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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]
@@ -17,285 +17,290 @@ Name | Type | Description | Notes
## Methods
-### NewWritableVRFRequest
+### NewPatchedVRFRequest
-`func NewWritableVRFRequest(name string, ) *WritableVRFRequest`
+`func NewPatchedVRFRequest() *PatchedVRFRequest`
-NewWritableVRFRequest instantiates a new WritableVRFRequest object
+NewPatchedVRFRequest instantiates a new PatchedVRFRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewWritableVRFRequestWithDefaults
+### NewPatchedVRFRequestWithDefaults
-`func NewWritableVRFRequestWithDefaults() *WritableVRFRequest`
+`func NewPatchedVRFRequestWithDefaults() *PatchedVRFRequest`
-NewWritableVRFRequestWithDefaults instantiates a new WritableVRFRequest object
+NewPatchedVRFRequestWithDefaults instantiates a new PatchedVRFRequest object
This 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 *WritableVRFRequest) GetName() string`
+`func (o *PatchedVRFRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *WritableVRFRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetName(v string)`
+`func (o *PatchedVRFRequest) SetName(v string)`
SetName sets Name field to given value.
+### HasName
+
+`func (o *PatchedVRFRequest) HasName() bool`
+
+HasName returns a boolean if a field has been set.
### GetRd
-`func (o *WritableVRFRequest) GetRd() string`
+`func (o *PatchedVRFRequest) GetRd() string`
GetRd returns the Rd field if non-nil, zero value otherwise.
### GetRdOk
-`func (o *WritableVRFRequest) GetRdOk() (*string, bool)`
+`func (o *PatchedVRFRequest) GetRdOk() (*string, bool)`
GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRd
-`func (o *WritableVRFRequest) SetRd(v string)`
+`func (o *PatchedVRFRequest) SetRd(v string)`
SetRd sets Rd field to given value.
### HasRd
-`func (o *WritableVRFRequest) HasRd() bool`
+`func (o *PatchedVRFRequest) HasRd() bool`
HasRd returns a boolean if a field has been set.
### SetRdNil
-`func (o *WritableVRFRequest) SetRdNil(b bool)`
+`func (o *PatchedVRFRequest) SetRdNil(b bool)`
SetRdNil sets the value for Rd to be an explicit nil
### UnsetRd
-`func (o *WritableVRFRequest) UnsetRd()`
+`func (o *PatchedVRFRequest) UnsetRd()`
UnsetRd ensures that no value is present for Rd, not even an explicit nil
### GetTenant
-`func (o *WritableVRFRequest) GetTenant() int32`
+`func (o *PatchedVRFRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableVRFRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetTenant(v int32)`
+`func (o *PatchedVRFRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
### HasTenant
-`func (o *WritableVRFRequest) HasTenant() bool`
+`func (o *PatchedVRFRequest) HasTenant() bool`
HasTenant returns a boolean if a field has been set.
### SetTenantNil
-`func (o *WritableVRFRequest) SetTenantNil(b bool)`
+`func (o *PatchedVRFRequest) SetTenantNil(b bool)`
SetTenantNil sets the value for Tenant to be an explicit nil
### UnsetTenant
-`func (o *WritableVRFRequest) UnsetTenant()`
+`func (o *PatchedVRFRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
### GetEnforceUnique
-`func (o *WritableVRFRequest) GetEnforceUnique() bool`
+`func (o *PatchedVRFRequest) GetEnforceUnique() bool`
GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise.
### GetEnforceUniqueOk
-`func (o *WritableVRFRequest) GetEnforceUniqueOk() (*bool, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetEnforceUnique(v bool)`
+`func (o *PatchedVRFRequest) SetEnforceUnique(v bool)`
SetEnforceUnique sets EnforceUnique field to given value.
### HasEnforceUnique
-`func (o *WritableVRFRequest) HasEnforceUnique() bool`
+`func (o *PatchedVRFRequest) HasEnforceUnique() bool`
HasEnforceUnique returns a boolean if a field has been set.
### GetDescription
-`func (o *WritableVRFRequest) GetDescription() string`
+`func (o *PatchedVRFRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *WritableVRFRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetDescription(v string)`
+`func (o *PatchedVRFRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *WritableVRFRequest) HasDescription() bool`
+`func (o *PatchedVRFRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetComments
-`func (o *WritableVRFRequest) GetComments() string`
+`func (o *PatchedVRFRequest) GetComments() string`
GetComments returns the Comments field if non-nil, zero value otherwise.
### GetCommentsOk
-`func (o *WritableVRFRequest) GetCommentsOk() (*string, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetComments(v string)`
+`func (o *PatchedVRFRequest) SetComments(v string)`
SetComments sets Comments field to given value.
### HasComments
-`func (o *WritableVRFRequest) HasComments() bool`
+`func (o *PatchedVRFRequest) HasComments() bool`
HasComments returns a boolean if a field has been set.
### GetImportTargets
-`func (o *WritableVRFRequest) GetImportTargets() []int32`
+`func (o *PatchedVRFRequest) GetImportTargets() []int32`
GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise.
### GetImportTargetsOk
-`func (o *WritableVRFRequest) GetImportTargetsOk() (*[]int32, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetImportTargets(v []int32)`
+`func (o *PatchedVRFRequest) SetImportTargets(v []int32)`
SetImportTargets sets ImportTargets field to given value.
### HasImportTargets
-`func (o *WritableVRFRequest) HasImportTargets() bool`
+`func (o *PatchedVRFRequest) HasImportTargets() bool`
HasImportTargets returns a boolean if a field has been set.
### GetExportTargets
-`func (o *WritableVRFRequest) GetExportTargets() []int32`
+`func (o *PatchedVRFRequest) GetExportTargets() []int32`
GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise.
### GetExportTargetsOk
-`func (o *WritableVRFRequest) GetExportTargetsOk() (*[]int32, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetExportTargets(v []int32)`
+`func (o *PatchedVRFRequest) SetExportTargets(v []int32)`
SetExportTargets sets ExportTargets field to given value.
### HasExportTargets
-`func (o *WritableVRFRequest) HasExportTargets() bool`
+`func (o *PatchedVRFRequest) HasExportTargets() bool`
HasExportTargets returns a boolean if a field has been set.
### GetTags
-`func (o *WritableVRFRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedVRFRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *WritableVRFRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedVRFRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *WritableVRFRequest) HasTags() bool`
+`func (o *PatchedVRFRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *WritableVRFRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedVRFRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *WritableVRFRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedVRFRequest) 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 *WritableVRFRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedVRFRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *WritableVRFRequest) HasCustomFields() bool`
+`func (o *PatchedVRFRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md
similarity index 59%
rename from docs/PatchedWritableVirtualDiskRequest.md
rename to docs/PatchedVirtualDiskRequest.md
index 63cb4dbc9c..f8b0d3d48e 100644
--- a/docs/PatchedWritableVirtualDiskRequest.md
+++ b/docs/PatchedVirtualDiskRequest.md
@@ -1,10 +1,10 @@
-# PatchedWritableVirtualDiskRequest
+# PatchedVirtualDiskRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VirtualMachine** | Pointer to **int32** | | [optional]
+**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Size** | Pointer to **int32** | | [optional]
@@ -13,170 +13,170 @@ Name | Type | Description | Notes
## Methods
-### NewPatchedWritableVirtualDiskRequest
+### NewPatchedVirtualDiskRequest
-`func NewPatchedWritableVirtualDiskRequest() *PatchedWritableVirtualDiskRequest`
+`func NewPatchedVirtualDiskRequest() *PatchedVirtualDiskRequest`
-NewPatchedWritableVirtualDiskRequest instantiates a new PatchedWritableVirtualDiskRequest object
+NewPatchedVirtualDiskRequest instantiates a new PatchedVirtualDiskRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewPatchedWritableVirtualDiskRequestWithDefaults
+### NewPatchedVirtualDiskRequestWithDefaults
-`func NewPatchedWritableVirtualDiskRequestWithDefaults() *PatchedWritableVirtualDiskRequest`
+`func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest`
-NewPatchedWritableVirtualDiskRequestWithDefaults instantiates a new PatchedWritableVirtualDiskRequest object
+NewPatchedVirtualDiskRequestWithDefaults instantiates a new PatchedVirtualDiskRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetVirtualMachine
-`func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachine() int32`
+`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetVirtualMachine(v int32)`
+`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
### HasVirtualMachine
-`func (o *PatchedWritableVirtualDiskRequest) HasVirtualMachine() bool`
+`func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool`
HasVirtualMachine returns a boolean if a field has been set.
### GetName
-`func (o *PatchedWritableVirtualDiskRequest) GetName() string`
+`func (o *PatchedVirtualDiskRequest) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *PatchedWritableVirtualDiskRequest) GetNameOk() (*string, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetName(v string)`
+`func (o *PatchedVirtualDiskRequest) SetName(v string)`
SetName sets Name field to given value.
### HasName
-`func (o *PatchedWritableVirtualDiskRequest) HasName() bool`
+`func (o *PatchedVirtualDiskRequest) HasName() bool`
HasName returns a boolean if a field has been set.
### GetDescription
-`func (o *PatchedWritableVirtualDiskRequest) GetDescription() string`
+`func (o *PatchedVirtualDiskRequest) GetDescription() string`
GetDescription returns the Description field if non-nil, zero value otherwise.
### GetDescriptionOk
-`func (o *PatchedWritableVirtualDiskRequest) GetDescriptionOk() (*string, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetDescription(v string)`
+`func (o *PatchedVirtualDiskRequest) SetDescription(v string)`
SetDescription sets Description field to given value.
### HasDescription
-`func (o *PatchedWritableVirtualDiskRequest) HasDescription() bool`
+`func (o *PatchedVirtualDiskRequest) HasDescription() bool`
HasDescription returns a boolean if a field has been set.
### GetSize
-`func (o *PatchedWritableVirtualDiskRequest) GetSize() int32`
+`func (o *PatchedVirtualDiskRequest) GetSize() int32`
GetSize returns the Size field if non-nil, zero value otherwise.
### GetSizeOk
-`func (o *PatchedWritableVirtualDiskRequest) GetSizeOk() (*int32, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetSize(v int32)`
+`func (o *PatchedVirtualDiskRequest) SetSize(v int32)`
SetSize sets Size field to given value.
### HasSize
-`func (o *PatchedWritableVirtualDiskRequest) HasSize() bool`
+`func (o *PatchedVirtualDiskRequest) HasSize() bool`
HasSize returns a boolean if a field has been set.
### GetTags
-`func (o *PatchedWritableVirtualDiskRequest) GetTags() []NestedTagRequest`
+`func (o *PatchedVirtualDiskRequest) GetTags() []NestedTagRequest`
GetTags returns the Tags field if non-nil, zero value otherwise.
### GetTagsOk
-`func (o *PatchedWritableVirtualDiskRequest) GetTagsOk() (*[]NestedTagRequest, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetTags(v []NestedTagRequest)`
+`func (o *PatchedVirtualDiskRequest) SetTags(v []NestedTagRequest)`
SetTags sets Tags field to given value.
### HasTags
-`func (o *PatchedWritableVirtualDiskRequest) HasTags() bool`
+`func (o *PatchedVirtualDiskRequest) HasTags() bool`
HasTags returns a boolean if a field has been set.
### GetCustomFields
-`func (o *PatchedWritableVirtualDiskRequest) GetCustomFields() map[string]interface{}`
+`func (o *PatchedVirtualDiskRequest) GetCustomFields() map[string]interface{}`
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
### GetCustomFieldsOk
-`func (o *PatchedWritableVirtualDiskRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)`
+`func (o *PatchedVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) SetCustomFields(v map[string]interface{})`
+`func (o *PatchedVirtualDiskRequest) SetCustomFields(v map[string]interface{})`
SetCustomFields sets CustomFields field to given value.
### HasCustomFields
-`func (o *PatchedWritableVirtualDiskRequest) HasCustomFields() bool`
+`func (o *PatchedVirtualDiskRequest) HasCustomFields() bool`
HasCustomFields returns a boolean if a field has been set.
diff --git a/docs/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md
index 814ff54252..41ef048227 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 **int32** | Regional Internet Registry responsible for this IP space | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
@@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set.
### GetRir
-`func (o *PatchedWritableAggregateRequest) GetRir() int32`
+`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *PatchedWritableAggregateRequest) GetRirOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)`
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() int32`
+`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md
index dbdd98f7e0..431b4945f3 100644
--- a/docs/PatchedWritableCableRequest.md
+++ b/docs/PatchedWritableCableRequest.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
+**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional]
**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Label** | Pointer to **string** | | [optional]
**Color** | Pointer to **string** | | [optional]
**Length** | Pointer to **NullableFloat64** | | [optional]
-**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional]
+**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.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() CableType`
+`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)`
+`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, 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 CableType)`
+`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)`
SetType sets Type field to given value.
@@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue`
+`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)`
+`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, 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 CableStatusValue)`
+`func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)`
SetStatus sets Status field to given value.
@@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableCableRequest) GetTenant() int32`
+`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableCableRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableCableRequest) 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 *PatchedWritableCableRequest) SetTenant(v int32)`
+`func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -259,20 +259,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() CableLengthUnitValue`
+`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit`
GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
### GetLengthUnitOk
-`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)`
+`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, 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 CableLengthUnitValue)`
+`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)`
SetLengthUnit sets LengthUnit field to given value.
diff --git a/docs/CableLengthUnitValue.md b/docs/PatchedWritableCableRequestLengthUnit.md
similarity index 89%
rename from docs/CableLengthUnitValue.md
rename to docs/PatchedWritableCableRequestLengthUnit.md
index a9a0eebea3..0d6f76f7c8 100644
--- a/docs/CableLengthUnitValue.md
+++ b/docs/PatchedWritableCableRequestLengthUnit.md
@@ -1,4 +1,4 @@
-# CableLengthUnitValue
+# PatchedWritableCableRequestLengthUnit
## Enum
diff --git a/docs/CableStatusValue.md b/docs/PatchedWritableCableRequestStatus.md
similarity index 89%
rename from docs/CableStatusValue.md
rename to docs/PatchedWritableCableRequestStatus.md
index 35769fef10..06d2d15553 100644
--- a/docs/CableStatusValue.md
+++ b/docs/PatchedWritableCableRequestStatus.md
@@ -1,4 +1,4 @@
-# CableStatusValue
+# PatchedWritableCableRequestStatus
## Enum
diff --git a/docs/CableType.md b/docs/PatchedWritableCableRequestType.md
similarity index 96%
rename from docs/CableType.md
rename to docs/PatchedWritableCableRequestType.md
index c893535f7b..c208d2a815 100644
--- a/docs/CableType.md
+++ b/docs/PatchedWritableCableRequestType.md
@@ -1,4 +1,4 @@
-# CableType
+# PatchedWritableCableRequestType
## Enum
diff --git a/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md
index 1573443171..90bca5029f 100644
--- a/docs/PatchedWritableCircuitRequest.md
+++ b/docs/PatchedWritableCircuitRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cid** | Pointer to **string** | Unique circuit ID | [optional]
-**Provider** | Pointer to **int32** | | [optional]
-**ProviderAccount** | Pointer to **NullableInt32** | | [optional]
-**Type** | Pointer to **int32** | | [optional]
-**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
**InstallDate** | Pointer to **NullableString** | | [optional]
**TerminationDate** | Pointer to **NullableString** | | [optional]
**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional]
@@ -64,20 +64,20 @@ HasCid returns a boolean if a field has been set.
### GetProvider
-`func (o *PatchedWritableCircuitRequest) GetProvider() int32`
+`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest`
GetProvider returns the Provider field if non-nil, zero value otherwise.
### GetProviderOk
-`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*int32, bool)`
+`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, 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 int32)`
+`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)`
SetProvider sets Provider field to given value.
@@ -89,20 +89,20 @@ HasProvider returns a boolean if a field has been set.
### GetProviderAccount
-`func (o *PatchedWritableCircuitRequest) GetProviderAccount() int32`
+`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest`
GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise.
### GetProviderAccountOk
-`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*int32, bool)`
+`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, 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 int32)`
+`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)`
SetProviderAccount sets ProviderAccount field to given value.
@@ -124,20 +124,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() int32`
+`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*int32, bool)`
+`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, 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 int32)`
+`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)`
SetType sets Type field to given value.
@@ -149,20 +149,20 @@ HasType returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue`
+`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)`
+`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, 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 CircuitStatusValue)`
+`func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)`
SetStatus sets Status field to given value.
@@ -174,20 +174,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableCircuitRequest) GetTenant() int32`
+`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableCircuitRequest) 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 *PatchedWritableCircuitRequest) SetTenant(v int32)`
+`func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/CircuitStatusValue.md b/docs/PatchedWritableCircuitRequestStatus.md
similarity index 91%
rename from docs/CircuitStatusValue.md
rename to docs/PatchedWritableCircuitRequestStatus.md
index c49a8ea53e..27a8cd2f8d 100644
--- a/docs/CircuitStatusValue.md
+++ b/docs/PatchedWritableCircuitRequestStatus.md
@@ -1,4 +1,4 @@
-# CircuitStatusValue
+# PatchedWritableCircuitRequestStatus
## Enum
diff --git a/docs/PatchedWritableCircuitTerminationRequest.md b/docs/PatchedWritableCircuitTerminationRequest.md
deleted file mode 100644
index 75fdf0d5af..0000000000
--- a/docs/PatchedWritableCircuitTerminationRequest.md
+++ /dev/null
@@ -1,382 +0,0 @@
-# PatchedWritableCircuitTerminationRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Circuit** | Pointer to **int32** | | [optional]
-**TermSide** | Pointer to [**Termination**](Termination.md) | | [optional]
-**Site** | Pointer to **NullableInt32** | | [optional]
-**ProviderNetwork** | 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]
-**PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [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
-
-### NewPatchedWritableCircuitTerminationRequest
-
-`func NewPatchedWritableCircuitTerminationRequest() *PatchedWritableCircuitTerminationRequest`
-
-NewPatchedWritableCircuitTerminationRequest instantiates a new PatchedWritableCircuitTerminationRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableCircuitTerminationRequestWithDefaults
-
-`func NewPatchedWritableCircuitTerminationRequestWithDefaults() *PatchedWritableCircuitTerminationRequest`
-
-NewPatchedWritableCircuitTerminationRequestWithDefaults instantiates a new PatchedWritableCircuitTerminationRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetCircuit
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetCircuit() int32`
-
-GetCircuit returns the Circuit field if non-nil, zero value otherwise.
-
-### GetCircuitOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetCircuitOk() (*int32, 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 *PatchedWritableCircuitTerminationRequest) SetCircuit(v int32)`
-
-SetCircuit sets Circuit field to given value.
-
-### HasCircuit
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasCircuit() bool`
-
-HasCircuit returns a boolean if a field has been set.
-
-### GetTermSide
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() Termination`
-
-GetTermSide returns the TermSide field if non-nil, zero value otherwise.
-
-### GetTermSideOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetTermSideOk() (*Termination, 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 *PatchedWritableCircuitTerminationRequest) SetTermSide(v Termination)`
-
-SetTermSide sets TermSide field to given value.
-
-### HasTermSide
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasTermSide() bool`
-
-HasTermSide returns a boolean if a field has been set.
-
-### GetSite
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetSite() int32`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetSiteOk() (*int32, 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 *PatchedWritableCircuitTerminationRequest) SetSite(v int32)`
-
-SetSite sets Site field to given value.
-
-### HasSite
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasSite() bool`
-
-HasSite returns a boolean if a field has been set.
-
-### SetSiteNil
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetSiteNil(b bool)`
-
- SetSiteNil sets the value for Site to be an explicit nil
-
-### UnsetSite
-`func (o *PatchedWritableCircuitTerminationRequest) UnsetSite()`
-
-UnsetSite ensures that no value is present for Site, not even an explicit nil
-### GetProviderNetwork
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetwork() int32`
-
-GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise.
-
-### GetProviderNetworkOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetworkOk() (*int32, 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 *PatchedWritableCircuitTerminationRequest) SetProviderNetwork(v int32)`
-
-SetProviderNetwork sets ProviderNetwork field to given value.
-
-### HasProviderNetwork
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasProviderNetwork() bool`
-
-HasProviderNetwork returns a boolean if a field has been set.
-
-### SetProviderNetworkNil
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetProviderNetworkNil(b bool)`
-
- SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
-
-### UnsetProviderNetwork
-`func (o *PatchedWritableCircuitTerminationRequest) UnsetProviderNetwork()`
-
-UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
-### GetPortSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetPortSpeed() int32`
-
-GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise.
-
-### GetPortSpeedOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)`
-
-GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPortSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeed(v int32)`
-
-SetPortSpeed sets PortSpeed field to given value.
-
-### HasPortSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasPortSpeed() bool`
-
-HasPortSpeed returns a boolean if a field has been set.
-
-### SetPortSpeedNil
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeedNil(b bool)`
-
- SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
-
-### UnsetPortSpeed
-`func (o *PatchedWritableCircuitTerminationRequest) UnsetPortSpeed()`
-
-UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
-### GetUpstreamSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeed() int32`
-
-GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise.
-
-### GetUpstreamSpeedOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)`
-
-GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUpstreamSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeed(v int32)`
-
-SetUpstreamSpeed sets UpstreamSpeed field to given value.
-
-### HasUpstreamSpeed
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasUpstreamSpeed() bool`
-
-HasUpstreamSpeed returns a boolean if a field has been set.
-
-### SetUpstreamSpeedNil
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)`
-
- SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
-
-### UnsetUpstreamSpeed
-`func (o *PatchedWritableCircuitTerminationRequest) UnsetUpstreamSpeed()`
-
-UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
-### GetXconnectId
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetXconnectId() string`
-
-GetXconnectId returns the XconnectId field if non-nil, zero value otherwise.
-
-### GetXconnectIdOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)`
-
-GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetXconnectId
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetXconnectId(v string)`
-
-SetXconnectId sets XconnectId field to given value.
-
-### HasXconnectId
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasXconnectId() bool`
-
-HasXconnectId returns a boolean if a field has been set.
-
-### GetPpInfo
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetPpInfo() string`
-
-GetPpInfo returns the PpInfo field if non-nil, zero value otherwise.
-
-### GetPpInfoOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetPpInfoOk() (*string, bool)`
-
-GetPpInfoOk returns a tuple with the PpInfo field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPpInfo
-
-`func (o *PatchedWritableCircuitTerminationRequest) SetPpInfo(v string)`
-
-SetPpInfo sets PpInfo field to given value.
-
-### HasPpInfo
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasPpInfo() bool`
-
-HasPpInfo returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetMarkConnected
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetMarkConnected() bool`
-
-GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise.
-
-### GetMarkConnectedOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) SetMarkConnected(v bool)`
-
-SetMarkConnected sets MarkConnected field to given value.
-
-### HasMarkConnected
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasMarkConnected() bool`
-
-HasMarkConnected returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableCircuitTerminationRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *PatchedWritableCircuitTerminationRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *PatchedWritableCircuitTerminationRequest) 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/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md
index 4384603831..18ee4fc620 100644
--- a/docs/PatchedWritableClusterRequest.md
+++ b/docs/PatchedWritableClusterRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Type** | Pointer to **int32** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Site** | Pointer to **NullableInt32** | | [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]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -61,20 +61,20 @@ HasName returns a boolean if a field has been set.
### GetType
-`func (o *PatchedWritableClusterRequest) GetType() int32`
+`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *PatchedWritableClusterRequest) GetTypeOk() (*int32, bool)`
+`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, 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 int32)`
+`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)`
SetType sets Type field to given value.
@@ -86,20 +86,20 @@ HasType returns a boolean if a field has been set.
### GetGroup
-`func (o *PatchedWritableClusterRequest) GetGroup() int32`
+`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableClusterRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, 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 int32)`
+`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)`
SetGroup sets Group field to given value.
@@ -121,20 +121,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() ClusterStatusValue`
+`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)`
+`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, 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 ClusterStatusValue)`
+`func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)`
SetStatus sets Status field to given value.
@@ -146,20 +146,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableClusterRequest) GetTenant() int32`
+`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableClusterRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableClusterRequest) 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 *PatchedWritableClusterRequest) SetTenant(v int32)`
+`func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -181,20 +181,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
### GetSite
-`func (o *PatchedWritableClusterRequest) GetSite() int32`
+`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableClusterRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableClusterRequest) 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 *PatchedWritableClusterRequest) SetSite(v int32)`
+`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
diff --git a/docs/ClusterStatusValue.md b/docs/PatchedWritableClusterRequestStatus.md
similarity index 90%
rename from docs/ClusterStatusValue.md
rename to docs/PatchedWritableClusterRequestStatus.md
index f68d48cacf..167a47dbdb 100644
--- a/docs/ClusterStatusValue.md
+++ b/docs/PatchedWritableClusterRequestStatus.md
@@ -1,4 +1,4 @@
-# ClusterStatusValue
+# PatchedWritableClusterRequestStatus
## Enum
diff --git a/docs/PatchedWritableConfigContextRequest.md b/docs/PatchedWritableConfigContextRequest.md
deleted file mode 100644
index 85fb0bfca2..0000000000
--- a/docs/PatchedWritableConfigContextRequest.md
+++ /dev/null
@@ -1,544 +0,0 @@
-# PatchedWritableConfigContextRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | Pointer to **string** | | [optional]
-**Weight** | Pointer to **int32** | | [optional]
-**Description** | Pointer to **string** | | [optional]
-**IsActive** | Pointer to **bool** | | [optional]
-**Regions** | Pointer to **[]int32** | | [optional]
-**SiteGroups** | Pointer to **[]int32** | | [optional]
-**Sites** | Pointer to **[]int32** | | [optional]
-**Locations** | Pointer to **[]int32** | | [optional]
-**DeviceTypes** | Pointer to **[]int32** | | [optional]
-**Roles** | Pointer to **[]int32** | | [optional]
-**Platforms** | Pointer to **[]int32** | | [optional]
-**ClusterTypes** | Pointer to **[]int32** | | [optional]
-**ClusterGroups** | Pointer to **[]int32** | | [optional]
-**Clusters** | Pointer to **[]int32** | | [optional]
-**TenantGroups** | Pointer to **[]int32** | | [optional]
-**Tenants** | Pointer to **[]int32** | | [optional]
-**Tags** | Pointer to **[]string** | | [optional]
-**DataSource** | Pointer to **NullableInt32** | Remote data source | [optional]
-**Data** | Pointer to **interface{}** | | [optional]
-
-## Methods
-
-### NewPatchedWritableConfigContextRequest
-
-`func NewPatchedWritableConfigContextRequest() *PatchedWritableConfigContextRequest`
-
-NewPatchedWritableConfigContextRequest instantiates a new PatchedWritableConfigContextRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableConfigContextRequestWithDefaults
-
-`func NewPatchedWritableConfigContextRequestWithDefaults() *PatchedWritableConfigContextRequest`
-
-NewPatchedWritableConfigContextRequestWithDefaults instantiates a new PatchedWritableConfigContextRequest object
-This 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 *PatchedWritableConfigContextRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *PatchedWritableConfigContextRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetWeight
-
-`func (o *PatchedWritableConfigContextRequest) GetWeight() int32`
-
-GetWeight returns the Weight field if non-nil, zero value otherwise.
-
-### GetWeightOk
-
-`func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) SetWeight(v int32)`
-
-SetWeight sets Weight field to given value.
-
-### HasWeight
-
-`func (o *PatchedWritableConfigContextRequest) HasWeight() bool`
-
-HasWeight returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableConfigContextRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableConfigContextRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetIsActive
-
-`func (o *PatchedWritableConfigContextRequest) GetIsActive() bool`
-
-GetIsActive returns the IsActive field if non-nil, zero value otherwise.
-
-### GetIsActiveOk
-
-`func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) SetIsActive(v bool)`
-
-SetIsActive sets IsActive field to given value.
-
-### HasIsActive
-
-`func (o *PatchedWritableConfigContextRequest) HasIsActive() bool`
-
-HasIsActive returns a boolean if a field has been set.
-
-### GetRegions
-
-`func (o *PatchedWritableConfigContextRequest) GetRegions() []int32`
-
-GetRegions returns the Regions field if non-nil, zero value otherwise.
-
-### GetRegionsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetRegionsOk() (*[]int32, bool)`
-
-GetRegionsOk returns a tuple with the Regions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRegions
-
-`func (o *PatchedWritableConfigContextRequest) SetRegions(v []int32)`
-
-SetRegions sets Regions field to given value.
-
-### HasRegions
-
-`func (o *PatchedWritableConfigContextRequest) HasRegions() bool`
-
-HasRegions returns a boolean if a field has been set.
-
-### GetSiteGroups
-
-`func (o *PatchedWritableConfigContextRequest) GetSiteGroups() []int32`
-
-GetSiteGroups returns the SiteGroups field if non-nil, zero value otherwise.
-
-### GetSiteGroupsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetSiteGroupsOk() (*[]int32, bool)`
-
-GetSiteGroupsOk returns a tuple with the SiteGroups field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetSiteGroups
-
-`func (o *PatchedWritableConfigContextRequest) SetSiteGroups(v []int32)`
-
-SetSiteGroups sets SiteGroups field to given value.
-
-### HasSiteGroups
-
-`func (o *PatchedWritableConfigContextRequest) HasSiteGroups() bool`
-
-HasSiteGroups returns a boolean if a field has been set.
-
-### GetSites
-
-`func (o *PatchedWritableConfigContextRequest) GetSites() []int32`
-
-GetSites returns the Sites field if non-nil, zero value otherwise.
-
-### GetSitesOk
-
-`func (o *PatchedWritableConfigContextRequest) GetSitesOk() (*[]int32, bool)`
-
-GetSitesOk returns a tuple with the Sites field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetSites
-
-`func (o *PatchedWritableConfigContextRequest) SetSites(v []int32)`
-
-SetSites sets Sites field to given value.
-
-### HasSites
-
-`func (o *PatchedWritableConfigContextRequest) HasSites() bool`
-
-HasSites returns a boolean if a field has been set.
-
-### GetLocations
-
-`func (o *PatchedWritableConfigContextRequest) GetLocations() []int32`
-
-GetLocations returns the Locations field if non-nil, zero value otherwise.
-
-### GetLocationsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetLocationsOk() (*[]int32, bool)`
-
-GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetLocations
-
-`func (o *PatchedWritableConfigContextRequest) SetLocations(v []int32)`
-
-SetLocations sets Locations field to given value.
-
-### HasLocations
-
-`func (o *PatchedWritableConfigContextRequest) HasLocations() bool`
-
-HasLocations returns a boolean if a field has been set.
-
-### GetDeviceTypes
-
-`func (o *PatchedWritableConfigContextRequest) GetDeviceTypes() []int32`
-
-GetDeviceTypes returns the DeviceTypes field if non-nil, zero value otherwise.
-
-### GetDeviceTypesOk
-
-`func (o *PatchedWritableConfigContextRequest) GetDeviceTypesOk() (*[]int32, bool)`
-
-GetDeviceTypesOk returns a tuple with the DeviceTypes field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetDeviceTypes
-
-`func (o *PatchedWritableConfigContextRequest) SetDeviceTypes(v []int32)`
-
-SetDeviceTypes sets DeviceTypes field to given value.
-
-### HasDeviceTypes
-
-`func (o *PatchedWritableConfigContextRequest) HasDeviceTypes() bool`
-
-HasDeviceTypes returns a boolean if a field has been set.
-
-### GetRoles
-
-`func (o *PatchedWritableConfigContextRequest) GetRoles() []int32`
-
-GetRoles returns the Roles field if non-nil, zero value otherwise.
-
-### GetRolesOk
-
-`func (o *PatchedWritableConfigContextRequest) GetRolesOk() (*[]int32, bool)`
-
-GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRoles
-
-`func (o *PatchedWritableConfigContextRequest) SetRoles(v []int32)`
-
-SetRoles sets Roles field to given value.
-
-### HasRoles
-
-`func (o *PatchedWritableConfigContextRequest) HasRoles() bool`
-
-HasRoles returns a boolean if a field has been set.
-
-### GetPlatforms
-
-`func (o *PatchedWritableConfigContextRequest) GetPlatforms() []int32`
-
-GetPlatforms returns the Platforms field if non-nil, zero value otherwise.
-
-### GetPlatformsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetPlatformsOk() (*[]int32, bool)`
-
-GetPlatformsOk returns a tuple with the Platforms field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetPlatforms
-
-`func (o *PatchedWritableConfigContextRequest) SetPlatforms(v []int32)`
-
-SetPlatforms sets Platforms field to given value.
-
-### HasPlatforms
-
-`func (o *PatchedWritableConfigContextRequest) HasPlatforms() bool`
-
-HasPlatforms returns a boolean if a field has been set.
-
-### GetClusterTypes
-
-`func (o *PatchedWritableConfigContextRequest) GetClusterTypes() []int32`
-
-GetClusterTypes returns the ClusterTypes field if non-nil, zero value otherwise.
-
-### GetClusterTypesOk
-
-`func (o *PatchedWritableConfigContextRequest) GetClusterTypesOk() (*[]int32, bool)`
-
-GetClusterTypesOk returns a tuple with the ClusterTypes field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetClusterTypes
-
-`func (o *PatchedWritableConfigContextRequest) SetClusterTypes(v []int32)`
-
-SetClusterTypes sets ClusterTypes field to given value.
-
-### HasClusterTypes
-
-`func (o *PatchedWritableConfigContextRequest) HasClusterTypes() bool`
-
-HasClusterTypes returns a boolean if a field has been set.
-
-### GetClusterGroups
-
-`func (o *PatchedWritableConfigContextRequest) GetClusterGroups() []int32`
-
-GetClusterGroups returns the ClusterGroups field if non-nil, zero value otherwise.
-
-### GetClusterGroupsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetClusterGroupsOk() (*[]int32, bool)`
-
-GetClusterGroupsOk returns a tuple with the ClusterGroups field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetClusterGroups
-
-`func (o *PatchedWritableConfigContextRequest) SetClusterGroups(v []int32)`
-
-SetClusterGroups sets ClusterGroups field to given value.
-
-### HasClusterGroups
-
-`func (o *PatchedWritableConfigContextRequest) HasClusterGroups() bool`
-
-HasClusterGroups returns a boolean if a field has been set.
-
-### GetClusters
-
-`func (o *PatchedWritableConfigContextRequest) GetClusters() []int32`
-
-GetClusters returns the Clusters field if non-nil, zero value otherwise.
-
-### GetClustersOk
-
-`func (o *PatchedWritableConfigContextRequest) GetClustersOk() (*[]int32, bool)`
-
-GetClustersOk returns a tuple with the Clusters field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetClusters
-
-`func (o *PatchedWritableConfigContextRequest) SetClusters(v []int32)`
-
-SetClusters sets Clusters field to given value.
-
-### HasClusters
-
-`func (o *PatchedWritableConfigContextRequest) HasClusters() bool`
-
-HasClusters returns a boolean if a field has been set.
-
-### GetTenantGroups
-
-`func (o *PatchedWritableConfigContextRequest) GetTenantGroups() []int32`
-
-GetTenantGroups returns the TenantGroups field if non-nil, zero value otherwise.
-
-### GetTenantGroupsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetTenantGroupsOk() (*[]int32, bool)`
-
-GetTenantGroupsOk returns a tuple with the TenantGroups field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenantGroups
-
-`func (o *PatchedWritableConfigContextRequest) SetTenantGroups(v []int32)`
-
-SetTenantGroups sets TenantGroups field to given value.
-
-### HasTenantGroups
-
-`func (o *PatchedWritableConfigContextRequest) HasTenantGroups() bool`
-
-HasTenantGroups returns a boolean if a field has been set.
-
-### GetTenants
-
-`func (o *PatchedWritableConfigContextRequest) GetTenants() []int32`
-
-GetTenants returns the Tenants field if non-nil, zero value otherwise.
-
-### GetTenantsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetTenantsOk() (*[]int32, bool)`
-
-GetTenantsOk returns a tuple with the Tenants field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenants
-
-`func (o *PatchedWritableConfigContextRequest) SetTenants(v []int32)`
-
-SetTenants sets Tenants field to given value.
-
-### HasTenants
-
-`func (o *PatchedWritableConfigContextRequest) HasTenants() bool`
-
-HasTenants returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *PatchedWritableConfigContextRequest) GetTags() []string`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableConfigContextRequest) GetTagsOk() (*[]string, 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 *PatchedWritableConfigContextRequest) SetTags(v []string)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableConfigContextRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetDataSource
-
-`func (o *PatchedWritableConfigContextRequest) GetDataSource() int32`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *PatchedWritableConfigContextRequest) GetDataSourceOk() (*int32, 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 *PatchedWritableConfigContextRequest) SetDataSource(v int32)`
-
-SetDataSource sets DataSource field to given value.
-
-### HasDataSource
-
-`func (o *PatchedWritableConfigContextRequest) HasDataSource() bool`
-
-HasDataSource returns a boolean if a field has been set.
-
-### SetDataSourceNil
-
-`func (o *PatchedWritableConfigContextRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *PatchedWritableConfigContextRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-### GetData
-
-`func (o *PatchedWritableConfigContextRequest) GetData() interface{}`
-
-GetData returns the Data field if non-nil, zero value otherwise.
-
-### GetDataOk
-
-`func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) SetData(v interface{})`
-
-SetData sets Data field to given value.
-
-### HasData
-
-`func (o *PatchedWritableConfigContextRequest) HasData() bool`
-
-HasData returns a boolean if a field has been set.
-
-### SetDataNil
-
-`func (o *PatchedWritableConfigContextRequest) SetDataNil(b bool)`
-
- SetDataNil sets the value for Data to be an explicit nil
-
-### UnsetData
-`func (o *PatchedWritableConfigContextRequest) UnsetData()`
-
-UnsetData ensures that no value is present for Data, 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/PatchedWritableConfigTemplateRequest.md b/docs/PatchedWritableConfigTemplateRequest.md
deleted file mode 100644
index 6996f0f777..0000000000
--- a/docs/PatchedWritableConfigTemplateRequest.md
+++ /dev/null
@@ -1,242 +0,0 @@
-# PatchedWritableConfigTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | Pointer to **string** | | [optional]
-**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 **NullableInt32** | Remote data source | [optional]
-**DataFile** | Pointer to **NullableInt32** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-
-## Methods
-
-### NewPatchedWritableConfigTemplateRequest
-
-`func NewPatchedWritableConfigTemplateRequest() *PatchedWritableConfigTemplateRequest`
-
-NewPatchedWritableConfigTemplateRequest instantiates a new PatchedWritableConfigTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableConfigTemplateRequestWithDefaults
-
-`func NewPatchedWritableConfigTemplateRequestWithDefaults() *PatchedWritableConfigTemplateRequest`
-
-NewPatchedWritableConfigTemplateRequestWithDefaults instantiates a new PatchedWritableConfigTemplateRequest object
-This 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 *PatchedWritableConfigTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *PatchedWritableConfigTemplateRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableConfigTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableConfigTemplateRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetEnvironmentParams
-
-`func (o *PatchedWritableConfigTemplateRequest) GetEnvironmentParams() interface{}`
-
-GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
-
-### GetEnvironmentParamsOk
-
-`func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetEnvironmentParams(v interface{})`
-
-SetEnvironmentParams sets EnvironmentParams field to given value.
-
-### HasEnvironmentParams
-
-`func (o *PatchedWritableConfigTemplateRequest) HasEnvironmentParams() bool`
-
-HasEnvironmentParams returns a boolean if a field has been set.
-
-### SetEnvironmentParamsNil
-
-`func (o *PatchedWritableConfigTemplateRequest) SetEnvironmentParamsNil(b bool)`
-
- SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil
-
-### UnsetEnvironmentParams
-`func (o *PatchedWritableConfigTemplateRequest) UnsetEnvironmentParams()`
-
-UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil
-### GetTemplateCode
-
-`func (o *PatchedWritableConfigTemplateRequest) GetTemplateCode() string`
-
-GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise.
-
-### GetTemplateCodeOk
-
-`func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetTemplateCode(v string)`
-
-SetTemplateCode sets TemplateCode field to given value.
-
-### HasTemplateCode
-
-`func (o *PatchedWritableConfigTemplateRequest) HasTemplateCode() bool`
-
-HasTemplateCode returns a boolean if a field has been set.
-
-### GetDataSource
-
-`func (o *PatchedWritableConfigTemplateRequest) GetDataSource() int32`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *PatchedWritableConfigTemplateRequest) GetDataSourceOk() (*int32, 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 *PatchedWritableConfigTemplateRequest) SetDataSource(v int32)`
-
-SetDataSource sets DataSource field to given value.
-
-### HasDataSource
-
-`func (o *PatchedWritableConfigTemplateRequest) HasDataSource() bool`
-
-HasDataSource returns a boolean if a field has been set.
-
-### SetDataSourceNil
-
-`func (o *PatchedWritableConfigTemplateRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *PatchedWritableConfigTemplateRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-### GetDataFile
-
-`func (o *PatchedWritableConfigTemplateRequest) GetDataFile() int32`
-
-GetDataFile returns the DataFile field if non-nil, zero value otherwise.
-
-### GetDataFileOk
-
-`func (o *PatchedWritableConfigTemplateRequest) GetDataFileOk() (*int32, 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 *PatchedWritableConfigTemplateRequest) SetDataFile(v int32)`
-
-SetDataFile sets DataFile field to given value.
-
-### HasDataFile
-
-`func (o *PatchedWritableConfigTemplateRequest) HasDataFile() bool`
-
-HasDataFile returns a boolean if a field has been set.
-
-### SetDataFileNil
-
-`func (o *PatchedWritableConfigTemplateRequest) SetDataFileNil(b bool)`
-
- SetDataFileNil sets the value for DataFile to be an explicit nil
-
-### UnsetDataFile
-`func (o *PatchedWritableConfigTemplateRequest) UnsetDataFile()`
-
-UnsetDataFile ensures that no value is present for DataFile, not even an explicit nil
-### GetTags
-
-`func (o *PatchedWritableConfigTemplateRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableConfigTemplateRequest) 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/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md
index 30199d422d..52a08ee909 100644
--- a/docs/PatchedWritableConsolePortRequest.md
+++ b/docs/PatchedWritableConsolePortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
@@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritableConsolePortRequest) GetDevice() int32`
+`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableConsolePortRequest) 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 *PatchedWritableConsolePortRequest) SetDevice(v int32)`
+`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritableConsolePortRequest) 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 *PatchedWritableConsolePortRequest) SetModule(v int32)`
+`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md
index afc71bf67b..d9dbf04aa4 100644
--- a/docs/PatchedWritableConsolePortTemplateRequest.md
+++ b/docs/PatchedWritableConsolePortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
@@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritableConsolePortTemplateRequest) 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 *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritableConsolePortTemplateRequest) 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 *PatchedWritableConsolePortTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md
index d3f2f222dc..05b70f9d54 100644
--- a/docs/PatchedWritableConsoleServerPortRequest.md
+++ b/docs/PatchedWritableConsoleServerPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
@@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() int32`
+`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableConsoleServerPortRequest) 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 *PatchedWritableConsoleServerPortRequest) SetDevice(v int32)`
+`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritableConsoleServerPortRequest) 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 *PatchedWritableConsoleServerPortRequest) SetModule(v int32)`
+`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md
index 40813e2afc..ef7c3aa0ee 100644
--- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md
+++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional]
@@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) 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 *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) 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 *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md
index d88d71e420..e2b7dc360c 100644
--- a/docs/PatchedWritableContactAssignmentRequest.md
+++ b/docs/PatchedWritableContactAssignmentRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentType** | Pointer to **string** | | [optional]
+**ObjectType** | Pointer to **string** | | [optional]
**ObjectId** | Pointer to **int64** | | [optional]
-**Contact** | Pointer to **int32** | | [optional]
-**Role** | Pointer to **int32** | | [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]
@@ -31,30 +31,30 @@ NewPatchedWritableContactAssignmentRequestWithDefaults instantiates a new Patche
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentType
+### GetObjectType
-`func (o *PatchedWritableContactAssignmentRequest) GetContentType() string`
+`func (o *PatchedWritableContactAssignmentRequest) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *PatchedWritableContactAssignmentRequest) GetContentTypeOk() (*string, bool)`
+`func (o *PatchedWritableContactAssignmentRequest) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *PatchedWritableContactAssignmentRequest) SetContentType(v string)`
+`func (o *PatchedWritableContactAssignmentRequest) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
-### HasContentType
+### HasObjectType
-`func (o *PatchedWritableContactAssignmentRequest) HasContentType() bool`
+`func (o *PatchedWritableContactAssignmentRequest) HasObjectType() bool`
-HasContentType returns a boolean if a field has been set.
+HasObjectType returns a boolean if a field has been set.
### GetObjectId
@@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set.
### GetContact
-`func (o *PatchedWritableContactAssignmentRequest) GetContact() int32`
+`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest`
GetContact returns the Contact field if non-nil, zero value otherwise.
### GetContactOk
-`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)`
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() int32`
+`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)`
SetRole sets Role field to given value.
@@ -131,6 +131,16 @@ SetRole sets Role field to given value.
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`
diff --git a/docs/PatchedWritableContactRequest.md b/docs/PatchedWritableContactRequest.md
deleted file mode 100644
index ce9d3b02b5..0000000000
--- a/docs/PatchedWritableContactRequest.md
+++ /dev/null
@@ -1,326 +0,0 @@
-# PatchedWritableContactRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Name** | Pointer to **string** | | [optional]
-**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
-
-### NewPatchedWritableContactRequest
-
-`func NewPatchedWritableContactRequest() *PatchedWritableContactRequest`
-
-NewPatchedWritableContactRequest instantiates a new PatchedWritableContactRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableContactRequestWithDefaults
-
-`func NewPatchedWritableContactRequestWithDefaults() *PatchedWritableContactRequest`
-
-NewPatchedWritableContactRequestWithDefaults instantiates a new PatchedWritableContactRequest object
-This 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 *PatchedWritableContactRequest) GetGroup() int32`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *PatchedWritableContactRequest) GetGroupOk() (*int32, 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 *PatchedWritableContactRequest) SetGroup(v int32)`
-
-SetGroup sets Group field to given value.
-
-### HasGroup
-
-`func (o *PatchedWritableContactRequest) HasGroup() bool`
-
-HasGroup returns a boolean if a field has been set.
-
-### SetGroupNil
-
-`func (o *PatchedWritableContactRequest) SetGroupNil(b bool)`
-
- SetGroupNil sets the value for Group to be an explicit nil
-
-### UnsetGroup
-`func (o *PatchedWritableContactRequest) UnsetGroup()`
-
-UnsetGroup ensures that no value is present for Group, not even an explicit nil
-### GetName
-
-`func (o *PatchedWritableContactRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *PatchedWritableContactRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetTitle
-
-`func (o *PatchedWritableContactRequest) GetTitle() string`
-
-GetTitle returns the Title field if non-nil, zero value otherwise.
-
-### GetTitleOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetTitle(v string)`
-
-SetTitle sets Title field to given value.
-
-### HasTitle
-
-`func (o *PatchedWritableContactRequest) HasTitle() bool`
-
-HasTitle returns a boolean if a field has been set.
-
-### GetPhone
-
-`func (o *PatchedWritableContactRequest) GetPhone() string`
-
-GetPhone returns the Phone field if non-nil, zero value otherwise.
-
-### GetPhoneOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetPhone(v string)`
-
-SetPhone sets Phone field to given value.
-
-### HasPhone
-
-`func (o *PatchedWritableContactRequest) HasPhone() bool`
-
-HasPhone returns a boolean if a field has been set.
-
-### GetEmail
-
-`func (o *PatchedWritableContactRequest) GetEmail() string`
-
-GetEmail returns the Email field if non-nil, zero value otherwise.
-
-### GetEmailOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetEmail(v string)`
-
-SetEmail sets Email field to given value.
-
-### HasEmail
-
-`func (o *PatchedWritableContactRequest) HasEmail() bool`
-
-HasEmail returns a boolean if a field has been set.
-
-### GetAddress
-
-`func (o *PatchedWritableContactRequest) GetAddress() string`
-
-GetAddress returns the Address field if non-nil, zero value otherwise.
-
-### GetAddressOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetAddress(v string)`
-
-SetAddress sets Address field to given value.
-
-### HasAddress
-
-`func (o *PatchedWritableContactRequest) HasAddress() bool`
-
-HasAddress returns a boolean if a field has been set.
-
-### GetLink
-
-`func (o *PatchedWritableContactRequest) GetLink() string`
-
-GetLink returns the Link field if non-nil, zero value otherwise.
-
-### GetLinkOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetLink(v string)`
-
-SetLink sets Link field to given value.
-
-### HasLink
-
-`func (o *PatchedWritableContactRequest) HasLink() bool`
-
-HasLink returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableContactRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableContactRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *PatchedWritableContactRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *PatchedWritableContactRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *PatchedWritableContactRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableContactRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *PatchedWritableContactRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *PatchedWritableContactRequest) 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/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md
index 3f61dbac99..21645eb48d 100644
--- a/docs/PatchedWritableCustomFieldRequest.md
+++ b/docs/PatchedWritableCustomFieldRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
+**ObjectTypes** | Pointer to **[]string** | | [optional]
**Type** | Pointer to [**PatchedWritableCustomFieldRequestType**](PatchedWritableCustomFieldRequestType.md) | | [optional]
-**ObjectType** | Pointer to **NullableString** | | [optional]
+**RelatedObjectType** | Pointer to **NullableString** | | [optional]
**Name** | Pointer to **string** | Internal field name | [optional]
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
**GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional]
@@ -22,7 +22,8 @@ Name | Type | Description | Notes
**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 **NullableInt32** | | [optional]
+**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
## Methods
@@ -43,30 +44,30 @@ NewPatchedWritableCustomFieldRequestWithDefaults instantiates a new PatchedWrita
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *PatchedWritableCustomFieldRequest) GetContentTypes() []string`
+`func (o *PatchedWritableCustomFieldRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *PatchedWritableCustomFieldRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *PatchedWritableCustomFieldRequest) SetContentTypes(v []string)`
+`func (o *PatchedWritableCustomFieldRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
-### HasContentTypes
+### HasObjectTypes
-`func (o *PatchedWritableCustomFieldRequest) HasContentTypes() bool`
+`func (o *PatchedWritableCustomFieldRequest) HasObjectTypes() bool`
-HasContentTypes returns a boolean if a field has been set.
+HasObjectTypes returns a boolean if a field has been set.
### GetType
@@ -93,41 +94,41 @@ SetType sets Type field to given value.
HasType returns a boolean if a field has been set.
-### GetObjectType
+### GetRelatedObjectType
-`func (o *PatchedWritableCustomFieldRequest) GetObjectType() string`
+`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectType() string`
-GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
+GetRelatedObjectType returns the RelatedObjectType field if non-nil, zero value otherwise.
-### GetObjectTypeOk
+### GetRelatedObjectTypeOk
-`func (o *PatchedWritableCustomFieldRequest) GetObjectTypeOk() (*string, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool)`
-GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
+GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetObjectType
+### SetRelatedObjectType
-`func (o *PatchedWritableCustomFieldRequest) SetObjectType(v string)`
+`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectType(v string)`
-SetObjectType sets ObjectType field to given value.
+SetRelatedObjectType sets RelatedObjectType field to given value.
-### HasObjectType
+### HasRelatedObjectType
-`func (o *PatchedWritableCustomFieldRequest) HasObjectType() bool`
+`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectType() bool`
-HasObjectType returns a boolean if a field has been set.
+HasRelatedObjectType returns a boolean if a field has been set.
-### SetObjectTypeNil
+### SetRelatedObjectTypeNil
-`func (o *PatchedWritableCustomFieldRequest) SetObjectTypeNil(b bool)`
+`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectTypeNil(b bool)`
- SetObjectTypeNil sets the value for ObjectType to be an explicit nil
+ SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
-### UnsetObjectType
-`func (o *PatchedWritableCustomFieldRequest) UnsetObjectType()`
+### UnsetRelatedObjectType
+`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectType()`
-UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
+UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
### GetName
`func (o *PatchedWritableCustomFieldRequest) GetName() string`
@@ -535,20 +536,20 @@ HasValidationRegex returns a boolean if a field has been set.
### GetChoiceSet
-`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() int32`
+`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest`
GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise.
### GetChoiceSetOk
-`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool)`
+`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, 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 int32)`
+`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)`
SetChoiceSet sets ChoiceSet field to given value.
@@ -568,6 +569,31 @@ HasChoiceSet returns a boolean if a field has been set.
`func (o *PatchedWritableCustomFieldRequest) UnsetChoiceSet()`
UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil
+### GetComments
+
+`func (o *PatchedWritableCustomFieldRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *PatchedWritableCustomFieldRequest) 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 *PatchedWritableCustomFieldRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *PatchedWritableCustomFieldRequest) HasComments() bool`
+
+HasComments 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/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md
index 97c61b9c24..330f80fe3e 100644
--- a/docs/PatchedWritableDeviceTypeRequest.md
+++ b/docs/PatchedWritableDeviceTypeRequest.md
@@ -4,18 +4,18 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | Pointer to **int32** | | [optional]
-**DefaultPlatform** | Pointer to **NullableInt32** | | [optional]
+**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional]
+**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.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 [**ParentChildStatus**](ParentChildStatus.md) | | [optional]
+**SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional]
**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.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() int32`
+`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 int32)`
+`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)`
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() int32`
+`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest`
GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise.
### GetDefaultPlatformOk
-`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, 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 int32)`
+`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)`
SetDefaultPlatform sets DefaultPlatform field to given value.
@@ -254,20 +254,20 @@ HasIsFullDepth returns a boolean if a field has been set.
### GetSubdeviceRole
-`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus`
+`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1`
GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise.
### GetSubdeviceRoleOk
-`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, 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 *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus)`
+`func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1)`
SetSubdeviceRole sets SubdeviceRole field to given value.
@@ -339,20 +339,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() DeviceTypeWeightUnitValue`
+`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/DeviceTypeRequestWeightUnit.md b/docs/PatchedWritableDeviceTypeRequestWeightUnit.md
similarity index 86%
rename from docs/DeviceTypeRequestWeightUnit.md
rename to docs/PatchedWritableDeviceTypeRequestWeightUnit.md
index ea9ac170d3..4fb52e1274 100644
--- a/docs/DeviceTypeRequestWeightUnit.md
+++ b/docs/PatchedWritableDeviceTypeRequestWeightUnit.md
@@ -1,4 +1,4 @@
-# DeviceTypeRequestWeightUnit
+# PatchedWritableDeviceTypeRequestWeightUnit
## Enum
diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md
index 0158f7e385..2d049b1033 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 **int32** | | [optional]
-**Role** | Pointer to **int32** | The function this device serves | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Platform** | Pointer to **NullableInt32** | | [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]
**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 **int32** | | [optional]
-**Location** | Pointer to **NullableInt32** | | [optional]
-**Rack** | Pointer to **NullableInt32** | | [optional]
+**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional]
+**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional]
+**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional]
**Position** | Pointer to **NullableFloat64** | | [optional]
-**Face** | Pointer to [**RackFace**](RackFace.md) | | [optional]
+**Face** | Pointer to [**RackFace1**](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 **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
-**OobIp** | Pointer to **NullableInt32** | | [optional]
-**Cluster** | Pointer to **NullableInt32** | | [optional]
-**VirtualChassis** | Pointer to **NullableInt32** | | [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 **NullableInt32** | | [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]
@@ -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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetRole(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetSite(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)`
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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetRack(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)`
SetRack sets Rack field to given value.
@@ -400,20 +400,20 @@ HasPosition returns a boolean if a field has been set.
UnsetPosition ensures that no value is present for Position, not even an explicit nil
### GetFace
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace1`
GetFace returns the Face field if non-nil, zero value otherwise.
### GetFaceOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace1)`
SetFace sets Face field to given value.
@@ -545,20 +545,20 @@ HasAirflow returns a boolean if a field has been set.
### GetPrimaryIp4
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -580,20 +580,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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -615,20 +615,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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest`
GetOobIp returns the OobIp field if non-nil, zero value otherwise.
### GetOobIpOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)`
SetOobIp sets OobIp field to given value.
@@ -650,20 +650,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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)`
SetCluster sets Cluster field to given value.
@@ -685,20 +685,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() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest`
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
### GetVirtualChassisOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)`
SetVirtualChassis sets VirtualChassis field to given value.
@@ -840,20 +840,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int32`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32)`
+`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md
index 57e94a3b1a..b1539fb42e 100644
--- a/docs/PatchedWritableEventRuleRequest.md
+++ b/docs/PatchedWritableEventRuleRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | Pointer to **[]string** | | [optional]
+**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]
@@ -39,30 +39,30 @@ NewPatchedWritableEventRuleRequestWithDefaults instantiates a new PatchedWritabl
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *PatchedWritableEventRuleRequest) GetContentTypes() []string`
+`func (o *PatchedWritableEventRuleRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *PatchedWritableEventRuleRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *PatchedWritableEventRuleRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *PatchedWritableEventRuleRequest) SetContentTypes(v []string)`
+`func (o *PatchedWritableEventRuleRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
-### HasContentTypes
+### HasObjectTypes
-`func (o *PatchedWritableEventRuleRequest) HasContentTypes() bool`
+`func (o *PatchedWritableEventRuleRequest) HasObjectTypes() bool`
-HasContentTypes returns a boolean if a field has been set.
+HasObjectTypes returns a boolean if a field has been set.
### GetName
diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md
index edd954ba16..1ad15f568d 100644
--- a/docs/PatchedWritableFrontPortRequest.md
+++ b/docs/PatchedWritableFrontPortRequest.md
@@ -4,14 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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]
+**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1]
**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() int32`
+`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableFrontPortRequest) 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 *PatchedWritableFrontPortRequest) SetDevice(v int32)`
+`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritableFrontPortRequest) 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 *PatchedWritableFrontPortRequest) SetModule(v int32)`
+`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md
index d7e2ec6cce..2b26765814 100644
--- a/docs/PatchedWritableFrontPortTemplateRequest.md
+++ b/docs/PatchedWritableFrontPortTemplateRequest.md
@@ -4,14 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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]
-**RearPort** | Pointer to **int32** | | [optional]
-**RearPortPosition** | Pointer to **int32** | | [optional]
+**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional]
+**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1]
**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() int32`
+`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritableFrontPortTemplateRequest) 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 *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritableFrontPortTemplateRequest) 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 *PatchedWritableFrontPortTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
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() int32`
+`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest`
GetRearPort returns the RearPort field if non-nil, zero value otherwise.
### GetRearPortOk
-`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*int32, bool)`
+`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, 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 int32)`
+`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)`
SetRearPort sets RearPort field to given value.
diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md
index ff330ee7a3..283f8e6e42 100644
--- a/docs/PatchedWritableIPAddressRequest.md
+++ b/docs/PatchedWritableIPAddressRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Address** | Pointer to **string** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional]
**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional]
**AssignedObjectType** | Pointer to **NullableString** | | [optional]
@@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set.
### GetVrf
-`func (o *PatchedWritableIPAddressRequest) GetVrf() int32`
+`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*int32, bool)`
+`func (o *PatchedWritableIPAddressRequest) 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 *PatchedWritableIPAddressRequest) SetVrf(v int32)`
+`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)`
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() int32`
+`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableIPAddressRequest) 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 *PatchedWritableIPAddressRequest) SetTenant(v int32)`
+`func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md
index aa3093a6f5..f38f938337 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 **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this range | [optional]
+**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.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() int32`
+`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*int32, bool)`
+`func (o *PatchedWritableIPRangeRequest) 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 *PatchedWritableIPRangeRequest) SetVrf(v int32)`
+`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)`
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() int32`
+`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableIPRangeRequest) 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 *PatchedWritableIPRangeRequest) SetTenant(v int32)`
+`func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)`
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() int32`
+`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritableIPRangeRequest) 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 *PatchedWritableIPRangeRequest) SetRole(v int32)`
+`func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md
index e0c0c1111b..8692a34abc 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 **int32** | | [optional]
-**IpsecPolicy** | Pointer to **int32** | | [optional]
+**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional]
+**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.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() int32`
+`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest`
GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
### GetIkePolicyOk
-`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*int32, bool)`
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetIkePolicy(v int32)`
+`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)`
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() int32`
+`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest`
GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
### GetIpsecPolicyOk
-`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, bool)`
+`func (o *PatchedWritableIPSecProfileRequest) 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 *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v int32)`
+`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)`
SetIpsecPolicy sets IpsecPolicy field to given value.
diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md
index 0fae1ae989..be3d47b6da 100644
--- a/docs/PatchedWritableInterfaceRequest.md
+++ b/docs/PatchedWritableInterfaceRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
**Vdcs** | Pointer to **[]int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional]
@@ -29,11 +29,11 @@ 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 **NullableInt32** | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**WirelessLans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritableInterfaceRequest) GetDevice() int32`
+`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceRequest) 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 *PatchedWritableInterfaceRequest) SetDevice(v int32)`
+`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -108,20 +108,20 @@ HasVdcs returns a boolean if a field has been set.
### GetModule
-`func (o *PatchedWritableInterfaceRequest) GetModule() int32`
+`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceRequest) 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 *PatchedWritableInterfaceRequest) SetModule(v int32)`
+`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -803,20 +803,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() int32`
+`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 int32)`
+`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -913,20 +913,20 @@ HasWirelessLans returns a boolean if a field has been set.
### GetVrf
-`func (o *PatchedWritableInterfaceRequest) GetVrf() int32`
+`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceRequest) 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 *PatchedWritableInterfaceRequest) SetVrf(v int32)`
+`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md
index 0513057b6d..dce5b9c25e 100644
--- a/docs/PatchedWritableInterfaceTemplateRequest.md
+++ b/docs/PatchedWritableInterfaceTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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 [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional]
@@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) 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 *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritableInterfaceTemplateRequest) 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 *PatchedWritableInterfaceTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/PatchedWritableInventoryItemRequest.md b/docs/PatchedWritableInventoryItemRequest.md
deleted file mode 100644
index 6c757bf973..0000000000
--- a/docs/PatchedWritableInventoryItemRequest.md
+++ /dev/null
@@ -1,480 +0,0 @@
-# PatchedWritableInventoryItemRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Parent** | Pointer to **NullableInt32** | | [optional]
-**Name** | Pointer to **string** | | [optional]
-**Label** | Pointer to **string** | Physical label | [optional]
-**Role** | Pointer to **NullableInt32** | | [optional]
-**Manufacturer** | Pointer to **NullableInt32** | | [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() int32`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*int32, 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 int32)`
-
-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.
-
-### GetRole
-
-`func (o *PatchedWritableInventoryItemRequest) GetRole() int32`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*int32, 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 int32)`
-
-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() int32`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*int32, 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 int32)`
-
-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 d87dfb89e3..27aad448fc 100644
--- a/docs/PatchedWritableL2VPNRequest.md
+++ b/docs/PatchedWritableL2VPNRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**ExportTargets** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableL2VPNRequest) GetTenant() int32`
+`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableL2VPNRequest) 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 *PatchedWritableL2VPNRequest) SetTenant(v int32)`
+`func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md
index e121c90b6b..acc3b3ce7e 100644
--- a/docs/PatchedWritableLocationRequest.md
+++ b/docs/PatchedWritableLocationRequest.md
@@ -6,10 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Slug** | Pointer to **string** | | [optional]
-**Site** | Pointer to **int32** | | [optional]
+**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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]
@@ -85,20 +86,20 @@ HasSlug returns a boolean if a field has been set.
### GetSite
-`func (o *PatchedWritableLocationRequest) GetSite() int32`
+`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableLocationRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) SetSite(v int32)`
+`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -145,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() LocationStatusValue`
+`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)`
+`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, 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 LocationStatusValue)`
+`func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)`
SetStatus sets Status field to given value.
@@ -170,20 +171,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableLocationRequest) GetTenant() int32`
+`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableLocationRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) SetTenant(v int32)`
+`func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -203,6 +204,31 @@ HasTenant returns a boolean if a field has been set.
`func (o *PatchedWritableLocationRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+### GetFacility
+
+`func (o *PatchedWritableLocationRequest) GetFacility() string`
+
+GetFacility returns the Facility field if non-nil, zero value otherwise.
+
+### GetFacilityOk
+
+`func (o *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) SetFacility(v string)`
+
+SetFacility sets Facility field to given value.
+
+### HasFacility
+
+`func (o *PatchedWritableLocationRequest) HasFacility() bool`
+
+HasFacility returns a boolean if a field has been set.
+
### GetDescription
`func (o *PatchedWritableLocationRequest) GetDescription() string`
diff --git a/docs/LocationStatusValue.md b/docs/PatchedWritableLocationRequestStatus.md
similarity index 90%
rename from docs/LocationStatusValue.md
rename to docs/PatchedWritableLocationRequestStatus.md
index 37cbbe607b..371493058f 100644
--- a/docs/LocationStatusValue.md
+++ b/docs/PatchedWritableLocationRequestStatus.md
@@ -1,4 +1,4 @@
-# LocationStatusValue
+# PatchedWritableLocationRequestStatus
## Enum
diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md
index 79d49c0dc5..e5788f6e4e 100644
--- a/docs/PatchedWritableModuleRequest.md
+++ b/docs/PatchedWritableModuleRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
**ModuleBay** | Pointer to **int32** | | [optional]
-**ModuleType** | Pointer to **int32** | | [optional]
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
+**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional]
+**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.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() int32`
+`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableModuleRequest) 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 *PatchedWritableModuleRequest) SetDevice(v int32)`
+`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritableModuleRequest) 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 *PatchedWritableModuleRequest) SetModuleType(v int32)`
+`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)`
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() ModuleStatusValue`
+`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)`
+`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue)`
+`func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/ModuleStatusValue.md b/docs/PatchedWritableModuleRequestStatus.md
similarity index 91%
rename from docs/ModuleStatusValue.md
rename to docs/PatchedWritableModuleRequestStatus.md
index 6e8631fd7d..f9b39154d7 100644
--- a/docs/ModuleStatusValue.md
+++ b/docs/PatchedWritableModuleRequestStatus.md
@@ -1,4 +1,4 @@
-# ModuleStatusValue
+# PatchedWritableModuleRequestStatus
## Enum
diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md
index 4fdedebfb2..179b6c6826 100644
--- a/docs/PatchedWritableModuleTypeRequest.md
+++ b/docs/PatchedWritableModuleTypeRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | Pointer to **int32** | | [optional]
+**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional]
**Model** | Pointer to **string** | | [optional]
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set
### GetManufacturer
-`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() int32`
+`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 int32)`
+`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
@@ -145,20 +145,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() DeviceTypeWeightUnitValue`
+`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md
index 117c10dfb6..cc35f75bc0 100644
--- a/docs/PatchedWritablePowerFeedRequest.md
+++ b/docs/PatchedWritablePowerFeedRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**PowerPanel** | Pointer to **int32** | | [optional]
-**Rack** | Pointer to **NullableInt32** | | [optional]
+**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional]
+**Rack** | Pointer to [**NullableRackRequest**](RackRequest.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 **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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() int32`
+`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest`
GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise.
### GetPowerPanelOk
-`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*int32, bool)`
+`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, 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 int32)`
+`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)`
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() int32`
+`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*int32, bool)`
+`func (o *PatchedWritablePowerFeedRequest) 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 *PatchedWritablePowerFeedRequest) SetRack(v int32)`
+`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)`
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() int32`
+`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritablePowerFeedRequest) 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 *PatchedWritablePowerFeedRequest) SetTenant(v int32)`
+`func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md
index 078122c08b..eb1ac8177a 100644
--- a/docs/PatchedWritablePowerOutletRequest.md
+++ b/docs/PatchedWritablePowerOutletRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional]
-**PowerPort** | Pointer to **NullableInt32** | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional]
**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
@@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritablePowerOutletRequest) GetDevice() int32`
+`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletRequest) 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 *PatchedWritablePowerOutletRequest) SetDevice(v int32)`
+`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set.
### GetModule
-`func (o *PatchedWritablePowerOutletRequest) GetModule() int32`
+`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletRequest) 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 *PatchedWritablePowerOutletRequest) SetModule(v int32)`
+`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set.
### GetPowerPort
-`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() int32`
+`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, 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 int32)`
+`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md
index d5127a33d4..f76400db64 100644
--- a/docs/PatchedWritablePowerOutletRequestType.md
+++ b/docs/PatchedWritablePowerOutletRequestType.md
@@ -169,6 +169,12 @@
* `USB_C` (value: `"usb-c"`)
+* `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"`)
* `HDOT_CX` (value: `"hdot-cx"`)
diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md
index 1dffdc2663..42e796ccf8 100644
--- a/docs/PatchedWritablePowerOutletTemplateRequest.md
+++ b/docs/PatchedWritablePowerOutletTemplateRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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 [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional]
-**PowerPort** | Pointer to **NullableInt32** | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional]
**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.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 *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) 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 *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) 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 *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
@@ -179,20 +179,20 @@ HasType returns a boolean if a field has been set.
### GetPowerPort
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() int32`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*int32, bool)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, 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 int32)`
+`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md
index 9cd053f0a2..e1e5a0cbc4 100644
--- a/docs/PatchedWritablePowerOutletTemplateRequestType.md
+++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md
@@ -169,6 +169,12 @@
* `USB_C` (value: `"usb-c"`)
+* `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"`)
* `HDOT_CX` (value: `"hdot-cx"`)
diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md
index 3b1748bb20..197374b544 100644
--- a/docs/PatchedWritablePowerPortRequest.md
+++ b/docs/PatchedWritablePowerPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional]
@@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritablePowerPortRequest) GetDevice() int32`
+`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritablePowerPortRequest) 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 *PatchedWritablePowerPortRequest) SetDevice(v int32)`
+`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritablePowerPortRequest) 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 *PatchedWritablePowerPortRequest) SetModule(v int32)`
+`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md
index f1563d80e4..0b2b85bc40 100644
--- a/docs/PatchedWritablePowerPortRequestType.md
+++ b/docs/PatchedWritablePowerPortRequestType.md
@@ -185,6 +185,12 @@
* `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"`)
diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md
index fd9ef9b586..1b737c2aa6 100644
--- a/docs/PatchedWritablePowerPortTemplateRequest.md
+++ b/docs/PatchedWritablePowerPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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 [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional]
@@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *PatchedWritablePowerPortTemplateRequest) 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 *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *PatchedWritablePowerPortTemplateRequest) 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 *PatchedWritablePowerPortTemplateRequest) SetModuleType(v int32)`
+`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md
index 5dd17c5bb7..a6fc8d0bf6 100644
--- a/docs/PatchedWritablePowerPortTemplateRequestType.md
+++ b/docs/PatchedWritablePowerPortTemplateRequestType.md
@@ -185,6 +185,12 @@
* `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"`)
diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md
index c7c541a40d..91217763d8 100644
--- a/docs/PatchedWritablePrefixRequest.md
+++ b/docs/PatchedWritablePrefixRequest.md
@@ -5,12 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Prefix** | Pointer to **string** | | [optional]
-**Site** | Pointer to **NullableInt32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Vlan** | Pointer to **NullableInt32** | | [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]
**Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this prefix | [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]
@@ -64,20 +64,20 @@ HasPrefix returns a boolean if a field has been set.
### GetSite
-`func (o *PatchedWritablePrefixRequest) GetSite() int32`
+`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritablePrefixRequest) 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 *PatchedWritablePrefixRequest) SetSite(v int32)`
+`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -99,20 +99,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
### GetVrf
-`func (o *PatchedWritablePrefixRequest) GetVrf() int32`
+`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*int32, bool)`
+`func (o *PatchedWritablePrefixRequest) 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 *PatchedWritablePrefixRequest) SetVrf(v int32)`
+`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
@@ -134,20 +134,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 *PatchedWritablePrefixRequest) GetTenant() int32`
+`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritablePrefixRequest) 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 *PatchedWritablePrefixRequest) SetTenant(v int32)`
+`func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -169,20 +169,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() int32`
+`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*int32, bool)`
+`func (o *PatchedWritablePrefixRequest) 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 *PatchedWritablePrefixRequest) SetVlan(v int32)`
+`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -229,20 +229,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *PatchedWritablePrefixRequest) GetRole() int32`
+`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritablePrefixRequest) 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 *PatchedWritablePrefixRequest) SetRole(v int32)`
+`func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/PatchedWritableProviderAccountRequest.md b/docs/PatchedWritableProviderAccountRequest.md
deleted file mode 100644
index e0c34ea207..0000000000
--- a/docs/PatchedWritableProviderAccountRequest.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# PatchedWritableProviderAccountRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Provider** | Pointer to **int32** | | [optional]
-**Name** | Pointer to **string** | | [optional]
-**Account** | 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
-
-### NewPatchedWritableProviderAccountRequest
-
-`func NewPatchedWritableProviderAccountRequest() *PatchedWritableProviderAccountRequest`
-
-NewPatchedWritableProviderAccountRequest instantiates a new PatchedWritableProviderAccountRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableProviderAccountRequestWithDefaults
-
-`func NewPatchedWritableProviderAccountRequestWithDefaults() *PatchedWritableProviderAccountRequest`
-
-NewPatchedWritableProviderAccountRequestWithDefaults instantiates a new PatchedWritableProviderAccountRequest object
-This 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 *PatchedWritableProviderAccountRequest) GetProvider() int32`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *PatchedWritableProviderAccountRequest) GetProviderOk() (*int32, 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 *PatchedWritableProviderAccountRequest) SetProvider(v int32)`
-
-SetProvider sets Provider field to given value.
-
-### HasProvider
-
-`func (o *PatchedWritableProviderAccountRequest) HasProvider() bool`
-
-HasProvider returns a boolean if a field has been set.
-
-### GetName
-
-`func (o *PatchedWritableProviderAccountRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *PatchedWritableProviderAccountRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetAccount
-
-`func (o *PatchedWritableProviderAccountRequest) GetAccount() string`
-
-GetAccount returns the Account field if non-nil, zero value otherwise.
-
-### GetAccountOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetAccount(v string)`
-
-SetAccount sets Account field to given value.
-
-### HasAccount
-
-`func (o *PatchedWritableProviderAccountRequest) HasAccount() bool`
-
-HasAccount returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableProviderAccountRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableProviderAccountRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *PatchedWritableProviderAccountRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *PatchedWritableProviderAccountRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *PatchedWritableProviderAccountRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableProviderAccountRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *PatchedWritableProviderAccountRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *PatchedWritableProviderAccountRequest) 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/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md
index 849c185e85..ee517e47ea 100644
--- a/docs/PatchedWritableRackRequest.md
+++ b/docs/PatchedWritableRackRequest.md
@@ -6,11 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**FacilityId** | Pointer to **NullableString** | | [optional]
-**Site** | Pointer to **int32** | | [optional]
-**Location** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional]
+**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | Functional role | [optional]
+**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**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 [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.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]
@@ -111,20 +111,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() int32`
+`func (o *PatchedWritableRackRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableRackRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableRackRequest) 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 *PatchedWritableRackRequest) SetSite(v int32)`
+`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -136,20 +136,20 @@ HasSite returns a boolean if a field has been set.
### GetLocation
-`func (o *PatchedWritableRackRequest) GetLocation() int32`
+`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *PatchedWritableRackRequest) GetLocationOk() (*int32, bool)`
+`func (o *PatchedWritableRackRequest) 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 *PatchedWritableRackRequest) SetLocation(v int32)`
+`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)`
SetLocation sets Location field to given value.
@@ -171,20 +171,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() int32`
+`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableRackRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableRackRequest) 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 *PatchedWritableRackRequest) SetTenant(v int32)`
+`func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -231,20 +231,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *PatchedWritableRackRequest) GetRole() int32`
+`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableRackRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, 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 int32)`
+`func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest)`
SetRole sets Role field to given value.
@@ -496,20 +496,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() DeviceTypeWeightUnitValue`
+`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md
index 44e457add6..f77fdd2db5 100644
--- a/docs/PatchedWritableRearPortRequest.md
+++ b/docs/PatchedWritableRearPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **int32** | | [optional]
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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() int32`
+`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableRearPortRequest) 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 *PatchedWritableRearPortRequest) SetDevice(v int32)`
+`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *PatchedWritableRearPortRequest) 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 *PatchedWritableRearPortRequest) SetModule(v int32)`
+`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md
index bec067135d..200b96c81b 100644
--- a/docs/PatchedWritableRearPortTemplateRequest.md
+++ b/docs/PatchedWritableRearPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**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]
@@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() int32`
+`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md
index 0707238326..1766d4654c 100644
--- a/docs/PatchedWritableServiceRequest.md
+++ b/docs/PatchedWritableServiceRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **NullableInt32** | | [optional]
-**VirtualMachine** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional]
+**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
-**Ports** | Pointer to **[]int32** | | [optional]
**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
-**Ipaddresses** | Pointer to **[]int32** | The specific IP addresses (if any) to which this service is bound | [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]
@@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PatchedWritableServiceRequest) GetDevice() int32`
+`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*int32, bool)`
+`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 int32)`
+`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -129,55 +129,55 @@ SetName sets Name field to given value.
HasName returns a boolean if a field has been set.
-### GetPorts
+### GetProtocol
-`func (o *PatchedWritableServiceRequest) GetPorts() []int32`
+`func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
-GetPorts returns the Ports field if non-nil, zero value otherwise.
+GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-### GetPortsOk
+### GetProtocolOk
-`func (o *PatchedWritableServiceRequest) GetPortsOk() (*[]int32, bool)`
+`func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
-GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise
+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.
-### SetPorts
+### SetProtocol
-`func (o *PatchedWritableServiceRequest) SetPorts(v []int32)`
+`func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
-SetPorts sets Ports field to given value.
+SetProtocol sets Protocol field to given value.
-### HasPorts
+### HasProtocol
-`func (o *PatchedWritableServiceRequest) HasPorts() bool`
+`func (o *PatchedWritableServiceRequest) HasProtocol() bool`
-HasPorts returns a boolean if a field has been set.
+HasProtocol returns a boolean if a field has been set.
-### GetProtocol
+### GetPorts
-`func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
+`func (o *PatchedWritableServiceRequest) GetPorts() []int32`
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
+GetPorts returns the Ports field if non-nil, zero value otherwise.
-### GetProtocolOk
+### GetPortsOk
-`func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
+`func (o *PatchedWritableServiceRequest) GetPortsOk() (*[]int32, bool)`
-GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
+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.
-### SetProtocol
+### SetPorts
-`func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
+`func (o *PatchedWritableServiceRequest) SetPorts(v []int32)`
-SetProtocol sets Protocol field to given value.
+SetPorts sets Ports field to given value.
-### HasProtocol
+### HasPorts
-`func (o *PatchedWritableServiceRequest) HasProtocol() bool`
+`func (o *PatchedWritableServiceRequest) HasPorts() bool`
-HasProtocol returns a boolean if a field has been set.
+HasPorts returns a boolean if a field has been set.
### GetIpaddresses
diff --git a/docs/PatchedWritableServiceTemplateRequest.md b/docs/PatchedWritableServiceTemplateRequest.md
index 26fb48b4ba..7fb2054d71 100644
--- a/docs/PatchedWritableServiceTemplateRequest.md
+++ b/docs/PatchedWritableServiceTemplateRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Ports** | Pointer to **[]int32** | | [optional]
**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
+**Ports** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -56,55 +56,55 @@ SetName sets Name field to given value.
HasName returns a boolean if a field has been set.
-### GetPorts
+### GetProtocol
-`func (o *PatchedWritableServiceTemplateRequest) GetPorts() []int32`
+`func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
-GetPorts returns the Ports field if non-nil, zero value otherwise.
+GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-### GetPortsOk
+### GetProtocolOk
-`func (o *PatchedWritableServiceTemplateRequest) GetPortsOk() (*[]int32, bool)`
+`func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
-GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise
+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.
-### SetPorts
+### SetProtocol
-`func (o *PatchedWritableServiceTemplateRequest) SetPorts(v []int32)`
+`func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
-SetPorts sets Ports field to given value.
+SetProtocol sets Protocol field to given value.
-### HasPorts
+### HasProtocol
-`func (o *PatchedWritableServiceTemplateRequest) HasPorts() bool`
+`func (o *PatchedWritableServiceTemplateRequest) HasProtocol() bool`
-HasPorts returns a boolean if a field has been set.
+HasProtocol returns a boolean if a field has been set.
-### GetProtocol
+### GetPorts
-`func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
+`func (o *PatchedWritableServiceTemplateRequest) GetPorts() []int32`
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
+GetPorts returns the Ports field if non-nil, zero value otherwise.
-### GetProtocolOk
+### GetPortsOk
-`func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
+`func (o *PatchedWritableServiceTemplateRequest) GetPortsOk() (*[]int32, bool)`
-GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
+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.
-### SetProtocol
+### SetPorts
-`func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
+`func (o *PatchedWritableServiceTemplateRequest) SetPorts(v []int32)`
-SetProtocol sets Protocol field to given value.
+SetPorts sets Ports field to given value.
-### HasProtocol
+### HasPorts
-`func (o *PatchedWritableServiceTemplateRequest) HasProtocol() bool`
+`func (o *PatchedWritableServiceTemplateRequest) HasPorts() bool`
-HasProtocol returns a boolean if a field has been set.
+HasPorts returns a boolean if a field has been set.
### GetDescription
diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md
index 7c6fc142b8..508c38a898 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 [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Region** | Pointer to **NullableInt32** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
**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() LocationStatusValue`
+`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)`
+`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, 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 LocationStatusValue)`
+`func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)`
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() int32`
+`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest`
GetRegion returns the Region field if non-nil, zero value otherwise.
### GetRegionOk
-`func (o *PatchedWritableSiteRequest) GetRegionOk() (*int32, bool)`
+`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, 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 int32)`
+`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)`
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() int32`
+`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableSiteRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, 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 int32)`
+`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)`
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() int32`
+`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableSiteRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableSiteRequest) 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 *PatchedWritableSiteRequest) SetTenant(v int32)`
+`func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableTokenRequest.md b/docs/PatchedWritableTokenRequest.md
deleted file mode 100644
index 2f154b4bb5..0000000000
--- a/docs/PatchedWritableTokenRequest.md
+++ /dev/null
@@ -1,206 +0,0 @@
-# PatchedWritableTokenRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**User** | Pointer to **int32** | | [optional]
-**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
-
-### NewPatchedWritableTokenRequest
-
-`func NewPatchedWritableTokenRequest() *PatchedWritableTokenRequest`
-
-NewPatchedWritableTokenRequest instantiates a new PatchedWritableTokenRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableTokenRequestWithDefaults
-
-`func NewPatchedWritableTokenRequestWithDefaults() *PatchedWritableTokenRequest`
-
-NewPatchedWritableTokenRequestWithDefaults instantiates a new PatchedWritableTokenRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetUser
-
-`func (o *PatchedWritableTokenRequest) GetUser() int32`
-
-GetUser returns the User field if non-nil, zero value otherwise.
-
-### GetUserOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetUser(v int32)`
-
-SetUser sets User field to given value.
-
-### HasUser
-
-`func (o *PatchedWritableTokenRequest) HasUser() bool`
-
-HasUser returns a boolean if a field has been set.
-
-### GetExpires
-
-`func (o *PatchedWritableTokenRequest) GetExpires() time.Time`
-
-GetExpires returns the Expires field if non-nil, zero value otherwise.
-
-### GetExpiresOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetExpires(v time.Time)`
-
-SetExpires sets Expires field to given value.
-
-### HasExpires
-
-`func (o *PatchedWritableTokenRequest) HasExpires() bool`
-
-HasExpires returns a boolean if a field has been set.
-
-### SetExpiresNil
-
-`func (o *PatchedWritableTokenRequest) SetExpiresNil(b bool)`
-
- SetExpiresNil sets the value for Expires to be an explicit nil
-
-### UnsetExpires
-`func (o *PatchedWritableTokenRequest) UnsetExpires()`
-
-UnsetExpires ensures that no value is present for Expires, not even an explicit nil
-### GetLastUsed
-
-`func (o *PatchedWritableTokenRequest) GetLastUsed() time.Time`
-
-GetLastUsed returns the LastUsed field if non-nil, zero value otherwise.
-
-### GetLastUsedOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetLastUsed(v time.Time)`
-
-SetLastUsed sets LastUsed field to given value.
-
-### HasLastUsed
-
-`func (o *PatchedWritableTokenRequest) HasLastUsed() bool`
-
-HasLastUsed returns a boolean if a field has been set.
-
-### SetLastUsedNil
-
-`func (o *PatchedWritableTokenRequest) SetLastUsedNil(b bool)`
-
- SetLastUsedNil sets the value for LastUsed to be an explicit nil
-
-### UnsetLastUsed
-`func (o *PatchedWritableTokenRequest) UnsetLastUsed()`
-
-UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil
-### GetKey
-
-`func (o *PatchedWritableTokenRequest) GetKey() string`
-
-GetKey returns the Key field if non-nil, zero value otherwise.
-
-### GetKeyOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetKey(v string)`
-
-SetKey sets Key field to given value.
-
-### HasKey
-
-`func (o *PatchedWritableTokenRequest) HasKey() bool`
-
-HasKey returns a boolean if a field has been set.
-
-### GetWriteEnabled
-
-`func (o *PatchedWritableTokenRequest) GetWriteEnabled() bool`
-
-GetWriteEnabled returns the WriteEnabled field if non-nil, zero value otherwise.
-
-### GetWriteEnabledOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetWriteEnabled(v bool)`
-
-SetWriteEnabled sets WriteEnabled field to given value.
-
-### HasWriteEnabled
-
-`func (o *PatchedWritableTokenRequest) HasWriteEnabled() bool`
-
-HasWriteEnabled returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableTokenRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableTokenRequest) 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/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md
index c257d0c9b1..5fa722f815 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 **NullableInt32** | | [optional]
+**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional]
**Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional]
-**IpsecProfile** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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() int32`
+`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, 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 int32)`
+`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)`
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() int32`
+`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest`
GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
### GetIpsecProfileOk
-`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*int32, bool)`
+`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, 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 int32)`
+`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)`
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() int32`
+`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableTunnelRequest) 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 *PatchedWritableTunnelRequest) SetTenant(v int32)`
+`func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md
index 39a95dbb2c..15f17c6229 100644
--- a/docs/PatchedWritableTunnelTerminationRequest.md
+++ b/docs/PatchedWritableTunnelTerminationRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Tunnel** | Pointer to **int32** | | [optional]
+**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional]
**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional]
**TerminationType** | Pointer to **string** | | [optional]
**TerminationId** | Pointer to **NullableInt64** | | [optional]
-**OutsideIp** | Pointer to **NullableInt32** | | [optional]
+**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.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() int32`
+`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest`
GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
### GetTunnelOk
-`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*int32, bool)`
+`func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetTunnel(v int32)`
+`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)`
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() int32`
+`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest`
GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
### GetOutsideIpOk
-`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*int32, bool)`
+`func (o *PatchedWritableTunnelTerminationRequest) 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 *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v int32)`
+`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)`
SetOutsideIp sets OutsideIp field to given value.
diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md
index 82acf3ab5a..edfc174e7c 100644
--- a/docs/PatchedWritableVLANRequest.md
+++ b/docs/PatchedWritableVLANRequest.md
@@ -4,13 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Site** | Pointer to **NullableInt32** | The specific site to which this VLAN is assigned (if any) | [optional]
-**Group** | Pointer to **NullableInt32** | VLAN group (optional) | [optional]
+**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional]
+**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional]
**Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional]
**Name** | Pointer to **string** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this VLAN | [optional]
+**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set
### GetSite
-`func (o *PatchedWritableVLANRequest) GetSite() int32`
+`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableVLANRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableVLANRequest) 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 *PatchedWritableVLANRequest) SetSite(v int32)`
+`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -72,20 +72,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() int32`
+`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableVLANRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, 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 int32)`
+`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)`
SetGroup sets Group field to given value.
@@ -157,20 +157,20 @@ HasName returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableVLANRequest) GetTenant() int32`
+`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableVLANRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableVLANRequest) 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 *PatchedWritableVLANRequest) SetTenant(v int32)`
+`func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -217,20 +217,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *PatchedWritableVLANRequest) GetRole() int32`
+`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableVLANRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritableVLANRequest) 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 *PatchedWritableVLANRequest) SetRole(v int32)`
+`func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md
index 7d801fe8b5..ae6bedaead 100644
--- a/docs/PatchedWritableVMInterfaceRequest.md
+++ b/docs/PatchedWritableVMInterfaceRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VirtualMachine** | Pointer to **int32** | | [optional]
+**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional]
**Name** | Pointer to **string** | | [optional]
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
-**UntaggedVlan** | Pointer to **NullableInt32** | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set
### GetVirtualMachine
-`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() int32`
+`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*int32, bool)`
+`func (o *PatchedWritableVMInterfaceRequest) 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 *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v int32)`
+`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -305,20 +305,20 @@ HasMode returns a boolean if a field has been set.
### GetUntaggedVlan
-`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() int32`
+`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*int32, bool)`
+`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 int32)`
+`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -365,20 +365,20 @@ HasTaggedVlans returns a boolean if a field has been set.
### GetVrf
-`func (o *PatchedWritableVMInterfaceRequest) GetVrf() int32`
+`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*int32, bool)`
+`func (o *PatchedWritableVMInterfaceRequest) 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 *PatchedWritableVMInterfaceRequest) SetVrf(v int32)`
+`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/PatchedWritableVRFRequest.md b/docs/PatchedWritableVRFRequest.md
deleted file mode 100644
index f134112959..0000000000
--- a/docs/PatchedWritableVRFRequest.md
+++ /dev/null
@@ -1,310 +0,0 @@
-# PatchedWritableVRFRequest
-
-## Properties
-
-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 **NullableInt32** | | [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
-
-### NewPatchedWritableVRFRequest
-
-`func NewPatchedWritableVRFRequest() *PatchedWritableVRFRequest`
-
-NewPatchedWritableVRFRequest instantiates a new PatchedWritableVRFRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewPatchedWritableVRFRequestWithDefaults
-
-`func NewPatchedWritableVRFRequestWithDefaults() *PatchedWritableVRFRequest`
-
-NewPatchedWritableVRFRequestWithDefaults instantiates a new PatchedWritableVRFRequest object
-This 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 *PatchedWritableVRFRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-### HasName
-
-`func (o *PatchedWritableVRFRequest) HasName() bool`
-
-HasName returns a boolean if a field has been set.
-
-### GetRd
-
-`func (o *PatchedWritableVRFRequest) GetRd() string`
-
-GetRd returns the Rd field if non-nil, zero value otherwise.
-
-### GetRdOk
-
-`func (o *PatchedWritableVRFRequest) GetRdOk() (*string, bool)`
-
-GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetRd
-
-`func (o *PatchedWritableVRFRequest) SetRd(v string)`
-
-SetRd sets Rd field to given value.
-
-### HasRd
-
-`func (o *PatchedWritableVRFRequest) HasRd() bool`
-
-HasRd returns a boolean if a field has been set.
-
-### SetRdNil
-
-`func (o *PatchedWritableVRFRequest) SetRdNil(b bool)`
-
- SetRdNil sets the value for Rd to be an explicit nil
-
-### UnsetRd
-`func (o *PatchedWritableVRFRequest) UnsetRd()`
-
-UnsetRd ensures that no value is present for Rd, not even an explicit nil
-### GetTenant
-
-`func (o *PatchedWritableVRFRequest) GetTenant() int32`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *PatchedWritableVRFRequest) GetTenantOk() (*int32, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *PatchedWritableVRFRequest) SetTenant(v int32)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *PatchedWritableVRFRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *PatchedWritableVRFRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *PatchedWritableVRFRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetEnforceUnique
-
-`func (o *PatchedWritableVRFRequest) GetEnforceUnique() bool`
-
-GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise.
-
-### GetEnforceUniqueOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetEnforceUnique(v bool)`
-
-SetEnforceUnique sets EnforceUnique field to given value.
-
-### HasEnforceUnique
-
-`func (o *PatchedWritableVRFRequest) HasEnforceUnique() bool`
-
-HasEnforceUnique returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *PatchedWritableVRFRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *PatchedWritableVRFRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *PatchedWritableVRFRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *PatchedWritableVRFRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetImportTargets
-
-`func (o *PatchedWritableVRFRequest) GetImportTargets() []int32`
-
-GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise.
-
-### GetImportTargetsOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetImportTargets(v []int32)`
-
-SetImportTargets sets ImportTargets field to given value.
-
-### HasImportTargets
-
-`func (o *PatchedWritableVRFRequest) HasImportTargets() bool`
-
-HasImportTargets returns a boolean if a field has been set.
-
-### GetExportTargets
-
-`func (o *PatchedWritableVRFRequest) GetExportTargets() []int32`
-
-GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise.
-
-### GetExportTargetsOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetExportTargets(v []int32)`
-
-SetExportTargets sets ExportTargets field to given value.
-
-### HasExportTargets
-
-`func (o *PatchedWritableVRFRequest) HasExportTargets() bool`
-
-HasExportTargets returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *PatchedWritableVRFRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *PatchedWritableVRFRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *PatchedWritableVRFRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *PatchedWritableVRFRequest) 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 a66e7a7b28..1954bc8537 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 **NullableInt32** | | [optional]
-**Identifier** | Pointer to **NullableInt32** | Numeric identifier unique to the parent device | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**DeviceRequest**](DeviceRequest.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]
**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() int32`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) 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 *PatchedWritableVirtualDeviceContextRequest) SetDevice(v int32)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -85,16 +85,6 @@ SetDevice sets Device field to given value.
HasDevice returns a boolean if a field has been set.
-### SetDeviceNil
-
-`func (o *PatchedWritableVirtualDeviceContextRequest) SetDeviceNil(b bool)`
-
- SetDeviceNil sets the value for Device to be an explicit nil
-
-### UnsetDevice
-`func (o *PatchedWritableVirtualDeviceContextRequest) UnsetDevice()`
-
-UnsetDevice ensures that no value is present for Device, not even an explicit nil
### GetIdentifier
`func (o *PatchedWritableVirtualDeviceContextRequest) GetIdentifier() int32`
@@ -132,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() int32`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) 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 *PatchedWritableVirtualDeviceContextRequest) SetTenant(v int32)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -167,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() int32`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) 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 *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -202,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() int32`
+`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) 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 *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32)`
+`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
index d386c84f43..08fc04070a 100644
--- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
+++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md
@@ -5,21 +5,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
-**Site** | Pointer to **NullableInt32** | | [optional]
-**Cluster** | Pointer to **NullableInt32** | | [optional]
-**Device** | Pointer to **NullableInt32** | | [optional]
-**Role** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Platform** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [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]
**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 **NullableInt32** | | [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]
@@ -70,20 +70,20 @@ HasName returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)`
SetStatus sets Status field to given value.
@@ -95,20 +95,20 @@ HasStatus returns a boolean if a field has been set.
### GetSite
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -130,20 +130,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)`
SetCluster sets Cluster field to given value.
@@ -165,20 +165,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -200,20 +200,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
### GetRole
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
SetRole sets Role field to given value.
@@ -235,20 +235,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -270,20 +270,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)`
SetPlatform sets Platform field to given value.
@@ -305,20 +305,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -340,20 +340,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() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -530,20 +530,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() int32`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v int32)`
+`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md
index 5de85ca786..6bb30de66f 100644
--- a/docs/PatchedWritableWirelessLANRequest.md
+++ b/docs/PatchedWritableWirelessLANRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Ssid** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
+**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional]
-**Vlan** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
@@ -88,20 +88,20 @@ HasDescription returns a boolean if a field has been set.
### GetGroup
-`func (o *PatchedWritableWirelessLANRequest) GetGroup() int32`
+`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLANRequest) 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 *PatchedWritableWirelessLANRequest) SetGroup(v int32)`
+`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)`
SetGroup sets Group field to given value.
@@ -148,20 +148,20 @@ HasStatus returns a boolean if a field has been set.
### GetVlan
-`func (o *PatchedWritableWirelessLANRequest) GetVlan() int32`
+`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLANRequest) 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 *PatchedWritableWirelessLANRequest) SetVlan(v int32)`
+`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -183,20 +183,20 @@ HasVlan returns a boolean if a field has been set.
UnsetVlan ensures that no value is present for Vlan, not even an explicit nil
### GetTenant
-`func (o *PatchedWritableWirelessLANRequest) GetTenant() int32`
+`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLANRequest) 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 *PatchedWritableWirelessLANRequest) SetTenant(v int32)`
+`func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md
index 2a5f888807..a04db8cf46 100644
--- a/docs/PatchedWritableWirelessLinkRequest.md
+++ b/docs/PatchedWritableWirelessLinkRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**InterfaceA** | Pointer to **int32** | | [optional]
-**InterfaceB** | Pointer to **int32** | | [optional]
+**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional]
+**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional]
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set
### GetInterfaceA
-`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() int32`
+`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest`
GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise.
### GetInterfaceAOk
-`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, 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 int32)`
+`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)`
SetInterfaceA sets InterfaceA field to given value.
@@ -63,20 +63,20 @@ HasInterfaceA returns a boolean if a field has been set.
### GetInterfaceB
-`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() int32`
+`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest`
GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise.
### GetInterfaceBOk
-`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, 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 int32)`
+`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)`
SetInterfaceB sets InterfaceB field to given value.
@@ -113,20 +113,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue`
+`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, 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 CableStatusValue)`
+`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)`
SetStatus sets Status field to given value.
@@ -138,20 +138,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *PatchedWritableWirelessLinkRequest) GetTenant() int32`
+`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*int32, bool)`
+`func (o *PatchedWritableWirelessLinkRequest) 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 *PatchedWritableWirelessLinkRequest) SetTenant(v int32)`
+`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/Platform.md b/docs/Platform.md
index ef240ddcd3..abceb730ab 100644
--- a/docs/Platform.md
+++ b/docs/Platform.md
@@ -9,21 +9,15 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
-**Manufacturer** | Pointer to [**NullableNestedManufacturer**](NestedManufacturer.md) | | [optional]
-**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.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]
-**DeviceCount** | **int32** | | [readonly]
-**VirtualmachineCount** | **int32** | | [readonly]
+**DeviceCount** | **int64** | | [readonly]
+**VirtualmachineCount** | **int64** | | [readonly]
## Methods
### NewPlatform
-`func NewPlatform(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32, ) *Platform`
+`func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *Platform`
NewPlatform instantiates a new Platform object
This constructor will assign default values to properties that have it defined,
@@ -138,76 +132,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetManufacturer
-
-`func (o *Platform) GetManufacturer() NestedManufacturer`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *Platform) GetManufacturerOk() (*NestedManufacturer, 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 NestedManufacturer)`
-
-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() NestedConfigTemplate`
-
-GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
-
-### GetConfigTemplateOk
-
-`func (o *Platform) GetConfigTemplateOk() (*NestedConfigTemplate, bool)`
-
-GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConfigTemplate
-
-`func (o *Platform) SetConfigTemplate(v NestedConfigTemplate)`
-
-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`
@@ -233,152 +157,42 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *Platform) GetDeviceCount() int64`
GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
### GetDeviceCountOk
-`func (o *Platform) GetDeviceCountOk() (*int32, bool)`
+`func (o *Platform) 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 *Platform) SetDeviceCount(v int32)`
+`func (o *Platform) SetDeviceCount(v int64)`
SetDeviceCount sets DeviceCount field to given value.
### GetVirtualmachineCount
-`func (o *Platform) GetVirtualmachineCount() int32`
+`func (o *Platform) GetVirtualmachineCount() int64`
GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
### GetVirtualmachineCountOk
-`func (o *Platform) GetVirtualmachineCountOk() (*int32, bool)`
+`func (o *Platform) 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 *Platform) SetVirtualmachineCount(v int32)`
+`func (o *Platform) SetVirtualmachineCount(v int64)`
SetVirtualmachineCount sets VirtualmachineCount field to given value.
diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md
index 736ab99a8f..39c7230e55 100644
--- a/docs/PlatformRequest.md
+++ b/docs/PlatformRequest.md
@@ -6,11 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Manufacturer** | Pointer to [**NullableNestedManufacturerRequest**](NestedManufacturerRequest.md) | | [optional]
-**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
## Methods
@@ -71,76 +67,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetManufacturer
-
-`func (o *PlatformRequest) GetManufacturer() NestedManufacturerRequest`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *PlatformRequest) GetManufacturerOk() (*NestedManufacturerRequest, 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 NestedManufacturerRequest)`
-
-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() NestedConfigTemplateRequest`
-
-GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
-
-### GetConfigTemplateOk
-
-`func (o *PlatformRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)`
-
-GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConfigTemplate
-
-`func (o *PlatformRequest) SetConfigTemplate(v NestedConfigTemplateRequest)`
-
-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`
@@ -166,56 +92,6 @@ 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.md b/docs/PowerFeed.md
index ebab0a90aa..d1fe1f2363 100644
--- a/docs/PowerFeed.md
+++ b/docs/PowerFeed.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**PowerPanel** | [**NestedPowerPanel**](NestedPowerPanel.md) | |
-**Rack** | Pointer to [**NullableNestedRack**](NestedRack.md) | | [optional]
+**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]
@@ -18,7 +18,7 @@ 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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
**ConnectedEndpointsType** | **string** | | [readonly]
**ConnectedEndpointsReachable** | **bool** | | [readonly]
**Description** | Pointer to **string** | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [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]
@@ -38,7 +38,7 @@ Name | Type | Description | Notes
### NewPowerFeed
-`func NewPowerFeed(id int32, url string, display string, powerPanel NestedPowerPanel, name string, cable NullableNestedCable, 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 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,
@@ -115,40 +115,40 @@ SetDisplay sets Display field to given value.
### GetPowerPanel
-`func (o *PowerFeed) GetPowerPanel() NestedPowerPanel`
+`func (o *PowerFeed) GetPowerPanel() PowerPanel`
GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise.
### GetPowerPanelOk
-`func (o *PowerFeed) GetPowerPanelOk() (*NestedPowerPanel, bool)`
+`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 NestedPowerPanel)`
+`func (o *PowerFeed) SetPowerPanel(v PowerPanel)`
SetPowerPanel sets PowerPanel field to given value.
### GetRack
-`func (o *PowerFeed) GetRack() NestedRack`
+`func (o *PowerFeed) GetRack() Rack`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *PowerFeed) GetRackOk() (*NestedRack, bool)`
+`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 NestedRack)`
+`func (o *PowerFeed) SetRack(v Rack)`
SetRack sets Rack field to given value.
@@ -390,20 +390,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *PowerFeed) GetCable() NestedCable`
+`func (o *PowerFeed) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *PowerFeed) GetCableOk() (*NestedCable, bool)`
+`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 NestedCable)`
+`func (o *PowerFeed) SetCable(v Cable)`
SetCable sets Cable field to given value.
@@ -565,20 +565,20 @@ HasDescription returns a boolean if a field has been set.
### GetTenant
-`func (o *PowerFeed) GetTenant() NestedTenant`
+`func (o *PowerFeed) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PowerFeed) GetTenantOk() (*NestedTenant, bool)`
+`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 NestedTenant)`
+`func (o *PowerFeed) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md
index 14c55aa4b0..d72dbffb67 100644
--- a/docs/PowerFeedRequest.md
+++ b/docs/PowerFeedRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**PowerPanel** | [**NestedPowerPanelRequest**](NestedPowerPanelRequest.md) | |
-**Rack** | Pointer to [**NullableNestedRackRequest**](NestedRackRequest.md) | | [optional]
+**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | |
+**Rack** | Pointer to [**NullableRackRequest**](RackRequest.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 [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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 NestedPowerPanelRequest, name string, ) *PowerFeedRequest`
+`func NewPowerFeedRequest(powerPanel PowerPanelRequest, 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() NestedPowerPanelRequest`
+`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest`
GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise.
### GetPowerPanelOk
-`func (o *PowerFeedRequest) GetPowerPanelOk() (*NestedPowerPanelRequest, bool)`
+`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, 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 NestedPowerPanelRequest)`
+`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)`
SetPowerPanel sets PowerPanel field to given value.
### GetRack
-`func (o *PowerFeedRequest) GetRack() NestedRackRequest`
+`func (o *PowerFeedRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *PowerFeedRequest) GetRackOk() (*NestedRackRequest, bool)`
+`func (o *PowerFeedRequest) 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 *PowerFeedRequest) SetRack(v NestedRackRequest)`
+`func (o *PowerFeedRequest) SetRack(v RackRequest)`
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() NestedTenantRequest`
+`func (o *PowerFeedRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PowerFeedRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *PowerFeedRequest) 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 *PowerFeedRequest) SetTenant(v NestedTenantRequest)`
+`func (o *PowerFeedRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/PowerOutlet.md b/docs/PowerOutlet.md
index 38eb800698..488ae2777c 100644
--- a/docs/PowerOutlet.md
+++ b/docs/PowerOutlet.md
@@ -7,16 +7,16 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**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 [**NullableNestedPowerPort**](NestedPowerPort.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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -33,7 +33,7 @@ Name | Type | Description | Notes
### NewPowerOutlet
-`func NewPowerOutlet(id int32, url string, display string, device NestedDevice, name string, cable NullableNestedCable, 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 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,
@@ -110,40 +110,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *PowerOutlet) GetDevice() NestedDevice`
+`func (o *PowerOutlet) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PowerOutlet) GetDeviceOk() (*NestedDevice, bool)`
+`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 NestedDevice)`
+`func (o *PowerOutlet) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *PowerOutlet) GetModule() ComponentNestedModule`
+`func (o *PowerOutlet) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PowerOutlet) GetModuleOk() (*ComponentNestedModule, bool)`
+`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 ComponentNestedModule)`
+`func (o *PowerOutlet) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -245,20 +245,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 *PowerOutlet) GetPowerPort() NestedPowerPort`
+`func (o *PowerOutlet) GetPowerPort() PowerPort`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PowerOutlet) GetPowerPortOk() (*NestedPowerPort, bool)`
+`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 NestedPowerPort)`
+`func (o *PowerOutlet) SetPowerPort(v PowerPort)`
SetPowerPort sets PowerPort field to given value.
@@ -365,20 +365,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *PowerOutlet) GetCable() NestedCable`
+`func (o *PowerOutlet) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *PowerOutlet) GetCableOk() (*NestedCable, bool)`
+`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 NestedCable)`
+`func (o *PowerOutlet) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md
index 1dd0a05a9d..13dda02fda 100644
--- a/docs/PowerOutletRequest.md
+++ b/docs/PowerOutletRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional]
-**PowerPort** | Pointer to [**NullableNestedPowerPortRequest**](NestedPowerPortRequest.md) | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.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 +20,7 @@ Name | Type | Description | Notes
### NewPowerOutletRequest
-`func NewPowerOutletRequest(device NestedDeviceRequest, name string, ) *PowerOutletRequest`
+`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest`
NewPowerOutletRequest instantiates a new PowerOutletRequest 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 *PowerOutletRequest) GetDevice() NestedDeviceRequest`
+`func (o *PowerOutletRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PowerOutletRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *PowerOutletRequest) 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 *PowerOutletRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *PowerOutletRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *PowerOutletRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *PowerOutletRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`func (o *PowerOutletRequest) 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 *PowerOutletRequest) SetModule(v ComponentNestedModuleRequest)`
+`func (o *PowerOutletRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -172,20 +172,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 *PowerOutletRequest) GetPowerPort() NestedPowerPortRequest`
+`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PowerOutletRequest) GetPowerPortOk() (*NestedPowerPortRequest, bool)`
+`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, 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 NestedPowerPortRequest)`
+`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md
index 24ab336a8e..c44e44e534 100644
--- a/docs/PowerOutletRequestType.md
+++ b/docs/PowerOutletRequestType.md
@@ -169,6 +169,12 @@
* `USB_C` (value: `"usb-c"`)
+* `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"`)
* `HDOT_CX` (value: `"hdot-cx"`)
diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md
index 88e8564b5e..f682defafd 100644
--- a/docs/PowerOutletTemplate.md
+++ b/docs/PowerOutletTemplate.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
+**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 [**NullableNestedPowerPortTemplate**](NestedPowerPortTemplate.md) | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional]
**FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -99,20 +99,20 @@ SetDisplay sets Display field to given value.
### GetDeviceType
-`func (o *PowerOutletTemplate) GetDeviceType() NestedDeviceType`
+`func (o *PowerOutletTemplate) GetDeviceType() DeviceType`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)`
+`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 NestedDeviceType)`
+`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)`
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() NestedModuleType`
+`func (o *PowerOutletTemplate) GetModuleType() ModuleType`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PowerOutletTemplate) GetModuleTypeOk() (*NestedModuleType, bool)`
+`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 NestedModuleType)`
+`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)`
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() NestedPowerPortTemplate`
+`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PowerOutletTemplate) GetPowerPortOk() (*NestedPowerPortTemplate, bool)`
+`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 NestedPowerPortTemplate)`
+`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md
index cea522f382..36e06e4b63 100644
--- a/docs/PowerOutletTemplateRequest.md
+++ b/docs/PowerOutletTemplateRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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 [**NullableNestedPowerPortTemplateRequest**](NestedPowerPortTemplateRequest.md) | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.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() NestedDeviceTypeRequest`
+`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool)`
+`func (o *PowerOutletTemplateRequest) 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 *PowerOutletTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest)`
+`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() NestedModuleTypeRequest`
+`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, bool)`
+`func (o *PowerOutletTemplateRequest) 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 *PowerOutletTemplateRequest) SetModuleType(v NestedModuleTypeRequest)`
+`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType 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() NestedPowerPortTemplateRequest`
+`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*NestedPowerPortTemplateRequest, bool)`
+`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, 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 NestedPowerPortTemplateRequest)`
+`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md
index d15e67865a..4df800c349 100644
--- a/docs/PowerOutletTypeLabel.md
+++ b/docs/PowerOutletTypeLabel.md
@@ -169,6 +169,12 @@
* `USB_TYPE_C` (value: `"USB Type C"`)
+* `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"`)
* `HDOT_CX` (value: `"HDOT Cx"`)
diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md
index 68aa80a58b..31346d7075 100644
--- a/docs/PowerPanel.md
+++ b/docs/PowerPanel.md
@@ -7,22 +7,15 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Site** | [**NestedSite**](NestedSite.md) | |
-**Location** | Pointer to [**NullableNestedLocation**](NestedLocation.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** | **int32** | | [readonly]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
+**PowerfeedCount** | **int64** | | [readonly]
## Methods
### NewPowerPanel
-`func NewPowerPanel(id int32, url string, display string, site NestedSite, name string, powerfeedCount int32, created NullableTime, lastUpdated NullableTime, ) *PowerPanel`
+`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel`
NewPowerPanel instantiates a new PowerPanel object
This constructor will assign default values to properties that have it defined,
@@ -97,61 +90,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetSite
-
-`func (o *PowerPanel) GetSite() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *PowerPanel) GetSiteOk() (*NestedSite, 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 NestedSite)`
-
-SetSite sets Site field to given value.
-
-
-### GetLocation
-
-`func (o *PowerPanel) GetLocation() NestedLocation`
-
-GetLocation returns the Location field if non-nil, zero value otherwise.
-
-### GetLocationOk
-
-`func (o *PowerPanel) GetLocationOk() (*NestedLocation, 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 NestedLocation)`
-
-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`
@@ -197,161 +135,26 @@ 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() int32`
+`func (o *PowerPanel) GetPowerfeedCount() int64`
GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise.
### GetPowerfeedCountOk
-`func (o *PowerPanel) GetPowerfeedCountOk() (*int32, bool)`
+`func (o *PowerPanel) 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 *PowerPanel) SetPowerfeedCount(v int32)`
+`func (o *PowerPanel) SetPowerfeedCount(v int64)`
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.
-
-
-### 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.
-
-
-### 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 887c576af7..1993a4681d 100644
--- a/docs/PowerPanelRequest.md
+++ b/docs/PowerPanelRequest.md
@@ -4,19 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Site** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
-**Location** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.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(site NestedSiteRequest, name string, ) *PowerPanelRequest`
+`func NewPowerPanelRequest(name string, ) *PowerPanelRequest`
NewPowerPanelRequest instantiates a new PowerPanelRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,61 +26,6 @@ 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() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *PowerPanelRequest) GetSiteOk() (*NestedSiteRequest, 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 NestedSiteRequest)`
-
-SetSite sets Site field to given value.
-
-
-### GetLocation
-
-`func (o *PowerPanelRequest) GetLocation() NestedLocationRequest`
-
-GetLocation returns the Location field if non-nil, zero value otherwise.
-
-### GetLocationOk
-
-`func (o *PowerPanelRequest) GetLocationOk() (*NestedLocationRequest, 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 NestedLocationRequest)`
-
-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`
@@ -131,81 +71,6 @@ 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 3da09cd163..43c65c7fa9 100644
--- a/docs/PowerPort.md
+++ b/docs/PowerPort.md
@@ -7,33 +7,17 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**Device** | [**Device**](Device.md) | |
**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]
-**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
-**Cable** | [**NullableNestedCable**](NestedCable.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]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**Occupied** | **bool** | | [readonly]
## Methods
### NewPowerPort
-`func NewPowerPort(id int32, url string, display string, device NestedDevice, name string, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort`
+`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort`
NewPowerPort instantiates a new PowerPort object
This constructor will assign default values to properties that have it defined,
@@ -110,59 +94,24 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *PowerPort) GetDevice() NestedDevice`
+`func (o *PowerPort) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PowerPort) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *PowerPort) 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 *PowerPort) SetDevice(v NestedDevice)`
+`func (o *PowerPort) SetDevice(v Device)`
SetDevice sets Device field to given value.
-### GetModule
-
-`func (o *PowerPort) GetModule() ComponentNestedModule`
-
-GetModule returns the Module field if non-nil, zero value otherwise.
-
-### GetModuleOk
-
-`func (o *PowerPort) GetModuleOk() (*ComponentNestedModule, 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 ComponentNestedModule)`
-
-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`
@@ -183,136 +132,6 @@ 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`
@@ -338,47 +157,22 @@ 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() NestedCable`
+`func (o *PowerPort) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *PowerPort) GetCableOk() (*NestedCable, bool)`
+`func (o *PowerPort) 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 *PowerPort) SetCable(v NestedCable)`
+`func (o *PowerPort) SetCable(v Cable)`
SetCable sets Cable field to given value.
@@ -393,236 +187,6 @@ 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.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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 cb2c73dd53..5828bf3578 100644
--- a/docs/PowerPortRequest.md
+++ b/docs/PowerPortRequest.md
@@ -4,23 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**Name** | **string** | |
-**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.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 NestedDeviceRequest, name string, ) *PowerPortRequest`
+`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest`
NewPowerPortRequest instantiates a new PowerPortRequest object
This constructor will assign default values to properties that have it defined,
@@ -37,59 +29,24 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *PowerPortRequest) GetDevice() NestedDeviceRequest`
+`func (o *PowerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *PowerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *PowerPortRequest) 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 *PowerPortRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *PowerPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
-### GetModule
-
-`func (o *PowerPortRequest) GetModule() ComponentNestedModuleRequest`
-
-GetModule returns the Module field if non-nil, zero value otherwise.
-
-### GetModuleOk
-
-`func (o *PowerPortRequest) GetModuleOk() (*ComponentNestedModuleRequest, 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 ComponentNestedModuleRequest)`
-
-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`
@@ -110,136 +67,6 @@ 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() PowerPortRequestType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, 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 PowerPortRequestType)`
-
-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`
@@ -265,81 +92,6 @@ 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/PowerPortRequestType.md b/docs/PowerPortRequestType.md
deleted file mode 100644
index 0cb4867d3e..0000000000
--- a/docs/PowerPortRequestType.md
+++ /dev/null
@@ -1,211 +0,0 @@
-# PowerPortRequestType
-
-## 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_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"`)
-
-* `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/PowerPortTemplate.md b/docs/PowerPortTemplate.md
index 742f657407..0ddb2e3244 100644
--- a/docs/PowerPortTemplate.md
+++ b/docs/PowerPortTemplate.md
@@ -7,22 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewPowerPortTemplate
-`func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate`
+`func NewPowerPortTemplate(id int32, url string, display string, name string, ) *PowerPortTemplate`
NewPowerPortTemplate instantiates a new PowerPortTemplate object
This constructor will assign default values to properties that have it defined,
@@ -97,76 +89,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetDeviceType
-
-`func (o *PowerPortTemplate) GetDeviceType() NestedDeviceType`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *PowerPortTemplate) GetDeviceTypeOk() (*NestedDeviceType, 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 NestedDeviceType)`
-
-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() NestedModuleType`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *PowerPortTemplate) GetModuleTypeOk() (*NestedModuleType, 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 NestedModuleType)`
-
-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`
@@ -187,136 +109,6 @@ 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`
@@ -342,66 +134,6 @@ 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.
-
-
-### 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.
-
-
-### 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.md b/docs/PowerPortTemplateRequest.md
index 8962fade77..7c113cd12a 100644
--- a/docs/PowerPortTemplateRequest.md
+++ b/docs/PowerPortTemplateRequest.md
@@ -4,13 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**Label** | Pointer to **string** | Physical label | [optional]
-**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.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
@@ -32,76 +26,6 @@ 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() NestedDeviceTypeRequest`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, 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 NestedDeviceTypeRequest)`
-
-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() NestedModuleTypeRequest`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, 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 NestedModuleTypeRequest)`
-
-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`
@@ -122,136 +46,6 @@ 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() PowerPortRequestType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, 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 PowerPortRequestType)`
-
-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
deleted file mode 100644
index c982432ff5..0000000000
--- a/docs/PowerPortType.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# PowerPortType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.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() PatchedWritablePowerPortTemplateRequestType`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, 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 PatchedWritablePowerPortTemplateRequestType)`
-
-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
deleted file mode 100644
index cd6676d67e..0000000000
--- a/docs/PowerPortTypeLabel.md
+++ /dev/null
@@ -1,209 +0,0 @@
-# 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_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"`)
-
-* `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/Prefix.md b/docs/Prefix.md
index 83b988caca..b1b6821a6e 100644
--- a/docs/Prefix.md
+++ b/docs/Prefix.md
@@ -9,12 +9,12 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Family** | [**AggregateFamily**](AggregateFamily.md) | |
**Prefix** | **string** | |
-**Site** | Pointer to [**NullableNestedSite**](NestedSite.md) | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRF**](NestedVRF.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Vlan** | Pointer to [**NullableNestedVLAN**](NestedVLAN.md) | | [optional]
+**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]
**Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRole**](NestedRole.md) | | [optional]
+**Role** | Pointer to [**NullableRole**](Role.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]
@@ -147,20 +147,20 @@ SetPrefix sets Prefix field to given value.
### GetSite
-`func (o *Prefix) GetSite() NestedSite`
+`func (o *Prefix) GetSite() Site`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *Prefix) GetSiteOk() (*NestedSite, bool)`
+`func (o *Prefix) 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 *Prefix) SetSite(v NestedSite)`
+`func (o *Prefix) SetSite(v Site)`
SetSite sets Site field to given value.
@@ -182,20 +182,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
### GetVrf
-`func (o *Prefix) GetVrf() NestedVRF`
+`func (o *Prefix) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *Prefix) GetVrfOk() (*NestedVRF, bool)`
+`func (o *Prefix) 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 *Prefix) SetVrf(v NestedVRF)`
+`func (o *Prefix) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
@@ -217,20 +217,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 *Prefix) GetTenant() NestedTenant`
+`func (o *Prefix) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *Prefix) GetTenantOk() (*NestedTenant, bool)`
+`func (o *Prefix) 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 *Prefix) SetTenant(v NestedTenant)`
+`func (o *Prefix) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -252,20 +252,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() NestedVLAN`
+`func (o *Prefix) GetVlan() VLAN`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *Prefix) GetVlanOk() (*NestedVLAN, bool)`
+`func (o *Prefix) GetVlanOk() (*VLAN, 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 NestedVLAN)`
+`func (o *Prefix) SetVlan(v VLAN)`
SetVlan sets Vlan field to given value.
@@ -312,20 +312,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *Prefix) GetRole() NestedRole`
+`func (o *Prefix) GetRole() Role`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *Prefix) GetRoleOk() (*NestedRole, bool)`
+`func (o *Prefix) 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 *Prefix) SetRole(v NestedRole)`
+`func (o *Prefix) SetRole(v Role)`
SetRole sets Role field to given value.
diff --git a/docs/PrefixRequest.md b/docs/PrefixRequest.md
index d6c36959d0..ae1f2006b8 100644
--- a/docs/PrefixRequest.md
+++ b/docs/PrefixRequest.md
@@ -5,12 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Prefix** | **string** | |
-**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.md) | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Vlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [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]
**Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRoleRequest**](NestedRoleRequest.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]
@@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value.
### GetSite
-`func (o *PrefixRequest) GetSite() NestedSiteRequest`
+`func (o *PrefixRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *PrefixRequest) GetSiteOk() (*NestedSiteRequest, bool)`
+`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 NestedSiteRequest)`
+`func (o *PrefixRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -94,20 +94,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
### GetVrf
-`func (o *PrefixRequest) GetVrf() NestedVRFRequest`
+`func (o *PrefixRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *PrefixRequest) GetVrfOk() (*NestedVRFRequest, bool)`
+`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 NestedVRFRequest)`
+`func (o *PrefixRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
@@ -129,20 +129,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 *PrefixRequest) GetTenant() NestedTenantRequest`
+`func (o *PrefixRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *PrefixRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`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 NestedTenantRequest)`
+`func (o *PrefixRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -164,20 +164,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() NestedVLANRequest`
+`func (o *PrefixRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *PrefixRequest) GetVlanOk() (*NestedVLANRequest, bool)`
+`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 NestedVLANRequest)`
+`func (o *PrefixRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *PrefixRequest) GetRole() NestedRoleRequest`
+`func (o *PrefixRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *PrefixRequest) GetRoleOk() (*NestedRoleRequest, bool)`
+`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 NestedRoleRequest)`
+`func (o *PrefixRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/Provider.md b/docs/Provider.md
index a21f2fc35d..16fd7e5dfc 100644
--- a/docs/Provider.md
+++ b/docs/Provider.md
@@ -9,21 +9,14 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**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 [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**CircuitCount** | **int32** | | [readonly]
+**CircuitCount** | **int64** | | [readonly]
## Methods
### NewProvider
-`func NewProvider(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int32, ) *Provider`
+`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider`
NewProvider instantiates a new Provider object
This constructor will assign default values to properties that have it defined,
@@ -138,31 +131,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetAccounts
-
-`func (o *Provider) GetAccounts() []int32`
-
-GetAccounts returns the Accounts field if non-nil, zero value otherwise.
-
-### GetAccountsOk
-
-`func (o *Provider) 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 *Provider) SetAccounts(v []int32)`
-
-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`
@@ -188,182 +156,22 @@ 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() []int32`
-
-GetAsns returns the Asns field if non-nil, zero value otherwise.
-
-### GetAsnsOk
-
-`func (o *Provider) 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 *Provider) SetAsns(v []int32)`
-
-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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *Provider) GetCircuitCount() int64`
GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise.
### GetCircuitCountOk
-`func (o *Provider) GetCircuitCountOk() (*int32, bool)`
+`func (o *Provider) 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 *Provider) SetCircuitCount(v int32)`
+`func (o *Provider) SetCircuitCount(v int64)`
SetCircuitCount sets CircuitCount field to given value.
diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md
index cac3691a3f..aac9f2198e 100644
--- a/docs/ProviderAccount.md
+++ b/docs/ProviderAccount.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Provider** | [**NestedProvider**](NestedProvider.md) | |
-**Name** | Pointer to **string** | | [optional]
+**Provider** | [**Provider**](Provider.md) | |
+**Name** | Pointer to **string** | | [optional] [default to ""]
**Account** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewProviderAccount
-`func NewProviderAccount(id int32, url string, display string, provider NestedProvider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount`
+`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount`
NewProviderAccount instantiates a new ProviderAccount object
This constructor will assign default values to properties that have it defined,
@@ -98,20 +98,20 @@ SetDisplay sets Display field to given value.
### GetProvider
-`func (o *ProviderAccount) GetProvider() NestedProvider`
+`func (o *ProviderAccount) GetProvider() Provider`
GetProvider returns the Provider field if non-nil, zero value otherwise.
### GetProviderOk
-`func (o *ProviderAccount) GetProviderOk() (*NestedProvider, bool)`
+`func (o *ProviderAccount) GetProviderOk() (*Provider, 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 NestedProvider)`
+`func (o *ProviderAccount) SetProvider(v Provider)`
SetProvider sets Provider field to given value.
diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md
index b6713d17d7..73ff7c78bf 100644
--- a/docs/ProviderAccountRequest.md
+++ b/docs/ProviderAccountRequest.md
@@ -4,19 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Provider** | [**NestedProviderRequest**](NestedProviderRequest.md) | |
-**Name** | Pointer to **string** | | [optional]
+**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(provider NestedProviderRequest, account string, ) *ProviderAccountRequest`
+`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest`
NewProviderAccountRequest instantiates a new ProviderAccountRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,26 +27,6 @@ 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() NestedProviderRequest`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *ProviderAccountRequest) GetProviderOk() (*NestedProviderRequest, 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 NestedProviderRequest)`
-
-SetProvider sets Provider field to given value.
-
-
### GetName
`func (o *ProviderAccountRequest) GetName() string`
@@ -121,81 +97,6 @@ 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 e2e8f2169b..de3e093732 100644
--- a/docs/ProviderNetwork.md
+++ b/docs/ProviderNetwork.md
@@ -7,21 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Provider** | [**NestedProvider**](NestedProvider.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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewProviderNetwork
-`func NewProviderNetwork(id int32, url string, display string, provider NestedProvider, name string, created NullableTime, lastUpdated NullableTime, ) *ProviderNetwork`
+`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork`
NewProviderNetwork instantiates a new ProviderNetwork object
This constructor will assign default values to properties that have it defined,
@@ -96,26 +89,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetProvider
-
-`func (o *ProviderNetwork) GetProvider() NestedProvider`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *ProviderNetwork) GetProviderOk() (*NestedProvider, 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 NestedProvider)`
-
-SetProvider sets Provider field to given value.
-
-
### GetName
`func (o *ProviderNetwork) GetName() string`
@@ -136,31 +109,6 @@ 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`
@@ -186,141 +134,6 @@ 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.
-
-
-### 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.
-
-
-### 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.md b/docs/ProviderNetworkRequest.md
index 2a5d836a5c..21f981aa69 100644
--- a/docs/ProviderNetworkRequest.md
+++ b/docs/ProviderNetworkRequest.md
@@ -4,19 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Provider** | [**NestedProviderRequest**](NestedProviderRequest.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(provider NestedProviderRequest, name string, ) *ProviderNetworkRequest`
+`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest`
NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,26 +26,6 @@ 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() NestedProviderRequest`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *ProviderNetworkRequest) GetProviderOk() (*NestedProviderRequest, 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 NestedProviderRequest)`
-
-SetProvider sets Provider field to given value.
-
-
### GetName
`func (o *ProviderNetworkRequest) GetName() string`
@@ -71,31 +46,6 @@ 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`
@@ -121,81 +71,6 @@ 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 c03de9ce67..a7e51837e8 100644
--- a/docs/ProviderRequest.md
+++ b/docs/ProviderRequest.md
@@ -6,12 +6,7 @@ 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
@@ -72,31 +67,6 @@ 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`
@@ -122,106 +92,6 @@ 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/RIR.md b/docs/RIR.md
index 407ca4fee4..2c027c73a1 100644
--- a/docs/RIR.md
+++ b/docs/RIR.md
@@ -9,19 +9,14 @@ Name | Type | Description | Notes
**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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**AggregateCount** | **int32** | | [readonly]
+**AggregateCount** | **int64** | | [readonly]
## Methods
### NewRIR
-`func NewRIR(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int32, ) *RIR`
+`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR`
NewRIR instantiates a new RIR object
This constructor will assign default values to properties that have it defined,
@@ -136,31 +131,6 @@ 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`
@@ -186,132 +156,22 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *RIR) GetAggregateCount() int64`
GetAggregateCount returns the AggregateCount field if non-nil, zero value otherwise.
### GetAggregateCountOk
-`func (o *RIR) GetAggregateCountOk() (*int32, bool)`
+`func (o *RIR) GetAggregateCountOk() (*int64, bool)`
GetAggregateCountOk returns a tuple with the AggregateCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAggregateCount
-`func (o *RIR) SetAggregateCount(v int32)`
+`func (o *RIR) SetAggregateCount(v int64)`
SetAggregateCount sets AggregateCount field to given value.
diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md
index 761c2570e4..3a102b34c4 100644
--- a/docs/RIRRequest.md
+++ b/docs/RIRRequest.md
@@ -6,10 +6,7 @@ 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
@@ -70,31 +67,6 @@ 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`
@@ -120,56 +92,6 @@ 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 c605fde5ea..5628a5efc9 100644
--- a/docs/Rack.md
+++ b/docs/Rack.md
@@ -8,40 +8,14 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**FacilityId** | Pointer to **NullableString** | | [optional]
-**Site** | [**NestedSite**](NestedSite.md) | |
-**Location** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRackRole**](NestedRackRole.md) | | [optional]
-**Serial** | Pointer to **string** | | [optional]
-**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional]
-**Type** | Pointer to [**NullableRackType**](RackType.md) | | [optional]
-**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional]
-**UHeight** | Pointer to **int32** | Height in rack units | [optional]
-**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional]
-**Weight** | Pointer to **NullableFloat64** | | [optional]
-**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional]
-**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional]
-**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]
**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]
-**DeviceCount** | **int32** | | [readonly]
-**PowerfeedCount** | **int32** | | [readonly]
+**DeviceCount** | **int64** | | [readonly]
## Methods
### NewRack
-`func NewRack(id int32, url string, display string, name string, site NestedSite, created NullableTime, lastUpdated NullableTime, deviceCount int32, powerfeedCount int32, ) *Rack`
+`func NewRack(id int32, url string, display string, name string, deviceCount int64, ) *Rack`
NewRack instantiates a new Rack object
This constructor will assign default values to properties that have it defined,
@@ -136,631 +110,6 @@ 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() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *Rack) GetSiteOk() (*NestedSite, 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 NestedSite)`
-
-SetSite sets Site field to given value.
-
-
-### GetLocation
-
-`func (o *Rack) GetLocation() NestedLocation`
-
-GetLocation returns the Location field if non-nil, zero value otherwise.
-
-### GetLocationOk
-
-`func (o *Rack) GetLocationOk() (*NestedLocation, 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 NestedLocation)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Rack) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Rack) SetTenant(v NestedTenant)`
-
-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() NestedRackRole`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *Rack) GetRoleOk() (*NestedRackRole, 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 NestedRackRole)`
-
-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
-### GetType
-
-`func (o *Rack) GetType() RackType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *Rack) GetTypeOk() (*RackType, 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 *Rack) SetType(v RackType)`
-
-SetType sets Type field to given value.
-
-### HasType
-
-`func (o *Rack) HasType() bool`
-
-HasType returns a boolean if a field has been set.
-
-### SetTypeNil
-
-`func (o *Rack) SetTypeNil(b bool)`
-
- SetTypeNil sets the value for Type to be an explicit nil
-
-### UnsetType
-`func (o *Rack) UnsetType()`
-
-UnsetType ensures that no value is present for Type, 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
### GetDescription
`func (o *Rack) GetDescription() string`
@@ -786,181 +135,26 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *Rack) GetDeviceCount() int64`
GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
### GetDeviceCountOk
-`func (o *Rack) GetDeviceCountOk() (*int32, bool)`
+`func (o *Rack) 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 *Rack) SetDeviceCount(v int32)`
+`func (o *Rack) SetDeviceCount(v int64)`
SetDeviceCount sets DeviceCount field to given value.
-### GetPowerfeedCount
-
-`func (o *Rack) GetPowerfeedCount() int32`
-
-GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise.
-
-### GetPowerfeedCountOk
-
-`func (o *Rack) GetPowerfeedCountOk() (*int32, 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 int32)`
-
-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/RackFace.md b/docs/RackFace.md
index 10bfeb07cb..3a2634598e 100644
--- a/docs/RackFace.md
+++ b/docs/RackFace.md
@@ -7,8 +7,6 @@
* `REAR` (value: `"rear"`)
-* `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/RackFace1.md
similarity index 68%
rename from docs/DeviceTypeRequestSubdeviceRole.md
rename to docs/RackFace1.md
index b25ddf7650..18c6ac0aef 100644
--- a/docs/DeviceTypeRequestSubdeviceRole.md
+++ b/docs/RackFace1.md
@@ -1,11 +1,11 @@
-# DeviceTypeRequestSubdeviceRole
+# RackFace1
## Enum
-* `PARENT` (value: `"parent"`)
+* `FRONT` (value: `"front"`)
-* `CHILD` (value: `"child"`)
+* `REAR` (value: `"rear"`)
* `EMPTY` (value: `""`)
diff --git a/docs/RackOuterUnit.md b/docs/RackOuterUnit.md
deleted file mode 100644
index 09a88910f6..0000000000
--- a/docs/RackOuterUnit.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# RackOuterUnit
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.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() PatchedWritableRackRequestOuterUnit`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, 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 PatchedWritableRackRequestOuterUnit)`
-
-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/RackRequest.md b/docs/RackRequest.md
index afea025fdc..fdc2c2dd55 100644
--- a/docs/RackRequest.md
+++ b/docs/RackRequest.md
@@ -5,36 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**FacilityId** | Pointer to **NullableString** | | [optional]
-**Site** | [**NestedSiteRequest**](NestedSiteRequest.md) | |
-**Location** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRackRoleRequest**](NestedRackRoleRequest.md) | | [optional]
-**Serial** | Pointer to **string** | | [optional]
-**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional]
-**Type** | Pointer to [**NullableRackRequestType**](RackRequestType.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 [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.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]
**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, site NestedSiteRequest, ) *RackRequest`
+`func NewRackRequest(name string, ) *RackRequest`
NewRackRequest instantiates a new RackRequest object
This constructor will assign default values to properties that have it defined,
@@ -69,631 +46,6 @@ 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() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *RackRequest) GetSiteOk() (*NestedSiteRequest, 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 NestedSiteRequest)`
-
-SetSite sets Site field to given value.
-
-
-### GetLocation
-
-`func (o *RackRequest) GetLocation() NestedLocationRequest`
-
-GetLocation returns the Location field if non-nil, zero value otherwise.
-
-### GetLocationOk
-
-`func (o *RackRequest) GetLocationOk() (*NestedLocationRequest, 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 NestedLocationRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *RackRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *RackRequest) SetTenant(v NestedTenantRequest)`
-
-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() NestedRackRoleRequest`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *RackRequest) GetRoleOk() (*NestedRackRoleRequest, 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 NestedRackRoleRequest)`
-
-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
-### GetType
-
-`func (o *RackRequest) GetType() RackRequestType`
-
-GetType returns the Type field if non-nil, zero value otherwise.
-
-### GetTypeOk
-
-`func (o *RackRequest) GetTypeOk() (*RackRequestType, 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 *RackRequest) SetType(v RackRequestType)`
-
-SetType sets Type field to given value.
-
-### HasType
-
-`func (o *RackRequest) HasType() bool`
-
-HasType returns a boolean if a field has been set.
-
-### SetTypeNil
-
-`func (o *RackRequest) SetTypeNil(b bool)`
-
- SetTypeNil sets the value for Type to be an explicit nil
-
-### UnsetType
-`func (o *RackRequest) UnsetType()`
-
-UnsetType ensures that no value is present for Type, 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() RackRequestOuterUnit`
-
-GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise.
-
-### GetOuterUnitOk
-
-`func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, 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 RackRequestOuterUnit)`
-
-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
### GetDescription
`func (o *RackRequest) GetDescription() string`
@@ -719,81 +71,6 @@ 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/RackRequestType.md b/docs/RackRequestType.md
deleted file mode 100644
index 410f30589b..0000000000
--- a/docs/RackRequestType.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# RackRequestType
-
-## 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/RackReservation.md b/docs/RackReservation.md
index 5fc843b609..d8fdbd2ff4 100644
--- a/docs/RackReservation.md
+++ b/docs/RackReservation.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Rack** | [**NestedRack**](NestedRack.md) | |
+**Rack** | [**Rack**](Rack.md) | |
**Units** | **[]int32** | |
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**User** | [**NestedUser**](NestedUser.md) | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**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]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewRackReservation
-`func NewRackReservation(id int32, url string, display string, rack NestedRack, units []int32, created NullableTime, lastUpdated NullableTime, user NestedUser, description string, ) *RackReservation`
+`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,
@@ -99,20 +99,20 @@ SetDisplay sets Display field to given value.
### GetRack
-`func (o *RackReservation) GetRack() NestedRack`
+`func (o *RackReservation) GetRack() Rack`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *RackReservation) GetRackOk() (*NestedRack, bool)`
+`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 NestedRack)`
+`func (o *RackReservation) SetRack(v Rack)`
SetRack sets Rack field to given value.
@@ -199,40 +199,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() NestedUser`
+`func (o *RackReservation) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *RackReservation) GetUserOk() (*NestedUser, bool)`
+`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 NestedUser)`
+`func (o *RackReservation) SetUser(v User)`
SetUser sets User field to given value.
### GetTenant
-`func (o *RackReservation) GetTenant() NestedTenant`
+`func (o *RackReservation) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *RackReservation) GetTenantOk() (*NestedTenant, bool)`
+`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 NestedTenant)`
+`func (o *RackReservation) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md
index 108a18e5b5..e87e36a898 100644
--- a/docs/RackReservationRequest.md
+++ b/docs/RackReservationRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Rack** | [**NestedRackRequest**](NestedRackRequest.md) | |
+**Rack** | [**RackRequest**](RackRequest.md) | |
**Units** | **[]int32** | |
-**User** | [**NestedUserRequest**](NestedUserRequest.md) | |
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**User** | [**UserRequest**](UserRequest.md) | |
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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 NestedRackRequest, units []int32, user NestedUserRequest, description string, ) *RackReservationRequest`
+`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, 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() NestedRackRequest`
+`func (o *RackReservationRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *RackReservationRequest) GetRackOk() (*NestedRackRequest, bool)`
+`func (o *RackReservationRequest) 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 *RackReservationRequest) SetRack(v NestedRackRequest)`
+`func (o *RackReservationRequest) SetRack(v RackRequest)`
SetRack sets Rack field to given value.
@@ -74,40 +74,40 @@ SetUnits sets Units field to given value.
### GetUser
-`func (o *RackReservationRequest) GetUser() NestedUserRequest`
+`func (o *RackReservationRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *RackReservationRequest) GetUserOk() (*NestedUserRequest, bool)`
+`func (o *RackReservationRequest) GetUserOk() (*UserRequest, 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 NestedUserRequest)`
+`func (o *RackReservationRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
### GetTenant
-`func (o *RackReservationRequest) GetTenant() NestedTenantRequest`
+`func (o *RackReservationRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *RackReservationRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *RackReservationRequest) 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 *RackReservationRequest) SetTenant(v NestedTenantRequest)`
+`func (o *RackReservationRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/RackRole.md b/docs/RackRole.md
index 448892a1a2..a13905573c 100644
--- a/docs/RackRole.md
+++ b/docs/RackRole.md
@@ -15,13 +15,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**RackCount** | **int32** | | [readonly]
+**RackCount** | **int64** | | [readonly]
## Methods
### NewRackRole
-`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int32, ) *RackRole`
+`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole`
NewRackRole instantiates a new RackRole object
This constructor will assign default values to properties that have it defined,
@@ -298,20 +298,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetRackCount
-`func (o *RackRole) GetRackCount() int32`
+`func (o *RackRole) GetRackCount() int64`
GetRackCount returns the RackCount field if non-nil, zero value otherwise.
### GetRackCountOk
-`func (o *RackRole) GetRackCountOk() (*int32, bool)`
+`func (o *RackRole) 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 *RackRole) SetRackCount(v int32)`
+`func (o *RackRole) SetRackCount(v int64)`
SetRackCount sets RackCount field to given value.
diff --git a/docs/RackStatus.md b/docs/RackStatus.md
deleted file mode 100644
index 414f07ddeb..0000000000
--- a/docs/RackStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 0b700039e6..0000000000
--- a/docs/RackStatusLabel.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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
deleted file mode 100644
index aa761d4530..0000000000
--- a/docs/RackType.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# RackType
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional]
-**Label** | Pointer to [**RackTypeLabel**](RackTypeLabel.md) | | [optional]
-
-## Methods
-
-### NewRackType
-
-`func NewRackType() *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
-
-### GetValue
-
-`func (o *RackType) GetValue() PatchedWritableRackRequestType`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`func (o *RackType) GetValueOk() (*PatchedWritableRackRequestType, 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 *RackType) SetValue(v PatchedWritableRackRequestType)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *RackType) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *RackType) GetLabel() RackTypeLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *RackType) GetLabelOk() (*RackTypeLabel, 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 *RackType) SetLabel(v RackTypeLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *RackType) 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/RackTypeLabel.md b/docs/RackTypeLabel.md
deleted file mode 100644
index 286a95c70d..0000000000
--- a/docs/RackTypeLabel.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# RackTypeLabel
-
-## 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/RackUnit.md b/docs/RackUnit.md
index c9af885f8a..507d76f97f 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** | [**NestedDevice**](NestedDevice.md) | | [readonly]
+**Device** | [**Device**](Device.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 NestedDevice, occupied bool, display string, ) *RackUnit`
+`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, 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() NestedDevice`
+`func (o *RackUnit) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *RackUnit) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *RackUnit) 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 *RackUnit) SetDevice(v NestedDevice)`
+`func (o *RackUnit) SetDevice(v Device)`
SetDevice sets Device field to given value.
diff --git a/docs/RackWidth.md b/docs/RackWidth.md
deleted file mode 100644
index 04b03ffe83..0000000000
--- a/docs/RackWidth.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# RackWidth
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional]
-**Label** | Pointer to [**RackWidthLabel**](RackWidthLabel.md) | | [optional]
-
-## Methods
-
-### NewRackWidth
-
-`func NewRackWidth() *RackWidth`
-
-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
-
-### NewRackWidthWithDefaults
-
-`func NewRackWidthWithDefaults() *RackWidth`
-
-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 *RackWidth) GetValue() RackWidthValue`
-
-GetValue returns the Value field if non-nil, zero value otherwise.
-
-### GetValueOk
-
-`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 *RackWidth) SetValue(v RackWidthValue)`
-
-SetValue sets Value field to given value.
-
-### HasValue
-
-`func (o *RackWidth) HasValue() bool`
-
-HasValue returns a boolean if a field has been set.
-
-### GetLabel
-
-`func (o *RackWidth) GetLabel() RackWidthLabel`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`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 *RackWidth) SetLabel(v RackWidthLabel)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *RackWidth) 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/RackWidthLabel.md b/docs/RackWidthLabel.md
deleted file mode 100644
index c6fa6cba1a..0000000000
--- a/docs/RackWidthLabel.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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/RearPort.md b/docs/RearPort.md
index a3b8fe9702..18ec1face6 100644
--- a/docs/RearPort.md
+++ b/docs/RearPort.md
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Module** | Pointer to [**NullableComponentNestedModule**](ComponentNestedModule.md) | | [optional]
+**Device** | [**Device**](Device.md) | |
+**Module** | Pointer to [**NullableModule**](Module.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | [**FrontPortType**](FrontPortType.md) | |
@@ -16,7 +16,7 @@ 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** | [**NullableNestedCable**](NestedCable.md) | | [readonly]
+**Cable** | [**NullableCable**](Cable.md) | | [readonly]
**CableEnd** | **string** | | [readonly]
**LinkPeers** | **[]interface{}** | | [readonly]
**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly]
@@ -30,7 +30,7 @@ Name | Type | Description | Notes
### NewRearPort
-`func NewRearPort(id int32, url string, display string, device NestedDevice, name string, type_ FrontPortType, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort`
+`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`
NewRearPort instantiates a new RearPort object
This constructor will assign default values to properties that have it defined,
@@ -107,40 +107,40 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *RearPort) GetDevice() NestedDevice`
+`func (o *RearPort) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *RearPort) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *RearPort) 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 *RearPort) SetDevice(v NestedDevice)`
+`func (o *RearPort) SetDevice(v Device)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *RearPort) GetModule() ComponentNestedModule`
+`func (o *RearPort) GetModule() Module`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *RearPort) GetModuleOk() (*ComponentNestedModule, bool)`
+`func (o *RearPort) 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 *RearPort) SetModule(v ComponentNestedModule)`
+`func (o *RearPort) SetModule(v Module)`
SetModule sets Module field to given value.
@@ -327,20 +327,20 @@ HasMarkConnected returns a boolean if a field has been set.
### GetCable
-`func (o *RearPort) GetCable() NestedCable`
+`func (o *RearPort) GetCable() Cable`
GetCable returns the Cable field if non-nil, zero value otherwise.
### GetCableOk
-`func (o *RearPort) GetCableOk() (*NestedCable, bool)`
+`func (o *RearPort) 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 *RearPort) SetCable(v NestedCable)`
+`func (o *RearPort) SetCable(v Cable)`
SetCable sets Cable field to given value.
diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md
index 95a17250f6..3555c4450e 100644
--- a/docs/RearPortRequest.md
+++ b/docs/RearPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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 NestedDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest`
+`func NewRearPortRequest(device DeviceRequest, 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() NestedDeviceRequest`
+`func (o *RearPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *RearPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *RearPortRequest) 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 *RearPortRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *RearPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *RearPortRequest) GetModule() ComponentNestedModuleRequest`
+`func (o *RearPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *RearPortRequest) GetModuleOk() (*ComponentNestedModuleRequest, bool)`
+`func (o *RearPortRequest) 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 *RearPortRequest) SetModule(v ComponentNestedModuleRequest)`
+`func (o *RearPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md
index deeade4af2..004494da36 100644
--- a/docs/RearPortTemplate.md
+++ b/docs/RearPortTemplate.md
@@ -7,22 +7,14 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional]
**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewRearPortTemplate
-`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime, ) *RearPortTemplate`
+`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,
@@ -97,76 +89,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetDeviceType
-
-`func (o *RearPortTemplate) GetDeviceType() NestedDeviceType`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *RearPortTemplate) GetDeviceTypeOk() (*NestedDeviceType, 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 NestedDeviceType)`
-
-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() NestedModuleType`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *RearPortTemplate) GetModuleTypeOk() (*NestedModuleType, 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 NestedModuleType)`
-
-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`
@@ -187,101 +109,6 @@ 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`
@@ -307,66 +134,6 @@ 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.
-
-
-### 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.
-
-
-### 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 d8cba32f50..d139cde910 100644
--- a/docs/RearPortTemplateRequest.md
+++ b/docs/RearPortTemplateRequest.md
@@ -4,20 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional]
-**ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional]
**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**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, type_ FrontPortTypeValue, ) *RearPortTemplateRequest`
+`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest`
NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -32,76 +26,6 @@ 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() NestedDeviceTypeRequest`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, 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 NestedDeviceTypeRequest)`
-
-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() NestedModuleTypeRequest`
-
-GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
-
-### GetModuleTypeOk
-
-`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*NestedModuleTypeRequest, 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 NestedModuleTypeRequest)`
-
-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`
@@ -122,101 +46,6 @@ 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.md b/docs/Region.md
index 03096f87e6..f7c3a1a817 100644
--- a/docs/Region.md
+++ b/docs/Region.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**SiteCount** | **int32** | | [readonly]
+**SiteCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
diff --git a/docs/Role.md b/docs/Role.md
index d3619f6ff8..5054c3ea7e 100644
--- a/docs/Role.md
+++ b/docs/Role.md
@@ -9,20 +9,15 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
-**Weight** | Pointer to **int32** | | [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]
-**PrefixCount** | **int32** | | [readonly]
-**VlanCount** | **int32** | | [readonly]
+**PrefixCount** | **int64** | | [readonly]
+**VlanCount** | **int64** | | [readonly]
## Methods
### NewRole
-`func NewRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, prefixCount int32, vlanCount int32, ) *Role`
+`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,
@@ -137,31 +132,6 @@ 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`
@@ -187,152 +157,42 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
+`func (o *Role) GetPrefixCount() int64`
GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise.
### GetPrefixCountOk
-`func (o *Role) GetPrefixCountOk() (*int32, bool)`
+`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 int32)`
+`func (o *Role) SetPrefixCount(v int64)`
SetPrefixCount sets PrefixCount field to given value.
### GetVlanCount
-`func (o *Role) GetVlanCount() int32`
+`func (o *Role) GetVlanCount() int64`
GetVlanCount returns the VlanCount field if non-nil, zero value otherwise.
### GetVlanCountOk
-`func (o *Role) GetVlanCountOk() (*int32, bool)`
+`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 int32)`
+`func (o *Role) SetVlanCount(v int64)`
SetVlanCount sets VlanCount field to given value.
diff --git a/docs/RoleRequest.md b/docs/RoleRequest.md
index 8a35bd48f6..4ea26627a6 100644
--- a/docs/RoleRequest.md
+++ b/docs/RoleRequest.md
@@ -6,10 +6,7 @@ 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
@@ -70,31 +67,6 @@ 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`
@@ -120,56 +92,6 @@ 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 3d5ab63886..55b89b478d 100644
--- a/docs/RouteTarget.md
+++ b/docs/RouteTarget.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | Route target value (formatted in accordance with RFC 4360) |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
@@ -117,20 +117,20 @@ SetName sets Name field to given value.
### GetTenant
-`func (o *RouteTarget) GetTenant() NestedTenant`
+`func (o *RouteTarget) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *RouteTarget) GetTenantOk() (*NestedTenant, bool)`
+`func (o *RouteTarget) 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 *RouteTarget) SetTenant(v NestedTenant)`
+`func (o *RouteTarget) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md
index b17a899ad3..2627327d1b 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 [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [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]
@@ -52,20 +52,20 @@ SetName sets Name field to given value.
### GetTenant
-`func (o *RouteTargetRequest) GetTenant() NestedTenantRequest`
+`func (o *RouteTargetRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *RouteTargetRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *RouteTargetRequest) 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 *RouteTargetRequest) SetTenant(v NestedTenantRequest)`
+`func (o *RouteTargetRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md
index ebc998a6d7..78ce2dbcbe 100644
--- a/docs/SavedFilter.md
+++ b/docs/SavedFilter.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Slug** | **string** | |
**Description** | Pointer to **string** | | [optional]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewSavedFilter
-`func NewSavedFilter(id int32, url string, display string, contentTypes []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{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter`
NewSavedFilter instantiates a new SavedFilter object
This constructor will assign default values to properties that have it defined,
@@ -98,24 +98,24 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetContentTypes
+### GetObjectTypes
-`func (o *SavedFilter) GetContentTypes() []string`
+`func (o *SavedFilter) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *SavedFilter) GetContentTypesOk() (*[]string, bool)`
+`func (o *SavedFilter) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *SavedFilter) SetContentTypes(v []string)`
+`func (o *SavedFilter) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/SavedFilterRequest.md b/docs/SavedFilterRequest.md
index bc080797a7..a4f42b0ca7 100644
--- a/docs/SavedFilterRequest.md
+++ b/docs/SavedFilterRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Name** | **string** | |
**Slug** | **string** | |
**Description** | Pointer to **string** | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewSavedFilterRequest
-`func NewSavedFilterRequest(contentTypes []string, name string, slug string, parameters interface{}, ) *SavedFilterRequest`
+`func NewSavedFilterRequest(objectTypes []string, name string, slug string, parameters interface{}, ) *SavedFilterRequest`
NewSavedFilterRequest instantiates a new SavedFilterRequest object
This constructor will assign default values to properties that have it defined,
@@ -33,24 +33,24 @@ NewSavedFilterRequestWithDefaults instantiates a new SavedFilterRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *SavedFilterRequest) GetContentTypes() []string`
+`func (o *SavedFilterRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *SavedFilterRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *SavedFilterRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *SavedFilterRequest) SetContentTypes(v []string)`
+`func (o *SavedFilterRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md
index 5d4e28290d..21435ca5df 100644
--- a/docs/SchemaAPI.md
+++ b/docs/SchemaAPI.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
## SchemaRetrieve
-> map[string]interface{} SchemaRetrieve(ctx).Format(format).Execute()
+> map[string]interface{} SchemaRetrieve(ctx).Format(format).Lang(lang).Execute()
@@ -25,15 +25,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ 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).Execute()
+ 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)
@@ -55,6 +56,7 @@ Other parameters are passed through a pointer to a apiSchemaRetrieveRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**format** | [**SchemaRetrieveFormatParameter**](SchemaRetrieveFormatParameter.md) | |
+ **lang** | [**SchemaRetrieveLangParameter**](SchemaRetrieveLangParameter.md) | |
### Return type
diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md
new file mode 100644
index 0000000000..aed2056cbe
--- /dev/null
+++ b/docs/SchemaRetrieveLangParameter.md
@@ -0,0 +1,29 @@
+# SchemaRetrieveLangParameter
+
+## Enum
+
+
+* `DE` (value: `"de"`)
+
+* `EN` (value: `"en"`)
+
+* `ES` (value: `"es"`)
+
+* `FR` (value: `"fr"`)
+
+* `JA` (value: `"ja"`)
+
+* `PT` (value: `"pt"`)
+
+* `RU` (value: `"ru"`)
+
+* `TR` (value: `"tr"`)
+
+* `UK` (value: `"uk"`)
+
+* `ZH` (value: `"zh"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Script.md b/docs/Script.md
new file mode 100644
index 0000000000..e8ce7b887c
--- /dev/null
+++ b/docs/Script.md
@@ -0,0 +1,229 @@
+# Script
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int32** | | [readonly]
+**Url** | **string** | | [readonly]
+**Module** | **int32** | | [readonly]
+**Name** | **string** | | [readonly]
+**Description** | **string** | | [readonly]
+**Vars** | **interface{}** | | [readonly]
+**Result** | [**Job**](Job.md) | | [readonly]
+**Display** | **string** | | [readonly]
+**IsExecutable** | **bool** | | [readonly]
+
+## Methods
+
+### NewScript
+
+`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script`
+
+NewScript instantiates a new Script object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewScriptWithDefaults
+
+`func NewScriptWithDefaults() *Script`
+
+NewScriptWithDefaults instantiates a new Script object
+This 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 *Script) GetId() int32`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *Script) 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 *Script) SetId(v int32)`
+
+SetId sets Id field to given value.
+
+
+### GetUrl
+
+`func (o *Script) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *Script) 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 *Script) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetModule
+
+`func (o *Script) GetModule() int32`
+
+GetModule returns the Module field if non-nil, zero value otherwise.
+
+### GetModuleOk
+
+`func (o *Script) GetModuleOk() (*int32, 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 *Script) SetModule(v int32)`
+
+SetModule sets Module field to given value.
+
+
+### GetName
+
+`func (o *Script) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *Script) 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 *Script) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *Script) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *Script) 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 *Script) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+
+### GetVars
+
+`func (o *Script) GetVars() interface{}`
+
+GetVars returns the Vars field if non-nil, zero value otherwise.
+
+### GetVarsOk
+
+`func (o *Script) GetVarsOk() (*interface{}, bool)`
+
+GetVarsOk returns a tuple with the Vars field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVars
+
+`func (o *Script) SetVars(v interface{})`
+
+SetVars sets Vars field to given value.
+
+
+### SetVarsNil
+
+`func (o *Script) SetVarsNil(b bool)`
+
+ SetVarsNil sets the value for Vars to be an explicit nil
+
+### UnsetVars
+`func (o *Script) UnsetVars()`
+
+UnsetVars ensures that no value is present for Vars, not even an explicit nil
+### GetResult
+
+`func (o *Script) GetResult() Job`
+
+GetResult returns the Result field if non-nil, zero value otherwise.
+
+### GetResultOk
+
+`func (o *Script) GetResultOk() (*Job, 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)`
+
+SetResult sets Result field to given value.
+
+
+### GetDisplay
+
+`func (o *Script) GetDisplay() string`
+
+GetDisplay returns the Display field if non-nil, zero value otherwise.
+
+### GetDisplayOk
+
+`func (o *Script) 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 *Script) SetDisplay(v string)`
+
+SetDisplay sets Display field to given value.
+
+
+### GetIsExecutable
+
+`func (o *Script) GetIsExecutable() bool`
+
+GetIsExecutable returns the IsExecutable field if non-nil, zero value otherwise.
+
+### GetIsExecutableOk
+
+`func (o *Script) GetIsExecutableOk() (*bool, bool)`
+
+GetIsExecutableOk returns a tuple with the IsExecutable field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIsExecutable
+
+`func (o *Script) SetIsExecutable(v bool)`
+
+SetIsExecutable sets IsExecutable 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/Service.md b/docs/Service.md
index 6a6bfe5660..230dccd710 100644
--- a/docs/Service.md
+++ b/docs/Service.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Device** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional]
-**VirtualMachine** | Pointer to [**NullableNestedVirtualMachine**](NestedVirtualMachine.md) | | [optional]
+**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional]
+**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional]
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional]
-**Ipaddresses** | Pointer to **[]int32** | | [optional]
+**Ports** | **[]int32** | |
+**Ipaddresses** | Pointer to [**[]IPAddress**](IPAddress.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
@@ -101,20 +101,20 @@ SetDisplay sets Display field to given value.
### GetDevice
-`func (o *Service) GetDevice() NestedDevice`
+`func (o *Service) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *Service) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *Service) 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 *Service) SetDevice(v NestedDevice)`
+`func (o *Service) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -136,20 +136,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() NestedVirtualMachine`
+`func (o *Service) GetVirtualMachine() VirtualMachine`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *Service) GetVirtualMachineOk() (*NestedVirtualMachine, bool)`
+`func (o *Service) 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 *Service) SetVirtualMachine(v NestedVirtualMachine)`
+`func (o *Service) SetVirtualMachine(v VirtualMachine)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -189,26 +189,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
-
-`func (o *Service) GetPorts() []int32`
-
-GetPorts returns the Ports field if non-nil, zero value otherwise.
-
-### GetPortsOk
-
-`func (o *Service) 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 *Service) SetPorts(v []int32)`
-
-SetPorts sets Ports field to given value.
-
-
### GetProtocol
`func (o *Service) GetProtocol() ServiceProtocol`
@@ -234,22 +214,42 @@ SetProtocol sets Protocol field to given value.
HasProtocol returns a boolean if a field has been set.
+### GetPorts
+
+`func (o *Service) GetPorts() []int32`
+
+GetPorts returns the Ports field if non-nil, zero value otherwise.
+
+### GetPortsOk
+
+`func (o *Service) 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 *Service) SetPorts(v []int32)`
+
+SetPorts sets Ports field to given value.
+
+
### GetIpaddresses
-`func (o *Service) GetIpaddresses() []int32`
+`func (o *Service) GetIpaddresses() []IPAddress`
GetIpaddresses returns the Ipaddresses field if non-nil, zero value otherwise.
### GetIpaddressesOk
-`func (o *Service) GetIpaddressesOk() (*[]int32, bool)`
+`func (o *Service) GetIpaddressesOk() (*[]IPAddress, 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 *Service) SetIpaddresses(v []int32)`
+`func (o *Service) SetIpaddresses(v []IPAddress)`
SetIpaddresses sets Ipaddresses field to given value.
diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md
index a702cb7a5e..bfabf2ad6a 100644
--- a/docs/ServiceRequest.md
+++ b/docs/ServiceRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional]
-**VirtualMachine** | Pointer to [**NullableNestedVirtualMachineRequest**](NestedVirtualMachineRequest.md) | | [optional]
+**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional]
+**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional]
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
+**Ports** | **[]int32** | |
**Ipaddresses** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *ServiceRequest) GetDevice() NestedDeviceRequest`
+`func (o *ServiceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *ServiceRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *ServiceRequest) 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 *ServiceRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *ServiceRequest) SetDevice(v DeviceRequest)`
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() NestedVirtualMachineRequest`
+`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *ServiceRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool)`
+`func (o *ServiceRequest) 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 *ServiceRequest) SetVirtualMachine(v NestedVirtualMachineRequest)`
+`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -124,26 +124,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
-
-`func (o *ServiceRequest) GetPorts() []int32`
-
-GetPorts returns the Ports field if non-nil, zero value otherwise.
-
-### GetPortsOk
-
-`func (o *ServiceRequest) 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 *ServiceRequest) SetPorts(v []int32)`
-
-SetPorts sets Ports field to given value.
-
-
### GetProtocol
`func (o *ServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
@@ -169,6 +149,26 @@ SetProtocol sets Protocol field to given value.
HasProtocol returns a boolean if a field has been set.
+### GetPorts
+
+`func (o *ServiceRequest) GetPorts() []int32`
+
+GetPorts returns the Ports field if non-nil, zero value otherwise.
+
+### GetPortsOk
+
+`func (o *ServiceRequest) 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 *ServiceRequest) SetPorts(v []int32)`
+
+SetPorts sets Ports field to given value.
+
+
### GetIpaddresses
`func (o *ServiceRequest) GetIpaddresses() []int32`
diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md
index a3d7bda163..a83d4f5cbf 100644
--- a/docs/ServiceTemplate.md
+++ b/docs/ServiceTemplate.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional]
+**Ports** | **[]int32** | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
@@ -116,26 +116,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
-
-`func (o *ServiceTemplate) GetPorts() []int32`
-
-GetPorts returns the Ports field if non-nil, zero value otherwise.
-
-### GetPortsOk
-
-`func (o *ServiceTemplate) 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 *ServiceTemplate) SetPorts(v []int32)`
-
-SetPorts sets Ports field to given value.
-
-
### GetProtocol
`func (o *ServiceTemplate) GetProtocol() ServiceProtocol`
@@ -161,6 +141,26 @@ SetProtocol sets Protocol field to given value.
HasProtocol returns a boolean if a field has been set.
+### GetPorts
+
+`func (o *ServiceTemplate) GetPorts() []int32`
+
+GetPorts returns the Ports field if non-nil, zero value otherwise.
+
+### GetPortsOk
+
+`func (o *ServiceTemplate) 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 *ServiceTemplate) SetPorts(v []int32)`
+
+SetPorts sets Ports field to given value.
+
+
### GetDescription
`func (o *ServiceTemplate) GetDescription() string`
diff --git a/docs/ServiceTemplateRequest.md b/docs/ServiceTemplateRequest.md
index 7875fcd355..958ba8a4ec 100644
--- a/docs/ServiceTemplateRequest.md
+++ b/docs/ServiceTemplateRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional]
+**Ports** | **[]int32** | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -51,26 +51,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
-
-`func (o *ServiceTemplateRequest) GetPorts() []int32`
-
-GetPorts returns the Ports field if non-nil, zero value otherwise.
-
-### GetPortsOk
-
-`func (o *ServiceTemplateRequest) 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 *ServiceTemplateRequest) SetPorts(v []int32)`
-
-SetPorts sets Ports field to given value.
-
-
### GetProtocol
`func (o *ServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
@@ -96,6 +76,26 @@ SetProtocol sets Protocol field to given value.
HasProtocol returns a boolean if a field has been set.
+### GetPorts
+
+`func (o *ServiceTemplateRequest) GetPorts() []int32`
+
+GetPorts returns the Ports field if non-nil, zero value otherwise.
+
+### GetPortsOk
+
+`func (o *ServiceTemplateRequest) 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 *ServiceTemplateRequest) SetPorts(v []int32)`
+
+SetPorts sets Ports field to given value.
+
+
### GetDescription
`func (o *ServiceTemplateRequest) GetDescription() string`
diff --git a/docs/Site.md b/docs/Site.md
index e35992628b..0458e57f6f 100644
--- a/docs/Site.md
+++ b/docs/Site.md
@@ -9,35 +9,13 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | Full name of the site |
**Slug** | **string** | |
-**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional]
-**Region** | Pointer to [**NullableNestedRegion**](NestedRegion.md) | | [optional]
-**Group** | Pointer to [**NullableNestedSiteGroup**](NestedSiteGroup.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.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 [**[]NestedASN**](NestedASN.md) | | [optional]
-**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**CircuitCount** | **int32** | | [readonly]
-**DeviceCount** | **int32** | | [readonly]
-**PrefixCount** | **int32** | | [readonly]
-**RackCount** | **int32** | | [readonly]
-**VirtualmachineCount** | **int32** | | [readonly]
-**VlanCount** | **int32** | | [readonly]
## Methods
### NewSite
-`func NewSite(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int32, deviceCount int32, prefixCount int32, rackCount int32, virtualmachineCount int32, vlanCount int32, ) *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,
@@ -152,196 +130,6 @@ 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() NestedRegion`
-
-GetRegion returns the Region field if non-nil, zero value otherwise.
-
-### GetRegionOk
-
-`func (o *Site) GetRegionOk() (*NestedRegion, 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 NestedRegion)`
-
-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() NestedSiteGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *Site) GetGroupOk() (*NestedSiteGroup, 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 NestedSiteGroup)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Site) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Site) SetTenant(v NestedTenant)`
-
-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`
@@ -367,406 +155,6 @@ 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() []NestedASN`
-
-GetAsns returns the Asns field if non-nil, zero value otherwise.
-
-### GetAsnsOk
-
-`func (o *Site) GetAsnsOk() (*[]NestedASN, 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 []NestedASN)`
-
-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.
-
-
-### 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.
-
-
-### 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() int32`
-
-GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise.
-
-### GetCircuitCountOk
-
-`func (o *Site) GetCircuitCountOk() (*int32, 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 int32)`
-
-SetCircuitCount sets CircuitCount field to given value.
-
-
-### GetDeviceCount
-
-`func (o *Site) GetDeviceCount() int32`
-
-GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
-
-### GetDeviceCountOk
-
-`func (o *Site) 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 *Site) SetDeviceCount(v int32)`
-
-SetDeviceCount sets DeviceCount field to given value.
-
-
-### GetPrefixCount
-
-`func (o *Site) GetPrefixCount() int32`
-
-GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise.
-
-### GetPrefixCountOk
-
-`func (o *Site) GetPrefixCountOk() (*int32, 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 int32)`
-
-SetPrefixCount sets PrefixCount field to given value.
-
-
-### GetRackCount
-
-`func (o *Site) GetRackCount() int32`
-
-GetRackCount returns the RackCount field if non-nil, zero value otherwise.
-
-### GetRackCountOk
-
-`func (o *Site) GetRackCountOk() (*int32, 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 int32)`
-
-SetRackCount sets RackCount field to given value.
-
-
-### GetVirtualmachineCount
-
-`func (o *Site) GetVirtualmachineCount() int32`
-
-GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
-
-### GetVirtualmachineCountOk
-
-`func (o *Site) GetVirtualmachineCountOk() (*int32, 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 int32)`
-
-SetVirtualmachineCount sets VirtualmachineCount field to given value.
-
-
-### GetVlanCount
-
-`func (o *Site) GetVlanCount() int32`
-
-GetVlanCount returns the VlanCount field if non-nil, zero value otherwise.
-
-### GetVlanCountOk
-
-`func (o *Site) GetVlanCountOk() (*int32, 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 int32)`
-
-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/SiteGroup.md b/docs/SiteGroup.md
index 91b9b80897..b97426cac7 100644
--- a/docs/SiteGroup.md
+++ b/docs/SiteGroup.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**SiteCount** | **int32** | | [readonly]
+**SiteCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md
index 0663a61179..b12c9721bb 100644
--- a/docs/SiteRequest.md
+++ b/docs/SiteRequest.md
@@ -6,21 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Full name of the site |
**Slug** | **string** | |
-**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Region** | Pointer to [**NullableNestedRegionRequest**](NestedRegionRequest.md) | | [optional]
-**Group** | Pointer to [**NullableNestedSiteGroupRequest**](NestedSiteGroupRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.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
@@ -81,196 +67,6 @@ 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() NestedRegionRequest`
-
-GetRegion returns the Region field if non-nil, zero value otherwise.
-
-### GetRegionOk
-
-`func (o *SiteRequest) GetRegionOk() (*NestedRegionRequest, 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 NestedRegionRequest)`
-
-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() NestedSiteGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *SiteRequest) GetGroupOk() (*NestedSiteGroupRequest, 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 NestedSiteGroupRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *SiteRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *SiteRequest) SetTenant(v NestedTenantRequest)`
-
-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`
@@ -296,226 +92,6 @@ 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/StatusAPI.md b/docs/StatusAPI.md
index 72029d1a23..f1f835d6c4 100644
--- a/docs/StatusAPI.md
+++ b/docs/StatusAPI.md
@@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/docs/Tag.md b/docs/Tag.md
index 648f9398ae..603faa5a08 100644
--- a/docs/Tag.md
+++ b/docs/Tag.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Color** | Pointer to **string** | | [optional]
**Description** | Pointer to **string** | | [optional]
**ObjectTypes** | Pointer to **[]string** | | [optional]
-**TaggedItems** | **int32** | | [readonly]
+**TaggedItems** | **int64** | | [readonly]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewTag
-`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int32, created NullableTime, lastUpdated NullableTime, ) *Tag`
+`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag`
NewTag instantiates a new Tag object
This constructor will assign default values to properties that have it defined,
@@ -212,20 +212,20 @@ HasObjectTypes returns a boolean if a field has been set.
### GetTaggedItems
-`func (o *Tag) GetTaggedItems() int32`
+`func (o *Tag) GetTaggedItems() int64`
GetTaggedItems returns the TaggedItems field if non-nil, zero value otherwise.
### GetTaggedItemsOk
-`func (o *Tag) GetTaggedItemsOk() (*int32, bool)`
+`func (o *Tag) GetTaggedItemsOk() (*int64, bool)`
GetTaggedItemsOk returns a tuple with the TaggedItems field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTaggedItems
-`func (o *Tag) SetTaggedItems(v int32)`
+`func (o *Tag) SetTaggedItems(v int64)`
SetTaggedItems sets TaggedItems field to given value.
diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md
index 279c614cc9..0314e63970 100644
--- a/docs/TenancyAPI.md
+++ b/docs/TenancyAPI.md
@@ -78,11 +78,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -142,11 +142,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -208,11 +208,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ContentType_example", int64(123), *openapiclient.NewNestedContactRequest("Name_example"))} // []ContactAssignmentRequest |
+ contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -274,11 +274,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ContentType_example", int64(123), int32(123), int32(123)) // WritableContactAssignmentRequest |
+ writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -340,7 +340,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -393,7 +393,7 @@ Name | Type | Description | Notes
## TenancyContactAssignmentsList
-> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).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).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).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -409,16 +409,12 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
contactId := []int32{int32(123)} // []int32 | Contact (ID) (optional)
contactIdN := []int32{int32(123)} // []int32 | Contact (ID) (optional)
- contentType := "contentType_example" // string | (optional)
- contentTypeN := "contentTypeN_example" // string | (optional)
- contentTypeId := int32(56) // int32 | (optional)
- contentTypeIdN := int32(56) // int32 | (optional)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -454,10 +450,14 @@ func main() {
objectIdLt := []int32{int32(123)} // []int32 | (optional)
objectIdLte := []int32{int32(123)} // []int32 | (optional)
objectIdN := []int32{int32(123)} // []int32 | (optional)
+ objectType := "objectType_example" // string | (optional)
+ objectTypeN := "objectTypeN_example" // string | (optional)
+ objectTypeId := int32(56) // int32 | (optional)
+ 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 := "priority_example" // string | (optional)
- priorityN := "priorityN_example" // string | (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)
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 +469,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).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).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).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -492,10 +492,6 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**contactId** | **[]int32** | Contact (ID) |
**contactIdN** | **[]int32** | Contact (ID) |
- **contentType** | **string** | |
- **contentTypeN** | **string** | |
- **contentTypeId** | **int32** | |
- **contentTypeIdN** | **int32** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -531,10 +527,14 @@ Name | Type | Description | Notes
**objectIdLt** | **[]int32** | |
**objectIdLte** | **[]int32** | |
**objectIdN** | **[]int32** | |
+ **objectType** | **string** | |
+ **objectTypeN** | **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. |
- **priority** | **string** | |
- **priorityN** | **string** | |
+ **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive |
+ **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive |
**q** | **string** | Search |
**role** | **[]string** | Contact role (slug) |
**roleN** | **[]string** | Contact role (slug) |
@@ -579,7 +579,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -651,7 +651,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -721,12 +721,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this contact assignment.
- writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ContentType_example", int64(123), int32(123), int32(123)) // WritableContactAssignmentRequest |
+ writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -793,7 +793,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -857,7 +857,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -923,7 +923,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -989,11 +989,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
+ writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableContactGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1055,7 +1055,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1108,7 +1108,7 @@ Name | Type | Description | Notes
## TenancyContactGroupsList
-> PaginatedContactGroupList TenancyContactGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedContactGroupList TenancyContactGroupsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -1124,10 +1124,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -1176,10 +1180,10 @@ 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)
- parent := []string{"Inner_example"} // []string | Contact group (slug) (optional)
- parentN := []string{"Inner_example"} // []string | Contact group (slug) (optional)
- parentId := []*int32{int32(123)} // []*int32 | Contact group (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Contact group (ID) (optional)
+ parent := []string{"Inner_example"} // []string | Parent contact group (slug) (optional)
+ parentN := []string{"Inner_example"} // []string | Parent contact group (slug) (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent contact group (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent contact group (ID) (optional)
q := "q_example" // string | Search (optional)
slug := []string{"Inner_example"} // []string | (optional)
slugEmpty := true // bool | (optional)
@@ -1198,7 +1202,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1219,6 +1223,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) |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -1267,10 +1275,10 @@ 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. |
- **parent** | **[]string** | Contact group (slug) |
- **parentN** | **[]string** | Contact group (slug) |
- **parentId** | **[]int32** | Contact group (ID) |
- **parentIdN** | **[]int32** | Contact group (ID) |
+ **parent** | **[]string** | Parent contact group (slug) |
+ **parentN** | **[]string** | Parent contact group (slug) |
+ **parentId** | **[]int32** | Parent contact group (ID) |
+ **parentIdN** | **[]int32** | Parent contact group (ID) |
**q** | **string** | Search |
**slug** | **[]string** | |
**slugEmpty** | **bool** | |
@@ -1322,7 +1330,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1394,7 +1402,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1464,12 +1472,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this contact group.
- writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest |
+ writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableContactGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1536,7 +1544,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1600,7 +1608,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1666,7 +1674,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1732,7 +1740,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1798,7 +1806,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1867,7 +1875,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2057,7 +2065,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2129,7 +2137,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2199,7 +2207,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2271,7 +2279,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2335,7 +2343,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2401,7 +2409,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2452,7 +2460,7 @@ Name | Type | Description | Notes
## TenancyContactsCreate
-> Contact TenancyContactsCreate(ctx).WritableContactRequest(writableContactRequest).Execute()
+> Contact TenancyContactsCreate(ctx).ContactRequest(contactRequest).Execute()
@@ -2467,15 +2475,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
+ contactRequest := *openapiclient.NewContactRequest("Name_example") // ContactRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).WritableContactRequest(writableContactRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).ContactRequest(contactRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2496,7 +2504,7 @@ Other parameters are passed through a pointer to a apiTenancyContactsCreateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableContactRequest** | [**WritableContactRequest**](WritableContactRequest.md) | |
+ **contactRequest** | [**ContactRequest**](ContactRequest.md) | |
### Return type
@@ -2533,7 +2541,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2602,7 +2610,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2873,7 +2881,7 @@ Name | Type | Description | Notes
## TenancyContactsPartialUpdate
-> Contact TenancyContactsPartialUpdate(ctx, id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute()
+> Contact TenancyContactsPartialUpdate(ctx, id).PatchedContactRequest(patchedContactRequest).Execute()
@@ -2888,16 +2896,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this contact.
- patchedWritableContactRequest := *openapiclient.NewPatchedWritableContactRequest() // PatchedWritableContactRequest | (optional)
+ patchedContactRequest := *openapiclient.NewPatchedContactRequest() // PatchedContactRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).PatchedContactRequest(patchedContactRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2923,7 +2931,7 @@ Other parameters are passed through a pointer to a apiTenancyContactsPartialUpda
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableContactRequest** | [**PatchedWritableContactRequest**](PatchedWritableContactRequest.md) | |
+ **patchedContactRequest** | [**PatchedContactRequest**](PatchedContactRequest.md) | |
### Return type
@@ -2960,7 +2968,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3015,7 +3023,7 @@ Name | Type | Description | Notes
## TenancyContactsUpdate
-> Contact TenancyContactsUpdate(ctx, id).WritableContactRequest(writableContactRequest).Execute()
+> Contact TenancyContactsUpdate(ctx, id).ContactRequest(contactRequest).Execute()
@@ -3030,16 +3038,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this contact.
- writableContactRequest := *openapiclient.NewWritableContactRequest("Name_example") // WritableContactRequest |
+ contactRequest := *openapiclient.NewContactRequest("Name_example") // ContactRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).WritableContactRequest(writableContactRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).ContactRequest(contactRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3065,7 +3073,7 @@ Other parameters are passed through a pointer to a apiTenancyContactsUpdateReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableContactRequest** | [**WritableContactRequest**](WritableContactRequest.md) | |
+ **contactRequest** | [**ContactRequest**](ContactRequest.md) | |
### Return type
@@ -3102,7 +3110,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3166,7 +3174,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3232,7 +3240,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3298,7 +3306,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3364,7 +3372,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3417,7 +3425,7 @@ Name | Type | Description | Notes
## TenancyTenantGroupsList
-> PaginatedTenantGroupList TenancyTenantGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedTenantGroupList TenancyTenantGroupsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -3433,10 +3441,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -3485,10 +3497,10 @@ 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)
- parent := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
- parentN := []string{"Inner_example"} // []string | Tenant group (slug) (optional)
- parentId := []*int32{int32(123)} // []*int32 | Tenant group (ID) (optional)
- parentIdN := []*int32{int32(123)} // []*int32 | Tenant group (ID) (optional)
+ parent := []string{"Inner_example"} // []string | Parent tenant group (slug) (optional)
+ parentN := []string{"Inner_example"} // []string | Parent tenant group (slug) (optional)
+ parentId := []*int32{int32(123)} // []*int32 | Parent tenant group (ID) (optional)
+ parentIdN := []*int32{int32(123)} // []*int32 | Parent tenant group (ID) (optional)
q := "q_example" // string | Search (optional)
slug := []string{"Inner_example"} // []string | (optional)
slugEmpty := true // bool | (optional)
@@ -3507,7 +3519,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3528,6 +3540,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) |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -3576,10 +3592,10 @@ 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. |
- **parent** | **[]string** | Tenant group (slug) |
- **parentN** | **[]string** | Tenant group (slug) |
- **parentId** | **[]int32** | Tenant group (ID) |
- **parentIdN** | **[]int32** | Tenant group (ID) |
+ **parent** | **[]string** | Parent tenant group (slug) |
+ **parentN** | **[]string** | Parent tenant group (slug) |
+ **parentId** | **[]int32** | Parent tenant group (ID) |
+ **parentIdN** | **[]int32** | Parent tenant group (ID) |
**q** | **string** | Search |
**slug** | **[]string** | |
**slugEmpty** | **bool** | |
@@ -3631,7 +3647,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3703,7 +3719,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3773,7 +3789,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3845,7 +3861,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3909,7 +3925,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3975,7 +3991,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4026,7 +4042,7 @@ Name | Type | Description | Notes
## TenancyTenantsCreate
-> Tenant TenancyTenantsCreate(ctx).WritableTenantRequest(writableTenantRequest).Execute()
+> Tenant TenancyTenantsCreate(ctx).TenantRequest(tenantRequest).Execute()
@@ -4041,15 +4057,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
+ tenantRequest := *openapiclient.NewTenantRequest("Name_example", "Slug_example") // TenantRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).WritableTenantRequest(writableTenantRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).TenantRequest(tenantRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4070,7 +4086,7 @@ Other parameters are passed through a pointer to a apiTenancyTenantsCreateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableTenantRequest** | [**WritableTenantRequest**](WritableTenantRequest.md) | |
+ **tenantRequest** | [**TenantRequest**](TenantRequest.md) | |
### Return type
@@ -4107,7 +4123,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4176,7 +4192,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4371,7 +4387,7 @@ Name | Type | Description | Notes
## TenancyTenantsPartialUpdate
-> Tenant TenancyTenantsPartialUpdate(ctx, id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute()
+> Tenant TenancyTenantsPartialUpdate(ctx, id).PatchedTenantRequest(patchedTenantRequest).Execute()
@@ -4386,16 +4402,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this tenant.
- patchedWritableTenantRequest := *openapiclient.NewPatchedWritableTenantRequest() // PatchedWritableTenantRequest | (optional)
+ patchedTenantRequest := *openapiclient.NewPatchedTenantRequest() // PatchedTenantRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).PatchedTenantRequest(patchedTenantRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4421,7 +4437,7 @@ Other parameters are passed through a pointer to a apiTenancyTenantsPartialUpdat
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableTenantRequest** | [**PatchedWritableTenantRequest**](PatchedWritableTenantRequest.md) | |
+ **patchedTenantRequest** | [**PatchedTenantRequest**](PatchedTenantRequest.md) | |
### Return type
@@ -4458,7 +4474,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4513,7 +4529,7 @@ Name | Type | Description | Notes
## TenancyTenantsUpdate
-> Tenant TenancyTenantsUpdate(ctx, id).WritableTenantRequest(writableTenantRequest).Execute()
+> Tenant TenancyTenantsUpdate(ctx, id).TenantRequest(tenantRequest).Execute()
@@ -4528,16 +4544,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this tenant.
- writableTenantRequest := *openapiclient.NewWritableTenantRequest("Name_example", "Slug_example") // WritableTenantRequest |
+ tenantRequest := *openapiclient.NewTenantRequest("Name_example", "Slug_example") // TenantRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).WritableTenantRequest(writableTenantRequest).Execute()
+ resp, r, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).TenantRequest(tenantRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4563,7 +4579,7 @@ Other parameters are passed through a pointer to a apiTenancyTenantsUpdateReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableTenantRequest** | [**WritableTenantRequest**](WritableTenantRequest.md) | |
+ **tenantRequest** | [**TenantRequest**](TenantRequest.md) | |
### Return type
diff --git a/docs/TenancyContactAssignmentsListPriorityParameter.md b/docs/TenancyContactAssignmentsListPriorityParameter.md
new file mode 100644
index 0000000000..df7264eac4
--- /dev/null
+++ b/docs/TenancyContactAssignmentsListPriorityParameter.md
@@ -0,0 +1,17 @@
+# TenancyContactAssignmentsListPriorityParameter
+
+## Enum
+
+
+* `INACTIVE` (value: `"inactive"`)
+
+* `PRIMARY` (value: `"primary"`)
+
+* `SECONDARY` (value: `"secondary"`)
+
+* `TERTIARY` (value: `"tertiary"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Tenant.md b/docs/Tenant.md
index 69910137a2..68d998dce3 100644
--- a/docs/Tenant.md
+++ b/docs/Tenant.md
@@ -9,29 +9,13 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Slug** | **string** | |
-**Group** | Pointer to [**NullableNestedTenantGroup**](NestedTenantGroup.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]
-**CircuitCount** | **int32** | | [readonly]
-**DeviceCount** | **int32** | | [readonly]
-**IpaddressCount** | **int32** | | [readonly]
-**PrefixCount** | **int32** | | [readonly]
-**RackCount** | **int32** | | [readonly]
-**SiteCount** | **int32** | | [readonly]
-**VirtualmachineCount** | **int32** | | [readonly]
-**VlanCount** | **int32** | | [readonly]
-**VrfCount** | **int32** | | [readonly]
-**ClusterCount** | **int32** | | [readonly]
## Methods
### NewTenant
-`func NewTenant(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int32, deviceCount int32, ipaddressCount int32, prefixCount int32, rackCount int32, siteCount int32, virtualmachineCount int32, vlanCount int32, vrfCount int32, clusterCount int32, ) *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,
@@ -146,41 +130,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetGroup
-
-`func (o *Tenant) GetGroup() NestedTenantGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *Tenant) GetGroupOk() (*NestedTenantGroup, 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 NestedTenantGroup)`
-
-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`
@@ -206,341 +155,6 @@ 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.
-
-
-### 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.
-
-
-### 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() int32`
-
-GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise.
-
-### GetCircuitCountOk
-
-`func (o *Tenant) GetCircuitCountOk() (*int32, 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 int32)`
-
-SetCircuitCount sets CircuitCount field to given value.
-
-
-### GetDeviceCount
-
-`func (o *Tenant) GetDeviceCount() int32`
-
-GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.
-
-### GetDeviceCountOk
-
-`func (o *Tenant) 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 *Tenant) SetDeviceCount(v int32)`
-
-SetDeviceCount sets DeviceCount field to given value.
-
-
-### GetIpaddressCount
-
-`func (o *Tenant) GetIpaddressCount() int32`
-
-GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise.
-
-### GetIpaddressCountOk
-
-`func (o *Tenant) GetIpaddressCountOk() (*int32, 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 int32)`
-
-SetIpaddressCount sets IpaddressCount field to given value.
-
-
-### GetPrefixCount
-
-`func (o *Tenant) GetPrefixCount() int32`
-
-GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise.
-
-### GetPrefixCountOk
-
-`func (o *Tenant) GetPrefixCountOk() (*int32, 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 int32)`
-
-SetPrefixCount sets PrefixCount field to given value.
-
-
-### GetRackCount
-
-`func (o *Tenant) GetRackCount() int32`
-
-GetRackCount returns the RackCount field if non-nil, zero value otherwise.
-
-### GetRackCountOk
-
-`func (o *Tenant) GetRackCountOk() (*int32, 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 int32)`
-
-SetRackCount sets RackCount field to given value.
-
-
-### GetSiteCount
-
-`func (o *Tenant) GetSiteCount() int32`
-
-GetSiteCount returns the SiteCount field if non-nil, zero value otherwise.
-
-### GetSiteCountOk
-
-`func (o *Tenant) 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 *Tenant) SetSiteCount(v int32)`
-
-SetSiteCount sets SiteCount field to given value.
-
-
-### GetVirtualmachineCount
-
-`func (o *Tenant) GetVirtualmachineCount() int32`
-
-GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise.
-
-### GetVirtualmachineCountOk
-
-`func (o *Tenant) GetVirtualmachineCountOk() (*int32, 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 int32)`
-
-SetVirtualmachineCount sets VirtualmachineCount field to given value.
-
-
-### GetVlanCount
-
-`func (o *Tenant) GetVlanCount() int32`
-
-GetVlanCount returns the VlanCount field if non-nil, zero value otherwise.
-
-### GetVlanCountOk
-
-`func (o *Tenant) GetVlanCountOk() (*int32, 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 int32)`
-
-SetVlanCount sets VlanCount field to given value.
-
-
-### GetVrfCount
-
-`func (o *Tenant) GetVrfCount() int32`
-
-GetVrfCount returns the VrfCount field if non-nil, zero value otherwise.
-
-### GetVrfCountOk
-
-`func (o *Tenant) GetVrfCountOk() (*int32, 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 int32)`
-
-SetVrfCount sets VrfCount field to given value.
-
-
-### GetClusterCount
-
-`func (o *Tenant) GetClusterCount() int32`
-
-GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise.
-
-### GetClusterCountOk
-
-`func (o *Tenant) GetClusterCountOk() (*int32, 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 int32)`
-
-SetClusterCount sets ClusterCount 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/TenantGroup.md b/docs/TenantGroup.md
index a15d9828e8..22a3d41c5a 100644
--- a/docs/TenantGroup.md
+++ b/docs/TenantGroup.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**TenantCount** | **int32** | | [readonly]
+**TenantCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
diff --git a/docs/TenantRequest.md b/docs/TenantRequest.md
index 4aa1b40b89..7a4881f710 100644
--- a/docs/TenantRequest.md
+++ b/docs/TenantRequest.md
@@ -6,11 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Group** | Pointer to [**NullableNestedTenantGroupRequest**](NestedTenantGroupRequest.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
@@ -71,41 +67,6 @@ and a boolean to check if the value has been set.
SetSlug sets Slug field to given value.
-### GetGroup
-
-`func (o *TenantRequest) GetGroup() NestedTenantGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *TenantRequest) GetGroupOk() (*NestedTenantGroupRequest, 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 NestedTenantGroupRequest)`
-
-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`
@@ -131,81 +92,6 @@ 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/Termination1.md b/docs/Termination1.md
new file mode 100644
index 0000000000..95e164d117
--- /dev/null
+++ b/docs/Termination1.md
@@ -0,0 +1,13 @@
+# Termination1
+
+## Enum
+
+
+* `A` (value: `"A"`)
+
+* `Z` (value: `"Z"`)
+
+
+[[Back to Model list]](../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 f24467ba77..d39896b1ec 100644
--- a/docs/Token.md
+++ b/docs/Token.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**User** | [**NestedUser**](NestedUser.md) | |
+**User** | [**User**](User.md) | |
**Created** | **time.Time** | | [readonly]
**Expires** | Pointer to **NullableTime** | | [optional]
**LastUsed** | Pointer to **NullableTime** | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewToken
-`func NewToken(id int32, url string, display string, user NestedUser, created time.Time, ) *Token`
+`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,
@@ -96,20 +96,20 @@ SetDisplay sets Display field to given value.
### GetUser
-`func (o *Token) GetUser() NestedUser`
+`func (o *Token) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *Token) GetUserOk() (*NestedUser, bool)`
+`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 NestedUser)`
+`func (o *Token) SetUser(v User)`
SetUser sets User field to given value.
diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md
index bde20a5c06..8b0aa1be20 100644
--- a/docs/TokenProvision.md
+++ b/docs/TokenProvision.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**User** | [**NestedUser**](NestedUser.md) | | [readonly]
+**User** | [**User**](User.md) | | [readonly]
**Created** | **time.Time** | | [readonly]
**Expires** | Pointer to **NullableTime** | | [optional]
**LastUsed** | **time.Time** | | [readonly]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewTokenProvision
-`func NewTokenProvision(id int32, url string, display string, user NestedUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision`
+`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision`
NewTokenProvision instantiates a new TokenProvision object
This constructor will assign default values to properties that have it defined,
@@ -96,20 +96,20 @@ SetDisplay sets Display field to given value.
### GetUser
-`func (o *TokenProvision) GetUser() NestedUser`
+`func (o *TokenProvision) GetUser() User`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *TokenProvision) GetUserOk() (*NestedUser, bool)`
+`func (o *TokenProvision) 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 *TokenProvision) SetUser(v NestedUser)`
+`func (o *TokenProvision) SetUser(v User)`
SetUser sets User field to given value.
diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md
index fe7bc92648..06de41a6db 100644
--- a/docs/TokenRequest.md
+++ b/docs/TokenRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**User** | [**NestedUserRequest**](NestedUserRequest.md) | |
+**User** | [**UserRequest**](UserRequest.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 NestedUserRequest, ) *TokenRequest`
+`func NewTokenRequest(user UserRequest, ) *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() NestedUserRequest`
+`func (o *TokenRequest) GetUser() UserRequest`
GetUser returns the User field if non-nil, zero value otherwise.
### GetUserOk
-`func (o *TokenRequest) GetUserOk() (*NestedUserRequest, bool)`
+`func (o *TokenRequest) GetUserOk() (*UserRequest, 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 NestedUserRequest)`
+`func (o *TokenRequest) SetUser(v UserRequest)`
SetUser sets User field to given value.
diff --git a/docs/Tunnel.md b/docs/Tunnel.md
index acd06370b1..0ed4424722 100644
--- a/docs/Tunnel.md
+++ b/docs/Tunnel.md
@@ -8,24 +8,13 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Status** | [**TunnelStatus**](TunnelStatus.md) | |
-**Group** | Pointer to [**NullableNestedTunnelGroup**](NestedTunnelGroup.md) | | [optional]
-**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | |
-**IpsecProfile** | Pointer to [**NullableNestedIPSecProfile**](NestedIPSecProfile.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
## Methods
### NewTunnel
-`func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, ) *Tunnel`
+`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,
@@ -120,186 +109,6 @@ 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() NestedTunnelGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *Tunnel) GetGroupOk() (*NestedTunnelGroup, 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 NestedTunnelGroup)`
-
-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() NestedIPSecProfile`
-
-GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
-
-### GetIpsecProfileOk
-
-`func (o *Tunnel) GetIpsecProfileOk() (*NestedIPSecProfile, 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 NestedIPSecProfile)`
-
-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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *Tunnel) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *Tunnel) SetTenant(v NestedTenant)`
-
-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`
@@ -325,141 +134,6 @@ 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.
-
-
-### 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.
-
-
-### 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
[[Back to Model list]](../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
deleted file mode 100644
index fe7e117168..0000000000
--- a/docs/TunnelEncapsulation.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 9e46fb7c8a..0000000000
--- a/docs/TunnelEncapsulationLabel.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# TunnelEncapsulationLabel
-
-## Enum
-
-
-* `I_PSEC___TRANSPORT` (value: `"IPsec - Transport"`)
-
-* `I_PSEC___TUNNEL` (value: `"IPsec - Tunnel"`)
-
-* `IP_IN_IP` (value: `"IP-in-IP"`)
-
-* `GRE` (value: `"GRE"`)
-
-
-[[Back to Model list]](../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 246ce681b7..696dd40403 100644
--- a/docs/TunnelGroup.md
+++ b/docs/TunnelGroup.md
@@ -14,13 +14,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**TunnelCount** | **int32** | | [readonly]
+**TunnelCount** | **int64** | | [readonly]
## Methods
### NewTunnelGroup
-`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int32, ) *TunnelGroup`
+`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup`
NewTunnelGroup instantiates a new TunnelGroup object
This constructor will assign default values to properties that have it defined,
@@ -272,20 +272,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetTunnelCount
-`func (o *TunnelGroup) GetTunnelCount() int32`
+`func (o *TunnelGroup) GetTunnelCount() int64`
GetTunnelCount returns the TunnelCount field if non-nil, zero value otherwise.
### GetTunnelCountOk
-`func (o *TunnelGroup) GetTunnelCountOk() (*int32, bool)`
+`func (o *TunnelGroup) GetTunnelCountOk() (*int64, bool)`
GetTunnelCountOk returns a tuple with the TunnelCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTunnelCount
-`func (o *TunnelGroup) SetTunnelCount(v int32)`
+`func (o *TunnelGroup) SetTunnelCount(v int64)`
SetTunnelCount sets TunnelCount field to given value.
diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md
index 6dd14dbb9c..03d4cda242 100644
--- a/docs/TunnelRequest.md
+++ b/docs/TunnelRequest.md
@@ -5,22 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | |
-**Group** | Pointer to [**NullableNestedTunnelGroupRequest**](NestedTunnelGroupRequest.md) | | [optional]
-**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | |
-**IpsecProfile** | Pointer to [**NullableNestedIPSecProfileRequest**](NestedIPSecProfileRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.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, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest`
+`func NewTunnelRequest(name string, ) *TunnelRequest`
NewTunnelRequest instantiates a new TunnelRequest object
This constructor will assign default values to properties that have it defined,
@@ -55,186 +46,6 @@ 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() NestedTunnelGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *TunnelRequest) GetGroupOk() (*NestedTunnelGroupRequest, 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 NestedTunnelGroupRequest)`
-
-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() NestedIPSecProfileRequest`
-
-GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
-
-### GetIpsecProfileOk
-
-`func (o *TunnelRequest) GetIpsecProfileOk() (*NestedIPSecProfileRequest, 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 NestedIPSecProfileRequest)`
-
-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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *TunnelRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *TunnelRequest) SetTenant(v NestedTenantRequest)`
-
-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`
@@ -260,81 +71,6 @@ 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
deleted file mode 100644
index 46022ca86c..0000000000
--- a/docs/TunnelStatus.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# 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
deleted file mode 100644
index 8bd96d36a2..0000000000
--- a/docs/TunnelStatusLabel.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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 01173d39ac..1804e64d5b 100644
--- a/docs/TunnelTermination.md
+++ b/docs/TunnelTermination.md
@@ -7,12 +7,12 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Tunnel** | [**NestedTunnel**](NestedTunnel.md) | |
+**Tunnel** | [**Tunnel**](Tunnel.md) | |
**Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | |
**TerminationType** | **string** | |
-**TerminationId** | Pointer to **NullableInt64** | | [optional]
+**TerminationId** | **NullableInt64** | |
**Termination** | **interface{}** | | [readonly]
-**OutsideIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
+**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional]
**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewTunnelTermination
-`func NewTunnelTermination(id int32, url string, display string, tunnel NestedTunnel, role TunnelTerminationRole, terminationType string, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination`
+`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination`
NewTunnelTermination instantiates a new TunnelTermination object
This constructor will assign default values to properties that have it defined,
@@ -99,20 +99,20 @@ SetDisplay sets Display field to given value.
### GetTunnel
-`func (o *TunnelTermination) GetTunnel() NestedTunnel`
+`func (o *TunnelTermination) GetTunnel() Tunnel`
GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
### GetTunnelOk
-`func (o *TunnelTermination) GetTunnelOk() (*NestedTunnel, bool)`
+`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, 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 NestedTunnel)`
+`func (o *TunnelTermination) SetTunnel(v Tunnel)`
SetTunnel sets Tunnel field to given value.
@@ -176,11 +176,6 @@ 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
@@ -224,20 +219,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() NestedIPAddress`
+`func (o *TunnelTermination) GetOutsideIp() IPAddress`
GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
### GetOutsideIpOk
-`func (o *TunnelTermination) GetOutsideIpOk() (*NestedIPAddress, bool)`
+`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, 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 NestedIPAddress)`
+`func (o *TunnelTermination) SetOutsideIp(v IPAddress)`
SetOutsideIp sets OutsideIp field to given value.
diff --git a/docs/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md
index cb9ae875d6..e684cfe200 100644
--- a/docs/TunnelTerminationRequest.md
+++ b/docs/TunnelTerminationRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Tunnel** | [**NestedTunnelRequest**](NestedTunnelRequest.md) | |
+**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | |
**Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | |
**TerminationType** | **string** | |
-**TerminationId** | Pointer to **NullableInt64** | | [optional]
-**OutsideIp** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
+**TerminationId** | **NullableInt64** | |
+**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.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 NestedTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, ) *TunnelTerminationRequest`
+`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,
@@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set
### GetTunnel
-`func (o *TunnelTerminationRequest) GetTunnel() NestedTunnelRequest`
+`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest`
GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
### GetTunnelOk
-`func (o *TunnelTerminationRequest) GetTunnelOk() (*NestedTunnelRequest, bool)`
+`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 NestedTunnelRequest)`
+`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)`
SetTunnel sets Tunnel field to given value.
@@ -110,11 +110,6 @@ 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
@@ -128,20 +123,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 *TunnelTerminationRequest) GetOutsideIp() NestedIPAddressRequest`
+`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest`
GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
### GetOutsideIpOk
-`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*NestedIPAddressRequest, bool)`
+`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 NestedIPAddressRequest)`
+`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)`
SetOutsideIp sets OutsideIp field to given value.
diff --git a/docs/User.md b/docs/User.md
index 05c4d39001..5312320e34 100644
--- a/docs/User.md
+++ b/docs/User.md
@@ -8,14 +8,6 @@ Name | Type | Description | Notes
**Url** | **string** | | [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 **[]int32** | | [optional]
## Methods
@@ -116,216 +108,6 @@ 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() []int32`
-
-GetGroups returns the Groups field if non-nil, zero value otherwise.
-
-### GetGroupsOk
-
-`func (o *User) 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 *User) SetGroups(v []int32)`
-
-SetGroups sets Groups field to given value.
-
-### HasGroups
-
-`func (o *User) HasGroups() bool`
-
-HasGroups 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.md b/docs/UserRequest.md
index aa5af976a0..58e87259fd 100644
--- a/docs/UserRequest.md
+++ b/docs/UserRequest.md
@@ -5,21 +5,12 @@
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]
## Methods
### NewUserRequest
-`func NewUserRequest(username string, password string, ) *UserRequest`
+`func NewUserRequest(username string, ) *UserRequest`
NewUserRequest instantiates a new UserRequest object
This constructor will assign default values to properties that have it defined,
@@ -54,236 +45,6 @@ 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.
-
[[Back to Model list]](../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 70d4e583bf..2da4d42da5 100644
--- a/docs/UsersAPI.md
+++ b/docs/UsersAPI.md
@@ -62,7 +62,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -123,7 +123,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -187,7 +187,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -253,7 +253,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -319,7 +319,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -385,7 +385,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -438,7 +438,7 @@ Name | Type | Description | Notes
## UsersGroupsList
-> PaginatedGroupList UsersGroupsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute()
+> 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()
@@ -453,10 +453,21 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
+ 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)
@@ -478,11 +489,15 @@ 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)
+ permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional)
+ permissionIdN := []int32{int32(123)} // []int32 | Permission (ID) (optional)
q := "q_example" // string | Search (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.UsersAPI.UsersGroupsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute()
+ 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()
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)
@@ -503,6 +518,17 @@ Other parameters are passed through a pointer to a apiUsersGroupsListRequest str
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **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** | |
@@ -524,7 +550,11 @@ 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. |
+ **permissionId** | **[]int32** | Permission (ID) |
+ **permissionIdN** | **[]int32** | Permission (ID) |
**q** | **string** | Search |
+ **userId** | **[]int32** | User (ID) |
+ **userIdN** | **[]int32** | User (ID) |
### Return type
@@ -561,7 +591,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -633,7 +663,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -703,7 +733,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -775,7 +805,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -839,7 +869,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -905,7 +935,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -956,7 +986,7 @@ Name | Type | Description | Notes
## UsersPermissionsCreate
-> ObjectPermission UsersPermissionsCreate(ctx).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+> ObjectPermission UsersPermissionsCreate(ctx).ObjectPermissionRequest(objectPermissionRequest).Execute()
@@ -971,15 +1001,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableObjectPermissionRequest := *openapiclient.NewWritableObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // WritableObjectPermissionRequest |
+ objectPermissionRequest := *openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // ObjectPermissionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1000,7 +1030,7 @@ Other parameters are passed through a pointer to a apiUsersPermissionsCreateRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableObjectPermissionRequest** | [**WritableObjectPermissionRequest**](WritableObjectPermissionRequest.md) | |
+ **objectPermissionRequest** | [**ObjectPermissionRequest**](ObjectPermissionRequest.md) | |
### Return type
@@ -1037,7 +1067,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1090,7 +1120,7 @@ Name | Type | Description | Notes
## UsersPermissionsList
-> PaginatedObjectPermissionList UsersPermissionsList(ctx).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
+> PaginatedObjectPermissionList UsersPermissionsList(ctx).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
@@ -1105,7 +1135,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1148,6 +1178,18 @@ func main() {
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)
objectTypes := []int32{int32(123)} // []int32 | (optional)
objectTypesN := []int32{int32(123)} // []int32 | (optional)
offset := int32(56) // int32 | The initial index from which to return the results. (optional)
@@ -1160,7 +1202,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1220,6 +1262,18 @@ Name | Type | Description | Notes
**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** | The initial index from which to return the results. |
@@ -1250,7 +1304,7 @@ Name | Type | Description | Notes
## UsersPermissionsPartialUpdate
-> ObjectPermission UsersPermissionsPartialUpdate(ctx, id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute()
+> ObjectPermission UsersPermissionsPartialUpdate(ctx, id).PatchedObjectPermissionRequest(patchedObjectPermissionRequest).Execute()
@@ -1265,16 +1319,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this permission.
- patchedWritableObjectPermissionRequest := *openapiclient.NewPatchedWritableObjectPermissionRequest() // PatchedWritableObjectPermissionRequest | (optional)
+ patchedObjectPermissionRequest := *openapiclient.NewPatchedObjectPermissionRequest() // PatchedObjectPermissionRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).PatchedObjectPermissionRequest(patchedObjectPermissionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1300,7 +1354,7 @@ Other parameters are passed through a pointer to a apiUsersPermissionsPartialUpd
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableObjectPermissionRequest** | [**PatchedWritableObjectPermissionRequest**](PatchedWritableObjectPermissionRequest.md) | |
+ **patchedObjectPermissionRequest** | [**PatchedObjectPermissionRequest**](PatchedObjectPermissionRequest.md) | |
### Return type
@@ -1337,7 +1391,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1392,7 +1446,7 @@ Name | Type | Description | Notes
## UsersPermissionsUpdate
-> ObjectPermission UsersPermissionsUpdate(ctx, id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+> ObjectPermission UsersPermissionsUpdate(ctx, id).ObjectPermissionRequest(objectPermissionRequest).Execute()
@@ -1407,16 +1461,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this permission.
- writableObjectPermissionRequest := *openapiclient.NewWritableObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // WritableObjectPermissionRequest |
+ objectPermissionRequest := *openapiclient.NewObjectPermissionRequest("Name_example", []string{"ObjectTypes_example"}, []string{"Actions_example"}) // ObjectPermissionRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).ObjectPermissionRequest(objectPermissionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1442,7 +1496,7 @@ Other parameters are passed through a pointer to a apiUsersPermissionsUpdateRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableObjectPermissionRequest** | [**WritableObjectPermissionRequest**](WritableObjectPermissionRequest.md) | |
+ **objectPermissionRequest** | [**ObjectPermissionRequest**](ObjectPermissionRequest.md) | |
### Return type
@@ -1479,11 +1533,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1543,11 +1597,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1609,11 +1663,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewNestedUserRequest("Username_example"))} // []TokenRequest |
+ tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1660,7 +1714,7 @@ Name | Type | Description | Notes
## UsersTokensCreate
-> Token UsersTokensCreate(ctx).WritableTokenRequest(writableTokenRequest).Execute()
+> Token UsersTokensCreate(ctx).TokenRequest(tokenRequest).Execute()
@@ -1675,15 +1729,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
+ tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).TokenRequest(tokenRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1704,7 +1758,7 @@ Other parameters are passed through a pointer to a apiUsersTokensCreateRequest s
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableTokenRequest** | [**WritableTokenRequest**](WritableTokenRequest.md) | |
+ **tokenRequest** | [**TokenRequest**](TokenRequest.md) | |
### Return type
@@ -1741,7 +1795,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1794,7 +1848,7 @@ Name | Type | Description | Notes
## UsersTokensList
-> PaginatedTokenList UsersTokensList(ctx).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute()
+> PaginatedTokenList UsersTokensList(ctx).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).LastUsed(lastUsed).LastUsedEmpty(lastUsedEmpty).LastUsedGt(lastUsedGt).LastUsedGte(lastUsedGte).LastUsedLt(lastUsedLt).LastUsedLte(lastUsedLte).LastUsedN(lastUsedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute()
@@ -1810,7 +1864,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1849,6 +1903,13 @@ func main() {
keyNie := []string{"Inner_example"} // []string | (optional)
keyNiew := []string{"Inner_example"} // []string | (optional)
keyNisw := []string{"Inner_example"} // []string | (optional)
+ lastUsed := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUsedEmpty := true // bool | (optional)
+ lastUsedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUsedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUsedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUsedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastUsedN := []time.Time{time.Now()} // []time.Time | (optional)
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)
@@ -1861,7 +1922,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).LastUsed(lastUsed).LastUsedEmpty(lastUsedEmpty).LastUsedGt(lastUsedGt).LastUsedGte(lastUsedGte).LastUsedLt(lastUsedLt).LastUsedLte(lastUsedLte).LastUsedN(lastUsedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1917,6 +1978,13 @@ Name | Type | Description | Notes
**keyNie** | **[]string** | |
**keyNiew** | **[]string** | |
**keyNisw** | **[]string** | |
+ **lastUsed** | [**[]time.Time**](time.Time.md) | |
+ **lastUsedEmpty** | **bool** | |
+ **lastUsedGt** | [**[]time.Time**](time.Time.md) | |
+ **lastUsedGte** | [**[]time.Time**](time.Time.md) | |
+ **lastUsedLt** | [**[]time.Time**](time.Time.md) | |
+ **lastUsedLte** | [**[]time.Time**](time.Time.md) | |
+ **lastUsedN** | [**[]time.Time**](time.Time.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. |
@@ -1947,7 +2015,7 @@ Name | Type | Description | Notes
## UsersTokensPartialUpdate
-> Token UsersTokensPartialUpdate(ctx, id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute()
+> Token UsersTokensPartialUpdate(ctx, id).PatchedTokenRequest(patchedTokenRequest).Execute()
@@ -1962,16 +2030,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this token.
- patchedWritableTokenRequest := *openapiclient.NewPatchedWritableTokenRequest() // PatchedWritableTokenRequest | (optional)
+ patchedTokenRequest := *openapiclient.NewPatchedTokenRequest() // PatchedTokenRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).PatchedTokenRequest(patchedTokenRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1997,7 +2065,7 @@ Other parameters are passed through a pointer to a apiUsersTokensPartialUpdateRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableTokenRequest** | [**PatchedWritableTokenRequest**](PatchedWritableTokenRequest.md) | |
+ **patchedTokenRequest** | [**PatchedTokenRequest**](PatchedTokenRequest.md) | |
### Return type
@@ -2034,7 +2102,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2100,7 +2168,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2155,7 +2223,7 @@ Name | Type | Description | Notes
## UsersTokensUpdate
-> Token UsersTokensUpdate(ctx, id).WritableTokenRequest(writableTokenRequest).Execute()
+> Token UsersTokensUpdate(ctx, id).TokenRequest(tokenRequest).Execute()
@@ -2170,16 +2238,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this token.
- writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest |
+ tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).WritableTokenRequest(writableTokenRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).TokenRequest(tokenRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2205,7 +2273,7 @@ Other parameters are passed through a pointer to a apiUsersTokensUpdateRequest s
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableTokenRequest** | [**WritableTokenRequest**](WritableTokenRequest.md) | |
+ **tokenRequest** | [**TokenRequest**](TokenRequest.md) | |
### Return type
@@ -2242,11 +2310,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2306,11 +2374,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2372,11 +2440,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest |
+ userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2423,7 +2491,7 @@ Name | Type | Description | Notes
## UsersUsersCreate
-> User UsersUsersCreate(ctx).WritableUserRequest(writableUserRequest).Execute()
+> User UsersUsersCreate(ctx).UserRequest(userRequest).Execute()
@@ -2438,15 +2506,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
+ userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).WritableUserRequest(writableUserRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).UserRequest(userRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2467,7 +2535,7 @@ Other parameters are passed through a pointer to a apiUsersUsersCreateRequest st
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableUserRequest** | [**WritableUserRequest**](WritableUserRequest.md) | |
+ **userRequest** | [**UserRequest**](UserRequest.md) | |
### Return type
@@ -2504,7 +2572,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2557,7 +2625,7 @@ Name | Type | Description | Notes
## UsersUsersList
-> PaginatedUserList UsersUsersList(ctx).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute()
+> 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()
@@ -2572,10 +2640,18 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ "time"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
+ dateJoined := []time.Time{time.Now()} // []time.Time | (optional)
+ dateJoinedEmpty := true // bool | (optional)
+ dateJoinedGt := []time.Time{time.Now()} // []time.Time | (optional)
+ dateJoinedGte := []time.Time{time.Now()} // []time.Time | (optional)
+ dateJoinedLt := []time.Time{time.Now()} // []time.Time | (optional)
+ dateJoinedLte := []time.Time{time.Now()} // []time.Time | (optional)
+ dateJoinedN := []time.Time{time.Now()} // []time.Time | (optional)
email := []string{"Inner_example"} // []string | (optional)
emailEmpty := true // bool | (optional)
emailIc := []string{"Inner_example"} // []string | (optional)
@@ -2612,6 +2688,13 @@ func main() {
isActive := true // bool | (optional)
isStaff := true // bool | (optional)
isSuperuser := true // bool | (optional)
+ lastLogin := []time.Time{time.Now()} // []time.Time | (optional)
+ lastLoginEmpty := true // bool | (optional)
+ lastLoginGt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastLoginGte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastLoginLt := []time.Time{time.Now()} // []time.Time | (optional)
+ lastLoginLte := []time.Time{time.Now()} // []time.Time | (optional)
+ lastLoginN := []time.Time{time.Now()} // []time.Time | (optional)
lastName := []string{"Inner_example"} // []string | (optional)
lastNameEmpty := true // bool | (optional)
lastNameIc := []string{"Inner_example"} // []string | (optional)
@@ -2626,6 +2709,8 @@ 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)
+ permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional)
+ permissionIdN := []int32{int32(123)} // []int32 | Permission (ID) (optional)
q := "q_example" // string | Search (optional)
username := []string{"Inner_example"} // []string | (optional)
usernameEmpty := true // bool | (optional)
@@ -2641,7 +2726,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute()
+ 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()
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)
@@ -2662,6 +2747,13 @@ Other parameters are passed through a pointer to a apiUsersUsersListRequest stru
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **dateJoined** | [**[]time.Time**](time.Time.md) | |
+ **dateJoinedEmpty** | **bool** | |
+ **dateJoinedGt** | [**[]time.Time**](time.Time.md) | |
+ **dateJoinedGte** | [**[]time.Time**](time.Time.md) | |
+ **dateJoinedLt** | [**[]time.Time**](time.Time.md) | |
+ **dateJoinedLte** | [**[]time.Time**](time.Time.md) | |
+ **dateJoinedN** | [**[]time.Time**](time.Time.md) | |
**email** | **[]string** | |
**emailEmpty** | **bool** | |
**emailIc** | **[]string** | |
@@ -2698,6 +2790,13 @@ Name | Type | Description | Notes
**isActive** | **bool** | |
**isStaff** | **bool** | |
**isSuperuser** | **bool** | |
+ **lastLogin** | [**[]time.Time**](time.Time.md) | |
+ **lastLoginEmpty** | **bool** | |
+ **lastLoginGt** | [**[]time.Time**](time.Time.md) | |
+ **lastLoginGte** | [**[]time.Time**](time.Time.md) | |
+ **lastLoginLt** | [**[]time.Time**](time.Time.md) | |
+ **lastLoginLte** | [**[]time.Time**](time.Time.md) | |
+ **lastLoginN** | [**[]time.Time**](time.Time.md) | |
**lastName** | **[]string** | |
**lastNameEmpty** | **bool** | |
**lastNameIc** | **[]string** | |
@@ -2712,6 +2811,8 @@ 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. |
+ **permissionId** | **[]int32** | Permission (ID) |
+ **permissionIdN** | **[]int32** | Permission (ID) |
**q** | **string** | Search |
**username** | **[]string** | |
**usernameEmpty** | **bool** | |
@@ -2745,7 +2846,7 @@ Name | Type | Description | Notes
## UsersUsersPartialUpdate
-> User UsersUsersPartialUpdate(ctx, id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute()
+> User UsersUsersPartialUpdate(ctx, id).PatchedUserRequest(patchedUserRequest).Execute()
@@ -2760,16 +2861,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this user.
- patchedWritableUserRequest := *openapiclient.NewPatchedWritableUserRequest() // PatchedWritableUserRequest | (optional)
+ patchedUserRequest := *openapiclient.NewPatchedUserRequest() // PatchedUserRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).PatchedUserRequest(patchedUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2795,7 +2896,7 @@ Other parameters are passed through a pointer to a apiUsersUsersPartialUpdateReq
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableUserRequest** | [**PatchedWritableUserRequest**](PatchedWritableUserRequest.md) | |
+ **patchedUserRequest** | [**PatchedUserRequest**](PatchedUserRequest.md) | |
### Return type
@@ -2832,7 +2933,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2887,7 +2988,7 @@ Name | Type | Description | Notes
## UsersUsersUpdate
-> User UsersUsersUpdate(ctx, id).WritableUserRequest(writableUserRequest).Execute()
+> User UsersUsersUpdate(ctx, id).UserRequest(userRequest).Execute()
@@ -2902,16 +3003,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this user.
- writableUserRequest := *openapiclient.NewWritableUserRequest("Username_example", "Password_example") // WritableUserRequest |
+ userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).WritableUserRequest(writableUserRequest).Execute()
+ resp, r, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).UserRequest(userRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -2937,7 +3038,7 @@ Other parameters are passed through a pointer to a apiUsersUsersUpdateRequest st
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableUserRequest** | [**WritableUserRequest**](WritableUserRequest.md) | |
+ **userRequest** | [**UserRequest**](UserRequest.md) | |
### Return type
diff --git a/docs/VLAN.md b/docs/VLAN.md
index 27288aa1a0..81cee5529a 100644
--- a/docs/VLAN.md
+++ b/docs/VLAN.md
@@ -7,27 +7,15 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**Site** | Pointer to [**NullableNestedSite**](NestedSite.md) | | [optional]
-**Group** | Pointer to [**NullableNestedVLANGroup**](NestedVLANGroup.md) | | [optional]
**Vid** | **int32** | Numeric VLAN ID (1-4094) |
**Name** | **string** | |
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRole**](NestedRole.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
-**Comments** | Pointer to **string** | | [optional]
-**L2vpnTermination** | [**NullableNestedL2VPNTermination**](NestedL2VPNTermination.md) | | [readonly]
-**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**PrefixCount** | **int32** | | [readonly]
## Methods
### NewVLAN
-`func NewVLAN(id int32, url string, display string, vid int32, name string, l2vpnTermination NullableNestedL2VPNTermination, created NullableTime, lastUpdated NullableTime, prefixCount int32, ) *VLAN`
+`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,
@@ -102,76 +90,6 @@ and a boolean to check if the value has been set.
SetDisplay sets Display field to given value.
-### GetSite
-
-`func (o *VLAN) GetSite() NestedSite`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *VLAN) GetSiteOk() (*NestedSite, 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 NestedSite)`
-
-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() NestedVLANGroup`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *VLAN) GetGroupOk() (*NestedVLANGroup, 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 NestedVLANGroup)`
-
-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`
@@ -212,101 +130,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetTenant
-
-`func (o *VLAN) GetTenant() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *VLAN) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *VLAN) SetTenant(v NestedTenant)`
-
-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() NestedRole`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *VLAN) GetRoleOk() (*NestedRole, 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 NestedRole)`
-
-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`
@@ -332,191 +155,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### 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() NestedL2VPNTermination`
-
-GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise.
-
-### GetL2vpnTerminationOk
-
-`func (o *VLAN) GetL2vpnTerminationOk() (*NestedL2VPNTermination, 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 NestedL2VPNTermination)`
-
-SetL2vpnTermination sets L2vpnTermination field to given value.
-
-
-### 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.
-
-
-### 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.
-
-
-### 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() int32`
-
-GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise.
-
-### GetPrefixCountOk
-
-`func (o *VLAN) GetPrefixCountOk() (*int32, 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 int32)`
-
-SetPrefixCount sets PrefixCount 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/VLANGroup.md b/docs/VLANGroup.md
index b6191ca65c..6df7b1d13c 100644
--- a/docs/VLANGroup.md
+++ b/docs/VLANGroup.md
@@ -19,14 +19,14 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**VlanCount** | **int32** | | [readonly]
+**VlanCount** | **int64** | | [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 int32, utilization string, ) *VLANGroup`
+`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup`
NewVLANGroup instantiates a new VLANGroup object
This constructor will assign default values to properties that have it defined,
@@ -428,20 +428,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetVlanCount
-`func (o *VLANGroup) GetVlanCount() int32`
+`func (o *VLANGroup) GetVlanCount() int64`
GetVlanCount returns the VlanCount field if non-nil, zero value otherwise.
### GetVlanCountOk
-`func (o *VLANGroup) GetVlanCountOk() (*int32, bool)`
+`func (o *VLANGroup) 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 *VLANGroup) SetVlanCount(v int32)`
+`func (o *VLANGroup) SetVlanCount(v int64)`
SetVlanCount sets VlanCount field to given value.
diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md
index 3713f49f5f..8ee516347a 100644
--- a/docs/VLANRequest.md
+++ b/docs/VLANRequest.md
@@ -4,17 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.md) | | [optional]
-**Group** | Pointer to [**NullableNestedVLANGroupRequest**](NestedVLANGroupRequest.md) | | [optional]
**Vid** | **int32** | Numeric VLAN ID (1-4094) |
**Name** | **string** | |
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional]
-**Role** | Pointer to [**NullableNestedRoleRequest**](NestedRoleRequest.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
@@ -35,76 +27,6 @@ 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() NestedSiteRequest`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *VLANRequest) GetSiteOk() (*NestedSiteRequest, 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 NestedSiteRequest)`
-
-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() NestedVLANGroupRequest`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *VLANRequest) GetGroupOk() (*NestedVLANGroupRequest, 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 NestedVLANGroupRequest)`
-
-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`
@@ -145,101 +67,6 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetTenant
-
-`func (o *VLANRequest) GetTenant() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *VLANRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *VLANRequest) SetTenant(v NestedTenantRequest)`
-
-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() NestedRoleRequest`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *VLANRequest) GetRoleOk() (*NestedRoleRequest, 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 NestedRoleRequest)`
-
-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`
@@ -265,81 +92,6 @@ SetDescription sets Description field to given value.
HasDescription returns a boolean if a field has been set.
-### 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/VMInterface.md b/docs/VMInterface.md
index 32818ff0aa..ba4d5ef2c7 100644
--- a/docs/VMInterface.md
+++ b/docs/VMInterface.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | |
+**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | |
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional]
@@ -16,10 +16,10 @@ Name | Type | Description | Notes
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional]
-**UntaggedVlan** | Pointer to [**NullableNestedVLAN**](NestedVLAN.md) | | [optional]
-**TaggedVlans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRF**](NestedVRF.md) | | [optional]
-**L2vpnTermination** | [**NullableNestedL2VPNTermination**](NestedL2VPNTermination.md) | | [readonly]
+**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]
@@ -31,7 +31,7 @@ Name | Type | Description | Notes
### NewVMInterface
-`func NewVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string, l2vpnTermination NullableNestedL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface`
+`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,
@@ -108,20 +108,20 @@ SetDisplay sets Display field to given value.
### GetVirtualMachine
-`func (o *VMInterface) GetVirtualMachine() NestedVirtualMachine`
+`func (o *VMInterface) GetVirtualMachine() VirtualMachine`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *VMInterface) GetVirtualMachineOk() (*NestedVirtualMachine, bool)`
+`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 NestedVirtualMachine)`
+`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -363,20 +363,20 @@ HasMode returns a boolean if a field has been set.
### GetUntaggedVlan
-`func (o *VMInterface) GetUntaggedVlan() NestedVLAN`
+`func (o *VMInterface) GetUntaggedVlan() VLAN`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *VMInterface) GetUntaggedVlanOk() (*NestedVLAN, bool)`
+`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 NestedVLAN)`
+`func (o *VMInterface) SetUntaggedVlan(v VLAN)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -398,20 +398,20 @@ HasUntaggedVlan returns a boolean if a field has been set.
UnsetUntaggedVlan ensures that no value is present for UntaggedVlan, not even an explicit nil
### GetTaggedVlans
-`func (o *VMInterface) GetTaggedVlans() []int32`
+`func (o *VMInterface) GetTaggedVlans() []VLAN`
GetTaggedVlans returns the TaggedVlans field if non-nil, zero value otherwise.
### GetTaggedVlansOk
-`func (o *VMInterface) GetTaggedVlansOk() (*[]int32, bool)`
+`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 []int32)`
+`func (o *VMInterface) SetTaggedVlans(v []VLAN)`
SetTaggedVlans sets TaggedVlans field to given value.
@@ -423,20 +423,20 @@ HasTaggedVlans returns a boolean if a field has been set.
### GetVrf
-`func (o *VMInterface) GetVrf() NestedVRF`
+`func (o *VMInterface) GetVrf() VRF`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *VMInterface) GetVrfOk() (*NestedVRF, bool)`
+`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 NestedVRF)`
+`func (o *VMInterface) SetVrf(v VRF)`
SetVrf sets Vrf field to given value.
@@ -458,20 +458,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
### GetL2vpnTermination
-`func (o *VMInterface) GetL2vpnTermination() NestedL2VPNTermination`
+`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination`
GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise.
### GetL2vpnTerminationOk
-`func (o *VMInterface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool)`
+`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 NestedL2VPNTermination)`
+`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)`
SetL2vpnTermination sets L2vpnTermination field to given value.
diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md
index 89f4444fbd..f82ea7526e 100644
--- a/docs/VMInterfaceRequest.md
+++ b/docs/VMInterfaceRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VirtualMachine** | [**NestedVirtualMachineRequest**](NestedVirtualMachineRequest.md) | |
+**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | |
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional]
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional]
-**UntaggedVlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to [**NullableNestedVRFRequest**](NestedVRFRequest.md) | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewVMInterfaceRequest
-`func NewVMInterfaceRequest(virtualMachine NestedVirtualMachineRequest, name string, ) *VMInterfaceRequest`
+`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest`
NewVMInterfaceRequest instantiates a new VMInterfaceRequest object
This constructor will assign default values to properties that have it defined,
@@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set
### GetVirtualMachine
-`func (o *VMInterfaceRequest) GetVirtualMachine() NestedVirtualMachineRequest`
+`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool)`
+`func (o *VMInterfaceRequest) 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 *VMInterfaceRequest) SetVirtualMachine(v NestedVirtualMachineRequest)`
+`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set.
### GetUntaggedVlan
-`func (o *VMInterfaceRequest) GetUntaggedVlan() NestedVLANRequest`
+`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*NestedVLANRequest, bool)`
+`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 NestedVLANRequest)`
+`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set.
### GetVrf
-`func (o *VMInterfaceRequest) GetVrf() NestedVRFRequest`
+`func (o *VMInterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *VMInterfaceRequest) GetVrfOk() (*NestedVRFRequest, bool)`
+`func (o *VMInterfaceRequest) 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 *VMInterfaceRequest) SetVrf(v NestedVRFRequest)`
+`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/VRF.md b/docs/VRF.md
index 79b7465709..e30a5c20ec 100644
--- a/docs/VRF.md
+++ b/docs/VRF.md
@@ -9,24 +9,14 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Name** | **string** | |
**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.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 [**[]NestedTag**](NestedTag.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-**Created** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**IpaddressCount** | **int32** | | [readonly]
-**PrefixCount** | **int32** | | [readonly]
+**PrefixCount** | **int64** | | [readonly]
## Methods
### NewVRF
-`func NewVRF(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int32, prefixCount int32, ) *VRF`
+`func NewVRF(id int32, url string, display string, name string, prefixCount int64, ) *VRF`
NewVRF instantiates a new VRF object
This constructor will assign default values to properties that have it defined,
@@ -156,66 +146,6 @@ 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() NestedTenant`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *VRF) GetTenantOk() (*NestedTenant, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *VRF) SetTenant(v NestedTenant)`
-
-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`
@@ -241,227 +171,22 @@ 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() []int32`
-
-GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise.
-
-### GetImportTargetsOk
-
-`func (o *VRF) 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 *VRF) SetImportTargets(v []int32)`
-
-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() []int32`
-
-GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise.
-
-### GetExportTargetsOk
-
-`func (o *VRF) 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 *VRF) SetExportTargets(v []int32)`
-
-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.
-
-
-### 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.
-
-
-### 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() int32`
-
-GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise.
-
-### GetIpaddressCountOk
-
-`func (o *VRF) GetIpaddressCountOk() (*int32, 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 int32)`
-
-SetIpaddressCount sets IpaddressCount field to given value.
-
-
### GetPrefixCount
-`func (o *VRF) GetPrefixCount() int32`
+`func (o *VRF) GetPrefixCount() int64`
GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise.
### GetPrefixCountOk
-`func (o *VRF) GetPrefixCountOk() (*int32, bool)`
+`func (o *VRF) 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 *VRF) SetPrefixCount(v int32)`
+`func (o *VRF) SetPrefixCount(v int64)`
SetPrefixCount sets PrefixCount field to given value.
diff --git a/docs/VRFRequest.md b/docs/VRFRequest.md
index 319eaf16a2..6637879c65 100644
--- a/docs/VRFRequest.md
+++ b/docs/VRFRequest.md
@@ -6,14 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.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
@@ -89,66 +82,6 @@ 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() NestedTenantRequest`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *VRFRequest) GetTenantOk() (*NestedTenantRequest, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *VRFRequest) SetTenant(v NestedTenantRequest)`
-
-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`
@@ -174,131 +107,6 @@ 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 545c2f3b70..325cd6a07a 100644
--- a/docs/VirtualChassis.md
+++ b/docs/VirtualChassis.md
@@ -8,21 +8,15 @@ Name | Type | Description | Notes
**Url** | **string** | | [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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
**MemberCount** | **int32** | | [readonly]
## Methods
### NewVirtualChassis
-`func NewVirtualChassis(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, ) *VirtualChassis`
+`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis`
NewVirtualChassis instantiates a new VirtualChassis object
This constructor will assign default values to properties that have it defined,
@@ -117,31 +111,6 @@ 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`
@@ -202,141 +171,6 @@ 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.
-
-
-### 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.
-
-
-### 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`
diff --git a/docs/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md
index c8f966eb58..76fe6fb806 100644
--- a/docs/VirtualChassisRequest.md
+++ b/docs/VirtualChassisRequest.md
@@ -5,12 +5,8 @@
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
@@ -51,31 +47,6 @@ 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`
@@ -136,81 +107,6 @@ 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/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md
index 0f419503aa..6bdea62eba 100644
--- a/docs/VirtualDeviceContext.md
+++ b/docs/VirtualDeviceContext.md
@@ -8,12 +8,12 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Device** | [**NestedDevice**](NestedDevice.md) | |
-**Identifier** | Pointer to **NullableInt32** | Numeric identifier unique to the parent device | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**PrimaryIp** | [**NullableNestedIPAddress**](NestedIPAddress.md) | | [readonly]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
+**Device** | [**Device**](Device.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]
**Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
@@ -21,13 +21,13 @@ Name | Type | Description | Notes
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
**Created** | **NullableTime** | | [readonly]
**LastUpdated** | **NullableTime** | | [readonly]
-**InterfaceCount** | **int32** | | [readonly]
+**InterfaceCount** | **int64** | | [readonly]
## Methods
### NewVirtualDeviceContext
-`func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int32, ) *VirtualDeviceContext`
+`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext`
NewVirtualDeviceContext instantiates a new VirtualDeviceContext object
This constructor will assign default values to properties that have it defined,
@@ -124,20 +124,20 @@ SetName sets Name field to given value.
### GetDevice
-`func (o *VirtualDeviceContext) GetDevice() NestedDevice`
+`func (o *VirtualDeviceContext) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *VirtualDeviceContext) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *VirtualDeviceContext) 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 *VirtualDeviceContext) SetDevice(v NestedDevice)`
+`func (o *VirtualDeviceContext) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -179,20 +179,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() NestedTenant`
+`func (o *VirtualDeviceContext) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *VirtualDeviceContext) GetTenantOk() (*NestedTenant, bool)`
+`func (o *VirtualDeviceContext) 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 *VirtualDeviceContext) SetTenant(v NestedTenant)`
+`func (o *VirtualDeviceContext) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -214,20 +214,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
### GetPrimaryIp
-`func (o *VirtualDeviceContext) GetPrimaryIp() NestedIPAddress`
+`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress`
GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.
### GetPrimaryIpOk
-`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*NestedIPAddress, bool)`
+`func (o *VirtualDeviceContext) 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 *VirtualDeviceContext) SetPrimaryIp(v NestedIPAddress)`
+`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)`
SetPrimaryIp sets PrimaryIp field to given value.
@@ -244,20 +244,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() NestedIPAddress`
+`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*NestedIPAddress, bool)`
+`func (o *VirtualDeviceContext) 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 *VirtualDeviceContext) SetPrimaryIp4(v NestedIPAddress)`
+`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -279,20 +279,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() NestedIPAddress`
+`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*NestedIPAddress, bool)`
+`func (o *VirtualDeviceContext) 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 *VirtualDeviceContext) SetPrimaryIp6(v NestedIPAddress)`
+`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -494,20 +494,20 @@ SetLastUpdated sets LastUpdated field to given value.
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
### GetInterfaceCount
-`func (o *VirtualDeviceContext) GetInterfaceCount() int32`
+`func (o *VirtualDeviceContext) GetInterfaceCount() int64`
GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise.
### GetInterfaceCountOk
-`func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int32, bool)`
+`func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int64, 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 *VirtualDeviceContext) SetInterfaceCount(v int32)`
+`func (o *VirtualDeviceContext) SetInterfaceCount(v int64)`
SetInterfaceCount sets InterfaceCount field to given value.
diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md
index 692f6664fc..f3436b2b52 100644
--- a/docs/VirtualDeviceContextRequest.md
+++ b/docs/VirtualDeviceContextRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Device** | [**NestedDeviceRequest**](NestedDeviceRequest.md) | |
-**Identifier** | Pointer to **NullableInt32** | Numeric identifier unique to the parent device | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.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]
**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 NestedDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest`
+`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, 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() NestedDeviceRequest`
+`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *VirtualDeviceContextRequest) 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 *VirtualDeviceContextRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)`
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() NestedTenantRequest`
+`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *VirtualDeviceContextRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *VirtualDeviceContextRequest) 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 *VirtualDeviceContextRequest) SetTenant(v NestedTenantRequest)`
+`func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest)`
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() NestedIPAddressRequest`
+`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*NestedIPAddressRequest, bool)`
+`func (o *VirtualDeviceContextRequest) 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 *VirtualDeviceContextRequest) SetPrimaryIp4(v NestedIPAddressRequest)`
+`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)`
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() NestedIPAddressRequest`
+`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*NestedIPAddressRequest, bool)`
+`func (o *VirtualDeviceContextRequest) 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 *VirtualDeviceContextRequest) SetPrimaryIp6(v NestedIPAddressRequest)`
+`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md
index 36e3901624..2bc24b4e82 100644
--- a/docs/VirtualDisk.md
+++ b/docs/VirtualDisk.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | |
+**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | |
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Size** | **int32** | |
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewVirtualDisk
-`func NewVirtualDisk(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk`
+`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk`
NewVirtualDisk instantiates a new VirtualDisk object
This constructor will assign default values to properties that have it defined,
@@ -97,20 +97,20 @@ SetDisplay sets Display field to given value.
### GetVirtualMachine
-`func (o *VirtualDisk) GetVirtualMachine() NestedVirtualMachine`
+`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *VirtualDisk) GetVirtualMachineOk() (*NestedVirtualMachine, bool)`
+`func (o *VirtualDisk) 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 *VirtualDisk) SetVirtualMachine(v NestedVirtualMachine)`
+`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)`
SetVirtualMachine sets VirtualMachine field to given value.
diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md
index 3f11889626..3ec5d8bf75 100644
--- a/docs/VirtualDiskRequest.md
+++ b/docs/VirtualDiskRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VirtualMachine** | [**NestedVirtualMachineRequest**](NestedVirtualMachineRequest.md) | |
+**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | |
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
**Size** | **int32** | |
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
### NewVirtualDiskRequest
-`func NewVirtualDiskRequest(virtualMachine NestedVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest`
+`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, 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() NestedVirtualMachineRequest`
+`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool)`
+`func (o *VirtualDiskRequest) 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 *VirtualDiskRequest) SetVirtualMachine(v NestedVirtualMachineRequest)`
+`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
diff --git a/docs/NestedRackRole.md b/docs/VirtualMachine.md
similarity index 56%
rename from docs/NestedRackRole.md
rename to docs/VirtualMachine.md
index ab2a98d46d..0a93331fab 100644
--- a/docs/NestedRackRole.md
+++ b/docs/VirtualMachine.md
@@ -1,4 +1,4 @@
-# NestedRackRole
+# VirtualMachine
## Properties
@@ -8,126 +8,131 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Slug** | **string** | |
+**Description** | Pointer to **string** | | [optional]
## Methods
-### NewNestedRackRole
+### NewVirtualMachine
-`func NewNestedRackRole(id int32, url string, display string, name string, slug string, ) *NestedRackRole`
+`func NewVirtualMachine(id int32, url string, display string, name string, ) *VirtualMachine`
-NewNestedRackRole instantiates a new NestedRackRole object
+NewVirtualMachine instantiates a new VirtualMachine object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
-### NewNestedRackRoleWithDefaults
+### NewVirtualMachineWithDefaults
-`func NewNestedRackRoleWithDefaults() *NestedRackRole`
+`func NewVirtualMachineWithDefaults() *VirtualMachine`
-NewNestedRackRoleWithDefaults instantiates a new NestedRackRole object
+NewVirtualMachineWithDefaults instantiates a new VirtualMachine object
This 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 *NestedRackRole) GetId() int32`
+`func (o *VirtualMachine) GetId() int32`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
-`func (o *NestedRackRole) GetIdOk() (*int32, bool)`
+`func (o *VirtualMachine) 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 *NestedRackRole) SetId(v int32)`
+`func (o *VirtualMachine) SetId(v int32)`
SetId sets Id field to given value.
### GetUrl
-`func (o *NestedRackRole) GetUrl() string`
+`func (o *VirtualMachine) GetUrl() string`
GetUrl returns the Url field if non-nil, zero value otherwise.
### GetUrlOk
-`func (o *NestedRackRole) GetUrlOk() (*string, bool)`
+`func (o *VirtualMachine) 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 *NestedRackRole) SetUrl(v string)`
+`func (o *VirtualMachine) SetUrl(v string)`
SetUrl sets Url field to given value.
### GetDisplay
-`func (o *NestedRackRole) GetDisplay() string`
+`func (o *VirtualMachine) GetDisplay() string`
GetDisplay returns the Display field if non-nil, zero value otherwise.
### GetDisplayOk
-`func (o *NestedRackRole) GetDisplayOk() (*string, bool)`
+`func (o *VirtualMachine) 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 *NestedRackRole) SetDisplay(v string)`
+`func (o *VirtualMachine) SetDisplay(v string)`
SetDisplay sets Display field to given value.
### GetName
-`func (o *NestedRackRole) GetName() string`
+`func (o *VirtualMachine) GetName() string`
GetName returns the Name field if non-nil, zero value otherwise.
### GetNameOk
-`func (o *NestedRackRole) GetNameOk() (*string, bool)`
+`func (o *VirtualMachine) 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 *NestedRackRole) SetName(v string)`
+`func (o *VirtualMachine) SetName(v string)`
SetName sets Name field to given value.
-### GetSlug
+### GetDescription
-`func (o *NestedRackRole) GetSlug() string`
+`func (o *VirtualMachine) GetDescription() string`
-GetSlug returns the Slug field if non-nil, zero value otherwise.
+GetDescription returns the Description field if non-nil, zero value otherwise.
-### GetSlugOk
+### GetDescriptionOk
-`func (o *NestedRackRole) GetSlugOk() (*string, bool)`
+`func (o *VirtualMachine) GetDescriptionOk() (*string, bool)`
-GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise
+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.
-### SetSlug
+### SetDescription
-`func (o *NestedRackRole) SetSlug(v string)`
+`func (o *VirtualMachine) SetDescription(v string)`
-SetSlug sets Slug field to given value.
+SetDescription sets Description field to given value.
+### HasDescription
+
+`func (o *VirtualMachine) 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/VirtualMachineRequest.md b/docs/VirtualMachineRequest.md
new file mode 100644
index 0000000000..f4060f817a
--- /dev/null
+++ b/docs/VirtualMachineRequest.md
@@ -0,0 +1,77 @@
+# VirtualMachineRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | |
+**Description** | Pointer to **string** | | [optional]
+
+## Methods
+
+### NewVirtualMachineRequest
+
+`func NewVirtualMachineRequest(name string, ) *VirtualMachineRequest`
+
+NewVirtualMachineRequest instantiates a new VirtualMachineRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewVirtualMachineRequestWithDefaults
+
+`func NewVirtualMachineRequestWithDefaults() *VirtualMachineRequest`
+
+NewVirtualMachineRequestWithDefaults instantiates a new VirtualMachineRequest object
+This 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 *VirtualMachineRequest) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *VirtualMachineRequest) 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 *VirtualMachineRequest) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetDescription
+
+`func (o *VirtualMachineRequest) GetDescription() string`
+
+GetDescription returns the Description field if non-nil, zero value otherwise.
+
+### GetDescriptionOk
+
+`func (o *VirtualMachineRequest) 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 *VirtualMachineRequest) SetDescription(v string)`
+
+SetDescription sets Description field to given value.
+
+### HasDescription
+
+`func (o *VirtualMachineRequest) 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/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md
index 022b576051..bb09969ee7 100644
--- a/docs/VirtualMachineWithConfigContext.md
+++ b/docs/VirtualMachineWithConfigContext.md
@@ -8,22 +8,22 @@ Name | Type | Description | Notes
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
**Name** | **string** | |
-**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional]
-**Site** | Pointer to [**NullableNestedSite**](NestedSite.md) | | [optional]
-**Cluster** | Pointer to [**NullableNestedCluster**](NestedCluster.md) | | [optional]
-**Device** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional]
-**Role** | Pointer to [**NullableNestedDeviceRole**](NestedDeviceRole.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
-**Platform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [optional]
-**PrimaryIp** | [**NullableNestedIPAddress**](NestedIPAddress.md) | | [readonly]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional]
+**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]
**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 [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [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]
@@ -37,7 +37,7 @@ Name | Type | Description | Notes
### NewVirtualMachineWithConfigContext
-`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableNestedIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext`
+`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext`
NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object
This constructor will assign default values to properties that have it defined,
@@ -134,20 +134,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus`
+`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool)`
+`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, 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 ModuleStatus)`
+`func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)`
SetStatus sets Status field to given value.
@@ -159,20 +159,20 @@ HasStatus returns a boolean if a field has been set.
### GetSite
-`func (o *VirtualMachineWithConfigContext) GetSite() NestedSite`
+`func (o *VirtualMachineWithConfigContext) GetSite() Site`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*NestedSite, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetSite(v NestedSite)`
+`func (o *VirtualMachineWithConfigContext) SetSite(v Site)`
SetSite sets Site field to given value.
@@ -194,20 +194,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() NestedCluster`
+`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*NestedCluster, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetCluster(v NestedCluster)`
+`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)`
SetCluster sets Cluster field to given value.
@@ -229,20 +229,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() NestedDevice`
+`func (o *VirtualMachineWithConfigContext) GetDevice() Device`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*NestedDevice, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetDevice(v NestedDevice)`
+`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)`
SetDevice sets Device field to given value.
@@ -264,20 +264,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
### GetRole
-`func (o *VirtualMachineWithConfigContext) GetRole() NestedDeviceRole`
+`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetRole(v NestedDeviceRole)`
+`func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole)`
SetRole sets Role field to given value.
@@ -299,20 +299,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() NestedTenant`
+`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*NestedTenant, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetTenant(v NestedTenant)`
+`func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
@@ -334,20 +334,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() NestedPlatform`
+`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*NestedPlatform, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetPlatform(v NestedPlatform)`
+`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)`
SetPlatform sets Platform field to given value.
@@ -369,20 +369,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
### GetPrimaryIp
-`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() NestedIPAddress`
+`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress`
GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise.
### GetPrimaryIpOk
-`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetPrimaryIp(v NestedIPAddress)`
+`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)`
SetPrimaryIp sets PrimaryIp field to given value.
@@ -399,20 +399,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() NestedIPAddress`
+`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*NestedIPAddress, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetPrimaryIp4(v NestedIPAddress)`
+`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -434,20 +434,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() NestedIPAddress`
+`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*NestedIPAddress, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetPrimaryIp6(v NestedIPAddress)`
+`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -624,20 +624,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() NestedConfigTemplate`
+`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool)`
+`func (o *VirtualMachineWithConfigContext) 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 *VirtualMachineWithConfigContext) SetConfigTemplate(v NestedConfigTemplate)`
+`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md
index ced42c2ae7..44050ed132 100644
--- a/docs/VirtualMachineWithConfigContextRequest.md
+++ b/docs/VirtualMachineWithConfigContextRequest.md
@@ -5,21 +5,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
-**Site** | Pointer to [**NullableNestedSiteRequest**](NestedSiteRequest.md) | | [optional]
-**Cluster** | Pointer to [**NullableNestedClusterRequest**](NestedClusterRequest.md) | | [optional]
-**Device** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional]
-**Role** | Pointer to [**NullableNestedDeviceRoleRequest**](NestedDeviceRoleRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
-**Platform** | Pointer to [**NullableNestedPlatformRequest**](NestedPlatformRequest.md) | | [optional]
-**PrimaryIp4** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional]
-**PrimaryIp6** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [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]
**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 [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [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]
@@ -65,20 +65,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
+`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue)`
+`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)`
SetStatus sets Status field to given value.
@@ -90,20 +90,20 @@ HasStatus returns a boolean if a field has been set.
### GetSite
-`func (o *VirtualMachineWithConfigContextRequest) GetSite() NestedSiteRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*NestedSiteRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetSite(v NestedSiteRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -125,20 +125,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() NestedClusterRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*NestedClusterRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetCluster(v NestedClusterRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)`
SetCluster sets Cluster field to given value.
@@ -160,20 +160,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() NestedDeviceRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*NestedDeviceRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetDevice(v NestedDeviceRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -195,20 +195,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
### GetRole
-`func (o *VirtualMachineWithConfigContextRequest) GetRole() NestedDeviceRoleRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
SetRole sets Role field to given value.
@@ -230,20 +230,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() NestedTenantRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetTenant(v NestedTenantRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -265,20 +265,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() NestedPlatformRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*NestedPlatformRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetPlatform(v NestedPlatformRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)`
SetPlatform sets Platform field to given value.
@@ -300,20 +300,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() NestedIPAddressRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*NestedIPAddressRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -335,20 +335,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() NestedIPAddressRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*NestedIPAddressRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -525,20 +525,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplateRequest`
+`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)`
+`func (o *VirtualMachineWithConfigContextRequest) 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 *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest)`
+`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/VirtualMachineWithConfigContextStatus.md b/docs/VirtualMachineWithConfigContextStatus.md
new file mode 100644
index 0000000000..d78ef89111
--- /dev/null
+++ b/docs/VirtualMachineWithConfigContextStatus.md
@@ -0,0 +1,82 @@
+# 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/ModuleStatusLabel.md b/docs/VirtualMachineWithConfigContextStatusLabel.md
similarity index 89%
rename from docs/ModuleStatusLabel.md
rename to docs/VirtualMachineWithConfigContextStatusLabel.md
index 3673c61f21..7889f8e494 100644
--- a/docs/ModuleStatusLabel.md
+++ b/docs/VirtualMachineWithConfigContextStatusLabel.md
@@ -1,4 +1,4 @@
-# ModuleStatusLabel
+# VirtualMachineWithConfigContextStatusLabel
## Enum
diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md
index 0de92f616b..b93f4f2661 100644
--- a/docs/VirtualizationAPI.md
+++ b/docs/VirtualizationAPI.md
@@ -79,7 +79,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -143,7 +143,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -209,7 +209,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -275,7 +275,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -341,7 +341,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -410,7 +410,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -612,7 +612,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -684,7 +684,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -754,7 +754,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -826,7 +826,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -890,7 +890,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -956,7 +956,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1022,7 +1022,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1088,7 +1088,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1157,7 +1157,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1347,7 +1347,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1419,7 +1419,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1489,7 +1489,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1561,11 +1561,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1625,11 +1625,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1691,11 +1691,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewNestedClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest |
+ clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1757,11 +1757,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
+ writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1823,7 +1823,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1892,7 +1892,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2132,7 +2132,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2204,7 +2204,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2274,12 +2274,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this cluster.
- writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", int32(123)) // WritableClusterRequest |
+ writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2346,11 +2346,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2410,11 +2410,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2476,11 +2476,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
+ vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2542,11 +2542,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
+ writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2608,7 +2608,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2661,7 +2661,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).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).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()
@@ -2677,7 +2677,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2736,6 +2736,8 @@ 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)
modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
mtu := []int32{int32(123)} // []int32 | (optional)
mtuEmpty := true // bool | (optional)
@@ -2776,7 +2778,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).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).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()
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)
@@ -2852,6 +2854,8 @@ 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) |
**modifiedByRequest** | **string** | |
**mtu** | **[]int32** | |
**mtuEmpty** | **bool** | |
@@ -2925,7 +2929,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2997,7 +3001,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3067,12 +3071,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this interface.
- writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(int32(123), "Name_example") // WritableVMInterfaceRequest |
+ writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3139,11 +3143,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3203,11 +3207,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3269,11 +3273,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewNestedVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
+ virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3320,7 +3324,7 @@ Name | Type | Description | Notes
## VirtualizationVirtualDisksCreate
-> VirtualDisk VirtualizationVirtualDisksCreate(ctx).WritableVirtualDiskRequest(writableVirtualDiskRequest).Execute()
+> VirtualDisk VirtualizationVirtualDisksCreate(ctx).VirtualDiskRequest(virtualDiskRequest).Execute()
@@ -3335,15 +3339,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableVirtualDiskRequest := *openapiclient.NewWritableVirtualDiskRequest(int32(123), "Name_example", int32(123)) // WritableVirtualDiskRequest |
+ virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).WritableVirtualDiskRequest(writableVirtualDiskRequest).Execute()
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).VirtualDiskRequest(virtualDiskRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3364,7 +3368,7 @@ Other parameters are passed through a pointer to a apiVirtualizationVirtualDisks
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableVirtualDiskRequest** | [**WritableVirtualDiskRequest**](WritableVirtualDiskRequest.md) | |
+ **virtualDiskRequest** | [**VirtualDiskRequest**](VirtualDiskRequest.md) | |
### Return type
@@ -3401,7 +3405,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3470,7 +3474,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3645,7 +3649,7 @@ Name | Type | Description | Notes
## VirtualizationVirtualDisksPartialUpdate
-> VirtualDisk VirtualizationVirtualDisksPartialUpdate(ctx, id).PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest).Execute()
+> VirtualDisk VirtualizationVirtualDisksPartialUpdate(ctx, id).PatchedVirtualDiskRequest(patchedVirtualDiskRequest).Execute()
@@ -3660,16 +3664,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this virtual disk.
- patchedWritableVirtualDiskRequest := *openapiclient.NewPatchedWritableVirtualDiskRequest() // PatchedWritableVirtualDiskRequest | (optional)
+ patchedVirtualDiskRequest := *openapiclient.NewPatchedVirtualDiskRequest() // PatchedVirtualDiskRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).PatchedWritableVirtualDiskRequest(patchedWritableVirtualDiskRequest).Execute()
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).PatchedVirtualDiskRequest(patchedVirtualDiskRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3695,7 +3699,7 @@ Other parameters are passed through a pointer to a apiVirtualizationVirtualDisks
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableVirtualDiskRequest** | [**PatchedWritableVirtualDiskRequest**](PatchedWritableVirtualDiskRequest.md) | |
+ **patchedVirtualDiskRequest** | [**PatchedVirtualDiskRequest**](PatchedVirtualDiskRequest.md) | |
### Return type
@@ -3732,7 +3736,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3787,7 +3791,7 @@ Name | Type | Description | Notes
## VirtualizationVirtualDisksUpdate
-> VirtualDisk VirtualizationVirtualDisksUpdate(ctx, id).WritableVirtualDiskRequest(writableVirtualDiskRequest).Execute()
+> VirtualDisk VirtualizationVirtualDisksUpdate(ctx, id).VirtualDiskRequest(virtualDiskRequest).Execute()
@@ -3802,16 +3806,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this virtual disk.
- writableVirtualDiskRequest := *openapiclient.NewWritableVirtualDiskRequest(int32(123), "Name_example", int32(123)) // WritableVirtualDiskRequest |
+ virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).WritableVirtualDiskRequest(writableVirtualDiskRequest).Execute()
+ resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).VirtualDiskRequest(virtualDiskRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualDisksUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -3837,7 +3841,7 @@ Other parameters are passed through a pointer to a apiVirtualizationVirtualDisks
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableVirtualDiskRequest** | [**WritableVirtualDiskRequest**](WritableVirtualDiskRequest.md) | |
+ **virtualDiskRequest** | [**VirtualDiskRequest**](VirtualDiskRequest.md) | |
### Return type
@@ -3874,7 +3878,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3938,7 +3942,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4004,7 +4008,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4070,7 +4074,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4136,7 +4140,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4189,7 +4193,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).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).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).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()
@@ -4205,7 +4209,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4267,6 +4271,13 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceCount := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountEmpty := true // bool | (optional)
+ interfaceCountGt := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountGte := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountLt := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountLte := []int32{int32(123)} // []int32 | (optional)
+ interfaceCountN := []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)
@@ -4352,10 +4363,17 @@ func main() {
vcpusLt := []float64{float64(123)} // []float64 | (optional)
vcpusLte := []float64{float64(123)} // []float64 | (optional)
vcpusN := []float64{float64(123)} // []float64 | (optional)
+ virtualDiskCount := []int32{int32(123)} // []int32 | (optional)
+ virtualDiskCountEmpty := true // bool | (optional)
+ virtualDiskCountGt := []int32{int32(123)} // []int32 | (optional)
+ virtualDiskCountGte := []int32{int32(123)} // []int32 | (optional)
+ virtualDiskCountLt := []int32{int32(123)} // []int32 | (optional)
+ virtualDiskCountLte := []int32{int32(123)} // []int32 | (optional)
+ virtualDiskCountN := []int32{int32(123)} // []int32 | (optional)
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).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).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).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()
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)
@@ -4434,6 +4452,13 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **interfaceCount** | **[]int32** | |
+ **interfaceCountEmpty** | **bool** | |
+ **interfaceCountGt** | **[]int32** | |
+ **interfaceCountGte** | **[]int32** | |
+ **interfaceCountLt** | **[]int32** | |
+ **interfaceCountLte** | **[]int32** | |
+ **interfaceCountN** | **[]int32** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
@@ -4519,6 +4544,13 @@ Name | Type | Description | Notes
**vcpusLt** | **[]float64** | |
**vcpusLte** | **[]float64** | |
**vcpusN** | **[]float64** | |
+ **virtualDiskCount** | **[]int32** | |
+ **virtualDiskCountEmpty** | **bool** | |
+ **virtualDiskCountGt** | **[]int32** | |
+ **virtualDiskCountGte** | **[]int32** | |
+ **virtualDiskCountLt** | **[]int32** | |
+ **virtualDiskCountLte** | **[]int32** | |
+ **virtualDiskCountN** | **[]int32** | |
### Return type
@@ -4555,7 +4587,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4627,7 +4659,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4701,7 +4733,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4771,7 +4803,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md
index 0bc4696a6a..4a260a9e03 100644
--- a/docs/VpnAPI.md
+++ b/docs/VpnAPI.md
@@ -114,7 +114,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -178,7 +178,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -244,7 +244,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -310,11 +310,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example", []int32{int32(123)}) // WritableIKEPolicyRequest |
+ writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example") // WritableIKEPolicyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -376,7 +376,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -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).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).ProposalEmpty(proposalEmpty).ProposalIc(proposalIc).ProposalIe(proposalIe).ProposalIew(proposalIew).ProposalIsw(proposalIsw).ProposalN(proposalN).ProposalNic(proposalNic).ProposalNie(proposalNie).ProposalNiew(proposalNiew).ProposalNisw(proposalNisw).ProposalId(proposalId).ProposalIdEmpty(proposalIdEmpty).ProposalIdGt(proposalIdGt).ProposalIdGte(proposalIdGte).ProposalIdLt(proposalIdLt).ProposalIdLte(proposalIdLte).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).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()
@@ -445,7 +445,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -475,6 +475,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ ikeProposal := []string{"Inner_example"} // []string | (optional)
+ ikeProposalN := []string{"Inner_example"} // []string | (optional)
+ ikeProposalId := []int32{int32(123)} // []int32 | (optional)
+ ikeProposalIdN := []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)
@@ -510,22 +514,8 @@ func main() {
presharedKeyNiew := "presharedKeyNiew_example" // string | (optional)
presharedKeyNisw := "presharedKeyNisw_example" // string | (optional)
proposal := []string{"Inner_example"} // []string | (optional)
- proposalEmpty := true // bool | (optional)
- proposalIc := []string{"Inner_example"} // []string | (optional)
- proposalIe := []string{"Inner_example"} // []string | (optional)
- proposalIew := []string{"Inner_example"} // []string | (optional)
- proposalIsw := []string{"Inner_example"} // []string | (optional)
proposalN := []string{"Inner_example"} // []string | (optional)
- proposalNic := []string{"Inner_example"} // []string | (optional)
- proposalNie := []string{"Inner_example"} // []string | (optional)
- proposalNiew := []string{"Inner_example"} // []string | (optional)
- proposalNisw := []string{"Inner_example"} // []string | (optional)
proposalId := []int32{int32(123)} // []int32 | (optional)
- proposalIdEmpty := []int32{int32(123)} // []int32 | (optional)
- proposalIdGt := []int32{int32(123)} // []int32 | (optional)
- proposalIdGte := []int32{int32(123)} // []int32 | (optional)
- proposalIdLt := []int32{int32(123)} // []int32 | (optional)
- proposalIdLte := []int32{int32(123)} // []int32 | (optional)
proposalIdN := []int32{int32(123)} // []int32 | (optional)
q := "q_example" // string | Search (optional)
tag := []string{"Inner_example"} // []string | (optional)
@@ -536,7 +526,7 @@ func main() {
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).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).ProposalEmpty(proposalEmpty).ProposalIc(proposalIc).ProposalIe(proposalIe).ProposalIew(proposalIew).ProposalIsw(proposalIsw).ProposalN(proposalN).ProposalNic(proposalNic).ProposalNie(proposalNie).ProposalNiew(proposalNiew).ProposalNisw(proposalNisw).ProposalId(proposalId).ProposalIdEmpty(proposalIdEmpty).ProposalIdGt(proposalIdGt).ProposalIdGte(proposalIdGte).ProposalIdLt(proposalIdLt).ProposalIdLte(proposalIdLte).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).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()
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)
@@ -583,6 +573,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **ikeProposal** | **[]string** | |
+ **ikeProposalN** | **[]string** | |
+ **ikeProposalId** | **[]int32** | |
+ **ikeProposalIdN** | **[]int32** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
@@ -618,22 +612,8 @@ Name | Type | Description | Notes
**presharedKeyNiew** | **string** | |
**presharedKeyNisw** | **string** | |
**proposal** | **[]string** | |
- **proposalEmpty** | **bool** | |
- **proposalIc** | **[]string** | |
- **proposalIe** | **[]string** | |
- **proposalIew** | **[]string** | |
- **proposalIsw** | **[]string** | |
**proposalN** | **[]string** | |
- **proposalNic** | **[]string** | |
- **proposalNie** | **[]string** | |
- **proposalNiew** | **[]string** | |
- **proposalNisw** | **[]string** | |
**proposalId** | **[]int32** | |
- **proposalIdEmpty** | **[]int32** | |
- **proposalIdGt** | **[]int32** | |
- **proposalIdGte** | **[]int32** | |
- **proposalIdLt** | **[]int32** | |
- **proposalIdLte** | **[]int32** | |
**proposalIdN** | **[]int32** | |
**q** | **string** | Search |
**tag** | **[]string** | |
@@ -677,7 +657,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -749,7 +729,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -819,12 +799,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this IKE policy.
- writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example", []int32{int32(123)}) // WritableIKEPolicyRequest |
+ writableIKEPolicyRequest := *openapiclient.NewWritableIKEPolicyRequest("Name_example") // WritableIKEPolicyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -891,7 +871,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -955,7 +935,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1021,7 +1001,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1087,7 +1067,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1153,7 +1133,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1222,7 +1202,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1428,7 +1408,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1500,7 +1480,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1570,7 +1550,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1642,7 +1622,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1706,7 +1686,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1772,7 +1752,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1838,11 +1818,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example", []int32{int32(123)}) // WritableIPSecPolicyRequest |
+ writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example") // WritableIPSecPolicyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1904,7 +1884,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1957,7 +1937,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).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).ProposalEmpty(proposalEmpty).ProposalIc(proposalIc).ProposalIe(proposalIe).ProposalIew(proposalIew).ProposalIsw(proposalIsw).ProposalN(proposalN).ProposalNic(proposalNic).ProposalNie(proposalNie).ProposalNiew(proposalNiew).ProposalNisw(proposalNisw).ProposalId(proposalId).ProposalIdEmpty(proposalIdEmpty).ProposalIdGt(proposalIdGt).ProposalIdGte(proposalIdGte).ProposalIdLt(proposalIdLt).ProposalIdLte(proposalIdLte).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).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -1973,7 +1953,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2003,6 +1983,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ ipsecProposal := []string{"Inner_example"} // []string | (optional)
+ ipsecProposalN := []string{"Inner_example"} // []string | (optional)
+ ipsecProposalId := []int32{int32(123)} // []int32 | (optional)
+ ipsecProposalIdN := []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)
@@ -2028,22 +2012,8 @@ func main() {
pfsGroup := []*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)
- proposalEmpty := true // bool | (optional)
- proposalIc := []string{"Inner_example"} // []string | (optional)
- proposalIe := []string{"Inner_example"} // []string | (optional)
- proposalIew := []string{"Inner_example"} // []string | (optional)
- proposalIsw := []string{"Inner_example"} // []string | (optional)
proposalN := []string{"Inner_example"} // []string | (optional)
- proposalNic := []string{"Inner_example"} // []string | (optional)
- proposalNie := []string{"Inner_example"} // []string | (optional)
- proposalNiew := []string{"Inner_example"} // []string | (optional)
- proposalNisw := []string{"Inner_example"} // []string | (optional)
proposalId := []int32{int32(123)} // []int32 | (optional)
- proposalIdEmpty := []int32{int32(123)} // []int32 | (optional)
- proposalIdGt := []int32{int32(123)} // []int32 | (optional)
- proposalIdGte := []int32{int32(123)} // []int32 | (optional)
- proposalIdLt := []int32{int32(123)} // []int32 | (optional)
- proposalIdLte := []int32{int32(123)} // []int32 | (optional)
proposalIdN := []int32{int32(123)} // []int32 | (optional)
q := "q_example" // string | Search (optional)
tag := []string{"Inner_example"} // []string | (optional)
@@ -2052,7 +2022,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).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).ProposalEmpty(proposalEmpty).ProposalIc(proposalIc).ProposalIe(proposalIe).ProposalIew(proposalIew).ProposalIsw(proposalIsw).ProposalN(proposalN).ProposalNic(proposalNic).ProposalNie(proposalNie).ProposalNiew(proposalNiew).ProposalNisw(proposalNisw).ProposalId(proposalId).ProposalIdEmpty(proposalIdEmpty).ProposalIdGt(proposalIdGt).ProposalIdGte(proposalIdGte).ProposalIdLt(proposalIdLt).ProposalIdLte(proposalIdLte).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).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).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)
@@ -2099,6 +2069,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **ipsecProposal** | **[]string** | |
+ **ipsecProposalN** | **[]string** | |
+ **ipsecProposalId** | **[]int32** | |
+ **ipsecProposalIdN** | **[]int32** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
@@ -2124,22 +2098,8 @@ Name | Type | Description | Notes
**pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy |
**pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy |
**proposal** | **[]string** | |
- **proposalEmpty** | **bool** | |
- **proposalIc** | **[]string** | |
- **proposalIe** | **[]string** | |
- **proposalIew** | **[]string** | |
- **proposalIsw** | **[]string** | |
**proposalN** | **[]string** | |
- **proposalNic** | **[]string** | |
- **proposalNie** | **[]string** | |
- **proposalNiew** | **[]string** | |
- **proposalNisw** | **[]string** | |
**proposalId** | **[]int32** | |
- **proposalIdEmpty** | **[]int32** | |
- **proposalIdGt** | **[]int32** | |
- **proposalIdGte** | **[]int32** | |
- **proposalIdLt** | **[]int32** | |
- **proposalIdLte** | **[]int32** | |
**proposalIdN** | **[]int32** | |
**q** | **string** | Search |
**tag** | **[]string** | |
@@ -2181,7 +2141,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2253,7 +2213,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2323,12 +2283,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this IPSec policy.
- writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example", []int32{int32(123)}) // WritableIPSecPolicyRequest |
+ writableIPSecPolicyRequest := *openapiclient.NewWritableIPSecPolicyRequest("Name_example") // WritableIPSecPolicyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2395,11 +2355,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2459,11 +2419,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2525,11 +2485,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewNestedIKEPolicyRequest("Name_example"), *openapiclient.NewNestedIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2591,11 +2551,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), int32(123), int32(123)) // WritableIPSecProfileRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -2657,7 +2617,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2726,7 +2686,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2914,7 +2874,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2986,7 +2946,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3056,12 +3016,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this IPSec profile.
- writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), int32(123), int32(123)) // WritableIPSecProfileRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3128,7 +3088,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3192,7 +3152,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3258,7 +3218,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3324,7 +3284,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3390,7 +3350,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3443,7 +3403,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).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).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()
@@ -3459,7 +3419,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3493,6 +3453,10 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ ipsecPolicy := []string{"Inner_example"} // []string | IPSec policy (name) (optional)
+ ipsecPolicyN := []string{"Inner_example"} // []string | IPSec policy (name) (optional)
+ ipsecPolicyId := []int32{int32(123)} // []int32 | IPSec policy (ID) (optional)
+ ipsecPolicyIdN := []int32{int32(123)} // []int32 | IPSec policy (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)
@@ -3536,7 +3500,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).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).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()
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)
@@ -3587,6 +3551,10 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **ipsecPolicy** | **[]string** | IPSec policy (name) |
+ **ipsecPolicyN** | **[]string** | IPSec policy (name) |
+ **ipsecPolicyId** | **[]int32** | IPSec policy (ID) |
+ **ipsecPolicyIdN** | **[]int32** | IPSec policy (ID) |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
@@ -3663,7 +3631,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3735,7 +3703,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3805,7 +3773,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -3877,11 +3845,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -3941,11 +3909,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4007,11 +3975,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewNestedL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest |
+ l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -4058,7 +4026,7 @@ Name | Type | Description | Notes
## VpnL2vpnTerminationsCreate
-> L2VPNTermination VpnL2vpnTerminationsCreate(ctx).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
+> L2VPNTermination VpnL2vpnTerminationsCreate(ctx).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
@@ -4073,15 +4041,15 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
+ l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4102,7 +4070,7 @@ Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsCreate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
+ **l2VPNTerminationRequest** | [**L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
### Return type
@@ -4139,7 +4107,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4192,7 +4160,7 @@ Name | Type | Description | Notes
## VpnL2vpnTerminationsList
-> PaginatedL2VPNTerminationList VpnL2vpnTerminationsList(ctx).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
+> PaginatedL2VPNTerminationList VpnL2vpnTerminationsList(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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
@@ -4208,14 +4176,19 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
+ assignedObjectId := []int32{int32(123)} // []int32 | (optional)
+ assignedObjectIdEmpty := true // bool | (optional)
+ assignedObjectIdGt := []int32{int32(123)} // []int32 | (optional)
+ assignedObjectIdGte := []int32{int32(123)} // []int32 | (optional)
+ assignedObjectIdLt := []int32{int32(123)} // []int32 | (optional)
+ assignedObjectIdLte := []int32{int32(123)} // []int32 | (optional)
+ assignedObjectIdN := []int32{int32(123)} // []int32 | (optional)
assignedObjectType := "assignedObjectType_example" // string | (optional)
assignedObjectTypeN := "assignedObjectTypeN_example" // string | (optional)
- assignedObjectTypeId := int32(56) // int32 | (optional)
- assignedObjectTypeIdN := int32(56) // int32 | (optional)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -4284,7 +4257,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsList(context.Background()).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsList(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).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4305,10 +4278,15 @@ Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsListRe
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **assignedObjectId** | **[]int32** | |
+ **assignedObjectIdEmpty** | **bool** | |
+ **assignedObjectIdGt** | **[]int32** | |
+ **assignedObjectIdGte** | **[]int32** | |
+ **assignedObjectIdLt** | **[]int32** | |
+ **assignedObjectIdLte** | **[]int32** | |
+ **assignedObjectIdN** | **[]int32** | |
**assignedObjectType** | **string** | |
**assignedObjectTypeN** | **string** | |
- **assignedObjectTypeId** | **int32** | |
- **assignedObjectTypeIdN** | **int32** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -4395,7 +4373,7 @@ Name | Type | Description | Notes
## VpnL2vpnTerminationsPartialUpdate
-> L2VPNTermination VpnL2vpnTerminationsPartialUpdate(ctx, id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).Execute()
+> L2VPNTermination VpnL2vpnTerminationsPartialUpdate(ctx, id).PatchedL2VPNTerminationRequest(patchedL2VPNTerminationRequest).Execute()
@@ -4410,16 +4388,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this L2VPN termination.
- patchedWritableL2VPNTerminationRequest := *openapiclient.NewPatchedWritableL2VPNTerminationRequest() // PatchedWritableL2VPNTerminationRequest | (optional)
+ patchedL2VPNTerminationRequest := *openapiclient.NewPatchedL2VPNTerminationRequest() // PatchedL2VPNTerminationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).Execute()
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedL2VPNTerminationRequest(patchedL2VPNTerminationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsPartialUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4445,7 +4423,7 @@ Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsPartia
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **patchedWritableL2VPNTerminationRequest** | [**PatchedWritableL2VPNTerminationRequest**](PatchedWritableL2VPNTerminationRequest.md) | |
+ **patchedL2VPNTerminationRequest** | [**PatchedL2VPNTerminationRequest**](PatchedL2VPNTerminationRequest.md) | |
### Return type
@@ -4482,7 +4460,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4537,7 +4515,7 @@ Name | Type | Description | Notes
## VpnL2vpnTerminationsUpdate
-> L2VPNTermination VpnL2vpnTerminationsUpdate(ctx, id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
+> L2VPNTermination VpnL2vpnTerminationsUpdate(ctx, id).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
@@ -4552,16 +4530,16 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this L2VPN termination.
- writableL2VPNTerminationRequest := *openapiclient.NewWritableL2VPNTerminationRequest(int32(123), "AssignedObjectType_example", int64(123)) // WritableL2VPNTerminationRequest |
+ l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute()
+ resp, r, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnTerminationsUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -4587,7 +4565,7 @@ Other parameters are passed through a pointer to a apiVpnL2vpnTerminationsUpdate
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **writableL2VPNTerminationRequest** | [**WritableL2VPNTerminationRequest**](WritableL2VPNTerminationRequest.md) | |
+ **l2VPNTerminationRequest** | [**L2VPNTerminationRequest**](L2VPNTerminationRequest.md) | |
### Return type
@@ -4624,7 +4602,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4688,7 +4666,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4754,7 +4732,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4820,7 +4798,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4886,7 +4864,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -4955,7 +4933,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5195,7 +5173,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5267,7 +5245,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5337,7 +5315,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5409,7 +5387,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5473,7 +5451,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5539,7 +5517,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5605,7 +5583,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5671,7 +5649,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5740,7 +5718,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -5930,7 +5908,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6002,7 +5980,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6072,7 +6050,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6144,11 +6122,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6208,11 +6186,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6274,11 +6252,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewNestedTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest |
+ tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6340,11 +6318,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(int32(123), "TerminationType_example") // WritableTunnelTerminationRequest |
+ writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6406,7 +6384,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6459,7 +6437,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).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).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()
@@ -6475,7 +6453,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6516,6 +6494,13 @@ func main() {
roleN := []string{"Inner_example"} // []string | (optional)
tag := []string{"Inner_example"} // []string | (optional)
tagN := []string{"Inner_example"} // []string | (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)
tunnel := []string{"Inner_example"} // []string | Tunnel (name) (optional)
@@ -6530,7 +6515,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).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).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()
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)
@@ -6588,6 +6573,13 @@ Name | Type | Description | Notes
**roleN** | **[]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** | Tunnel (name) |
@@ -6635,7 +6627,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6707,7 +6699,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -6777,12 +6769,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this tunnel termination.
- writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(int32(123), "TerminationType_example") // WritableTunnelTerminationRequest |
+ writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6849,11 +6841,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6913,11 +6905,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -6979,11 +6971,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest |
+ tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -7045,7 +7037,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7111,7 +7103,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7180,7 +7172,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7402,7 +7394,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7474,7 +7466,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -7544,7 +7536,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/docs/WirelessAPI.md b/docs/WirelessAPI.md
index 0e2ae6f4cc..e35e3430e9 100644
--- a/docs/WirelessAPI.md
+++ b/docs/WirelessAPI.md
@@ -51,7 +51,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -115,7 +115,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -181,7 +181,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -247,11 +247,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
+ writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableWirelessLANGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -313,7 +313,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -366,7 +366,7 @@ Name | Type | Description | Notes
## WirelessWirelessLanGroupsList
-> PaginatedWirelessLANGroupList WirelessWirelessLanGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+> PaginatedWirelessLANGroupList WirelessWirelessLanGroupsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
@@ -382,10 +382,14 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
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)
created := []time.Time{time.Now()} // []time.Time | (optional)
createdEmpty := []time.Time{time.Now()} // []time.Time | (optional)
createdGt := []time.Time{time.Now()} // []time.Time | (optional)
@@ -456,7 +460,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
+ resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -477,6 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **ancestor** | **[]int32** | |
+ **ancestorN** | **[]int32** | |
+ **ancestorId** | **[]int32** | |
+ **ancestorIdN** | **[]int32** | |
**created** | [**[]time.Time**](time.Time.md) | |
**createdEmpty** | [**[]time.Time**](time.Time.md) | |
**createdGt** | [**[]time.Time**](time.Time.md) | |
@@ -580,7 +588,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -652,7 +660,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -722,12 +730,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this wireless LAN group.
- writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest |
+ writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableWirelessLANGroupRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -794,7 +802,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -858,7 +866,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -924,7 +932,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -990,7 +998,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1056,7 +1064,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1109,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).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).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()
@@ -1125,7 +1133,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1174,6 +1182,8 @@ func main() {
idLt := []int32{int32(123)} // []int32 | (optional)
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
+ interfaceId := []int32{int32(123)} // []int32 | (optional)
+ interfaceIdN := []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)
@@ -1215,7 +1225,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).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).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()
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)
@@ -1281,6 +1291,8 @@ Name | Type | Description | Notes
**idLt** | **[]int32** | |
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
+ **interfaceId** | **[]int32** | |
+ **interfaceIdN** | **[]int32** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedGt** | [**[]time.Time**](time.Time.md) | |
@@ -1355,7 +1367,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1427,7 +1439,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1497,7 +1509,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1569,11 +1581,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1633,11 +1645,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1699,11 +1711,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewNestedInterfaceRequest("Name_example"), *openapiclient.NewNestedInterfaceRequest("Name_example"))} // []WirelessLinkRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1765,11 +1777,11 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
- writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
@@ -1831,7 +1843,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1884,7 +1896,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).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+> 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()
@@ -1900,7 +1912,7 @@ import (
"fmt"
"os"
"time"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -1946,18 +1958,8 @@ func main() {
idLte := []int32{int32(123)} // []int32 | (optional)
idN := []int32{int32(123)} // []int32 | (optional)
interfaceAId := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdEmpty := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdGt := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdGte := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdLt := []int32{int32(123)} // []int32 | (optional)
- interfaceAIdLte := []int32{int32(123)} // []int32 | (optional)
interfaceAIdN := []int32{int32(123)} // []int32 | (optional)
interfaceBId := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdEmpty := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdGt := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdGte := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdLt := []int32{int32(123)} // []int32 | (optional)
- interfaceBIdLte := []int32{int32(123)} // []int32 | (optional)
interfaceBIdN := []int32{int32(123)} // []int32 | (optional)
lastUpdated := []time.Time{time.Now()} // []time.Time | (optional)
lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional)
@@ -1998,7 +2000,7 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
- resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute()
+ 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()
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)
@@ -2061,18 +2063,8 @@ Name | Type | Description | Notes
**idLte** | **[]int32** | |
**idN** | **[]int32** | |
**interfaceAId** | **[]int32** | |
- **interfaceAIdEmpty** | **[]int32** | |
- **interfaceAIdGt** | **[]int32** | |
- **interfaceAIdGte** | **[]int32** | |
- **interfaceAIdLt** | **[]int32** | |
- **interfaceAIdLte** | **[]int32** | |
**interfaceAIdN** | **[]int32** | |
**interfaceBId** | **[]int32** | |
- **interfaceBIdEmpty** | **[]int32** | |
- **interfaceBIdGt** | **[]int32** | |
- **interfaceBIdGte** | **[]int32** | |
- **interfaceBIdLt** | **[]int32** | |
- **interfaceBIdLte** | **[]int32** | |
**interfaceBIdN** | **[]int32** | |
**lastUpdated** | [**[]time.Time**](time.Time.md) | |
**lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | |
@@ -2146,7 +2138,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2218,7 +2210,7 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -2288,12 +2280,12 @@ import (
"context"
"fmt"
"os"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this wireless link.
- writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(int32(123), int32(123)) // WritableWirelessLinkRequest |
+ 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 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
diff --git a/docs/WirelessLAN.md b/docs/WirelessLAN.md
index dd8d3cd5de..8bc856e77a 100644
--- a/docs/WirelessLAN.md
+++ b/docs/WirelessLAN.md
@@ -9,10 +9,10 @@ Name | Type | Description | Notes
**Display** | **string** | | [readonly]
**Ssid** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**Group** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional]
+**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional]
**Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional]
-**Vlan** | Pointer to [**NullableNestedVLAN**](NestedVLAN.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional]
**AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -148,20 +148,20 @@ HasDescription returns a boolean if a field has been set.
### GetGroup
-`func (o *WirelessLAN) GetGroup() NestedWirelessLANGroup`
+`func (o *WirelessLAN) GetGroup() WirelessLANGroup`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WirelessLAN) GetGroupOk() (*NestedWirelessLANGroup, bool)`
+`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, 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 NestedWirelessLANGroup)`
+`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)`
SetGroup sets Group field to given value.
@@ -208,20 +208,20 @@ HasStatus returns a boolean if a field has been set.
### GetVlan
-`func (o *WirelessLAN) GetVlan() NestedVLAN`
+`func (o *WirelessLAN) GetVlan() VLAN`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *WirelessLAN) GetVlanOk() (*NestedVLAN, bool)`
+`func (o *WirelessLAN) GetVlanOk() (*VLAN, 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 NestedVLAN)`
+`func (o *WirelessLAN) SetVlan(v VLAN)`
SetVlan sets Vlan field to given value.
@@ -243,20 +243,20 @@ HasVlan returns a boolean if a field has been set.
UnsetVlan ensures that no value is present for Vlan, not even an explicit nil
### GetTenant
-`func (o *WirelessLAN) GetTenant() NestedTenant`
+`func (o *WirelessLAN) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WirelessLAN) GetTenantOk() (*NestedTenant, bool)`
+`func (o *WirelessLAN) 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 *WirelessLAN) SetTenant(v NestedTenant)`
+`func (o *WirelessLAN) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md
index a32251c0b2..aae3009eb4 100644
--- a/docs/WirelessLANGroup.md
+++ b/docs/WirelessLANGroup.md
@@ -9,20 +9,15 @@ Name | Type | Description | Notes
**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** | **NullableTime** | | [readonly]
-**LastUpdated** | **NullableTime** | | [readonly]
-**WirelesslanCount** | **int32** | | [readonly]
+**WirelesslanCount** | **int32** | | [readonly] [default to 0]
**Depth** | **int32** | | [readonly]
## Methods
### NewWirelessLANGroup
-`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32, ) *WirelessLANGroup`
+`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup`
NewWirelessLANGroup instantiates a new WirelessLANGroup object
This constructor will assign default values to properties that have it defined,
@@ -137,41 +132,6 @@ 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`
@@ -197,116 +157,6 @@ 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.
-
-
-### 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.
-
-
-### 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 51a2d35f5f..84671d6645 100644
--- a/docs/WirelessLANRequest.md
+++ b/docs/WirelessLANRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Ssid** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**Group** | Pointer to [**NullableNestedWirelessLANGroupRequest**](NestedWirelessLANGroupRequest.md) | | [optional]
+**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional]
**Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional]
-**Vlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional]
**AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set.
### GetGroup
-`func (o *WirelessLANRequest) GetGroup() NestedWirelessLANGroupRequest`
+`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WirelessLANRequest) GetGroupOk() (*NestedWirelessLANGroupRequest, bool)`
+`func (o *WirelessLANRequest) 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 *WirelessLANRequest) SetGroup(v NestedWirelessLANGroupRequest)`
+`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)`
SetGroup sets Group field to given value.
@@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set.
### GetVlan
-`func (o *WirelessLANRequest) GetVlan() NestedVLANRequest`
+`func (o *WirelessLANRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *WirelessLANRequest) GetVlanOk() (*NestedVLANRequest, bool)`
+`func (o *WirelessLANRequest) 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 *WirelessLANRequest) SetVlan(v NestedVLANRequest)`
+`func (o *WirelessLANRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set.
UnsetVlan ensures that no value is present for Vlan, not even an explicit nil
### GetTenant
-`func (o *WirelessLANRequest) GetTenant() NestedTenantRequest`
+`func (o *WirelessLANRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WirelessLANRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *WirelessLANRequest) 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 *WirelessLANRequest) SetTenant(v NestedTenantRequest)`
+`func (o *WirelessLANRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WirelessLink.md b/docs/WirelessLink.md
index 456eb4ad1f..9f446e21f7 100644
--- a/docs/WirelessLink.md
+++ b/docs/WirelessLink.md
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
**Id** | **int32** | | [readonly]
**Url** | **string** | | [readonly]
**Display** | **string** | | [readonly]
-**InterfaceA** | [**NestedInterface**](NestedInterface.md) | |
-**InterfaceB** | [**NestedInterface**](NestedInterface.md) | |
+**InterfaceA** | [**Interface**](Interface.md) | |
+**InterfaceB** | [**Interface**](Interface.md) | |
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional]
+**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional]
**AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional]
**AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
### NewWirelessLink
-`func NewWirelessLink(id int32, url string, display string, interfaceA NestedInterface, interfaceB NestedInterface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink`
+`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink`
NewWirelessLink instantiates a new WirelessLink object
This constructor will assign default values to properties that have it defined,
@@ -103,40 +103,40 @@ SetDisplay sets Display field to given value.
### GetInterfaceA
-`func (o *WirelessLink) GetInterfaceA() NestedInterface`
+`func (o *WirelessLink) GetInterfaceA() Interface`
GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise.
### GetInterfaceAOk
-`func (o *WirelessLink) GetInterfaceAOk() (*NestedInterface, bool)`
+`func (o *WirelessLink) GetInterfaceAOk() (*Interface, 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 NestedInterface)`
+`func (o *WirelessLink) SetInterfaceA(v Interface)`
SetInterfaceA sets InterfaceA field to given value.
### GetInterfaceB
-`func (o *WirelessLink) GetInterfaceB() NestedInterface`
+`func (o *WirelessLink) GetInterfaceB() Interface`
GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise.
### GetInterfaceBOk
-`func (o *WirelessLink) GetInterfaceBOk() (*NestedInterface, bool)`
+`func (o *WirelessLink) GetInterfaceBOk() (*Interface, 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 NestedInterface)`
+`func (o *WirelessLink) SetInterfaceB(v Interface)`
SetInterfaceB sets InterfaceB field to given value.
@@ -168,20 +168,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *WirelessLink) GetStatus() CableStatus`
+`func (o *WirelessLink) GetStatus() WirelessLinkStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WirelessLink) GetStatusOk() (*CableStatus, bool)`
+`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, 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 CableStatus)`
+`func (o *WirelessLink) SetStatus(v WirelessLinkStatus)`
SetStatus sets Status field to given value.
@@ -193,20 +193,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WirelessLink) GetTenant() NestedTenant`
+`func (o *WirelessLink) GetTenant() Tenant`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WirelessLink) GetTenantOk() (*NestedTenant, bool)`
+`func (o *WirelessLink) 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 *WirelessLink) SetTenant(v NestedTenant)`
+`func (o *WirelessLink) SetTenant(v Tenant)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md
index da465df7f4..cbb26cae56 100644
--- a/docs/WirelessLinkRequest.md
+++ b/docs/WirelessLinkRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**InterfaceA** | [**NestedInterfaceRequest**](NestedInterfaceRequest.md) | |
-**InterfaceB** | [**NestedInterfaceRequest**](NestedInterfaceRequest.md) | |
+**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | |
+**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | |
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional]
+**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional]
**AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewWirelessLinkRequest
-`func NewWirelessLinkRequest(interfaceA NestedInterfaceRequest, interfaceB NestedInterfaceRequest, ) *WirelessLinkRequest`
+`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest`
NewWirelessLinkRequest instantiates a new WirelessLinkRequest 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
### GetInterfaceA
-`func (o *WirelessLinkRequest) GetInterfaceA() NestedInterfaceRequest`
+`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest`
GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise.
### GetInterfaceAOk
-`func (o *WirelessLinkRequest) GetInterfaceAOk() (*NestedInterfaceRequest, bool)`
+`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, 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 NestedInterfaceRequest)`
+`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)`
SetInterfaceA sets InterfaceA field to given value.
### GetInterfaceB
-`func (o *WirelessLinkRequest) GetInterfaceB() NestedInterfaceRequest`
+`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest`
GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise.
### GetInterfaceBOk
-`func (o *WirelessLinkRequest) GetInterfaceBOk() (*NestedInterfaceRequest, bool)`
+`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, 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 NestedInterfaceRequest)`
+`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)`
SetInterfaceB sets InterfaceB field to given value.
@@ -103,20 +103,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *WirelessLinkRequest) GetStatus() CableStatusValue`
+`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
+`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, 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 CableStatusValue)`
+`func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)`
SetStatus sets Status field to given value.
@@ -128,20 +128,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WirelessLinkRequest) GetTenant() NestedTenantRequest`
+`func (o *WirelessLinkRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WirelessLinkRequest) GetTenantOk() (*NestedTenantRequest, bool)`
+`func (o *WirelessLinkRequest) 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 *WirelessLinkRequest) SetTenant(v NestedTenantRequest)`
+`func (o *WirelessLinkRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/IPAddressRole.md b/docs/WirelessLinkStatus.md
similarity index 55%
rename from docs/IPAddressRole.md
rename to docs/WirelessLinkStatus.md
index a3556e5953..ded17a46a6 100644
--- a/docs/IPAddressRole.md
+++ b/docs/WirelessLinkStatus.md
@@ -1,78 +1,78 @@
-# IPAddressRole
+# WirelessLinkStatus
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Value** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional]
-**Label** | Pointer to [**IPAddressRoleLabel**](IPAddressRoleLabel.md) | | [optional]
+**Value** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional]
+**Label** | Pointer to [**WirelessLinkStatusLabel**](WirelessLinkStatusLabel.md) | | [optional]
## Methods
-### NewIPAddressRole
+### NewWirelessLinkStatus
-`func NewIPAddressRole() *IPAddressRole`
+`func NewWirelessLinkStatus() *WirelessLinkStatus`
-NewIPAddressRole instantiates a new IPAddressRole object
+NewWirelessLinkStatus instantiates a new WirelessLinkStatus object
This constructor will assign default values to properties that have it defined,
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
+### NewWirelessLinkStatusWithDefaults
-`func NewIPAddressRoleWithDefaults() *IPAddressRole`
+`func NewWirelessLinkStatusWithDefaults() *WirelessLinkStatus`
-NewIPAddressRoleWithDefaults instantiates a new IPAddressRole object
+NewWirelessLinkStatusWithDefaults instantiates a new WirelessLinkStatus object
This 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`
+`func (o *WirelessLinkStatus) GetValue() PatchedWritableCableRequestStatus`
GetValue returns the Value field if non-nil, zero value otherwise.
### GetValueOk
-`func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool)`
+`func (o *WirelessLinkStatus) GetValueOk() (*PatchedWritableCableRequestStatus, 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)`
+`func (o *WirelessLinkStatus) SetValue(v PatchedWritableCableRequestStatus)`
SetValue sets Value field to given value.
### HasValue
-`func (o *IPAddressRole) HasValue() bool`
+`func (o *WirelessLinkStatus) HasValue() bool`
HasValue returns a boolean if a field has been set.
### GetLabel
-`func (o *IPAddressRole) GetLabel() IPAddressRoleLabel`
+`func (o *WirelessLinkStatus) GetLabel() WirelessLinkStatusLabel`
GetLabel returns the Label field if non-nil, zero value otherwise.
### GetLabelOk
-`func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool)`
+`func (o *WirelessLinkStatus) GetLabelOk() (*WirelessLinkStatusLabel, 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)`
+`func (o *WirelessLinkStatus) SetLabel(v WirelessLinkStatusLabel)`
SetLabel sets Label field to given value.
### HasLabel
-`func (o *IPAddressRole) HasLabel() bool`
+`func (o *WirelessLinkStatus) HasLabel() bool`
HasLabel returns a boolean if a field has been set.
diff --git a/docs/CableStatusLabel.md b/docs/WirelessLinkStatusLabel.md
similarity index 91%
rename from docs/CableStatusLabel.md
rename to docs/WirelessLinkStatusLabel.md
index b90ffa9fd2..c24be1e595 100644
--- a/docs/CableStatusLabel.md
+++ b/docs/WirelessLinkStatusLabel.md
@@ -1,4 +1,4 @@
-# CableStatusLabel
+# WirelessLinkStatusLabel
## Enum
diff --git a/docs/WritableASNRangeRequest.md b/docs/WritableASNRangeRequest.md
deleted file mode 100644
index fe84868b8d..0000000000
--- a/docs/WritableASNRangeRequest.md
+++ /dev/null
@@ -1,249 +0,0 @@
-# WritableASNRangeRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-**Rir** | **int32** | |
-**Start** | **int64** | |
-**End** | **int64** | |
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Description** | Pointer to **string** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableASNRangeRequest
-
-`func NewWritableASNRangeRequest(name string, slug string, rir int32, start int64, end int64, ) *WritableASNRangeRequest`
-
-NewWritableASNRangeRequest instantiates a new WritableASNRangeRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableASNRangeRequestWithDefaults
-
-`func NewWritableASNRangeRequestWithDefaults() *WritableASNRangeRequest`
-
-NewWritableASNRangeRequestWithDefaults instantiates a new WritableASNRangeRequest object
-This 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 *WritableASNRangeRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *WritableASNRangeRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetRir
-
-`func (o *WritableASNRangeRequest) GetRir() int32`
-
-GetRir returns the Rir field if non-nil, zero value otherwise.
-
-### GetRirOk
-
-`func (o *WritableASNRangeRequest) GetRirOk() (*int32, 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 *WritableASNRangeRequest) SetRir(v int32)`
-
-SetRir sets Rir field to given value.
-
-
-### GetStart
-
-`func (o *WritableASNRangeRequest) GetStart() int64`
-
-GetStart returns the Start field if non-nil, zero value otherwise.
-
-### GetStartOk
-
-`func (o *WritableASNRangeRequest) GetStartOk() (*int64, bool)`
-
-GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetStart
-
-`func (o *WritableASNRangeRequest) SetStart(v int64)`
-
-SetStart sets Start field to given value.
-
-
-### GetEnd
-
-`func (o *WritableASNRangeRequest) GetEnd() int64`
-
-GetEnd returns the End field if non-nil, zero value otherwise.
-
-### GetEndOk
-
-`func (o *WritableASNRangeRequest) GetEndOk() (*int64, bool)`
-
-GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetEnd
-
-`func (o *WritableASNRangeRequest) SetEnd(v int64)`
-
-SetEnd sets End field to given value.
-
-
-### GetTenant
-
-`func (o *WritableASNRangeRequest) GetTenant() int32`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *WritableASNRangeRequest) GetTenantOk() (*int32, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *WritableASNRangeRequest) SetTenant(v int32)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *WritableASNRangeRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *WritableASNRangeRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *WritableASNRangeRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetDescription
-
-`func (o *WritableASNRangeRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableASNRangeRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableASNRangeRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableASNRangeRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableASNRangeRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableASNRangeRequest) 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/WritableASNRequest.md b/docs/WritableASNRequest.md
deleted file mode 100644
index a0229d0a0e..0000000000
--- a/docs/WritableASNRequest.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# WritableASNRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Asn** | **int64** | 16- or 32-bit autonomous system number |
-**Rir** | **int32** | Regional Internet Registry responsible for this AS number space |
-**Tenant** | 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
-
-### NewWritableASNRequest
-
-`func NewWritableASNRequest(asn int64, rir int32, ) *WritableASNRequest`
-
-NewWritableASNRequest instantiates a new WritableASNRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableASNRequestWithDefaults
-
-`func NewWritableASNRequestWithDefaults() *WritableASNRequest`
-
-NewWritableASNRequestWithDefaults instantiates a new WritableASNRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetAsn
-
-`func (o *WritableASNRequest) GetAsn() int64`
-
-GetAsn returns the Asn field if non-nil, zero value otherwise.
-
-### GetAsnOk
-
-`func (o *WritableASNRequest) GetAsnOk() (*int64, bool)`
-
-GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetAsn
-
-`func (o *WritableASNRequest) SetAsn(v int64)`
-
-SetAsn sets Asn field to given value.
-
-
-### GetRir
-
-`func (o *WritableASNRequest) GetRir() int32`
-
-GetRir returns the Rir field if non-nil, zero value otherwise.
-
-### GetRirOk
-
-`func (o *WritableASNRequest) GetRirOk() (*int32, 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 *WritableASNRequest) SetRir(v int32)`
-
-SetRir sets Rir field to given value.
-
-
-### GetTenant
-
-`func (o *WritableASNRequest) GetTenant() int32`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *WritableASNRequest) GetTenantOk() (*int32, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *WritableASNRequest) SetTenant(v int32)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *WritableASNRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *WritableASNRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *WritableASNRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetDescription
-
-`func (o *WritableASNRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableASNRequest) 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 *WritableASNRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableASNRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritableASNRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableASNRequest) 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 *WritableASNRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableASNRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableASNRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableASNRequest) 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 *WritableASNRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableASNRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableASNRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableASNRequest) 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 *WritableASNRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableASNRequest) 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 2922ddf0cb..169807729f 100644
--- a/docs/WritableAggregateRequest.md
+++ b/docs/WritableAggregateRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Prefix** | **string** | |
-**Rir** | **int32** | Regional Internet Registry responsible for this IP space |
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**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]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewWritableAggregateRequest
-`func NewWritableAggregateRequest(prefix string, rir int32, ) *WritableAggregateRequest`
+`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,
@@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value.
### GetRir
-`func (o *WritableAggregateRequest) GetRir() int32`
+`func (o *WritableAggregateRequest) GetRir() RIRRequest`
GetRir returns the Rir field if non-nil, zero value otherwise.
### GetRirOk
-`func (o *WritableAggregateRequest) GetRirOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableAggregateRequest) SetRir(v RIRRequest)`
SetRir sets Rir field to given value.
### GetTenant
-`func (o *WritableAggregateRequest) GetTenant() int32`
+`func (o *WritableAggregateRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableAggregateRequest) GetTenantOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableAggregateRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableBookmarkRequest.md b/docs/WritableBookmarkRequest.md
deleted file mode 100644
index 74deea8f8f..0000000000
--- a/docs/WritableBookmarkRequest.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# WritableBookmarkRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ObjectType** | **string** | |
-**ObjectId** | **int64** | |
-**User** | **int32** | |
-
-## Methods
-
-### NewWritableBookmarkRequest
-
-`func NewWritableBookmarkRequest(objectType string, objectId int64, user int32, ) *WritableBookmarkRequest`
-
-NewWritableBookmarkRequest instantiates a new WritableBookmarkRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableBookmarkRequestWithDefaults
-
-`func NewWritableBookmarkRequestWithDefaults() *WritableBookmarkRequest`
-
-NewWritableBookmarkRequestWithDefaults instantiates a new WritableBookmarkRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetObjectType
-
-`func (o *WritableBookmarkRequest) GetObjectType() string`
-
-GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-
-### GetObjectTypeOk
-
-`func (o *WritableBookmarkRequest) GetObjectTypeOk() (*string, bool)`
-
-GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetObjectType
-
-`func (o *WritableBookmarkRequest) SetObjectType(v string)`
-
-SetObjectType sets ObjectType field to given value.
-
-
-### GetObjectId
-
-`func (o *WritableBookmarkRequest) GetObjectId() int64`
-
-GetObjectId returns the ObjectId field if non-nil, zero value otherwise.
-
-### GetObjectIdOk
-
-`func (o *WritableBookmarkRequest) GetObjectIdOk() (*int64, bool)`
-
-GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetObjectId
-
-`func (o *WritableBookmarkRequest) SetObjectId(v int64)`
-
-SetObjectId sets ObjectId field to given value.
-
-
-### GetUser
-
-`func (o *WritableBookmarkRequest) GetUser() int32`
-
-GetUser returns the User field if non-nil, zero value otherwise.
-
-### GetUserOk
-
-`func (o *WritableBookmarkRequest) GetUserOk() (*int32, bool)`
-
-GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetUser
-
-`func (o *WritableBookmarkRequest) SetUser(v int32)`
-
-SetUser sets User field to given value.
-
-
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md
index 21d6a9195a..aef093b34d 100644
--- a/docs/WritableCableRequest.md
+++ b/docs/WritableCableRequest.md
@@ -4,15 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Type** | Pointer to [**CableType**](CableType.md) | | [optional]
+**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional]
**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Label** | Pointer to **string** | | [optional]
**Color** | Pointer to **string** | | [optional]
**Length** | Pointer to **NullableFloat64** | | [optional]
-**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional]
+**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.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() CableType`
+`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)`
+`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, 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 CableType)`
+`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)`
SetType sets Type field to given value.
@@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set.
### GetStatus
-`func (o *WritableCableRequest) GetStatus() CableStatusValue`
+`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)`
+`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, 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 CableStatusValue)`
+`func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)`
SetStatus sets Status field to given value.
@@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableCableRequest) GetTenant() int32`
+`func (o *WritableCableRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableCableRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableCableRequest) 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 *WritableCableRequest) SetTenant(v int32)`
+`func (o *WritableCableRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -259,20 +259,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() CableLengthUnitValue`
+`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit`
GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise.
### GetLengthUnitOk
-`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)`
+`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, 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 CableLengthUnitValue)`
+`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)`
SetLengthUnit sets LengthUnit field to given value.
diff --git a/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md
index c88c10bab5..02a8ad3f77 100644
--- a/docs/WritableCircuitRequest.md
+++ b/docs/WritableCircuitRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cid** | **string** | Unique circuit ID |
-**Provider** | **int32** | |
-**ProviderAccount** | Pointer to **NullableInt32** | | [optional]
-**Type** | **int32** | |
-**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**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]
**InstallDate** | Pointer to **NullableString** | | [optional]
**TerminationDate** | Pointer to **NullableString** | | [optional]
**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
### NewWritableCircuitRequest
-`func NewWritableCircuitRequest(cid string, provider int32, type_ int32, ) *WritableCircuitRequest`
+`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest`
NewWritableCircuitRequest instantiates a new WritableCircuitRequest object
This constructor will assign default values to properties that have it defined,
@@ -59,40 +59,40 @@ SetCid sets Cid field to given value.
### GetProvider
-`func (o *WritableCircuitRequest) GetProvider() int32`
+`func (o *WritableCircuitRequest) GetProvider() ProviderRequest`
GetProvider returns the Provider field if non-nil, zero value otherwise.
### GetProviderOk
-`func (o *WritableCircuitRequest) GetProviderOk() (*int32, bool)`
+`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, 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 int32)`
+`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)`
SetProvider sets Provider field to given value.
### GetProviderAccount
-`func (o *WritableCircuitRequest) GetProviderAccount() int32`
+`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest`
GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise.
### GetProviderAccountOk
-`func (o *WritableCircuitRequest) GetProviderAccountOk() (*int32, bool)`
+`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, 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 int32)`
+`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)`
SetProviderAccount sets ProviderAccount field to given value.
@@ -114,40 +114,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() int32`
+`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableCircuitRequest) GetTypeOk() (*int32, bool)`
+`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, 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 int32)`
+`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)`
SetType sets Type field to given value.
### GetStatus
-`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue`
+`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)`
+`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, 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 CircuitStatusValue)`
+`func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)`
SetStatus sets Status field to given value.
@@ -159,20 +159,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableCircuitRequest) GetTenant() int32`
+`func (o *WritableCircuitRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableCircuitRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableCircuitRequest) 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 *WritableCircuitRequest) SetTenant(v int32)`
+`func (o *WritableCircuitRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md
index 4db694059b..430b5cf501 100644
--- a/docs/WritableClusterRequest.md
+++ b/docs/WritableClusterRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Type** | **int32** | |
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Site** | Pointer to **NullableInt32** | | [optional]
+**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]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableClusterRequest
-`func NewWritableClusterRequest(name string, type_ int32, ) *WritableClusterRequest`
+`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest`
NewWritableClusterRequest instantiates a new WritableClusterRequest object
This constructor will assign default values to properties that have it defined,
@@ -56,40 +56,40 @@ SetName sets Name field to given value.
### GetType
-`func (o *WritableClusterRequest) GetType() int32`
+`func (o *WritableClusterRequest) GetType() ClusterTypeRequest`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WritableClusterRequest) GetTypeOk() (*int32, bool)`
+`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, 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 int32)`
+`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)`
SetType sets Type field to given value.
### GetGroup
-`func (o *WritableClusterRequest) GetGroup() int32`
+`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableClusterRequest) GetGroupOk() (*int32, bool)`
+`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, 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 int32)`
+`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)`
SetGroup sets Group field to given value.
@@ -111,20 +111,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() ClusterStatusValue`
+`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)`
+`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, 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 ClusterStatusValue)`
+`func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)`
SetStatus sets Status field to given value.
@@ -136,20 +136,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableClusterRequest) GetTenant() int32`
+`func (o *WritableClusterRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableClusterRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableClusterRequest) 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 *WritableClusterRequest) SetTenant(v int32)`
+`func (o *WritableClusterRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -171,20 +171,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
### GetSite
-`func (o *WritableClusterRequest) GetSite() int32`
+`func (o *WritableClusterRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableClusterRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritableClusterRequest) 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 *WritableClusterRequest) SetSite(v int32)`
+`func (o *WritableClusterRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
diff --git a/docs/WritableConfigTemplateRequest.md b/docs/WritableConfigTemplateRequest.md
deleted file mode 100644
index b9b78d225a..0000000000
--- a/docs/WritableConfigTemplateRequest.md
+++ /dev/null
@@ -1,232 +0,0 @@
-# WritableConfigTemplateRequest
-
-## Properties
-
-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 **NullableInt32** | Remote data source | [optional]
-**DataFile** | Pointer to **NullableInt32** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-
-## Methods
-
-### NewWritableConfigTemplateRequest
-
-`func NewWritableConfigTemplateRequest(name string, templateCode string, ) *WritableConfigTemplateRequest`
-
-NewWritableConfigTemplateRequest instantiates a new WritableConfigTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableConfigTemplateRequestWithDefaults
-
-`func NewWritableConfigTemplateRequestWithDefaults() *WritableConfigTemplateRequest`
-
-NewWritableConfigTemplateRequestWithDefaults instantiates a new WritableConfigTemplateRequest object
-This 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 *WritableConfigTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetDescription
-
-`func (o *WritableConfigTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableConfigTemplateRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetEnvironmentParams
-
-`func (o *WritableConfigTemplateRequest) GetEnvironmentParams() interface{}`
-
-GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise.
-
-### GetEnvironmentParamsOk
-
-`func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetEnvironmentParams(v interface{})`
-
-SetEnvironmentParams sets EnvironmentParams field to given value.
-
-### HasEnvironmentParams
-
-`func (o *WritableConfigTemplateRequest) HasEnvironmentParams() bool`
-
-HasEnvironmentParams returns a boolean if a field has been set.
-
-### SetEnvironmentParamsNil
-
-`func (o *WritableConfigTemplateRequest) SetEnvironmentParamsNil(b bool)`
-
- SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil
-
-### UnsetEnvironmentParams
-`func (o *WritableConfigTemplateRequest) UnsetEnvironmentParams()`
-
-UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil
-### GetTemplateCode
-
-`func (o *WritableConfigTemplateRequest) GetTemplateCode() string`
-
-GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise.
-
-### GetTemplateCodeOk
-
-`func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetTemplateCode(v string)`
-
-SetTemplateCode sets TemplateCode field to given value.
-
-
-### GetDataSource
-
-`func (o *WritableConfigTemplateRequest) GetDataSource() int32`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *WritableConfigTemplateRequest) GetDataSourceOk() (*int32, 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 *WritableConfigTemplateRequest) SetDataSource(v int32)`
-
-SetDataSource sets DataSource field to given value.
-
-### HasDataSource
-
-`func (o *WritableConfigTemplateRequest) HasDataSource() bool`
-
-HasDataSource returns a boolean if a field has been set.
-
-### SetDataSourceNil
-
-`func (o *WritableConfigTemplateRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *WritableConfigTemplateRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-### GetDataFile
-
-`func (o *WritableConfigTemplateRequest) GetDataFile() int32`
-
-GetDataFile returns the DataFile field if non-nil, zero value otherwise.
-
-### GetDataFileOk
-
-`func (o *WritableConfigTemplateRequest) GetDataFileOk() (*int32, 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 *WritableConfigTemplateRequest) SetDataFile(v int32)`
-
-SetDataFile sets DataFile field to given value.
-
-### HasDataFile
-
-`func (o *WritableConfigTemplateRequest) HasDataFile() bool`
-
-HasDataFile returns a boolean if a field has been set.
-
-### SetDataFileNil
-
-`func (o *WritableConfigTemplateRequest) SetDataFileNil(b bool)`
-
- SetDataFileNil sets the value for DataFile to be an explicit nil
-
-### UnsetDataFile
-`func (o *WritableConfigTemplateRequest) UnsetDataFile()`
-
-UnsetDataFile ensures that no value is present for DataFile, not even an explicit nil
-### GetTags
-
-`func (o *WritableConfigTemplateRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableConfigTemplateRequest) 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/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md
index 957defb857..0ba0c6885e 100644
--- a/docs/WritableConsolePortRequest.md
+++ b/docs/WritableConsolePortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableConsolePortRequest
-`func NewWritableConsolePortRequest(device int32, name string, ) *WritableConsolePortRequest`
+`func NewWritableConsolePortRequest(device DeviceRequest, 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() int32`
+`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableConsolePortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableConsolePortRequest) 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 *WritableConsolePortRequest) SetDevice(v int32)`
+`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritableConsolePortRequest) GetModule() int32`
+`func (o *WritableConsolePortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritableConsolePortRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritableConsolePortRequest) 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 *WritableConsolePortRequest) SetModule(v int32)`
+`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md
index d0dac4622c..3799557e89 100644
--- a/docs/WritableConsolePortTemplateRequest.md
+++ b/docs/WritableConsolePortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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 *WritableConsolePortTemplateRequest) GetDeviceType() int32`
+`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritableConsolePortTemplateRequest) 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 *WritableConsolePortTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableConsolePortTemplateRequest) 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 *WritableConsolePortTemplateRequest) SetModuleType(v int32)`
+`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md
index 581d956700..6af4a78aa1 100644
--- a/docs/WritableConsoleServerPortRequest.md
+++ b/docs/WritableConsoleServerPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableConsoleServerPortRequest
-`func NewWritableConsoleServerPortRequest(device int32, name string, ) *WritableConsoleServerPortRequest`
+`func NewWritableConsoleServerPortRequest(device DeviceRequest, 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() int32`
+`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableConsoleServerPortRequest) 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 *WritableConsoleServerPortRequest) SetDevice(v int32)`
+`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritableConsoleServerPortRequest) GetModule() int32`
+`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritableConsoleServerPortRequest) 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 *WritableConsoleServerPortRequest) SetModule(v int32)`
+`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md
index e74aa5a450..e35a4b9ec4 100644
--- a/docs/WritableConsoleServerPortTemplateRequest.md
+++ b/docs/WritableConsoleServerPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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 *WritableConsoleServerPortTemplateRequest) GetDeviceType() int32`
+`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritableConsoleServerPortTemplateRequest) 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 *WritableConsoleServerPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableConsoleServerPortTemplateRequest) 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 *WritableConsoleServerPortTemplateRequest) SetModuleType(v int32)`
+`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md
index ad94445958..678cd6e277 100644
--- a/docs/WritableContactAssignmentRequest.md
+++ b/docs/WritableContactAssignmentRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentType** | **string** | |
+**ObjectType** | **string** | |
**ObjectId** | **int64** | |
-**Contact** | **int32** | |
-**Role** | **int32** | |
+**Contact** | [**ContactRequest**](ContactRequest.md) | |
+**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]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
### NewWritableContactAssignmentRequest
-`func NewWritableContactAssignmentRequest(contentType string, objectId int64, contact int32, role int32, ) *WritableContactAssignmentRequest`
+`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest`
NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object
This constructor will assign default values to properties that have it defined,
@@ -31,24 +31,24 @@ NewWritableContactAssignmentRequestWithDefaults instantiates a new WritableConta
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentType
+### GetObjectType
-`func (o *WritableContactAssignmentRequest) GetContentType() string`
+`func (o *WritableContactAssignmentRequest) GetObjectType() string`
-GetContentType returns the ContentType field if non-nil, zero value otherwise.
+GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
-### GetContentTypeOk
+### GetObjectTypeOk
-`func (o *WritableContactAssignmentRequest) GetContentTypeOk() (*string, bool)`
+`func (o *WritableContactAssignmentRequest) GetObjectTypeOk() (*string, bool)`
-GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise
+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.
-### SetContentType
+### SetObjectType
-`func (o *WritableContactAssignmentRequest) SetContentType(v string)`
+`func (o *WritableContactAssignmentRequest) SetObjectType(v string)`
-SetContentType sets ContentType field to given value.
+SetObjectType sets ObjectType field to given value.
### GetObjectId
@@ -73,44 +73,59 @@ SetObjectId sets ObjectId field to given value.
### GetContact
-`func (o *WritableContactAssignmentRequest) GetContact() int32`
+`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest`
GetContact returns the Contact field if non-nil, zero value otherwise.
### GetContactOk
-`func (o *WritableContactAssignmentRequest) GetContactOk() (*int32, bool)`
+`func (o *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) SetContact(v int32)`
+`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)`
SetContact sets Contact field to given value.
### GetRole
-`func (o *WritableContactAssignmentRequest) GetRole() int32`
+`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableContactAssignmentRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritableContactAssignmentRequest) 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 *WritableContactAssignmentRequest) SetRole(v int32)`
+`func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)`
SetRole sets Role field to given value.
+### HasRole
+`func (o *WritableContactAssignmentRequest) HasRole() bool`
+
+HasRole returns a boolean if a field has been set.
+
+### SetRoleNil
+
+`func (o *WritableContactAssignmentRequest) SetRoleNil(b bool)`
+
+ SetRoleNil sets the value for Role to be an explicit nil
+
+### UnsetRole
+`func (o *WritableContactAssignmentRequest) UnsetRole()`
+
+UnsetRole ensures that no value is present for Role, not even an explicit nil
### GetPriority
`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue`
diff --git a/docs/WritableContactGroupRequest.md b/docs/WritableContactGroupRequest.md
index d338770b8d..473fddccc6 100644
--- a/docs/WritableContactGroupRequest.md
+++ b/docs/WritableContactGroupRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
+**Parent** | **NullableInt32** | |
**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, ) *WritableContactGroupRequest`
+`func NewWritableContactGroupRequest(name string, slug string, parent NullableInt32, ) *WritableContactGroupRequest`
NewWritableContactGroupRequest instantiates a new WritableContactGroupRequest object
This constructor will assign default values to properties that have it defined,
@@ -89,11 +89,6 @@ 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/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md
index 75c500c3bb..f82e51b730 100644
--- a/docs/WritableCustomFieldRequest.md
+++ b/docs/WritableCustomFieldRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**ObjectTypes** | **[]string** | |
**Type** | Pointer to [**PatchedWritableCustomFieldRequestType**](PatchedWritableCustomFieldRequestType.md) | | [optional]
-**ObjectType** | Pointer to **NullableString** | | [optional]
+**RelatedObjectType** | Pointer to **NullableString** | | [optional]
**Name** | **string** | Internal field name |
**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional]
**GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional]
@@ -22,13 +22,14 @@ Name | Type | Description | Notes
**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 **NullableInt32** | | [optional]
+**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional]
+**Comments** | Pointer to **string** | | [optional]
## Methods
### NewWritableCustomFieldRequest
-`func NewWritableCustomFieldRequest(contentTypes []string, name string, ) *WritableCustomFieldRequest`
+`func NewWritableCustomFieldRequest(objectTypes []string, name string, ) *WritableCustomFieldRequest`
NewWritableCustomFieldRequest instantiates a new WritableCustomFieldRequest object
This constructor will assign default values to properties that have it defined,
@@ -43,24 +44,24 @@ NewWritableCustomFieldRequestWithDefaults instantiates a new WritableCustomField
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *WritableCustomFieldRequest) GetContentTypes() []string`
+`func (o *WritableCustomFieldRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *WritableCustomFieldRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *WritableCustomFieldRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *WritableCustomFieldRequest) SetContentTypes(v []string)`
+`func (o *WritableCustomFieldRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetType
@@ -88,41 +89,41 @@ SetType sets Type field to given value.
HasType returns a boolean if a field has been set.
-### GetObjectType
+### GetRelatedObjectType
-`func (o *WritableCustomFieldRequest) GetObjectType() string`
+`func (o *WritableCustomFieldRequest) GetRelatedObjectType() string`
-GetObjectType returns the ObjectType field if non-nil, zero value otherwise.
+GetRelatedObjectType returns the RelatedObjectType field if non-nil, zero value otherwise.
-### GetObjectTypeOk
+### GetRelatedObjectTypeOk
-`func (o *WritableCustomFieldRequest) GetObjectTypeOk() (*string, bool)`
+`func (o *WritableCustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool)`
-GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise
+GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
-### SetObjectType
+### SetRelatedObjectType
-`func (o *WritableCustomFieldRequest) SetObjectType(v string)`
+`func (o *WritableCustomFieldRequest) SetRelatedObjectType(v string)`
-SetObjectType sets ObjectType field to given value.
+SetRelatedObjectType sets RelatedObjectType field to given value.
-### HasObjectType
+### HasRelatedObjectType
-`func (o *WritableCustomFieldRequest) HasObjectType() bool`
+`func (o *WritableCustomFieldRequest) HasRelatedObjectType() bool`
-HasObjectType returns a boolean if a field has been set.
+HasRelatedObjectType returns a boolean if a field has been set.
-### SetObjectTypeNil
+### SetRelatedObjectTypeNil
-`func (o *WritableCustomFieldRequest) SetObjectTypeNil(b bool)`
+`func (o *WritableCustomFieldRequest) SetRelatedObjectTypeNil(b bool)`
- SetObjectTypeNil sets the value for ObjectType to be an explicit nil
+ SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
-### UnsetObjectType
-`func (o *WritableCustomFieldRequest) UnsetObjectType()`
+### UnsetRelatedObjectType
+`func (o *WritableCustomFieldRequest) UnsetRelatedObjectType()`
-UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
+UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
### GetName
`func (o *WritableCustomFieldRequest) GetName() string`
@@ -525,20 +526,20 @@ HasValidationRegex returns a boolean if a field has been set.
### GetChoiceSet
-`func (o *WritableCustomFieldRequest) GetChoiceSet() int32`
+`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest`
GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise.
### GetChoiceSetOk
-`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool)`
+`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, 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 int32)`
+`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)`
SetChoiceSet sets ChoiceSet field to given value.
@@ -558,6 +559,31 @@ HasChoiceSet returns a boolean if a field has been set.
`func (o *WritableCustomFieldRequest) UnsetChoiceSet()`
UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil
+### GetComments
+
+`func (o *WritableCustomFieldRequest) GetComments() string`
+
+GetComments returns the Comments field if non-nil, zero value otherwise.
+
+### GetCommentsOk
+
+`func (o *WritableCustomFieldRequest) 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 *WritableCustomFieldRequest) SetComments(v string)`
+
+SetComments sets Comments field to given value.
+
+### HasComments
+
+`func (o *WritableCustomFieldRequest) HasComments() bool`
+
+HasComments 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/WritableDeviceBayRequest.md b/docs/WritableDeviceBayRequest.md
deleted file mode 100644
index 3972be5fc3..0000000000
--- a/docs/WritableDeviceBayRequest.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# WritableDeviceBayRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Name** | **string** | |
-**Label** | Pointer to **string** | Physical label | [optional]
-**Description** | Pointer to **string** | | [optional]
-**InstalledDevice** | Pointer to **NullableInt32** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableDeviceBayRequest
-
-`func NewWritableDeviceBayRequest(device int32, name string, ) *WritableDeviceBayRequest`
-
-NewWritableDeviceBayRequest instantiates a new WritableDeviceBayRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableDeviceBayRequestWithDefaults
-
-`func NewWritableDeviceBayRequestWithDefaults() *WritableDeviceBayRequest`
-
-NewWritableDeviceBayRequestWithDefaults instantiates a new WritableDeviceBayRequest object
-This 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 *WritableDeviceBayRequest) GetDevice() int32`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *WritableDeviceBayRequest) GetDeviceOk() (*int32, 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 *WritableDeviceBayRequest) SetDevice(v int32)`
-
-SetDevice sets Device field to given value.
-
-
-### GetName
-
-`func (o *WritableDeviceBayRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetLabel
-
-`func (o *WritableDeviceBayRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *WritableDeviceBayRequest) HasLabel() bool`
-
-HasLabel returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableDeviceBayRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableDeviceBayRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetInstalledDevice
-
-`func (o *WritableDeviceBayRequest) GetInstalledDevice() int32`
-
-GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise.
-
-### GetInstalledDeviceOk
-
-`func (o *WritableDeviceBayRequest) GetInstalledDeviceOk() (*int32, 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 *WritableDeviceBayRequest) SetInstalledDevice(v int32)`
-
-SetInstalledDevice sets InstalledDevice field to given value.
-
-### HasInstalledDevice
-
-`func (o *WritableDeviceBayRequest) HasInstalledDevice() bool`
-
-HasInstalledDevice returns a boolean if a field has been set.
-
-### SetInstalledDeviceNil
-
-`func (o *WritableDeviceBayRequest) SetInstalledDeviceNil(b bool)`
-
- SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
-
-### UnsetInstalledDevice
-`func (o *WritableDeviceBayRequest) UnsetInstalledDevice()`
-
-UnsetInstalledDevice ensures that no value is present for InstalledDevice, not even an explicit nil
-### GetTags
-
-`func (o *WritableDeviceBayRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableDeviceBayRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableDeviceBayRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableDeviceBayRequest) 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/WritableDeviceBayTemplateRequest.md b/docs/WritableDeviceBayTemplateRequest.md
deleted file mode 100644
index b42797237e..0000000000
--- a/docs/WritableDeviceBayTemplateRequest.md
+++ /dev/null
@@ -1,124 +0,0 @@
-# WritableDeviceBayTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**DeviceType** | **int32** | |
-**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**Label** | Pointer to **string** | Physical label | [optional]
-**Description** | Pointer to **string** | | [optional]
-
-## Methods
-
-### NewWritableDeviceBayTemplateRequest
-
-`func NewWritableDeviceBayTemplateRequest(deviceType int32, name string, ) *WritableDeviceBayTemplateRequest`
-
-NewWritableDeviceBayTemplateRequest instantiates a new WritableDeviceBayTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableDeviceBayTemplateRequestWithDefaults
-
-`func NewWritableDeviceBayTemplateRequestWithDefaults() *WritableDeviceBayTemplateRequest`
-
-NewWritableDeviceBayTemplateRequestWithDefaults instantiates a new WritableDeviceBayTemplateRequest object
-This 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 *WritableDeviceBayTemplateRequest) GetDeviceType() int32`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *WritableDeviceBayTemplateRequest) GetDeviceTypeOk() (*int32, 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 *WritableDeviceBayTemplateRequest) SetDeviceType(v int32)`
-
-SetDeviceType sets DeviceType field to given value.
-
-
-### GetName
-
-`func (o *WritableDeviceBayTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetLabel
-
-`func (o *WritableDeviceBayTemplateRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *WritableDeviceBayTemplateRequest) HasLabel() bool`
-
-HasLabel returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableDeviceBayTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableDeviceBayTemplateRequest) 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/WritableDeviceRoleRequest.md b/docs/WritableDeviceRoleRequest.md
deleted file mode 100644
index 029ba5d2b4..0000000000
--- a/docs/WritableDeviceRoleRequest.md
+++ /dev/null
@@ -1,238 +0,0 @@
-# WritableDeviceRoleRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**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 **NullableInt32** | | [optional]
-**Description** | Pointer to **string** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableDeviceRoleRequest
-
-`func NewWritableDeviceRoleRequest(name string, slug string, ) *WritableDeviceRoleRequest`
-
-NewWritableDeviceRoleRequest instantiates a new WritableDeviceRoleRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableDeviceRoleRequestWithDefaults
-
-`func NewWritableDeviceRoleRequestWithDefaults() *WritableDeviceRoleRequest`
-
-NewWritableDeviceRoleRequestWithDefaults instantiates a new WritableDeviceRoleRequest object
-This 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 *WritableDeviceRoleRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *WritableDeviceRoleRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetColor
-
-`func (o *WritableDeviceRoleRequest) GetColor() string`
-
-GetColor returns the Color field if non-nil, zero value otherwise.
-
-### GetColorOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetColor(v string)`
-
-SetColor sets Color field to given value.
-
-### HasColor
-
-`func (o *WritableDeviceRoleRequest) HasColor() bool`
-
-HasColor returns a boolean if a field has been set.
-
-### GetVmRole
-
-`func (o *WritableDeviceRoleRequest) GetVmRole() bool`
-
-GetVmRole returns the VmRole field if non-nil, zero value otherwise.
-
-### GetVmRoleOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetVmRole(v bool)`
-
-SetVmRole sets VmRole field to given value.
-
-### HasVmRole
-
-`func (o *WritableDeviceRoleRequest) HasVmRole() bool`
-
-HasVmRole returns a boolean if a field has been set.
-
-### GetConfigTemplate
-
-`func (o *WritableDeviceRoleRequest) GetConfigTemplate() int32`
-
-GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
-
-### GetConfigTemplateOk
-
-`func (o *WritableDeviceRoleRequest) GetConfigTemplateOk() (*int32, bool)`
-
-GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConfigTemplate
-
-`func (o *WritableDeviceRoleRequest) SetConfigTemplate(v int32)`
-
-SetConfigTemplate sets ConfigTemplate field to given value.
-
-### HasConfigTemplate
-
-`func (o *WritableDeviceRoleRequest) HasConfigTemplate() bool`
-
-HasConfigTemplate returns a boolean if a field has been set.
-
-### SetConfigTemplateNil
-
-`func (o *WritableDeviceRoleRequest) SetConfigTemplateNil(b bool)`
-
- SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-
-### UnsetConfigTemplate
-`func (o *WritableDeviceRoleRequest) UnsetConfigTemplate()`
-
-UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-### GetDescription
-
-`func (o *WritableDeviceRoleRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableDeviceRoleRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableDeviceRoleRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableDeviceRoleRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableDeviceRoleRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableDeviceRoleRequest) 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/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md
index dd426c7a02..14fb745558 100644
--- a/docs/WritableDeviceTypeRequest.md
+++ b/docs/WritableDeviceTypeRequest.md
@@ -4,18 +4,18 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | **int32** | |
-**DefaultPlatform** | Pointer to **NullableInt32** | | [optional]
+**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | |
+**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.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 [**ParentChildStatus**](ParentChildStatus.md) | | [optional]
+**SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional]
**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.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 int32, model string, slug string, ) *WritableDeviceTypeRequest`
+`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, 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() int32`
+`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 int32)`
+`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
### GetDefaultPlatform
-`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() int32`
+`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest`
GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise.
### GetDefaultPlatformOk
-`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*int32, bool)`
+`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, 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 int32)`
+`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)`
SetDefaultPlatform sets DefaultPlatform field to given value.
@@ -239,20 +239,20 @@ HasIsFullDepth returns a boolean if a field has been set.
### GetSubdeviceRole
-`func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus`
+`func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1`
GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise.
### GetSubdeviceRoleOk
-`func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool)`
+`func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, 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 *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus)`
+`func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1)`
SetSubdeviceRole sets SubdeviceRole field to given value.
@@ -324,20 +324,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() DeviceTypeWeightUnitValue`
+`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md
index dd7d324f9a..0935ed3569 100644
--- a/docs/WritableDeviceWithConfigContextRequest.md
+++ b/docs/WritableDeviceWithConfigContextRequest.md
@@ -5,31 +5,31 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **NullableString** | | [optional]
-**DeviceType** | **int32** | |
-**Role** | **int32** | The function this device serves |
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Platform** | Pointer to **NullableInt32** | | [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** | **int32** | |
-**Location** | Pointer to **NullableInt32** | | [optional]
-**Rack** | Pointer to **NullableInt32** | | [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** | Pointer to [**RackFace**](RackFace.md) | | [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 **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
-**OobIp** | Pointer to **NullableInt32** | | [optional]
-**Cluster** | Pointer to **NullableInt32** | | [optional]
-**VirtualChassis** | Pointer to **NullableInt32** | | [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 **NullableInt32** | | [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]
@@ -38,7 +38,7 @@ Name | Type | Description | Notes
### NewWritableDeviceWithConfigContextRequest
-`func NewWritableDeviceWithConfigContextRequest(deviceType int32, role int32, site int32, ) *WritableDeviceWithConfigContextRequest`
+`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,
@@ -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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)`
SetDeviceType sets DeviceType field to given value.
### GetRole
-`func (o *WritableDeviceWithConfigContextRequest) GetRole() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
SetRole sets Role field to given value.
### GetTenant
-`func (o *WritableDeviceWithConfigContextRequest) GetTenant() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)`
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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)`
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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
### GetLocation
-`func (o *WritableDeviceWithConfigContextRequest) GetLocation() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)`
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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)`
SetRack sets Rack field to given value.
@@ -385,28 +385,23 @@ HasPosition returns a boolean if a field has been set.
UnsetPosition ensures that no value is present for Position, not even an explicit nil
### GetFace
-`func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace`
+`func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace1`
GetFace returns the Face field if non-nil, zero value otherwise.
### GetFaceOk
-`func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool)`
+`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 RackFace)`
+`func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace1)`
SetFace sets Face field to given value.
-### HasFace
-
-`func (o *WritableDeviceWithConfigContextRequest) HasFace() bool`
-
-HasFace returns a boolean if a field has been set.
### GetLatitude
@@ -530,20 +525,20 @@ HasAirflow returns a boolean if a field has been set.
### GetPrimaryIp4
-`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -565,20 +560,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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -600,20 +595,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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest`
GetOobIp returns the OobIp field if non-nil, zero value otherwise.
### GetOobIpOk
-`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)`
SetOobIp sets OobIp field to given value.
@@ -635,20 +630,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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)`
SetCluster sets Cluster field to given value.
@@ -670,20 +665,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() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest`
GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise.
### GetVirtualChassisOk
-`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)`
SetVirtualChassis sets VirtualChassis field to given value.
@@ -825,20 +820,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32`
+`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md
index 490fc9ccf5..d091d02bfa 100644
--- a/docs/WritableEventRuleRequest.md
+++ b/docs/WritableEventRuleRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
+**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]
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
### NewWritableEventRuleRequest
-`func NewWritableEventRuleRequest(contentTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest`
+`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,
@@ -39,24 +39,24 @@ NewWritableEventRuleRequestWithDefaults instantiates a new WritableEventRuleRequ
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
-### GetContentTypes
+### GetObjectTypes
-`func (o *WritableEventRuleRequest) GetContentTypes() []string`
+`func (o *WritableEventRuleRequest) GetObjectTypes() []string`
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
+GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-### GetContentTypesOk
+### GetObjectTypesOk
-`func (o *WritableEventRuleRequest) GetContentTypesOk() (*[]string, bool)`
+`func (o *WritableEventRuleRequest) GetObjectTypesOk() (*[]string, bool)`
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
+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.
-### SetContentTypes
+### SetObjectTypes
-`func (o *WritableEventRuleRequest) SetContentTypes(v []string)`
+`func (o *WritableEventRuleRequest) SetObjectTypes(v []string)`
-SetContentTypes sets ContentTypes field to given value.
+SetObjectTypes sets ObjectTypes field to given value.
### GetName
diff --git a/docs/WritableExportTemplateRequest.md b/docs/WritableExportTemplateRequest.md
deleted file mode 100644
index be14adafe2..0000000000
--- a/docs/WritableExportTemplateRequest.md
+++ /dev/null
@@ -1,233 +0,0 @@
-# WritableExportTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ContentTypes** | **[]string** | |
-**Name** | **string** | |
-**Description** | Pointer to **string** | | [optional]
-**TemplateCode** | **string** | Jinja2 template code. The list of objects being exported is passed as a context variable named <code>queryset</code>. |
-**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 **NullableInt32** | Remote data source | [optional]
-
-## Methods
-
-### NewWritableExportTemplateRequest
-
-`func NewWritableExportTemplateRequest(contentTypes []string, name string, templateCode string, ) *WritableExportTemplateRequest`
-
-NewWritableExportTemplateRequest instantiates a new WritableExportTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableExportTemplateRequestWithDefaults
-
-`func NewWritableExportTemplateRequestWithDefaults() *WritableExportTemplateRequest`
-
-NewWritableExportTemplateRequestWithDefaults instantiates a new WritableExportTemplateRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetContentTypes
-
-`func (o *WritableExportTemplateRequest) GetContentTypes() []string`
-
-GetContentTypes returns the ContentTypes field if non-nil, zero value otherwise.
-
-### GetContentTypesOk
-
-`func (o *WritableExportTemplateRequest) GetContentTypesOk() (*[]string, bool)`
-
-GetContentTypesOk returns a tuple with the ContentTypes field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetContentTypes
-
-`func (o *WritableExportTemplateRequest) SetContentTypes(v []string)`
-
-SetContentTypes sets ContentTypes field to given value.
-
-
-### GetName
-
-`func (o *WritableExportTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetDescription
-
-`func (o *WritableExportTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableExportTemplateRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetTemplateCode
-
-`func (o *WritableExportTemplateRequest) GetTemplateCode() string`
-
-GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise.
-
-### GetTemplateCodeOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetTemplateCode(v string)`
-
-SetTemplateCode sets TemplateCode field to given value.
-
-
-### GetMimeType
-
-`func (o *WritableExportTemplateRequest) GetMimeType() string`
-
-GetMimeType returns the MimeType field if non-nil, zero value otherwise.
-
-### GetMimeTypeOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetMimeType(v string)`
-
-SetMimeType sets MimeType field to given value.
-
-### HasMimeType
-
-`func (o *WritableExportTemplateRequest) HasMimeType() bool`
-
-HasMimeType returns a boolean if a field has been set.
-
-### GetFileExtension
-
-`func (o *WritableExportTemplateRequest) GetFileExtension() string`
-
-GetFileExtension returns the FileExtension field if non-nil, zero value otherwise.
-
-### GetFileExtensionOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetFileExtension(v string)`
-
-SetFileExtension sets FileExtension field to given value.
-
-### HasFileExtension
-
-`func (o *WritableExportTemplateRequest) HasFileExtension() bool`
-
-HasFileExtension returns a boolean if a field has been set.
-
-### GetAsAttachment
-
-`func (o *WritableExportTemplateRequest) GetAsAttachment() bool`
-
-GetAsAttachment returns the AsAttachment field if non-nil, zero value otherwise.
-
-### GetAsAttachmentOk
-
-`func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetAsAttachment(v bool)`
-
-SetAsAttachment sets AsAttachment field to given value.
-
-### HasAsAttachment
-
-`func (o *WritableExportTemplateRequest) HasAsAttachment() bool`
-
-HasAsAttachment returns a boolean if a field has been set.
-
-### GetDataSource
-
-`func (o *WritableExportTemplateRequest) GetDataSource() int32`
-
-GetDataSource returns the DataSource field if non-nil, zero value otherwise.
-
-### GetDataSourceOk
-
-`func (o *WritableExportTemplateRequest) GetDataSourceOk() (*int32, 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 *WritableExportTemplateRequest) SetDataSource(v int32)`
-
-SetDataSource sets DataSource field to given value.
-
-### HasDataSource
-
-`func (o *WritableExportTemplateRequest) HasDataSource() bool`
-
-HasDataSource returns a boolean if a field has been set.
-
-### SetDataSourceNil
-
-`func (o *WritableExportTemplateRequest) SetDataSourceNil(b bool)`
-
- SetDataSourceNil sets the value for DataSource to be an explicit nil
-
-### UnsetDataSource
-`func (o *WritableExportTemplateRequest) UnsetDataSource()`
-
-UnsetDataSource ensures that no value is present for DataSource, 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/WritableFHRPGroupAssignmentRequest.md b/docs/WritableFHRPGroupAssignmentRequest.md
deleted file mode 100644
index 133a88e295..0000000000
--- a/docs/WritableFHRPGroupAssignmentRequest.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# WritableFHRPGroupAssignmentRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Group** | **int32** | |
-**InterfaceType** | **string** | |
-**InterfaceId** | **int64** | |
-**Priority** | **int32** | |
-
-## Methods
-
-### NewWritableFHRPGroupAssignmentRequest
-
-`func NewWritableFHRPGroupAssignmentRequest(group int32, interfaceType string, interfaceId int64, priority int32, ) *WritableFHRPGroupAssignmentRequest`
-
-NewWritableFHRPGroupAssignmentRequest instantiates a new WritableFHRPGroupAssignmentRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableFHRPGroupAssignmentRequestWithDefaults
-
-`func NewWritableFHRPGroupAssignmentRequestWithDefaults() *WritableFHRPGroupAssignmentRequest`
-
-NewWritableFHRPGroupAssignmentRequestWithDefaults instantiates a new WritableFHRPGroupAssignmentRequest object
-This 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 *WritableFHRPGroupAssignmentRequest) GetGroup() int32`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetGroupOk() (*int32, 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 *WritableFHRPGroupAssignmentRequest) SetGroup(v int32)`
-
-SetGroup sets Group field to given value.
-
-
-### GetInterfaceType
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceType() string`
-
-GetInterfaceType returns the InterfaceType field if non-nil, zero value otherwise.
-
-### GetInterfaceTypeOk
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool)`
-
-GetInterfaceTypeOk returns a tuple with the InterfaceType field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInterfaceType
-
-`func (o *WritableFHRPGroupAssignmentRequest) SetInterfaceType(v string)`
-
-SetInterfaceType sets InterfaceType field to given value.
-
-
-### GetInterfaceId
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceId() int64`
-
-GetInterfaceId returns the InterfaceId field if non-nil, zero value otherwise.
-
-### GetInterfaceIdOk
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool)`
-
-GetInterfaceIdOk returns a tuple with the InterfaceId field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetInterfaceId
-
-`func (o *WritableFHRPGroupAssignmentRequest) SetInterfaceId(v int64)`
-
-SetInterfaceId sets InterfaceId field to given value.
-
-
-### GetPriority
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetPriority() int32`
-
-GetPriority returns the Priority field if non-nil, zero value otherwise.
-
-### GetPriorityOk
-
-`func (o *WritableFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, 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 *WritableFHRPGroupAssignmentRequest) SetPriority(v int32)`
-
-SetPriority sets Priority 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/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md
index 4325888a81..42fc878268 100644
--- a/docs/WritableFrontPortRequest.md
+++ b/docs/WritableFrontPortRequest.md
@@ -4,14 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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]
+**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1]
**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 int32, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest`
+`func NewWritableFrontPortRequest(device DeviceRequest, 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() int32`
+`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableFrontPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableFrontPortRequest) 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 *WritableFrontPortRequest) SetDevice(v int32)`
+`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritableFrontPortRequest) GetModule() int32`
+`func (o *WritableFrontPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritableFrontPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritableFrontPortRequest) 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 *WritableFrontPortRequest) SetModule(v int32)`
+`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md
index 21d85353bc..8806917ff8 100644
--- a/docs/WritableFrontPortTemplateRequest.md
+++ b/docs/WritableFrontPortTemplateRequest.md
@@ -4,21 +4,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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** | **int32** | |
-**RearPortPosition** | Pointer to **int32** | | [optional]
+**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | |
+**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1]
**Description** | Pointer to **string** | | [optional]
## Methods
### NewWritableFrontPortTemplateRequest
-`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortTemplateRequest`
+`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *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() int32`
+`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritableFrontPortTemplateRequest) 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 *WritableFrontPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableFrontPortTemplateRequest) 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 *WritableFrontPortTemplateRequest) SetModuleType(v int32)`
+`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
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() int32`
+`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest`
GetRearPort returns the RearPort field if non-nil, zero value otherwise.
### GetRearPortOk
-`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*int32, bool)`
+`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, 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 int32)`
+`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)`
SetRearPort sets RearPort field to given value.
diff --git a/docs/WritableIKEPolicyRequest.md b/docs/WritableIKEPolicyRequest.md
index e0e449d2e4..7be71366f7 100644
--- a/docs/WritableIKEPolicyRequest.md
+++ b/docs/WritableIKEPolicyRequest.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Description** | Pointer to **string** | | [optional]
**Version** | Pointer to [**PatchedWritableIKEPolicyRequestVersion**](PatchedWritableIKEPolicyRequestVersion.md) | | [optional]
**Mode** | Pointer to [**PatchedWritableIKEPolicyRequestMode**](PatchedWritableIKEPolicyRequestMode.md) | | [optional]
-**Proposals** | **[]int32** | |
+**Proposals** | Pointer to **[]int32** | | [optional]
**PresharedKey** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewWritableIKEPolicyRequest
-`func NewWritableIKEPolicyRequest(name string, proposals []int32, ) *WritableIKEPolicyRequest`
+`func NewWritableIKEPolicyRequest(name string, ) *WritableIKEPolicyRequest`
NewWritableIKEPolicyRequest instantiates a new WritableIKEPolicyRequest object
This constructor will assign default values to properties that have it defined,
@@ -147,6 +147,11 @@ and a boolean to check if the value has been set.
SetProposals sets Proposals field to given value.
+### HasProposals
+
+`func (o *WritableIKEPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
### GetPresharedKey
diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md
index 9ce55aa930..6eaaca69ad 100644
--- a/docs/WritableIPAddressRequest.md
+++ b/docs/WritableIPAddressRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Address** | **string** | |
-**Vrf** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional]
**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional]
**AssignedObjectType** | Pointer to **NullableString** | | [optional]
@@ -59,20 +59,20 @@ SetAddress sets Address field to given value.
### GetVrf
-`func (o *WritableIPAddressRequest) GetVrf() int32`
+`func (o *WritableIPAddressRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *WritableIPAddressRequest) GetVrfOk() (*int32, bool)`
+`func (o *WritableIPAddressRequest) 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 *WritableIPAddressRequest) SetVrf(v int32)`
+`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)`
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() int32`
+`func (o *WritableIPAddressRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableIPAddressRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableIPAddressRequest) 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 *WritableIPAddressRequest) SetTenant(v int32)`
+`func (o *WritableIPAddressRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md
index 75941fc2f1..5edb8406dc 100644
--- a/docs/WritableIPRangeRequest.md
+++ b/docs/WritableIPRangeRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StartAddress** | **string** | |
**EndAddress** | **string** | |
-**Vrf** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this range | [optional]
+**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.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() int32`
+`func (o *WritableIPRangeRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *WritableIPRangeRequest) GetVrfOk() (*int32, bool)`
+`func (o *WritableIPRangeRequest) 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 *WritableIPRangeRequest) SetVrf(v int32)`
+`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)`
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() int32`
+`func (o *WritableIPRangeRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableIPRangeRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableIPRangeRequest) 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 *WritableIPRangeRequest) SetTenant(v int32)`
+`func (o *WritableIPRangeRequest) SetTenant(v TenantRequest)`
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() int32`
+`func (o *WritableIPRangeRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableIPRangeRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritableIPRangeRequest) 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 *WritableIPRangeRequest) SetRole(v int32)`
+`func (o *WritableIPRangeRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/WritableIPSecPolicyRequest.md b/docs/WritableIPSecPolicyRequest.md
index cdf842cad4..10a6b82b66 100644
--- a/docs/WritableIPSecPolicyRequest.md
+++ b/docs/WritableIPSecPolicyRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**Proposals** | **[]int32** | |
+**Proposals** | Pointer to **[]int32** | | [optional]
**PfsGroup** | Pointer to [**NullablePatchedWritableIPSecPolicyRequestPfsGroup**](PatchedWritableIPSecPolicyRequestPfsGroup.md) | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
### NewWritableIPSecPolicyRequest
-`func NewWritableIPSecPolicyRequest(name string, proposals []int32, ) *WritableIPSecPolicyRequest`
+`func NewWritableIPSecPolicyRequest(name string, ) *WritableIPSecPolicyRequest`
NewWritableIPSecPolicyRequest instantiates a new WritableIPSecPolicyRequest object
This constructor will assign default values to properties that have it defined,
@@ -95,6 +95,11 @@ and a boolean to check if the value has been set.
SetProposals sets Proposals field to given value.
+### HasProposals
+
+`func (o *WritableIPSecPolicyRequest) HasProposals() bool`
+
+HasProposals returns a boolean if a field has been set.
### GetPfsGroup
diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md
index ce40885292..f4d30c4c1d 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** | **int32** | |
-**IpsecPolicy** | **int32** | |
+**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]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
### NewWritableIPSecProfileRequest
-`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy int32, ipsecPolicy int32, ) *WritableIPSecProfileRequest`
+`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,
@@ -99,40 +99,40 @@ SetMode sets Mode field to given value.
### GetIkePolicy
-`func (o *WritableIPSecProfileRequest) GetIkePolicy() int32`
+`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest`
GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise.
### GetIkePolicyOk
-`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)`
SetIkePolicy sets IkePolicy field to given value.
### GetIpsecPolicy
-`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() int32`
+`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest`
GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise.
### GetIpsecPolicyOk
-`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)`
SetIpsecPolicy sets IpsecPolicy field to given value.
diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md
index 0fbfc9652e..d0870300e3 100644
--- a/docs/WritableInterfaceRequest.md
+++ b/docs/WritableInterfaceRequest.md
@@ -4,9 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Vdcs** | **[]int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Vdcs** | Pointer to **[]int32** | | [optional]
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | |
@@ -29,11 +29,11 @@ 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 **NullableInt32** | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
**WirelessLans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
### NewWritableInterfaceRequest
-`func NewWritableInterfaceRequest(device int32, vdcs []int32, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest`
+`func NewWritableInterfaceRequest(device DeviceRequest, 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 +58,20 @@ but it doesn't guarantee that properties required by API are set
### GetDevice
-`func (o *WritableInterfaceRequest) GetDevice() int32`
+`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableInterfaceRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableInterfaceRequest) 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 *WritableInterfaceRequest) SetDevice(v int32)`
+`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -95,23 +95,28 @@ and a boolean to check if the value has been set.
SetVdcs sets Vdcs field to given value.
+### HasVdcs
+
+`func (o *WritableInterfaceRequest) HasVdcs() bool`
+
+HasVdcs returns a boolean if a field has been set.
### GetModule
-`func (o *WritableInterfaceRequest) GetModule() int32`
+`func (o *WritableInterfaceRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritableInterfaceRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritableInterfaceRequest) 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 *WritableInterfaceRequest) SetModule(v int32)`
+`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -783,20 +788,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() int32`
+`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*int32, bool)`
+`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 int32)`
+`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -893,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set.
### GetVrf
-`func (o *WritableInterfaceRequest) GetVrf() int32`
+`func (o *WritableInterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *WritableInterfaceRequest) GetVrfOk() (*int32, bool)`
+`func (o *WritableInterfaceRequest) 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 *WritableInterfaceRequest) SetVrf(v int32)`
+`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md
index 8a34a9a266..e5f0f4deb0 100644
--- a/docs/WritableInterfaceTemplateRequest.md
+++ b/docs/WritableInterfaceTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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 *WritableInterfaceTemplateRequest) GetDeviceType() int32`
+`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritableInterfaceTemplateRequest) 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 *WritableInterfaceTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableInterfaceTemplateRequest) 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 *WritableInterfaceTemplateRequest) SetModuleType(v int32)`
+`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/WritableInventoryItemTemplateRequest.md b/docs/WritableInventoryItemTemplateRequest.md
deleted file mode 100644
index c4ee792e34..0000000000
--- a/docs/WritableInventoryItemTemplateRequest.md
+++ /dev/null
@@ -1,330 +0,0 @@
-# WritableInventoryItemTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**DeviceType** | **int32** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
-**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**Label** | Pointer to **string** | Physical label | [optional]
-**Role** | Pointer to **NullableInt32** | | [optional]
-**Manufacturer** | Pointer to **NullableInt32** | | [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]
-
-## Methods
-
-### NewWritableInventoryItemTemplateRequest
-
-`func NewWritableInventoryItemTemplateRequest(deviceType int32, name string, ) *WritableInventoryItemTemplateRequest`
-
-NewWritableInventoryItemTemplateRequest instantiates a new WritableInventoryItemTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableInventoryItemTemplateRequestWithDefaults
-
-`func NewWritableInventoryItemTemplateRequestWithDefaults() *WritableInventoryItemTemplateRequest`
-
-NewWritableInventoryItemTemplateRequestWithDefaults instantiates a new WritableInventoryItemTemplateRequest object
-This 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 *WritableInventoryItemTemplateRequest) GetDeviceType() int32`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *WritableInventoryItemTemplateRequest) GetDeviceTypeOk() (*int32, 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 *WritableInventoryItemTemplateRequest) SetDeviceType(v int32)`
-
-SetDeviceType sets DeviceType field to given value.
-
-
-### GetParent
-
-`func (o *WritableInventoryItemTemplateRequest) GetParent() int32`
-
-GetParent returns the Parent field if non-nil, zero value otherwise.
-
-### GetParentOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetParent(v int32)`
-
-SetParent sets Parent field to given value.
-
-### HasParent
-
-`func (o *WritableInventoryItemTemplateRequest) HasParent() bool`
-
-HasParent returns a boolean if a field has been set.
-
-### SetParentNil
-
-`func (o *WritableInventoryItemTemplateRequest) SetParentNil(b bool)`
-
- SetParentNil sets the value for Parent to be an explicit nil
-
-### UnsetParent
-`func (o *WritableInventoryItemTemplateRequest) UnsetParent()`
-
-UnsetParent ensures that no value is present for Parent, not even an explicit nil
-### GetName
-
-`func (o *WritableInventoryItemTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetLabel
-
-`func (o *WritableInventoryItemTemplateRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *WritableInventoryItemTemplateRequest) HasLabel() bool`
-
-HasLabel returns a boolean if a field has been set.
-
-### GetRole
-
-`func (o *WritableInventoryItemTemplateRequest) GetRole() int32`
-
-GetRole returns the Role field if non-nil, zero value otherwise.
-
-### GetRoleOk
-
-`func (o *WritableInventoryItemTemplateRequest) GetRoleOk() (*int32, 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 *WritableInventoryItemTemplateRequest) SetRole(v int32)`
-
-SetRole sets Role field to given value.
-
-### HasRole
-
-`func (o *WritableInventoryItemTemplateRequest) HasRole() bool`
-
-HasRole returns a boolean if a field has been set.
-
-### SetRoleNil
-
-`func (o *WritableInventoryItemTemplateRequest) SetRoleNil(b bool)`
-
- SetRoleNil sets the value for Role to be an explicit nil
-
-### UnsetRole
-`func (o *WritableInventoryItemTemplateRequest) UnsetRole()`
-
-UnsetRole ensures that no value is present for Role, not even an explicit nil
-### GetManufacturer
-
-`func (o *WritableInventoryItemTemplateRequest) GetManufacturer() int32`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *WritableInventoryItemTemplateRequest) GetManufacturerOk() (*int32, 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 *WritableInventoryItemTemplateRequest) SetManufacturer(v int32)`
-
-SetManufacturer sets Manufacturer field to given value.
-
-### HasManufacturer
-
-`func (o *WritableInventoryItemTemplateRequest) HasManufacturer() bool`
-
-HasManufacturer returns a boolean if a field has been set.
-
-### SetManufacturerNil
-
-`func (o *WritableInventoryItemTemplateRequest) SetManufacturerNil(b bool)`
-
- SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-
-### UnsetManufacturer
-`func (o *WritableInventoryItemTemplateRequest) UnsetManufacturer()`
-
-UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-### GetPartId
-
-`func (o *WritableInventoryItemTemplateRequest) GetPartId() string`
-
-GetPartId returns the PartId field if non-nil, zero value otherwise.
-
-### GetPartIdOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetPartId(v string)`
-
-SetPartId sets PartId field to given value.
-
-### HasPartId
-
-`func (o *WritableInventoryItemTemplateRequest) HasPartId() bool`
-
-HasPartId returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableInventoryItemTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableInventoryItemTemplateRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComponentType
-
-`func (o *WritableInventoryItemTemplateRequest) GetComponentType() string`
-
-GetComponentType returns the ComponentType field if non-nil, zero value otherwise.
-
-### GetComponentTypeOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetComponentType(v string)`
-
-SetComponentType sets ComponentType field to given value.
-
-### HasComponentType
-
-`func (o *WritableInventoryItemTemplateRequest) HasComponentType() bool`
-
-HasComponentType returns a boolean if a field has been set.
-
-### SetComponentTypeNil
-
-`func (o *WritableInventoryItemTemplateRequest) SetComponentTypeNil(b bool)`
-
- SetComponentTypeNil sets the value for ComponentType to be an explicit nil
-
-### UnsetComponentType
-`func (o *WritableInventoryItemTemplateRequest) UnsetComponentType()`
-
-UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
-### GetComponentId
-
-`func (o *WritableInventoryItemTemplateRequest) GetComponentId() int64`
-
-GetComponentId returns the ComponentId field if non-nil, zero value otherwise.
-
-### GetComponentIdOk
-
-`func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetComponentId(v int64)`
-
-SetComponentId sets ComponentId field to given value.
-
-### HasComponentId
-
-`func (o *WritableInventoryItemTemplateRequest) HasComponentId() bool`
-
-HasComponentId returns a boolean if a field has been set.
-
-### SetComponentIdNil
-
-`func (o *WritableInventoryItemTemplateRequest) SetComponentIdNil(b bool)`
-
- SetComponentIdNil sets the value for ComponentId to be an explicit nil
-
-### UnsetComponentId
-`func (o *WritableInventoryItemTemplateRequest) UnsetComponentId()`
-
-UnsetComponentId ensures that no value is present for ComponentId, 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/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md
index 0c68065c30..d8d0852be8 100644
--- a/docs/WritableL2VPNRequest.md
+++ b/docs/WritableL2VPNRequest.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
**ExportTargets** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableL2VPNRequest) GetTenant() int32`
+`func (o *WritableL2VPNRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableL2VPNRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableL2VPNRequest) 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 *WritableL2VPNRequest) SetTenant(v int32)`
+`func (o *WritableL2VPNRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableL2VPNTerminationRequest.md b/docs/WritableL2VPNTerminationRequest.md
deleted file mode 100644
index 86931bc52d..0000000000
--- a/docs/WritableL2VPNTerminationRequest.md
+++ /dev/null
@@ -1,145 +0,0 @@
-# WritableL2VPNTerminationRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**L2vpn** | **int32** | |
-**AssignedObjectType** | **string** | |
-**AssignedObjectId** | **int64** | |
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableL2VPNTerminationRequest
-
-`func NewWritableL2VPNTerminationRequest(l2vpn int32, assignedObjectType string, assignedObjectId int64, ) *WritableL2VPNTerminationRequest`
-
-NewWritableL2VPNTerminationRequest instantiates a new WritableL2VPNTerminationRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableL2VPNTerminationRequestWithDefaults
-
-`func NewWritableL2VPNTerminationRequestWithDefaults() *WritableL2VPNTerminationRequest`
-
-NewWritableL2VPNTerminationRequestWithDefaults instantiates a new WritableL2VPNTerminationRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetL2vpn
-
-`func (o *WritableL2VPNTerminationRequest) GetL2vpn() int32`
-
-GetL2vpn returns the L2vpn field if non-nil, zero value otherwise.
-
-### GetL2vpnOk
-
-`func (o *WritableL2VPNTerminationRequest) GetL2vpnOk() (*int32, 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 *WritableL2VPNTerminationRequest) SetL2vpn(v int32)`
-
-SetL2vpn sets L2vpn field to given value.
-
-
-### GetAssignedObjectType
-
-`func (o *WritableL2VPNTerminationRequest) GetAssignedObjectType() string`
-
-GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise.
-
-### GetAssignedObjectTypeOk
-
-`func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetAssignedObjectType(v string)`
-
-SetAssignedObjectType sets AssignedObjectType field to given value.
-
-
-### GetAssignedObjectId
-
-`func (o *WritableL2VPNTerminationRequest) GetAssignedObjectId() int64`
-
-GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise.
-
-### GetAssignedObjectIdOk
-
-`func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetAssignedObjectId(v int64)`
-
-SetAssignedObjectId sets AssignedObjectId field to given value.
-
-
-### GetTags
-
-`func (o *WritableL2VPNTerminationRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableL2VPNTerminationRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableL2VPNTerminationRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableL2VPNTerminationRequest) 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/WritableLocationRequest.md b/docs/WritableLocationRequest.md
index 7e79b2c9f2..dd699d8189 100644
--- a/docs/WritableLocationRequest.md
+++ b/docs/WritableLocationRequest.md
@@ -6,10 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Site** | **int32** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
-**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Site** | [**SiteRequest**](SiteRequest.md) | |
+**Parent** | **NullableInt32** | |
+**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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]
@@ -18,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableLocationRequest
-`func NewWritableLocationRequest(name string, slug string, site int32, ) *WritableLocationRequest`
+`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest`
NewWritableLocationRequest instantiates a new WritableLocationRequest object
This constructor will assign default values to properties that have it defined,
@@ -75,20 +76,20 @@ SetSlug sets Slug field to given value.
### GetSite
-`func (o *WritableLocationRequest) GetSite() int32`
+`func (o *WritableLocationRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableLocationRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritableLocationRequest) 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 *WritableLocationRequest) SetSite(v int32)`
+`func (o *WritableLocationRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -112,11 +113,6 @@ 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
@@ -130,20 +126,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 *WritableLocationRequest) GetStatus() LocationStatusValue`
+`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)`
+`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, 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 LocationStatusValue)`
+`func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)`
SetStatus sets Status field to given value.
@@ -155,20 +151,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableLocationRequest) GetTenant() int32`
+`func (o *WritableLocationRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableLocationRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableLocationRequest) 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 *WritableLocationRequest) SetTenant(v int32)`
+`func (o *WritableLocationRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -188,6 +184,31 @@ HasTenant returns a boolean if a field has been set.
`func (o *WritableLocationRequest) UnsetTenant()`
UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
+### GetFacility
+
+`func (o *WritableLocationRequest) GetFacility() string`
+
+GetFacility returns the Facility field if non-nil, zero value otherwise.
+
+### GetFacilityOk
+
+`func (o *WritableLocationRequest) 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 *WritableLocationRequest) SetFacility(v string)`
+
+SetFacility sets Facility field to given value.
+
+### HasFacility
+
+`func (o *WritableLocationRequest) HasFacility() bool`
+
+HasFacility returns a boolean if a field has been set.
+
### GetDescription
`func (o *WritableLocationRequest) GetDescription() string`
diff --git a/docs/WritableModuleBayRequest.md b/docs/WritableModuleBayRequest.md
deleted file mode 100644
index 63ce467812..0000000000
--- a/docs/WritableModuleBayRequest.md
+++ /dev/null
@@ -1,223 +0,0 @@
-# WritableModuleBayRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Name** | **string** | |
-**InstalledModule** | **int32** | |
-**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 [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableModuleBayRequest
-
-`func NewWritableModuleBayRequest(device int32, name string, installedModule int32, ) *WritableModuleBayRequest`
-
-NewWritableModuleBayRequest instantiates a new WritableModuleBayRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableModuleBayRequestWithDefaults
-
-`func NewWritableModuleBayRequestWithDefaults() *WritableModuleBayRequest`
-
-NewWritableModuleBayRequestWithDefaults instantiates a new WritableModuleBayRequest object
-This 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 *WritableModuleBayRequest) GetDevice() int32`
-
-GetDevice returns the Device field if non-nil, zero value otherwise.
-
-### GetDeviceOk
-
-`func (o *WritableModuleBayRequest) GetDeviceOk() (*int32, 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 *WritableModuleBayRequest) SetDevice(v int32)`
-
-SetDevice sets Device field to given value.
-
-
-### GetName
-
-`func (o *WritableModuleBayRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetInstalledModule
-
-`func (o *WritableModuleBayRequest) GetInstalledModule() int32`
-
-GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise.
-
-### GetInstalledModuleOk
-
-`func (o *WritableModuleBayRequest) GetInstalledModuleOk() (*int32, 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 *WritableModuleBayRequest) SetInstalledModule(v int32)`
-
-SetInstalledModule sets InstalledModule field to given value.
-
-
-### GetLabel
-
-`func (o *WritableModuleBayRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *WritableModuleBayRequest) HasLabel() bool`
-
-HasLabel returns a boolean if a field has been set.
-
-### GetPosition
-
-`func (o *WritableModuleBayRequest) GetPosition() string`
-
-GetPosition returns the Position field if non-nil, zero value otherwise.
-
-### GetPositionOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetPosition(v string)`
-
-SetPosition sets Position field to given value.
-
-### HasPosition
-
-`func (o *WritableModuleBayRequest) HasPosition() bool`
-
-HasPosition returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableModuleBayRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableModuleBayRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableModuleBayRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableModuleBayRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableModuleBayRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableModuleBayRequest) 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/WritableModuleBayTemplateRequest.md b/docs/WritableModuleBayTemplateRequest.md
deleted file mode 100644
index a066a7ca23..0000000000
--- a/docs/WritableModuleBayTemplateRequest.md
+++ /dev/null
@@ -1,150 +0,0 @@
-# WritableModuleBayTemplateRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**DeviceType** | **int32** | |
-**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. |
-**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
-
-### NewWritableModuleBayTemplateRequest
-
-`func NewWritableModuleBayTemplateRequest(deviceType int32, name string, ) *WritableModuleBayTemplateRequest`
-
-NewWritableModuleBayTemplateRequest instantiates a new WritableModuleBayTemplateRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableModuleBayTemplateRequestWithDefaults
-
-`func NewWritableModuleBayTemplateRequestWithDefaults() *WritableModuleBayTemplateRequest`
-
-NewWritableModuleBayTemplateRequestWithDefaults instantiates a new WritableModuleBayTemplateRequest object
-This 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 *WritableModuleBayTemplateRequest) GetDeviceType() int32`
-
-GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
-
-### GetDeviceTypeOk
-
-`func (o *WritableModuleBayTemplateRequest) GetDeviceTypeOk() (*int32, 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 *WritableModuleBayTemplateRequest) SetDeviceType(v int32)`
-
-SetDeviceType sets DeviceType field to given value.
-
-
-### GetName
-
-`func (o *WritableModuleBayTemplateRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetLabel
-
-`func (o *WritableModuleBayTemplateRequest) GetLabel() string`
-
-GetLabel returns the Label field if non-nil, zero value otherwise.
-
-### GetLabelOk
-
-`func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetLabel(v string)`
-
-SetLabel sets Label field to given value.
-
-### HasLabel
-
-`func (o *WritableModuleBayTemplateRequest) HasLabel() bool`
-
-HasLabel returns a boolean if a field has been set.
-
-### GetPosition
-
-`func (o *WritableModuleBayTemplateRequest) GetPosition() string`
-
-GetPosition returns the Position field if non-nil, zero value otherwise.
-
-### GetPositionOk
-
-`func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetPosition(v string)`
-
-SetPosition sets Position field to given value.
-
-### HasPosition
-
-`func (o *WritableModuleBayTemplateRequest) HasPosition() bool`
-
-HasPosition returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableModuleBayTemplateRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableModuleBayTemplateRequest) 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/WritableModuleRequest.md b/docs/WritableModuleRequest.md
index 6cd07159a1..95f95384cc 100644
--- a/docs/WritableModuleRequest.md
+++ b/docs/WritableModuleRequest.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
**ModuleBay** | **int32** | |
-**ModuleType** | **int32** | |
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
+**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | |
+**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.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 int32, moduleBay int32, moduleType int32, ) *WritableModuleRequest`
+`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *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() int32`
+`func (o *WritableModuleRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableModuleRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableModuleRequest) 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 *WritableModuleRequest) SetDevice(v int32)`
+`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value.
### GetModuleType
-`func (o *WritableModuleRequest) GetModuleType() int32`
+`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableModuleRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableModuleRequest) 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 *WritableModuleRequest) SetModuleType(v int32)`
+`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
### GetStatus
-`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue`
+`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)`
+`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue)`
+`func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)`
SetStatus sets Status field to given value.
diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md
index c7bf71d7c5..ada1a71f7e 100644
--- a/docs/WritableModuleTypeRequest.md
+++ b/docs/WritableModuleTypeRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Manufacturer** | **int32** | |
+**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | |
**Model** | **string** | |
**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional]
**Weight** | Pointer to **NullableFloat64** | | [optional]
-**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
### NewWritableModuleTypeRequest
-`func NewWritableModuleTypeRequest(manufacturer int32, model string, ) *WritableModuleTypeRequest`
+`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest`
NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest 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
### GetManufacturer
-`func (o *WritableModuleTypeRequest) GetManufacturer() int32`
+`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest`
GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
### GetManufacturerOk
-`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*int32, bool)`
+`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 int32)`
+`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)`
SetManufacturer sets Manufacturer field to given value.
@@ -135,20 +135,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() DeviceTypeWeightUnitValue`
+`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/WritableObjectPermissionRequest.md b/docs/WritableObjectPermissionRequest.md
deleted file mode 100644
index 612632bebd..0000000000
--- a/docs/WritableObjectPermissionRequest.md
+++ /dev/null
@@ -1,233 +0,0 @@
-# WritableObjectPermissionRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Description** | Pointer to **string** | | [optional]
-**Enabled** | Pointer to **bool** | | [optional]
-**ObjectTypes** | **[]string** | |
-**Groups** | Pointer to **[]int32** | | [optional]
-**Users** | Pointer to **[]int32** | | [optional]
-**Actions** | **[]string** | The list of actions granted by this permission |
-**Constraints** | Pointer to **interface{}** | Queryset filter matching the applicable objects of the selected type(s) | [optional]
-
-## Methods
-
-### NewWritableObjectPermissionRequest
-
-`func NewWritableObjectPermissionRequest(name string, objectTypes []string, actions []string, ) *WritableObjectPermissionRequest`
-
-NewWritableObjectPermissionRequest instantiates a new WritableObjectPermissionRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableObjectPermissionRequestWithDefaults
-
-`func NewWritableObjectPermissionRequestWithDefaults() *WritableObjectPermissionRequest`
-
-NewWritableObjectPermissionRequestWithDefaults instantiates a new WritableObjectPermissionRequest object
-This 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 *WritableObjectPermissionRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetDescription
-
-`func (o *WritableObjectPermissionRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableObjectPermissionRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetEnabled
-
-`func (o *WritableObjectPermissionRequest) GetEnabled() bool`
-
-GetEnabled returns the Enabled field if non-nil, zero value otherwise.
-
-### GetEnabledOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetEnabled(v bool)`
-
-SetEnabled sets Enabled field to given value.
-
-### HasEnabled
-
-`func (o *WritableObjectPermissionRequest) HasEnabled() bool`
-
-HasEnabled returns a boolean if a field has been set.
-
-### GetObjectTypes
-
-`func (o *WritableObjectPermissionRequest) GetObjectTypes() []string`
-
-GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise.
-
-### GetObjectTypesOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetObjectTypes(v []string)`
-
-SetObjectTypes sets ObjectTypes field to given value.
-
-
-### GetGroups
-
-`func (o *WritableObjectPermissionRequest) GetGroups() []int32`
-
-GetGroups returns the Groups field if non-nil, zero value otherwise.
-
-### GetGroupsOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetGroups(v []int32)`
-
-SetGroups sets Groups field to given value.
-
-### HasGroups
-
-`func (o *WritableObjectPermissionRequest) HasGroups() bool`
-
-HasGroups returns a boolean if a field has been set.
-
-### GetUsers
-
-`func (o *WritableObjectPermissionRequest) GetUsers() []int32`
-
-GetUsers returns the Users field if non-nil, zero value otherwise.
-
-### GetUsersOk
-
-`func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetUsers(v []int32)`
-
-SetUsers sets Users field to given value.
-
-### HasUsers
-
-`func (o *WritableObjectPermissionRequest) HasUsers() bool`
-
-HasUsers returns a boolean if a field has been set.
-
-### GetActions
-
-`func (o *WritableObjectPermissionRequest) GetActions() []string`
-
-GetActions returns the Actions field if non-nil, zero value otherwise.
-
-### GetActionsOk
-
-`func (o *WritableObjectPermissionRequest) GetActionsOk() (*[]string, bool)`
-
-GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetActions
-
-`func (o *WritableObjectPermissionRequest) SetActions(v []string)`
-
-SetActions sets Actions field to given value.
-
-
-### GetConstraints
-
-`func (o *WritableObjectPermissionRequest) GetConstraints() interface{}`
-
-GetConstraints returns the Constraints field if non-nil, zero value otherwise.
-
-### GetConstraintsOk
-
-`func (o *WritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool)`
-
-GetConstraintsOk returns a tuple with the Constraints field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConstraints
-
-`func (o *WritableObjectPermissionRequest) SetConstraints(v interface{})`
-
-SetConstraints sets Constraints field to given value.
-
-### HasConstraints
-
-`func (o *WritableObjectPermissionRequest) HasConstraints() bool`
-
-HasConstraints returns a boolean if a field has been set.
-
-### SetConstraintsNil
-
-`func (o *WritableObjectPermissionRequest) SetConstraintsNil(b bool)`
-
- SetConstraintsNil sets the value for Constraints to be an explicit nil
-
-### UnsetConstraints
-`func (o *WritableObjectPermissionRequest) UnsetConstraints()`
-
-UnsetConstraints ensures that no value is present for Constraints, 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/WritablePlatformRequest.md b/docs/WritablePlatformRequest.md
deleted file mode 100644
index fa100d1538..0000000000
--- a/docs/WritablePlatformRequest.md
+++ /dev/null
@@ -1,222 +0,0 @@
-# WritablePlatformRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-**Manufacturer** | Pointer to **NullableInt32** | Optionally limit this platform to devices of a certain manufacturer | [optional]
-**ConfigTemplate** | Pointer to **NullableInt32** | | [optional]
-**Description** | Pointer to **string** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritablePlatformRequest
-
-`func NewWritablePlatformRequest(name string, slug string, ) *WritablePlatformRequest`
-
-NewWritablePlatformRequest instantiates a new WritablePlatformRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritablePlatformRequestWithDefaults
-
-`func NewWritablePlatformRequestWithDefaults() *WritablePlatformRequest`
-
-NewWritablePlatformRequestWithDefaults instantiates a new WritablePlatformRequest object
-This 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 *WritablePlatformRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *WritablePlatformRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetManufacturer
-
-`func (o *WritablePlatformRequest) GetManufacturer() int32`
-
-GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise.
-
-### GetManufacturerOk
-
-`func (o *WritablePlatformRequest) GetManufacturerOk() (*int32, 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 *WritablePlatformRequest) SetManufacturer(v int32)`
-
-SetManufacturer sets Manufacturer field to given value.
-
-### HasManufacturer
-
-`func (o *WritablePlatformRequest) HasManufacturer() bool`
-
-HasManufacturer returns a boolean if a field has been set.
-
-### SetManufacturerNil
-
-`func (o *WritablePlatformRequest) SetManufacturerNil(b bool)`
-
- SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-
-### UnsetManufacturer
-`func (o *WritablePlatformRequest) UnsetManufacturer()`
-
-UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-### GetConfigTemplate
-
-`func (o *WritablePlatformRequest) GetConfigTemplate() int32`
-
-GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
-
-### GetConfigTemplateOk
-
-`func (o *WritablePlatformRequest) GetConfigTemplateOk() (*int32, bool)`
-
-GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetConfigTemplate
-
-`func (o *WritablePlatformRequest) SetConfigTemplate(v int32)`
-
-SetConfigTemplate sets ConfigTemplate field to given value.
-
-### HasConfigTemplate
-
-`func (o *WritablePlatformRequest) HasConfigTemplate() bool`
-
-HasConfigTemplate returns a boolean if a field has been set.
-
-### SetConfigTemplateNil
-
-`func (o *WritablePlatformRequest) SetConfigTemplateNil(b bool)`
-
- SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-
-### UnsetConfigTemplate
-`func (o *WritablePlatformRequest) UnsetConfigTemplate()`
-
-UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-### GetDescription
-
-`func (o *WritablePlatformRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritablePlatformRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritablePlatformRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritablePlatformRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritablePlatformRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritablePlatformRequest) 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/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md
index 79db21d600..f8ee53481c 100644
--- a/docs/WritablePowerFeedRequest.md
+++ b/docs/WritablePowerFeedRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**PowerPanel** | **int32** | |
-**Rack** | Pointer to **NullableInt32** | | [optional]
+**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | |
+**Rack** | Pointer to [**NullableRackRequest**](RackRequest.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 **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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 int32, name string, ) *WritablePowerFeedRequest`
+`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, 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() int32`
+`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest`
GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise.
### GetPowerPanelOk
-`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*int32, bool)`
+`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, 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 int32)`
+`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)`
SetPowerPanel sets PowerPanel field to given value.
### GetRack
-`func (o *WritablePowerFeedRequest) GetRack() int32`
+`func (o *WritablePowerFeedRequest) GetRack() RackRequest`
GetRack returns the Rack field if non-nil, zero value otherwise.
### GetRackOk
-`func (o *WritablePowerFeedRequest) GetRackOk() (*int32, bool)`
+`func (o *WritablePowerFeedRequest) 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 *WritablePowerFeedRequest) SetRack(v int32)`
+`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)`
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() int32`
+`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritablePowerFeedRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritablePowerFeedRequest) 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 *WritablePowerFeedRequest) SetTenant(v int32)`
+`func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md
index cf0c827fb1..978dfe7616 100644
--- a/docs/WritablePowerOutletRequest.md
+++ b/docs/WritablePowerOutletRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional]
-**PowerPort** | Pointer to **NullableInt32** | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional]
**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewWritablePowerOutletRequest
-`func NewWritablePowerOutletRequest(device int32, name string, ) *WritablePowerOutletRequest`
+`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest`
NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest 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 *WritablePowerOutletRequest) GetDevice() int32`
+`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritablePowerOutletRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritablePowerOutletRequest) 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 *WritablePowerOutletRequest) SetDevice(v int32)`
+`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritablePowerOutletRequest) GetModule() int32`
+`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritablePowerOutletRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritablePowerOutletRequest) 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 *WritablePowerOutletRequest) SetModule(v int32)`
+`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
@@ -162,20 +162,20 @@ HasType returns a boolean if a field has been set.
### GetPowerPort
-`func (o *WritablePowerOutletRequest) GetPowerPort() int32`
+`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*int32, bool)`
+`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, 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 int32)`
+`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md
index 58870e1bdc..196e5721af 100644
--- a/docs/WritablePowerOutletTemplateRequest.md
+++ b/docs/WritablePowerOutletTemplateRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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 **NullableInt32** | | [optional]
+**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional]
**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.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 *WritablePowerOutletTemplateRequest) GetDeviceType() int32`
+`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritablePowerOutletTemplateRequest) 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 *WritablePowerOutletTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritablePowerOutletTemplateRequest) 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 *WritablePowerOutletTemplateRequest) SetModuleType(v int32)`
+`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
@@ -174,20 +174,20 @@ HasType returns a boolean if a field has been set.
### GetPowerPort
-`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() int32`
+`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest`
GetPowerPort returns the PowerPort field if non-nil, zero value otherwise.
### GetPowerPortOk
-`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*int32, bool)`
+`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, 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 int32)`
+`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)`
SetPowerPort sets PowerPort field to given value.
diff --git a/docs/WritablePowerPanelRequest.md b/docs/WritablePowerPanelRequest.md
deleted file mode 100644
index 7682f2a117..0000000000
--- a/docs/WritablePowerPanelRequest.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# WritablePowerPanelRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Site** | **int32** | |
-**Location** | Pointer to **NullableInt32** | | [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
-
-### NewWritablePowerPanelRequest
-
-`func NewWritablePowerPanelRequest(site int32, name string, ) *WritablePowerPanelRequest`
-
-NewWritablePowerPanelRequest instantiates a new WritablePowerPanelRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritablePowerPanelRequestWithDefaults
-
-`func NewWritablePowerPanelRequestWithDefaults() *WritablePowerPanelRequest`
-
-NewWritablePowerPanelRequestWithDefaults instantiates a new WritablePowerPanelRequest object
-This 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 *WritablePowerPanelRequest) GetSite() int32`
-
-GetSite returns the Site field if non-nil, zero value otherwise.
-
-### GetSiteOk
-
-`func (o *WritablePowerPanelRequest) GetSiteOk() (*int32, 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 *WritablePowerPanelRequest) SetSite(v int32)`
-
-SetSite sets Site field to given value.
-
-
-### GetLocation
-
-`func (o *WritablePowerPanelRequest) GetLocation() int32`
-
-GetLocation returns the Location field if non-nil, zero value otherwise.
-
-### GetLocationOk
-
-`func (o *WritablePowerPanelRequest) GetLocationOk() (*int32, 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 *WritablePowerPanelRequest) SetLocation(v int32)`
-
-SetLocation sets Location field to given value.
-
-### HasLocation
-
-`func (o *WritablePowerPanelRequest) HasLocation() bool`
-
-HasLocation returns a boolean if a field has been set.
-
-### SetLocationNil
-
-`func (o *WritablePowerPanelRequest) SetLocationNil(b bool)`
-
- SetLocationNil sets the value for Location to be an explicit nil
-
-### UnsetLocation
-`func (o *WritablePowerPanelRequest) UnsetLocation()`
-
-UnsetLocation ensures that no value is present for Location, not even an explicit nil
-### GetName
-
-`func (o *WritablePowerPanelRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetDescription
-
-`func (o *WritablePowerPanelRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritablePowerPanelRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritablePowerPanelRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritablePowerPanelRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritablePowerPanelRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritablePowerPanelRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritablePowerPanelRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritablePowerPanelRequest) 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/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md
index 51ff7698bf..55d0323088 100644
--- a/docs/WritablePowerPortRequest.md
+++ b/docs/WritablePowerPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional]
**Name** | **string** | |
**Label** | Pointer to **string** | Physical label | [optional]
**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
### NewWritablePowerPortRequest
-`func NewWritablePowerPortRequest(device int32, name string, ) *WritablePowerPortRequest`
+`func NewWritablePowerPortRequest(device DeviceRequest, 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() int32`
+`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritablePowerPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritablePowerPortRequest) 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 *WritablePowerPortRequest) SetDevice(v int32)`
+`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritablePowerPortRequest) GetModule() int32`
+`func (o *WritablePowerPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritablePowerPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritablePowerPortRequest) 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 *WritablePowerPortRequest) SetModule(v int32)`
+`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md
index 3ff357cee1..75edd99501 100644
--- a/docs/WritablePowerPortTemplateRequest.md
+++ b/docs/WritablePowerPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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]
@@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set
### GetDeviceType
-`func (o *WritablePowerPortTemplateRequest) GetDeviceType() int32`
+`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritablePowerPortTemplateRequest) 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 *WritablePowerPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritablePowerPortTemplateRequest) 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 *WritablePowerPortTemplateRequest) SetModuleType(v int32)`
+`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md
index 210ef1ff95..87080ca95c 100644
--- a/docs/WritablePrefixRequest.md
+++ b/docs/WritablePrefixRequest.md
@@ -5,12 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Prefix** | **string** | |
-**Site** | Pointer to **NullableInt32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Vlan** | Pointer to **NullableInt32** | | [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]
**Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this prefix | [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]
@@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value.
### GetSite
-`func (o *WritablePrefixRequest) GetSite() int32`
+`func (o *WritablePrefixRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritablePrefixRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritablePrefixRequest) 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 *WritablePrefixRequest) SetSite(v int32)`
+`func (o *WritablePrefixRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -94,20 +94,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
### GetVrf
-`func (o *WritablePrefixRequest) GetVrf() int32`
+`func (o *WritablePrefixRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *WritablePrefixRequest) GetVrfOk() (*int32, bool)`
+`func (o *WritablePrefixRequest) 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 *WritablePrefixRequest) SetVrf(v int32)`
+`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
@@ -129,20 +129,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 *WritablePrefixRequest) GetTenant() int32`
+`func (o *WritablePrefixRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritablePrefixRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritablePrefixRequest) 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 *WritablePrefixRequest) SetTenant(v int32)`
+`func (o *WritablePrefixRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -164,20 +164,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() int32`
+`func (o *WritablePrefixRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *WritablePrefixRequest) GetVlanOk() (*int32, bool)`
+`func (o *WritablePrefixRequest) 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 *WritablePrefixRequest) SetVlan(v int32)`
+`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *WritablePrefixRequest) GetRole() int32`
+`func (o *WritablePrefixRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritablePrefixRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritablePrefixRequest) 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 *WritablePrefixRequest) SetRole(v int32)`
+`func (o *WritablePrefixRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/WritableProviderNetworkRequest.md b/docs/WritableProviderNetworkRequest.md
deleted file mode 100644
index acd22bcb48..0000000000
--- a/docs/WritableProviderNetworkRequest.md
+++ /dev/null
@@ -1,202 +0,0 @@
-# WritableProviderNetworkRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Provider** | **int32** | |
-**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
-
-### NewWritableProviderNetworkRequest
-
-`func NewWritableProviderNetworkRequest(provider int32, name string, ) *WritableProviderNetworkRequest`
-
-NewWritableProviderNetworkRequest instantiates a new WritableProviderNetworkRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableProviderNetworkRequestWithDefaults
-
-`func NewWritableProviderNetworkRequestWithDefaults() *WritableProviderNetworkRequest`
-
-NewWritableProviderNetworkRequestWithDefaults instantiates a new WritableProviderNetworkRequest object
-This 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 *WritableProviderNetworkRequest) GetProvider() int32`
-
-GetProvider returns the Provider field if non-nil, zero value otherwise.
-
-### GetProviderOk
-
-`func (o *WritableProviderNetworkRequest) GetProviderOk() (*int32, 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 *WritableProviderNetworkRequest) SetProvider(v int32)`
-
-SetProvider sets Provider field to given value.
-
-
-### GetName
-
-`func (o *WritableProviderNetworkRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetServiceId
-
-`func (o *WritableProviderNetworkRequest) GetServiceId() string`
-
-GetServiceId returns the ServiceId field if non-nil, zero value otherwise.
-
-### GetServiceIdOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetServiceId(v string)`
-
-SetServiceId sets ServiceId field to given value.
-
-### HasServiceId
-
-`func (o *WritableProviderNetworkRequest) HasServiceId() bool`
-
-HasServiceId returns a boolean if a field has been set.
-
-### GetDescription
-
-`func (o *WritableProviderNetworkRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableProviderNetworkRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritableProviderNetworkRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableProviderNetworkRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableProviderNetworkRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableProviderNetworkRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableProviderNetworkRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableProviderNetworkRequest) 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/WritableProviderRequest.md b/docs/WritableProviderRequest.md
deleted file mode 100644
index e9a1c34d38..0000000000
--- a/docs/WritableProviderRequest.md
+++ /dev/null
@@ -1,223 +0,0 @@
-# WritableProviderRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | Full name of the provider |
-**Slug** | **string** | |
-**Accounts** | **[]int32** | |
-**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
-
-### NewWritableProviderRequest
-
-`func NewWritableProviderRequest(name string, slug string, accounts []int32, ) *WritableProviderRequest`
-
-NewWritableProviderRequest instantiates a new WritableProviderRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableProviderRequestWithDefaults
-
-`func NewWritableProviderRequestWithDefaults() *WritableProviderRequest`
-
-NewWritableProviderRequestWithDefaults instantiates a new WritableProviderRequest object
-This 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 *WritableProviderRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *WritableProviderRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetAccounts
-
-`func (o *WritableProviderRequest) GetAccounts() []int32`
-
-GetAccounts returns the Accounts field if non-nil, zero value otherwise.
-
-### GetAccountsOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetAccounts(v []int32)`
-
-SetAccounts sets Accounts field to given value.
-
-
-### GetDescription
-
-`func (o *WritableProviderRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableProviderRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritableProviderRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableProviderRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetAsns
-
-`func (o *WritableProviderRequest) GetAsns() []int32`
-
-GetAsns returns the Asns field if non-nil, zero value otherwise.
-
-### GetAsnsOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetAsns(v []int32)`
-
-SetAsns sets Asns field to given value.
-
-### HasAsns
-
-`func (o *WritableProviderRequest) HasAsns() bool`
-
-HasAsns returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableProviderRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableProviderRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableProviderRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableProviderRequest) 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 *WritableProviderRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableProviderRequest) 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/WritableRackRequest.md b/docs/WritableRackRequest.md
index 0f0ba02f5d..a9a7cf6f57 100644
--- a/docs/WritableRackRequest.md
+++ b/docs/WritableRackRequest.md
@@ -6,11 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**FacilityId** | Pointer to **NullableString** | | [optional]
-**Site** | **int32** | |
-**Location** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Site** | [**SiteRequest**](SiteRequest.md) | |
+**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | Functional role | [optional]
+**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.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]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
**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 [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional]
+**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.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]
@@ -34,7 +34,7 @@ Name | Type | Description | Notes
### NewWritableRackRequest
-`func NewWritableRackRequest(name string, site int32, ) *WritableRackRequest`
+`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest`
NewWritableRackRequest instantiates a new WritableRackRequest object
This constructor will assign default values to properties that have it defined,
@@ -106,40 +106,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() int32`
+`func (o *WritableRackRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableRackRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritableRackRequest) 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 *WritableRackRequest) SetSite(v int32)`
+`func (o *WritableRackRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
### GetLocation
-`func (o *WritableRackRequest) GetLocation() int32`
+`func (o *WritableRackRequest) GetLocation() LocationRequest`
GetLocation returns the Location field if non-nil, zero value otherwise.
### GetLocationOk
-`func (o *WritableRackRequest) GetLocationOk() (*int32, bool)`
+`func (o *WritableRackRequest) 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 *WritableRackRequest) SetLocation(v int32)`
+`func (o *WritableRackRequest) SetLocation(v LocationRequest)`
SetLocation sets Location field to given value.
@@ -161,20 +161,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() int32`
+`func (o *WritableRackRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableRackRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableRackRequest) 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 *WritableRackRequest) SetTenant(v int32)`
+`func (o *WritableRackRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -221,20 +221,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *WritableRackRequest) GetRole() int32`
+`func (o *WritableRackRequest) GetRole() RackRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableRackRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, 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 int32)`
+`func (o *WritableRackRequest) SetRole(v RackRoleRequest)`
SetRole sets Role field to given value.
@@ -486,20 +486,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() DeviceTypeWeightUnitValue`
+`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit`
GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise.
### GetWeightUnitOk
-`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)`
+`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, 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 DeviceTypeWeightUnitValue)`
+`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)`
SetWeightUnit sets WeightUnit field to given value.
diff --git a/docs/WritableRackReservationRequest.md b/docs/WritableRackReservationRequest.md
deleted file mode 100644
index b407ae096e..0000000000
--- a/docs/WritableRackReservationRequest.md
+++ /dev/null
@@ -1,228 +0,0 @@
-# WritableRackReservationRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Rack** | **int32** | |
-**Units** | **[]int32** | |
-**User** | **int32** | |
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Description** | **string** | |
-**Comments** | Pointer to **string** | | [optional]
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableRackReservationRequest
-
-`func NewWritableRackReservationRequest(rack int32, units []int32, user int32, description string, ) *WritableRackReservationRequest`
-
-NewWritableRackReservationRequest instantiates a new WritableRackReservationRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableRackReservationRequestWithDefaults
-
-`func NewWritableRackReservationRequestWithDefaults() *WritableRackReservationRequest`
-
-NewWritableRackReservationRequestWithDefaults instantiates a new WritableRackReservationRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetRack
-
-`func (o *WritableRackReservationRequest) GetRack() int32`
-
-GetRack returns the Rack field if non-nil, zero value otherwise.
-
-### GetRackOk
-
-`func (o *WritableRackReservationRequest) GetRackOk() (*int32, 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 *WritableRackReservationRequest) SetRack(v int32)`
-
-SetRack sets Rack field to given value.
-
-
-### GetUnits
-
-`func (o *WritableRackReservationRequest) GetUnits() []int32`
-
-GetUnits returns the Units field if non-nil, zero value otherwise.
-
-### GetUnitsOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetUnits(v []int32)`
-
-SetUnits sets Units field to given value.
-
-
-### GetUser
-
-`func (o *WritableRackReservationRequest) GetUser() int32`
-
-GetUser returns the User field if non-nil, zero value otherwise.
-
-### GetUserOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetUser(v int32)`
-
-SetUser sets User field to given value.
-
-
-### GetTenant
-
-`func (o *WritableRackReservationRequest) GetTenant() int32`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *WritableRackReservationRequest) GetTenantOk() (*int32, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *WritableRackReservationRequest) SetTenant(v int32)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *WritableRackReservationRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *WritableRackReservationRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *WritableRackReservationRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetDescription
-
-`func (o *WritableRackReservationRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-
-### GetComments
-
-`func (o *WritableRackReservationRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableRackReservationRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableRackReservationRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableRackReservationRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableRackReservationRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableRackReservationRequest) 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 e7b8aff29b..5e366e7c53 100644
--- a/docs/WritableRearPortRequest.md
+++ b/docs/WritableRearPortRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | **int32** | |
-**Module** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.md) | |
+**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.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 int32, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest`
+`func NewWritableRearPortRequest(device DeviceRequest, 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() int32`
+`func (o *WritableRearPortRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableRearPortRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableRearPortRequest) 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 *WritableRearPortRequest) SetDevice(v int32)`
+`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
### GetModule
-`func (o *WritableRearPortRequest) GetModule() int32`
+`func (o *WritableRearPortRequest) GetModule() ModuleRequest`
GetModule returns the Module field if non-nil, zero value otherwise.
### GetModuleOk
-`func (o *WritableRearPortRequest) GetModuleOk() (*int32, bool)`
+`func (o *WritableRearPortRequest) 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 *WritableRearPortRequest) SetModule(v int32)`
+`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)`
SetModule sets Module field to given value.
diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md
index cb079e5dbf..075a046aaa 100644
--- a/docs/WritableRearPortTemplateRequest.md
+++ b/docs/WritableRearPortTemplateRequest.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DeviceType** | Pointer to **NullableInt32** | | [optional]
-**ModuleType** | Pointer to **NullableInt32** | | [optional]
+**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional]
+**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.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() int32`
+`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest`
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
### GetDeviceTypeOk
-`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*int32, bool)`
+`func (o *WritableRearPortTemplateRequest) 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 *WritableRearPortTemplateRequest) SetDeviceType(v int32)`
+`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)`
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() int32`
+`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest`
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
### GetModuleTypeOk
-`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*int32, bool)`
+`func (o *WritableRearPortTemplateRequest) 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 *WritableRearPortTemplateRequest) SetModuleType(v int32)`
+`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)`
SetModuleType sets ModuleType field to given value.
diff --git a/docs/WritableRegionRequest.md b/docs/WritableRegionRequest.md
index 18354143f7..9b8a23a97b 100644
--- a/docs/WritableRegionRequest.md
+++ b/docs/WritableRegionRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
+**Parent** | **NullableInt32** | |
**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, ) *WritableRegionRequest`
+`func NewWritableRegionRequest(name string, slug string, parent NullableInt32, ) *WritableRegionRequest`
NewWritableRegionRequest instantiates a new WritableRegionRequest object
This constructor will assign default values to properties that have it defined,
@@ -89,11 +89,6 @@ 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/WritableRouteTargetRequest.md b/docs/WritableRouteTargetRequest.md
deleted file mode 100644
index 9b376e97b2..0000000000
--- a/docs/WritableRouteTargetRequest.md
+++ /dev/null
@@ -1,191 +0,0 @@
-# WritableRouteTargetRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | Route target value (formatted in accordance with RFC 4360) |
-**Tenant** | 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
-
-### NewWritableRouteTargetRequest
-
-`func NewWritableRouteTargetRequest(name string, ) *WritableRouteTargetRequest`
-
-NewWritableRouteTargetRequest instantiates a new WritableRouteTargetRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableRouteTargetRequestWithDefaults
-
-`func NewWritableRouteTargetRequestWithDefaults() *WritableRouteTargetRequest`
-
-NewWritableRouteTargetRequestWithDefaults instantiates a new WritableRouteTargetRequest object
-This 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 *WritableRouteTargetRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetTenant
-
-`func (o *WritableRouteTargetRequest) GetTenant() int32`
-
-GetTenant returns the Tenant field if non-nil, zero value otherwise.
-
-### GetTenantOk
-
-`func (o *WritableRouteTargetRequest) GetTenantOk() (*int32, bool)`
-
-GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise
-and a boolean to check if the value has been set.
-
-### SetTenant
-
-`func (o *WritableRouteTargetRequest) SetTenant(v int32)`
-
-SetTenant sets Tenant field to given value.
-
-### HasTenant
-
-`func (o *WritableRouteTargetRequest) HasTenant() bool`
-
-HasTenant returns a boolean if a field has been set.
-
-### SetTenantNil
-
-`func (o *WritableRouteTargetRequest) SetTenantNil(b bool)`
-
- SetTenantNil sets the value for Tenant to be an explicit nil
-
-### UnsetTenant
-`func (o *WritableRouteTargetRequest) UnsetTenant()`
-
-UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-### GetDescription
-
-`func (o *WritableRouteTargetRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableRouteTargetRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritableRouteTargetRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableRouteTargetRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableRouteTargetRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableRouteTargetRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableRouteTargetRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableRouteTargetRequest) 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/WritableServiceRequest.md b/docs/WritableServiceRequest.md
index 380181a292..f4617ee50a 100644
--- a/docs/WritableServiceRequest.md
+++ b/docs/WritableServiceRequest.md
@@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Device** | Pointer to **NullableInt32** | | [optional]
-**VirtualMachine** | Pointer to **NullableInt32** | | [optional]
+**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional]
+**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional]
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | |
-**Ipaddresses** | Pointer to **[]int32** | The specific IP addresses (if any) to which this service is bound | [optional]
+**Ports** | **[]int32** | |
+**Ipaddresses** | Pointer to **[]int32** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
### NewWritableServiceRequest
-`func NewWritableServiceRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol, ) *WritableServiceRequest`
+`func NewWritableServiceRequest(name string, protocol PatchedWritableServiceRequestProtocol, ports []int32, ) *WritableServiceRequest`
NewWritableServiceRequest instantiates a new WritableServiceRequest 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 *WritableServiceRequest) GetDevice() int32`
+`func (o *WritableServiceRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableServiceRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableServiceRequest) 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 *WritableServiceRequest) SetDevice(v int32)`
+`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)`
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() int32`
+`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *WritableServiceRequest) GetVirtualMachineOk() (*int32, bool)`
+`func (o *WritableServiceRequest) 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 *WritableServiceRequest) SetVirtualMachine(v int32)`
+`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -124,44 +124,44 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
+### GetProtocol
-`func (o *WritableServiceRequest) GetPorts() []int32`
+`func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
-GetPorts returns the Ports field if non-nil, zero value otherwise.
+GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-### GetPortsOk
+### GetProtocolOk
-`func (o *WritableServiceRequest) GetPortsOk() (*[]int32, bool)`
+`func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
-GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise
+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.
-### SetPorts
+### SetProtocol
-`func (o *WritableServiceRequest) SetPorts(v []int32)`
+`func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
-SetPorts sets Ports field to given value.
+SetProtocol sets Protocol field to given value.
-### GetProtocol
+### GetPorts
-`func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
+`func (o *WritableServiceRequest) GetPorts() []int32`
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
+GetPorts returns the Ports field if non-nil, zero value otherwise.
-### GetProtocolOk
+### GetPortsOk
-`func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
+`func (o *WritableServiceRequest) GetPortsOk() (*[]int32, bool)`
-GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
+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.
-### SetProtocol
+### SetPorts
-`func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
+`func (o *WritableServiceRequest) SetPorts(v []int32)`
-SetProtocol sets Protocol field to given value.
+SetPorts sets Ports field to given value.
### GetIpaddresses
diff --git a/docs/WritableServiceTemplateRequest.md b/docs/WritableServiceTemplateRequest.md
index 59fff1ae02..fc5ebd6d25 100644
--- a/docs/WritableServiceTemplateRequest.md
+++ b/docs/WritableServiceTemplateRequest.md
@@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Ports** | **[]int32** | |
**Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | |
+**Ports** | **[]int32** | |
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
### NewWritableServiceTemplateRequest
-`func NewWritableServiceTemplateRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol, ) *WritableServiceTemplateRequest`
+`func NewWritableServiceTemplateRequest(name string, protocol PatchedWritableServiceRequestProtocol, ports []int32, ) *WritableServiceTemplateRequest`
NewWritableServiceTemplateRequest instantiates a new WritableServiceTemplateRequest object
This constructor will assign default values to properties that have it defined,
@@ -51,44 +51,44 @@ and a boolean to check if the value has been set.
SetName sets Name field to given value.
-### GetPorts
+### GetProtocol
-`func (o *WritableServiceTemplateRequest) GetPorts() []int32`
+`func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
-GetPorts returns the Ports field if non-nil, zero value otherwise.
+GetProtocol returns the Protocol field if non-nil, zero value otherwise.
-### GetPortsOk
+### GetProtocolOk
-`func (o *WritableServiceTemplateRequest) GetPortsOk() (*[]int32, bool)`
+`func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
-GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise
+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.
-### SetPorts
+### SetProtocol
-`func (o *WritableServiceTemplateRequest) SetPorts(v []int32)`
+`func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
-SetPorts sets Ports field to given value.
+SetProtocol sets Protocol field to given value.
-### GetProtocol
+### GetPorts
-`func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol`
+`func (o *WritableServiceTemplateRequest) GetPorts() []int32`
-GetProtocol returns the Protocol field if non-nil, zero value otherwise.
+GetPorts returns the Ports field if non-nil, zero value otherwise.
-### GetProtocolOk
+### GetPortsOk
-`func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)`
+`func (o *WritableServiceTemplateRequest) GetPortsOk() (*[]int32, bool)`
-GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise
+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.
-### SetProtocol
+### SetPorts
-`func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)`
+`func (o *WritableServiceTemplateRequest) SetPorts(v []int32)`
-SetProtocol sets Protocol field to given value.
+SetPorts sets Ports field to given value.
### GetDescription
diff --git a/docs/WritableSiteGroupRequest.md b/docs/WritableSiteGroupRequest.md
index 1a06ac4d4e..1b9c8ce2ee 100644
--- a/docs/WritableSiteGroupRequest.md
+++ b/docs/WritableSiteGroupRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
+**Parent** | **NullableInt32** | |
**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, ) *WritableSiteGroupRequest`
+`func NewWritableSiteGroupRequest(name string, slug string, parent NullableInt32, ) *WritableSiteGroupRequest`
NewWritableSiteGroupRequest instantiates a new WritableSiteGroupRequest object
This constructor will assign default values to properties that have it defined,
@@ -89,11 +89,6 @@ 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 f6deeeeaa0..d5fe57fa63 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 [**LocationStatusValue**](LocationStatusValue.md) | | [optional]
-**Region** | Pointer to **NullableInt32** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
**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() LocationStatusValue`
+`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)`
+`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, 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 LocationStatusValue)`
+`func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)`
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() int32`
+`func (o *WritableSiteRequest) GetRegion() RegionRequest`
GetRegion returns the Region field if non-nil, zero value otherwise.
### GetRegionOk
-`func (o *WritableSiteRequest) GetRegionOk() (*int32, bool)`
+`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, 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 int32)`
+`func (o *WritableSiteRequest) SetRegion(v RegionRequest)`
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() int32`
+`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableSiteRequest) GetGroupOk() (*int32, bool)`
+`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, 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 int32)`
+`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)`
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() int32`
+`func (o *WritableSiteRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableSiteRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableSiteRequest) 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 *WritableSiteRequest) SetTenant(v int32)`
+`func (o *WritableSiteRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableTenantRequest.md b/docs/WritableTenantRequest.md
deleted file mode 100644
index bb72d48c47..0000000000
--- a/docs/WritableTenantRequest.md
+++ /dev/null
@@ -1,212 +0,0 @@
-# WritableTenantRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | |
-**Slug** | **string** | |
-**Group** | 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
-
-### NewWritableTenantRequest
-
-`func NewWritableTenantRequest(name string, slug string, ) *WritableTenantRequest`
-
-NewWritableTenantRequest instantiates a new WritableTenantRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableTenantRequestWithDefaults
-
-`func NewWritableTenantRequestWithDefaults() *WritableTenantRequest`
-
-NewWritableTenantRequestWithDefaults instantiates a new WritableTenantRequest object
-This 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 *WritableTenantRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetSlug
-
-`func (o *WritableTenantRequest) GetSlug() string`
-
-GetSlug returns the Slug field if non-nil, zero value otherwise.
-
-### GetSlugOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetSlug(v string)`
-
-SetSlug sets Slug field to given value.
-
-
-### GetGroup
-
-`func (o *WritableTenantRequest) GetGroup() int32`
-
-GetGroup returns the Group field if non-nil, zero value otherwise.
-
-### GetGroupOk
-
-`func (o *WritableTenantRequest) GetGroupOk() (*int32, 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 *WritableTenantRequest) SetGroup(v int32)`
-
-SetGroup sets Group field to given value.
-
-### HasGroup
-
-`func (o *WritableTenantRequest) HasGroup() bool`
-
-HasGroup returns a boolean if a field has been set.
-
-### SetGroupNil
-
-`func (o *WritableTenantRequest) SetGroupNil(b bool)`
-
- SetGroupNil sets the value for Group to be an explicit nil
-
-### UnsetGroup
-`func (o *WritableTenantRequest) UnsetGroup()`
-
-UnsetGroup ensures that no value is present for Group, not even an explicit nil
-### GetDescription
-
-`func (o *WritableTenantRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableTenantRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetComments
-
-`func (o *WritableTenantRequest) GetComments() string`
-
-GetComments returns the Comments field if non-nil, zero value otherwise.
-
-### GetCommentsOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetComments(v string)`
-
-SetComments sets Comments field to given value.
-
-### HasComments
-
-`func (o *WritableTenantRequest) HasComments() bool`
-
-HasComments returns a boolean if a field has been set.
-
-### GetTags
-
-`func (o *WritableTenantRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableTenantRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableTenantRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableTenantRequest) 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 *WritableTenantRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableTenantRequest) 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 b27b1e8725..074647508e 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 **NullableInt32** | | [optional]
+**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional]
**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | |
-**IpsecProfile** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.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() int32`
+`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableTunnelRequest) GetGroupOk() (*int32, bool)`
+`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, 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 int32)`
+`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)`
SetGroup sets Group field to given value.
@@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value.
### GetIpsecProfile
-`func (o *WritableTunnelRequest) GetIpsecProfile() int32`
+`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest`
GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise.
### GetIpsecProfileOk
-`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*int32, bool)`
+`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, 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 int32)`
+`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)`
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() int32`
+`func (o *WritableTunnelRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableTunnelRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableTunnelRequest) 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 *WritableTunnelRequest) SetTenant(v int32)`
+`func (o *WritableTunnelRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md
index a651d37294..99cb6a025d 100644
--- a/docs/WritableTunnelTerminationRequest.md
+++ b/docs/WritableTunnelTerminationRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Tunnel** | **int32** | |
+**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | |
**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional]
**TerminationType** | **string** | |
-**TerminationId** | Pointer to **NullableInt64** | | [optional]
-**OutsideIp** | Pointer to **NullableInt32** | | [optional]
+**TerminationId** | **NullableInt64** | |
+**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.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 int32, terminationType string, ) *WritableTunnelTerminationRequest`
+`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *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() int32`
+`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest`
GetTunnel returns the Tunnel field if non-nil, zero value otherwise.
### GetTunnelOk
-`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*int32, bool)`
+`func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetTunnel(v int32)`
+`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)`
SetTunnel sets Tunnel field to given value.
@@ -115,11 +115,6 @@ 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
@@ -133,20 +128,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 *WritableTunnelTerminationRequest) GetOutsideIp() int32`
+`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest`
GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise.
### GetOutsideIpOk
-`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*int32, bool)`
+`func (o *WritableTunnelTerminationRequest) 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 *WritableTunnelTerminationRequest) SetOutsideIp(v int32)`
+`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)`
SetOutsideIp sets OutsideIp field to given value.
diff --git a/docs/WritableUserRequest.md b/docs/WritableUserRequest.md
deleted file mode 100644
index e488f17ed2..0000000000
--- a/docs/WritableUserRequest.md
+++ /dev/null
@@ -1,290 +0,0 @@
-# WritableUserRequest
-
-## Properties
-
-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** | The groups this user belongs to. A user will get all permissions granted to each of their groups. | [optional]
-
-## Methods
-
-### NewWritableUserRequest
-
-`func NewWritableUserRequest(username string, password string, ) *WritableUserRequest`
-
-NewWritableUserRequest instantiates a new WritableUserRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableUserRequestWithDefaults
-
-`func NewWritableUserRequestWithDefaults() *WritableUserRequest`
-
-NewWritableUserRequestWithDefaults instantiates a new WritableUserRequest object
-This 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 *WritableUserRequest) GetUsername() string`
-
-GetUsername returns the Username field if non-nil, zero value otherwise.
-
-### GetUsernameOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetUsername(v string)`
-
-SetUsername sets Username field to given value.
-
-
-### GetPassword
-
-`func (o *WritableUserRequest) GetPassword() string`
-
-GetPassword returns the Password field if non-nil, zero value otherwise.
-
-### GetPasswordOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetPassword(v string)`
-
-SetPassword sets Password field to given value.
-
-
-### GetFirstName
-
-`func (o *WritableUserRequest) GetFirstName() string`
-
-GetFirstName returns the FirstName field if non-nil, zero value otherwise.
-
-### GetFirstNameOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetFirstName(v string)`
-
-SetFirstName sets FirstName field to given value.
-
-### HasFirstName
-
-`func (o *WritableUserRequest) HasFirstName() bool`
-
-HasFirstName returns a boolean if a field has been set.
-
-### GetLastName
-
-`func (o *WritableUserRequest) GetLastName() string`
-
-GetLastName returns the LastName field if non-nil, zero value otherwise.
-
-### GetLastNameOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetLastName(v string)`
-
-SetLastName sets LastName field to given value.
-
-### HasLastName
-
-`func (o *WritableUserRequest) HasLastName() bool`
-
-HasLastName returns a boolean if a field has been set.
-
-### GetEmail
-
-`func (o *WritableUserRequest) GetEmail() string`
-
-GetEmail returns the Email field if non-nil, zero value otherwise.
-
-### GetEmailOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetEmail(v string)`
-
-SetEmail sets Email field to given value.
-
-### HasEmail
-
-`func (o *WritableUserRequest) HasEmail() bool`
-
-HasEmail returns a boolean if a field has been set.
-
-### GetIsStaff
-
-`func (o *WritableUserRequest) GetIsStaff() bool`
-
-GetIsStaff returns the IsStaff field if non-nil, zero value otherwise.
-
-### GetIsStaffOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetIsStaff(v bool)`
-
-SetIsStaff sets IsStaff field to given value.
-
-### HasIsStaff
-
-`func (o *WritableUserRequest) HasIsStaff() bool`
-
-HasIsStaff returns a boolean if a field has been set.
-
-### GetIsActive
-
-`func (o *WritableUserRequest) GetIsActive() bool`
-
-GetIsActive returns the IsActive field if non-nil, zero value otherwise.
-
-### GetIsActiveOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetIsActive(v bool)`
-
-SetIsActive sets IsActive field to given value.
-
-### HasIsActive
-
-`func (o *WritableUserRequest) HasIsActive() bool`
-
-HasIsActive returns a boolean if a field has been set.
-
-### GetDateJoined
-
-`func (o *WritableUserRequest) GetDateJoined() time.Time`
-
-GetDateJoined returns the DateJoined field if non-nil, zero value otherwise.
-
-### GetDateJoinedOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetDateJoined(v time.Time)`
-
-SetDateJoined sets DateJoined field to given value.
-
-### HasDateJoined
-
-`func (o *WritableUserRequest) HasDateJoined() bool`
-
-HasDateJoined returns a boolean if a field has been set.
-
-### GetLastLogin
-
-`func (o *WritableUserRequest) GetLastLogin() time.Time`
-
-GetLastLogin returns the LastLogin field if non-nil, zero value otherwise.
-
-### GetLastLoginOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetLastLogin(v time.Time)`
-
-SetLastLogin sets LastLogin field to given value.
-
-### HasLastLogin
-
-`func (o *WritableUserRequest) HasLastLogin() bool`
-
-HasLastLogin returns a boolean if a field has been set.
-
-### SetLastLoginNil
-
-`func (o *WritableUserRequest) SetLastLoginNil(b bool)`
-
- SetLastLoginNil sets the value for LastLogin to be an explicit nil
-
-### UnsetLastLogin
-`func (o *WritableUserRequest) UnsetLastLogin()`
-
-UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil
-### GetGroups
-
-`func (o *WritableUserRequest) GetGroups() []int32`
-
-GetGroups returns the Groups field if non-nil, zero value otherwise.
-
-### GetGroupsOk
-
-`func (o *WritableUserRequest) 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 *WritableUserRequest) SetGroups(v []int32)`
-
-SetGroups sets Groups field to given value.
-
-### HasGroups
-
-`func (o *WritableUserRequest) HasGroups() bool`
-
-HasGroups 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/WritableVLANRequest.md b/docs/WritableVLANRequest.md
index 9eed9ed9f7..e9b7620130 100644
--- a/docs/WritableVLANRequest.md
+++ b/docs/WritableVLANRequest.md
@@ -4,13 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Site** | Pointer to **NullableInt32** | The specific site to which this VLAN is assigned (if any) | [optional]
-**Group** | Pointer to **NullableInt32** | VLAN group (optional) | [optional]
+**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional]
+**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional]
**Vid** | **int32** | Numeric VLAN ID (1-4094) |
**Name** | **string** | |
-**Tenant** | Pointer to **NullableInt32** | | [optional]
+**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional]
-**Role** | Pointer to **NullableInt32** | The primary function of this VLAN | [optional]
+**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional]
**Description** | Pointer to **string** | | [optional]
**Comments** | Pointer to **string** | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
@@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set
### GetSite
-`func (o *WritableVLANRequest) GetSite() int32`
+`func (o *WritableVLANRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableVLANRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritableVLANRequest) 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 *WritableVLANRequest) SetSite(v int32)`
+`func (o *WritableVLANRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -72,20 +72,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() int32`
+`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableVLANRequest) GetGroupOk() (*int32, bool)`
+`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, 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 int32)`
+`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)`
SetGroup sets Group field to given value.
@@ -147,20 +147,20 @@ SetName sets Name field to given value.
### GetTenant
-`func (o *WritableVLANRequest) GetTenant() int32`
+`func (o *WritableVLANRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableVLANRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableVLANRequest) 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 *WritableVLANRequest) SetTenant(v int32)`
+`func (o *WritableVLANRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -207,20 +207,20 @@ HasStatus returns a boolean if a field has been set.
### GetRole
-`func (o *WritableVLANRequest) GetRole() int32`
+`func (o *WritableVLANRequest) GetRole() RoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableVLANRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritableVLANRequest) 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 *WritableVLANRequest) SetRole(v int32)`
+`func (o *WritableVLANRequest) SetRole(v RoleRequest)`
SetRole sets Role field to given value.
diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md
index c8fc4dfb98..9177b40ec8 100644
--- a/docs/WritableVMInterfaceRequest.md
+++ b/docs/WritableVMInterfaceRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VirtualMachine** | **int32** | |
+**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | |
**Name** | **string** | |
**Enabled** | Pointer to **bool** | | [optional]
**Parent** | Pointer to **NullableInt32** | | [optional]
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
**MacAddress** | Pointer to **NullableString** | | [optional]
**Description** | Pointer to **string** | | [optional]
**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional]
-**UntaggedVlan** | Pointer to **NullableInt32** | | [optional]
+**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional]
**TaggedVlans** | Pointer to **[]int32** | | [optional]
-**Vrf** | Pointer to **NullableInt32** | | [optional]
+**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional]
**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
### NewWritableVMInterfaceRequest
-`func NewWritableVMInterfaceRequest(virtualMachine int32, name string, ) *WritableVMInterfaceRequest`
+`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest`
NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object
This constructor will assign default values to properties that have it defined,
@@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set
### GetVirtualMachine
-`func (o *WritableVMInterfaceRequest) GetVirtualMachine() int32`
+`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest`
GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
### GetVirtualMachineOk
-`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*int32, bool)`
+`func (o *WritableVMInterfaceRequest) 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 *WritableVMInterfaceRequest) SetVirtualMachine(v int32)`
+`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)`
SetVirtualMachine sets VirtualMachine field to given value.
@@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set.
### GetUntaggedVlan
-`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() int32`
+`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest`
GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise.
### GetUntaggedVlanOk
-`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*int32, bool)`
+`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, 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 int32)`
+`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)`
SetUntaggedVlan sets UntaggedVlan field to given value.
@@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set.
### GetVrf
-`func (o *WritableVMInterfaceRequest) GetVrf() int32`
+`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest`
GetVrf returns the Vrf field if non-nil, zero value otherwise.
### GetVrfOk
-`func (o *WritableVMInterfaceRequest) GetVrfOk() (*int32, bool)`
+`func (o *WritableVMInterfaceRequest) 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 *WritableVMInterfaceRequest) SetVrf(v int32)`
+`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)`
SetVrf sets Vrf field to given value.
diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md
index b4a959a8eb..30df18d9aa 100644
--- a/docs/WritableVirtualDeviceContextRequest.md
+++ b/docs/WritableVirtualDeviceContextRequest.md
@@ -5,11 +5,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Device** | Pointer to **NullableInt32** | | [optional]
-**Identifier** | Pointer to **NullableInt32** | Numeric identifier unique to the parent device | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [optional]
+**Device** | [**DeviceRequest**](DeviceRequest.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]
**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, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest`
+`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest`
NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object
This constructor will assign default values to properties that have it defined,
@@ -57,39 +57,24 @@ SetName sets Name field to given value.
### GetDevice
-`func (o *WritableVirtualDeviceContextRequest) GetDevice() int32`
+`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableVirtualDeviceContextRequest) 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 *WritableVirtualDeviceContextRequest) SetDevice(v int32)`
+`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
-### HasDevice
-`func (o *WritableVirtualDeviceContextRequest) HasDevice() bool`
-
-HasDevice returns a boolean if a field has been set.
-
-### SetDeviceNil
-
-`func (o *WritableVirtualDeviceContextRequest) SetDeviceNil(b bool)`
-
- SetDeviceNil sets the value for Device to be an explicit nil
-
-### UnsetDevice
-`func (o *WritableVirtualDeviceContextRequest) UnsetDevice()`
-
-UnsetDevice ensures that no value is present for Device, not even an explicit nil
### GetIdentifier
`func (o *WritableVirtualDeviceContextRequest) GetIdentifier() int32`
@@ -127,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() int32`
+`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableVirtualDeviceContextRequest) 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 *WritableVirtualDeviceContextRequest) SetTenant(v int32)`
+`func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -162,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() int32`
+`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`func (o *WritableVirtualDeviceContextRequest) 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 *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32)`
+`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -197,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() int32`
+`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`func (o *WritableVirtualDeviceContextRequest) 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 *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32)`
+`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
diff --git a/docs/WritableVirtualDiskRequest.md b/docs/WritableVirtualDiskRequest.md
deleted file mode 100644
index cee5d1729d..0000000000
--- a/docs/WritableVirtualDiskRequest.md
+++ /dev/null
@@ -1,171 +0,0 @@
-# WritableVirtualDiskRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**VirtualMachine** | **int32** | |
-**Name** | **string** | |
-**Description** | Pointer to **string** | | [optional]
-**Size** | **int32** | |
-**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional]
-**CustomFields** | Pointer to **map[string]interface{}** | | [optional]
-
-## Methods
-
-### NewWritableVirtualDiskRequest
-
-`func NewWritableVirtualDiskRequest(virtualMachine int32, name string, size int32, ) *WritableVirtualDiskRequest`
-
-NewWritableVirtualDiskRequest instantiates a new WritableVirtualDiskRequest object
-This constructor will assign default values to properties that have it defined,
-and makes sure properties required by API are set, but the set of arguments
-will change when the set of required properties is changed
-
-### NewWritableVirtualDiskRequestWithDefaults
-
-`func NewWritableVirtualDiskRequestWithDefaults() *WritableVirtualDiskRequest`
-
-NewWritableVirtualDiskRequestWithDefaults instantiates a new WritableVirtualDiskRequest object
-This constructor will only assign default values to properties that have it defined,
-but it doesn't guarantee that properties required by API are set
-
-### GetVirtualMachine
-
-`func (o *WritableVirtualDiskRequest) GetVirtualMachine() int32`
-
-GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise.
-
-### GetVirtualMachineOk
-
-`func (o *WritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, 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 *WritableVirtualDiskRequest) SetVirtualMachine(v int32)`
-
-SetVirtualMachine sets VirtualMachine field to given value.
-
-
-### GetName
-
-`func (o *WritableVirtualDiskRequest) GetName() string`
-
-GetName returns the Name field if non-nil, zero value otherwise.
-
-### GetNameOk
-
-`func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetName(v string)`
-
-SetName sets Name field to given value.
-
-
-### GetDescription
-
-`func (o *WritableVirtualDiskRequest) GetDescription() string`
-
-GetDescription returns the Description field if non-nil, zero value otherwise.
-
-### GetDescriptionOk
-
-`func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetDescription(v string)`
-
-SetDescription sets Description field to given value.
-
-### HasDescription
-
-`func (o *WritableVirtualDiskRequest) HasDescription() bool`
-
-HasDescription returns a boolean if a field has been set.
-
-### GetSize
-
-`func (o *WritableVirtualDiskRequest) GetSize() int32`
-
-GetSize returns the Size field if non-nil, zero value otherwise.
-
-### GetSizeOk
-
-`func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetSize(v int32)`
-
-SetSize sets Size field to given value.
-
-
-### GetTags
-
-`func (o *WritableVirtualDiskRequest) GetTags() []NestedTagRequest`
-
-GetTags returns the Tags field if non-nil, zero value otherwise.
-
-### GetTagsOk
-
-`func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetTags(v []NestedTagRequest)`
-
-SetTags sets Tags field to given value.
-
-### HasTags
-
-`func (o *WritableVirtualDiskRequest) HasTags() bool`
-
-HasTags returns a boolean if a field has been set.
-
-### GetCustomFields
-
-`func (o *WritableVirtualDiskRequest) GetCustomFields() map[string]interface{}`
-
-GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
-
-### GetCustomFieldsOk
-
-`func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetCustomFields(v map[string]interface{})`
-
-SetCustomFields sets CustomFields field to given value.
-
-### HasCustomFields
-
-`func (o *WritableVirtualDiskRequest) 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/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md
index 3278dcd761..c0ebf4e160 100644
--- a/docs/WritableVirtualMachineWithConfigContextRequest.md
+++ b/docs/WritableVirtualMachineWithConfigContextRequest.md
@@ -5,21 +5,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional]
-**Site** | Pointer to **NullableInt32** | | [optional]
-**Cluster** | Pointer to **NullableInt32** | | [optional]
-**Device** | Pointer to **NullableInt32** | | [optional]
-**Role** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [optional]
-**Platform** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp4** | Pointer to **NullableInt32** | | [optional]
-**PrimaryIp6** | Pointer to **NullableInt32** | | [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]
**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 **NullableInt32** | | [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]
@@ -65,20 +65,20 @@ SetName sets Name field to given value.
### GetStatus
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)`
SetStatus sets Status field to given value.
@@ -90,20 +90,20 @@ HasStatus returns a boolean if a field has been set.
### GetSite
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest`
GetSite returns the Site field if non-nil, zero value otherwise.
### GetSiteOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetSite(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)`
SetSite sets Site field to given value.
@@ -125,20 +125,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest`
GetCluster returns the Cluster field if non-nil, zero value otherwise.
### GetClusterOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetCluster(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)`
SetCluster sets Cluster field to given value.
@@ -160,20 +160,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest`
GetDevice returns the Device field if non-nil, zero value otherwise.
### GetDeviceOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetDevice(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)`
SetDevice sets Device field to given value.
@@ -195,20 +195,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
### GetRole
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest`
GetRole returns the Role field if non-nil, zero value otherwise.
### GetRoleOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetRole(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)`
SetRole sets Role field to given value.
@@ -230,20 +230,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetTenant(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
@@ -265,20 +265,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest`
GetPlatform returns the Platform field if non-nil, zero value otherwise.
### GetPlatformOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)`
SetPlatform sets Platform field to given value.
@@ -300,20 +300,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest`
GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise.
### GetPrimaryIp4Ok
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)`
SetPrimaryIp4 sets PrimaryIp4 field to given value.
@@ -335,20 +335,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() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest`
GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise.
### GetPrimaryIp6Ok
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)`
SetPrimaryIp6 sets PrimaryIp6 field to given value.
@@ -525,20 +525,20 @@ HasComments returns a boolean if a field has been set.
### GetConfigTemplate
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() int32`
+`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest`
GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise.
### GetConfigTemplateOk
-`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) 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 *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v int32)`
+`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)`
SetConfigTemplate sets ConfigTemplate field to given value.
diff --git a/docs/WritableWirelessLANGroupRequest.md b/docs/WritableWirelessLANGroupRequest.md
index a64ccf320a..2f0a65af95 100644
--- a/docs/WritableWirelessLANGroupRequest.md
+++ b/docs/WritableWirelessLANGroupRequest.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**Slug** | **string** | |
-**Parent** | Pointer to **NullableInt32** | | [optional]
+**Parent** | **NullableInt32** | |
**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, ) *WritableWirelessLANGroupRequest`
+`func NewWritableWirelessLANGroupRequest(name string, slug string, parent NullableInt32, ) *WritableWirelessLANGroupRequest`
NewWritableWirelessLANGroupRequest instantiates a new WritableWirelessLANGroupRequest object
This constructor will assign default values to properties that have it defined,
@@ -89,11 +89,6 @@ 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.md b/docs/WritableWirelessLANRequest.md
index 9096d03b32..2a85bd2193 100644
--- a/docs/WritableWirelessLANRequest.md
+++ b/docs/WritableWirelessLANRequest.md
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Ssid** | **string** | |
**Description** | Pointer to **string** | | [optional]
-**Group** | Pointer to **NullableInt32** | | [optional]
+**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional]
**Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional]
-**Vlan** | Pointer to **NullableInt32** | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
@@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set.
### GetGroup
-`func (o *WritableWirelessLANRequest) GetGroup() int32`
+`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest`
GetGroup returns the Group field if non-nil, zero value otherwise.
### GetGroupOk
-`func (o *WritableWirelessLANRequest) GetGroupOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)`
SetGroup sets Group field to given value.
@@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set.
### GetVlan
-`func (o *WritableWirelessLANRequest) GetVlan() int32`
+`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest`
GetVlan returns the Vlan field if non-nil, zero value otherwise.
### GetVlanOk
-`func (o *WritableWirelessLANRequest) GetVlanOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)`
SetVlan sets Vlan field to given value.
@@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set.
UnsetVlan ensures that no value is present for Vlan, not even an explicit nil
### GetTenant
-`func (o *WritableWirelessLANRequest) GetTenant() int32`
+`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableWirelessLANRequest) GetTenantOk() (*int32, bool)`
+`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 int32)`
+`func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md
index 96ec8345b1..43c0319461 100644
--- a/docs/WritableWirelessLinkRequest.md
+++ b/docs/WritableWirelessLinkRequest.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**InterfaceA** | **int32** | |
-**InterfaceB** | **int32** | |
+**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | |
+**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | |
**Ssid** | Pointer to **string** | | [optional]
-**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional]
-**Tenant** | Pointer to **NullableInt32** | | [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]
**AuthPsk** | Pointer to **string** | | [optional]
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
### NewWritableWirelessLinkRequest
-`func NewWritableWirelessLinkRequest(interfaceA int32, interfaceB int32, ) *WritableWirelessLinkRequest`
+`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest`
NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest 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
### GetInterfaceA
-`func (o *WritableWirelessLinkRequest) GetInterfaceA() int32`
+`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest`
GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise.
### GetInterfaceAOk
-`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*int32, bool)`
+`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, 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 int32)`
+`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)`
SetInterfaceA sets InterfaceA field to given value.
### GetInterfaceB
-`func (o *WritableWirelessLinkRequest) GetInterfaceB() int32`
+`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest`
GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise.
### GetInterfaceBOk
-`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*int32, bool)`
+`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, 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 int32)`
+`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)`
SetInterfaceB sets InterfaceB field to given value.
@@ -103,20 +103,20 @@ HasSsid returns a boolean if a field has been set.
### GetStatus
-`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue`
+`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
-`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)`
+`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, 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 CableStatusValue)`
+`func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)`
SetStatus sets Status field to given value.
@@ -128,20 +128,20 @@ HasStatus returns a boolean if a field has been set.
### GetTenant
-`func (o *WritableWirelessLinkRequest) GetTenant() int32`
+`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest`
GetTenant returns the Tenant field if non-nil, zero value otherwise.
### GetTenantOk
-`func (o *WritableWirelessLinkRequest) GetTenantOk() (*int32, bool)`
+`func (o *WritableWirelessLinkRequest) 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 *WritableWirelessLinkRequest) SetTenant(v int32)`
+`func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest)`
SetTenant sets Tenant field to given value.
diff --git a/go.mod b/go.mod
index 77076688cb..84ac401e8e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/netbox-community/go-netbox/v3
+module github.com/netbox-community/go-netbox/v4
go 1.18
diff --git a/model_aggregate.go b/model_aggregate.go
index 8ece92a9f6..be5226a6e5 100644
--- a/model_aggregate.go
+++ b/model_aggregate.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,8 +26,8 @@ type Aggregate struct {
Display string `json:"display"`
Family AggregateFamily `json:"family"`
Prefix string `json:"prefix"`
- Rir NestedRIR `json:"rir"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ 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"`
@@ -44,7 +44,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 NestedRIR, created NullableTime, lastUpdated NullableTime) *Aggregate {
+func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate {
this := Aggregate{}
this.Id = id
this.Url = url
@@ -186,9 +186,9 @@ func (o *Aggregate) SetPrefix(v string) {
}
// GetRir returns the Rir field value
-func (o *Aggregate) GetRir() NestedRIR {
+func (o *Aggregate) GetRir() RIR {
if o == nil {
- var ret NestedRIR
+ var ret RIR
return ret
}
@@ -197,7 +197,7 @@ func (o *Aggregate) GetRir() NestedRIR {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *Aggregate) GetRirOk() (*NestedRIR, bool) {
+func (o *Aggregate) GetRirOk() (*RIR, bool) {
if o == nil {
return nil, false
}
@@ -205,14 +205,14 @@ func (o *Aggregate) GetRirOk() (*NestedRIR, bool) {
}
// SetRir sets field value
-func (o *Aggregate) SetRir(v NestedRIR) {
+func (o *Aggregate) SetRir(v RIR) {
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() NestedTenant {
+func (o *Aggregate) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -221,7 +221,7 @@ func (o *Aggregate) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *Aggregate) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -237,8 +237,8 @@ func (o *Aggregate) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Aggregate) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *Aggregate) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_aggregate_family.go b/model_aggregate_family.go
index 6d2aa72524..c022e4c41a 100644
--- a/model_aggregate_family.go
+++ b/model_aggregate_family.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go
index e8bc91c102..6702e6180b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go
index 664467fdc0..63ca9026fe 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_aggregate_request.go b/model_aggregate_request.go
index bd8b6ea7fe..886f759d68 100644
--- a/model_aggregate_request.go
+++ b/model_aggregate_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedRIRRequest `json:"rir"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- DateAdded NullableString `json:"date_added,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Prefix string `json:"prefix"`
+ Rir 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"`
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 NestedRIRRequest) *AggregateRequest {
+func NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest {
this := AggregateRequest{}
this.Prefix = prefix
this.Rir = rir
@@ -77,9 +77,9 @@ func (o *AggregateRequest) SetPrefix(v string) {
}
// GetRir returns the Rir field value
-func (o *AggregateRequest) GetRir() NestedRIRRequest {
+func (o *AggregateRequest) GetRir() RIRRequest {
if o == nil {
- var ret NestedRIRRequest
+ var ret RIRRequest
return ret
}
@@ -88,7 +88,7 @@ func (o *AggregateRequest) GetRir() NestedRIRRequest {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *AggregateRequest) GetRirOk() (*NestedRIRRequest, bool) {
+func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil {
return nil, false
}
@@ -96,14 +96,14 @@ func (o *AggregateRequest) GetRirOk() (*NestedRIRRequest, bool) {
}
// SetRir sets field value
-func (o *AggregateRequest) SetRir(v NestedRIRRequest) {
+func (o *AggregateRequest) SetRir(v RIRRequest) {
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() NestedTenantRequest {
+func (o *AggregateRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -112,7 +112,7 @@ func (o *AggregateRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -128,8 +128,8 @@ func (o *AggregateRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *AggregateRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *AggregateRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_asn.go b/model_asn.go
index 682d0902c2..971d63862a 100644
--- a/model_asn.go
+++ b/model_asn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,16 +26,16 @@ type ASN struct {
Display string `json:"display"`
// 16- or 32-bit autonomous system number
Asn int64 `json:"asn"`
- Rir NullableNestedRIR `json:"rir,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ 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 int32 `json:"site_count"`
- ProviderCount int32 `json:"provider_count"`
+ SiteCount int64 `json:"site_count"`
+ ProviderCount int64 `json:"provider_count"`
AdditionalProperties map[string]interface{}
}
@@ -45,7 +45,7 @@ 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 int32, providerCount int32) *ASN {
+func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN {
this := ASN{}
this.Id = id
this.Url = url
@@ -163,9 +163,9 @@ func (o *ASN) 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 *ASN) GetRir() NestedRIR {
+func (o *ASN) GetRir() RIR {
if o == nil || IsNil(o.Rir.Get()) {
- var ret NestedRIR
+ var ret RIR
return ret
}
return *o.Rir.Get()
@@ -174,7 +174,7 @@ func (o *ASN) GetRir() NestedRIR {
// 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() (*NestedRIR, bool) {
+func (o *ASN) GetRirOk() (*RIR, bool) {
if o == nil {
return nil, false
}
@@ -190,8 +190,8 @@ func (o *ASN) HasRir() bool {
return false
}
-// SetRir gets a reference to the given NullableNestedRIR and assigns it to the Rir field.
-func (o *ASN) SetRir(v NestedRIR) {
+// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field.
+func (o *ASN) SetRir(v RIR) {
o.Rir.Set(&v)
}
@@ -206,9 +206,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() NestedTenant {
+func (o *ASN) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -217,7 +217,7 @@ func (o *ASN) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *ASN) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -233,8 +233,8 @@ func (o *ASN) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *ASN) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *ASN) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -429,9 +429,9 @@ func (o *ASN) SetLastUpdated(v time.Time) {
}
// GetSiteCount returns the SiteCount field value
-func (o *ASN) GetSiteCount() int32 {
+func (o *ASN) GetSiteCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -440,7 +440,7 @@ func (o *ASN) GetSiteCount() int32 {
// GetSiteCountOk returns a tuple with the SiteCount field value
// and a boolean to check if the value has been set.
-func (o *ASN) GetSiteCountOk() (*int32, bool) {
+func (o *ASN) GetSiteCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -448,14 +448,14 @@ func (o *ASN) GetSiteCountOk() (*int32, bool) {
}
// SetSiteCount sets field value
-func (o *ASN) SetSiteCount(v int32) {
+func (o *ASN) SetSiteCount(v int64) {
o.SiteCount = v
}
// GetProviderCount returns the ProviderCount field value
-func (o *ASN) GetProviderCount() int32 {
+func (o *ASN) GetProviderCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -464,7 +464,7 @@ func (o *ASN) GetProviderCount() int32 {
// GetProviderCountOk returns a tuple with the ProviderCount field value
// and a boolean to check if the value has been set.
-func (o *ASN) GetProviderCountOk() (*int32, bool) {
+func (o *ASN) GetProviderCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -472,7 +472,7 @@ func (o *ASN) GetProviderCountOk() (*int32, bool) {
}
// SetProviderCount sets field value
-func (o *ASN) SetProviderCount(v int32) {
+func (o *ASN) SetProviderCount(v int64) {
o.ProviderCount = v
}
diff --git a/model_asn_range.go b/model_asn_range.go
index aa7a0a8464..037e760ce1 100644
--- a/model_asn_range.go
+++ b/model_asn_range.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,10 +26,10 @@ type ASNRange struct {
Display string `json:"display"`
Name string `json:"name"`
Slug string `json:"slug"`
- Rir NestedRIR `json:"rir"`
+ Rir RIR `json:"rir"`
Start int64 `json:"start"`
End int64 `json:"end"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
Description *string `json:"description,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -45,7 +45,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 NestedRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange {
+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 {
this := ASNRange{}
this.Id = id
this.Url = url
@@ -190,9 +190,9 @@ func (o *ASNRange) SetSlug(v string) {
}
// GetRir returns the Rir field value
-func (o *ASNRange) GetRir() NestedRIR {
+func (o *ASNRange) GetRir() RIR {
if o == nil {
- var ret NestedRIR
+ var ret RIR
return ret
}
@@ -201,7 +201,7 @@ func (o *ASNRange) GetRir() NestedRIR {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *ASNRange) GetRirOk() (*NestedRIR, bool) {
+func (o *ASNRange) GetRirOk() (*RIR, bool) {
if o == nil {
return nil, false
}
@@ -209,7 +209,7 @@ func (o *ASNRange) GetRirOk() (*NestedRIR, bool) {
}
// SetRir sets field value
-func (o *ASNRange) SetRir(v NestedRIR) {
+func (o *ASNRange) SetRir(v RIR) {
o.Rir = v
}
@@ -262,9 +262,9 @@ func (o *ASNRange) 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 *ASNRange) GetTenant() NestedTenant {
+func (o *ASNRange) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -273,7 +273,7 @@ func (o *ASNRange) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *ASNRange) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -289,8 +289,8 @@ func (o *ASNRange) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *ASNRange) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *ASNRange) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_asn_range_request.go b/model_asn_range_request.go
index 749e7485a9..83a9d61da5 100644
--- a/model_asn_range_request.go
+++ b/model_asn_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedRIRRequest `json:"rir"`
- Start int64 `json:"start"`
- End int64 `json:"end"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Rir 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"`
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 NestedRIRRequest, start int64, end int64) *ASNRangeRequest {
+func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest {
this := ASNRangeRequest{}
this.Name = name
this.Slug = slug
@@ -105,9 +105,9 @@ func (o *ASNRangeRequest) SetSlug(v string) {
}
// GetRir returns the Rir field value
-func (o *ASNRangeRequest) GetRir() NestedRIRRequest {
+func (o *ASNRangeRequest) GetRir() RIRRequest {
if o == nil {
- var ret NestedRIRRequest
+ var ret RIRRequest
return ret
}
@@ -116,7 +116,7 @@ func (o *ASNRangeRequest) GetRir() NestedRIRRequest {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *ASNRangeRequest) GetRirOk() (*NestedRIRRequest, bool) {
+func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil {
return nil, false
}
@@ -124,7 +124,7 @@ func (o *ASNRangeRequest) GetRirOk() (*NestedRIRRequest, bool) {
}
// SetRir sets field value
-func (o *ASNRangeRequest) SetRir(v NestedRIRRequest) {
+func (o *ASNRangeRequest) SetRir(v RIRRequest) {
o.Rir = v
}
@@ -177,9 +177,9 @@ func (o *ASNRangeRequest) 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 *ASNRangeRequest) GetTenant() NestedTenantRequest {
+func (o *ASNRangeRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -188,7 +188,7 @@ func (o *ASNRangeRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -204,8 +204,8 @@ func (o *ASNRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *ASNRangeRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *ASNRangeRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_asn_request.go b/model_asn_request.go
index 24f2f5fe79..2d8e8162f6 100644
--- a/model_asn_request.go
+++ b/model_asn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableNestedRIRRequest `json:"rir,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Asn int64 `json:"asn"`
+ Rir 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"`
AdditionalProperties map[string]interface{}
}
@@ -76,9 +76,9 @@ func (o *ASNRequest) 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 *ASNRequest) GetRir() NestedRIRRequest {
+func (o *ASNRequest) GetRir() RIRRequest {
if o == nil || IsNil(o.Rir.Get()) {
- var ret NestedRIRRequest
+ var ret RIRRequest
return ret
}
return *o.Rir.Get()
@@ -87,7 +87,7 @@ func (o *ASNRequest) GetRir() NestedRIRRequest {
// 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() (*NestedRIRRequest, bool) {
+func (o *ASNRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil {
return nil, false
}
@@ -103,8 +103,8 @@ func (o *ASNRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given NullableNestedRIRRequest and assigns it to the Rir field.
-func (o *ASNRequest) SetRir(v NestedRIRRequest) {
+// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field.
+func (o *ASNRequest) SetRir(v RIRRequest) {
o.Rir.Set(&v)
}
@@ -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() NestedTenantRequest {
+func (o *ASNRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -146,8 +146,8 @@ func (o *ASNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *ASNRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *ASNRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_authentication.go b/model_authentication.go
index 3110efa4c5..9642d196ed 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go
index 47885ce17c..1c9752516c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_authentication_type.go b/model_authentication_type.go
index fe967494fb..87147a4874 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go
index c9351e9864..7c661a0a62 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_available_asn.go b/model_available_asn.go
index cafd60f476..e398bbbb2f 100644
--- a/model_available_asn.go
+++ b/model_available_asn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_available_ip.go b/model_available_ip.go
index cb696f5448..b06e6140ca 100644
--- a/model_available_ip.go
+++ b/model_available_ip.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableInt32 `json:"family"`
- Address string `json:"address"`
- Vrf NullableNestedVRF `json:"vrf"`
- Description *string `json:"description,omitempty"`
+ Family int32 `json:"family"`
+ Address string `json:"address"`
+ Vrf NullableVRF `json:"vrf"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -33,7 +33,7 @@ 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 NullableInt32, address string, vrf NullableNestedVRF) *AvailableIP {
+func NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP {
this := AvailableIP{}
this.Family = family
this.Address = address
@@ -50,29 +50,27 @@ func NewAvailableIPWithDefaults() *AvailableIP {
}
// GetFamily returns the Family field value
-// If the value is explicit nil, the zero value for int32 will be returned
func (o *AvailableIP) GetFamily() int32 {
- if o == nil || o.Family.Get() == nil {
+ if o == nil {
var ret int32
return ret
}
- return *o.Family.Get()
+ return o.Family
}
// GetFamilyOk returns a tuple with the Family 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 *AvailableIP) GetFamilyOk() (*int32, bool) {
if o == nil {
return nil, false
}
- return o.Family.Get(), o.Family.IsSet()
+ return &o.Family, true
}
// SetFamily sets field value
func (o *AvailableIP) SetFamily(v int32) {
- o.Family.Set(&v)
+ o.Family = v
}
// GetAddress returns the Address field value
@@ -100,10 +98,10 @@ func (o *AvailableIP) SetAddress(v string) {
}
// GetVrf returns the Vrf field value
-// If the value is explicit nil, the zero value for NestedVRF will be returned
-func (o *AvailableIP) GetVrf() NestedVRF {
+// 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 NestedVRF
+ var ret VRF
return ret
}
@@ -113,7 +111,7 @@ func (o *AvailableIP) GetVrf() NestedVRF {
// GetVrfOk returns a tuple with the Vrf 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 *AvailableIP) GetVrfOk() (*NestedVRF, bool) {
+func (o *AvailableIP) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -121,7 +119,7 @@ func (o *AvailableIP) GetVrfOk() (*NestedVRF, bool) {
}
// SetVrf sets field value
-func (o *AvailableIP) SetVrf(v NestedVRF) {
+func (o *AvailableIP) SetVrf(v VRF) {
o.Vrf.Set(&v)
}
@@ -167,7 +165,7 @@ func (o AvailableIP) MarshalJSON() ([]byte, error) {
func (o AvailableIP) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["family"] = o.Family.Get()
+ toSerialize["family"] = o.Family
toSerialize["address"] = o.Address
toSerialize["vrf"] = o.Vrf.Get()
if !IsNil(o.Description) {
diff --git a/model_available_prefix.go b/model_available_prefix.go
index 4d9a4a1632..6efa0386c8 100644
--- a/model_available_prefix.go
+++ b/model_available_prefix.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableInt32 `json:"family"`
- Prefix string `json:"prefix"`
- Vrf NullableNestedVRF `json:"vrf"`
+ Family int32 `json:"family"`
+ Prefix string `json:"prefix"`
+ Vrf NullableVRF `json:"vrf"`
AdditionalProperties map[string]interface{}
}
@@ -32,7 +32,7 @@ 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 NullableInt32, prefix string, vrf NullableNestedVRF) *AvailablePrefix {
+func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix {
this := AvailablePrefix{}
this.Family = family
this.Prefix = prefix
@@ -49,29 +49,27 @@ func NewAvailablePrefixWithDefaults() *AvailablePrefix {
}
// GetFamily returns the Family field value
-// If the value is explicit nil, the zero value for int32 will be returned
func (o *AvailablePrefix) GetFamily() int32 {
- if o == nil || o.Family.Get() == nil {
+ if o == nil {
var ret int32
return ret
}
- return *o.Family.Get()
+ return o.Family
}
// GetFamilyOk returns a tuple with the Family 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 *AvailablePrefix) GetFamilyOk() (*int32, bool) {
if o == nil {
return nil, false
}
- return o.Family.Get(), o.Family.IsSet()
+ return &o.Family, true
}
// SetFamily sets field value
func (o *AvailablePrefix) SetFamily(v int32) {
- o.Family.Set(&v)
+ o.Family = v
}
// GetPrefix returns the Prefix field value
@@ -99,10 +97,10 @@ func (o *AvailablePrefix) SetPrefix(v string) {
}
// GetVrf returns the Vrf field value
-// If the value is explicit nil, the zero value for NestedVRF will be returned
-func (o *AvailablePrefix) GetVrf() NestedVRF {
+// 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 NestedVRF
+ var ret VRF
return ret
}
@@ -112,7 +110,7 @@ func (o *AvailablePrefix) GetVrf() NestedVRF {
// GetVrfOk returns a tuple with the Vrf 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 *AvailablePrefix) GetVrfOk() (*NestedVRF, bool) {
+func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -120,7 +118,7 @@ func (o *AvailablePrefix) GetVrfOk() (*NestedVRF, bool) {
}
// SetVrf sets field value
-func (o *AvailablePrefix) SetVrf(v NestedVRF) {
+func (o *AvailablePrefix) SetVrf(v VRF) {
o.Vrf.Set(&v)
}
@@ -134,7 +132,7 @@ func (o AvailablePrefix) MarshalJSON() ([]byte, error) {
func (o AvailablePrefix) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["family"] = o.Family.Get()
+ toSerialize["family"] = o.Family
toSerialize["prefix"] = o.Prefix
toSerialize["vrf"] = o.Vrf.Get()
diff --git a/model_available_vlan.go b/model_available_vlan.go
index 49a3e6f06a..8228b8d059 100644
--- a/model_available_vlan.go
+++ b/model_available_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableNestedVLANGroup `json:"group"`
+ Vid int32 `json:"vid"`
+ Group NullableVLANGroup `json:"group"`
AdditionalProperties map[string]interface{}
}
@@ -31,7 +31,7 @@ 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 NullableNestedVLANGroup) *AvailableVLAN {
+func NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN {
this := AvailableVLAN{}
this.Vid = vid
this.Group = group
@@ -71,10 +71,10 @@ func (o *AvailableVLAN) SetVid(v int32) {
}
// GetGroup returns the Group field value
-// If the value is explicit nil, the zero value for NestedVLANGroup will be returned
-func (o *AvailableVLAN) GetGroup() NestedVLANGroup {
+// 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 NestedVLANGroup
+ var ret VLANGroup
return ret
}
@@ -84,7 +84,7 @@ func (o *AvailableVLAN) GetGroup() NestedVLANGroup {
// GetGroupOk returns a tuple with the Group 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 *AvailableVLAN) GetGroupOk() (*NestedVLANGroup, bool) {
+func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) {
if o == nil {
return nil, false
}
@@ -92,7 +92,7 @@ func (o *AvailableVLAN) GetGroupOk() (*NestedVLANGroup, bool) {
}
// SetGroup sets field value
-func (o *AvailableVLAN) SetGroup(v NestedVLANGroup) {
+func (o *AvailableVLAN) SetGroup(v VLANGroup) {
o.Group.Set(&v)
}
diff --git a/model_bookmark.go b/model_bookmark.go
index 95c5228a03..6552b0da19 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,7 +27,7 @@ type Bookmark struct {
ObjectType string `json:"object_type"`
ObjectId int64 `json:"object_id"`
Object interface{} `json:"object"`
- User NestedUser `json:"user"`
+ User User `json:"user"`
Created time.Time `json:"created"`
AdditionalProperties map[string]interface{}
}
@@ -38,7 +38,7 @@ 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 NestedUser, created time.Time) *Bookmark {
+func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time) *Bookmark {
this := Bookmark{}
this.Id = id
this.Url = url
@@ -206,9 +206,9 @@ func (o *Bookmark) SetObject(v interface{}) {
}
// GetUser returns the User field value
-func (o *Bookmark) GetUser() NestedUser {
+func (o *Bookmark) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -217,7 +217,7 @@ func (o *Bookmark) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *Bookmark) GetUserOk() (*NestedUser, bool) {
+func (o *Bookmark) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -225,7 +225,7 @@ func (o *Bookmark) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *Bookmark) SetUser(v NestedUser) {
+func (o *Bookmark) SetUser(v User) {
o.User = v
}
diff --git a/model_bookmark_request.go b/model_bookmark_request.go
index 5ac4c37880..22932dcd2c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedUserRequest `json:"user"`
+ ObjectType string `json:"object_type"`
+ ObjectId int64 `json:"object_id"`
+ User UserRequest `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 NestedUserRequest) *BookmarkRequest {
+func NewBookmarkRequest(objectType string, objectId int64, user UserRequest) *BookmarkRequest {
this := BookmarkRequest{}
this.ObjectType = objectType
this.ObjectId = objectId
@@ -97,9 +97,9 @@ func (o *BookmarkRequest) SetObjectId(v int64) {
}
// GetUser returns the User field value
-func (o *BookmarkRequest) GetUser() NestedUserRequest {
+func (o *BookmarkRequest) GetUser() UserRequest {
if o == nil {
- var ret NestedUserRequest
+ var ret UserRequest
return ret
}
@@ -108,7 +108,7 @@ func (o *BookmarkRequest) GetUser() NestedUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *BookmarkRequest) GetUserOk() (*NestedUserRequest, bool) {
+func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) {
if o == nil {
return nil, false
}
@@ -116,7 +116,7 @@ func (o *BookmarkRequest) GetUserOk() (*NestedUserRequest, bool) {
}
// SetUser sets field value
-func (o *BookmarkRequest) SetUser(v NestedUserRequest) {
+func (o *BookmarkRequest) SetUser(v UserRequest) {
o.User = v
}
diff --git a/model_cable.go b/model_cable.go
index e9c4bd8cd5..b9a89b5f0d 100644
--- a/model_cable.go
+++ b/model_cable.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Cable type satisfies the MappedNullable interface at compile time
@@ -21,24 +20,11 @@ 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"`
- Type *CableType `json:"type,omitempty"`
- ATerminations []GenericObject `json:"a_terminations,omitempty"`
- BTerminations []GenericObject `json:"b_terminations,omitempty"`
- Status *CableStatus `json:"status,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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{}
}
@@ -48,13 +34,11 @@ type _Cable Cable
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCable(id int32, url string, display string, created NullableTime, lastUpdated NullableTime) *Cable {
+func NewCable(id int32, url string, display string) *Cable {
this := Cable{}
this.Id = id
this.Url = url
this.Display = display
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -138,177 +122,6 @@ func (o *Cable) SetDisplay(v string) {
o.Display = v
}
-// GetType returns the Type field value if set, zero value otherwise.
-func (o *Cable) GetType() CableType {
- if o == nil || IsNil(o.Type) {
- var ret CableType
- 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 *Cable) GetTypeOk() (*CableType, 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 *Cable) HasType() bool {
- if o != nil && !IsNil(o.Type) {
- return true
- }
-
- return false
-}
-
-// SetType gets a reference to the given CableType and assigns it to the Type field.
-func (o *Cable) SetType(v CableType) {
- o.Type = &v
-}
-
-// 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cable) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Cable) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Cable) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Cable) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -341,124 +154,6 @@ 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) {
@@ -491,154 +186,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Cable) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cable) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Cable) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Cable) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cable) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Cable) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o Cable) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -652,47 +199,12 @@ func (o Cable) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- if !IsNil(o.Type) {
- toSerialize["type"] = o.Type
- }
- 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -709,8 +221,6 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -743,21 +253,8 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "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
}
diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go
deleted file mode 100644
index 59c1e76d6a..0000000000
--- a/model_cable_length_unit.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 9d6a115e1e..0000000000
--- a/model_cable_length_unit_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index e1720d639b..0000000000
--- a/model_cable_length_unit_value.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: 3.7.7 (3.7)
-*/
-
-// 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 eec68aebc0..0b4bad8c84 100644
--- a/model_cable_request.go
+++ b/model_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,19 +19,8 @@ var _ MappedNullable = &CableRequest{}
// CableRequest Adds support for custom fields and tags.
type CableRequest struct {
- Type *CableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- 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"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,177 +43,6 @@ func NewCableRequestWithDefaults() *CableRequest {
return &this
}
-// GetType returns the Type field value if set, zero value otherwise.
-func (o *CableRequest) GetType() CableType {
- if o == nil || IsNil(o.Type) {
- var ret CableType
- 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 *CableRequest) GetTypeOk() (*CableType, 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 *CableRequest) HasType() bool {
- if o != nil && !IsNil(o.Type) {
- return true
- }
-
- return false
-}
-
-// SetType gets a reference to the given CableType and assigns it to the Type field.
-func (o *CableRequest) SetType(v CableType) {
- o.Type = &v
-}
-
-// 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CableRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *CableRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *CableRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *CableRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -257,124 +75,6 @@ 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) {
@@ -407,102 +107,6 @@ 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()
if err != nil {
@@ -513,45 +117,12 @@ func (o CableRequest) MarshalJSON() ([]byte, error) {
func (o CableRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Type) {
- toSerialize["type"] = o.Type
- }
- 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
@@ -574,19 +145,8 @@ 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
}
diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go
deleted file mode 100644
index c93bd95c10..0000000000
--- a/model_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: 3.7.7 (3.7)
-*/
-
-// 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_cable_status.go b/model_cable_status.go
deleted file mode 100644
index b02c7f8cef..0000000000
--- a/model_cable_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the CableStatus type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &CableStatus{}
-
-// CableStatus struct for CableStatus
-type CableStatus struct {
- Value *CableStatusValue `json:"value,omitempty"`
- Label *CableStatusLabel `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _CableStatus CableStatus
-
-// 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 NewCableStatus() *CableStatus {
- this := CableStatus{}
- return &this
-}
-
-// 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 NewCableStatusWithDefaults() *CableStatus {
- this := CableStatus{}
- return &this
-}
-
-// GetValue returns the Value field value if set, zero value otherwise.
-func (o *CableStatus) GetValue() CableStatusValue {
- if o == nil || IsNil(o.Value) {
- var ret CableStatusValue
- 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 *CableStatus) GetValueOk() (*CableStatusValue, 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 *CableStatus) HasValue() bool {
- if o != nil && !IsNil(o.Value) {
- return true
- }
-
- return false
-}
-
-// 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 *CableStatus) GetLabel() CableStatusLabel {
- if o == nil || IsNil(o.Label) {
- var ret CableStatusLabel
- 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 *CableStatus) GetLabelOk() (*CableStatusLabel, 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 *CableStatus) HasLabel() bool {
- if o != nil && !IsNil(o.Label) {
- return true
- }
-
- return false
-}
-
-// 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 CableStatus) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o CableStatus) 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 *CableStatus) UnmarshalJSON(data []byte) (err error) {
- varCableStatus := _CableStatus{}
-
- err = json.Unmarshal(data, &varCableStatus)
-
- if err != nil {
- return err
- }
-
- *o = CableStatus(varCableStatus)
-
- 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 NullableCableStatus struct {
- value *CableStatus
- isSet bool
-}
-
-func (v NullableCableStatus) Get() *CableStatus {
- return v.value
-}
-
-func (v *NullableCableStatus) Set(val *CableStatus) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableCableStatus) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableCableStatus) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableCableStatus(val *CableStatus) *NullableCableStatus {
- return &NullableCableStatus{value: val, isSet: true}
-}
-
-func (v NullableCableStatus) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-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
deleted file mode 100644
index f01b736e8e..0000000000
--- a/model_cable_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 8cb11781b3..0000000000
--- a/model_cable_status_value.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: 3.7.7 (3.7)
-*/
-
-// 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 cd3faebeca..3e2427ac6e 100644
--- a/model_cable_termination.go
+++ b/model_cable_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -25,7 +25,7 @@ type CableTermination struct {
Url string `json:"url"`
Display string `json:"display"`
Cable int32 `json:"cable"`
- CableEnd End `json:"cable_end"`
+ CableEnd End1 `json:"cable_end"`
TerminationType string `json:"termination_type"`
TerminationId int64 `json:"termination_id"`
Termination interface{} `json:"termination"`
@@ -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 End, 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, termination interface{}, created NullableTime, lastUpdated NullableTime) *CableTermination {
this := CableTermination{}
this.Id = id
this.Url = url
@@ -160,9 +160,9 @@ func (o *CableTermination) SetCable(v int32) {
}
// GetCableEnd returns the CableEnd field value
-func (o *CableTermination) GetCableEnd() End {
+func (o *CableTermination) GetCableEnd() End1 {
if o == nil {
- var ret End
+ var ret End1
return ret
}
@@ -171,7 +171,7 @@ func (o *CableTermination) GetCableEnd() End {
// GetCableEndOk returns a tuple with the CableEnd field value
// and a boolean to check if the value has been set.
-func (o *CableTermination) GetCableEndOk() (*End, bool) {
+func (o *CableTermination) GetCableEndOk() (*End1, bool) {
if o == nil {
return nil, false
}
@@ -179,7 +179,7 @@ func (o *CableTermination) GetCableEndOk() (*End, bool) {
}
// SetCableEnd sets field value
-func (o *CableTermination) SetCableEnd(v End) {
+func (o *CableTermination) SetCableEnd(v End1) {
o.CableEnd = v
}
diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go
index d79b6ed74d..fb17abb8af 100644
--- a/model_cable_termination_request.go
+++ b/model_cable_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ var _ MappedNullable = &CableTerminationRequest{}
// CableTerminationRequest Adds support for custom fields and tags.
type CableTerminationRequest struct {
Cable int32 `json:"cable"`
- CableEnd End `json:"cable_end"`
+ CableEnd End1 `json:"cable_end"`
TerminationType string `json:"termination_type"`
TerminationId int64 `json:"termination_id"`
AdditionalProperties map[string]interface{}
@@ -33,7 +33,7 @@ type _CableTerminationRequest CableTerminationRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCableTerminationRequest(cable int32, cableEnd End, terminationType string, terminationId int64) *CableTerminationRequest {
+func NewCableTerminationRequest(cable int32, cableEnd End1, terminationType string, terminationId int64) *CableTerminationRequest {
this := CableTerminationRequest{}
this.Cable = cable
this.CableEnd = cableEnd
@@ -75,9 +75,9 @@ func (o *CableTerminationRequest) SetCable(v int32) {
}
// GetCableEnd returns the CableEnd field value
-func (o *CableTerminationRequest) GetCableEnd() End {
+func (o *CableTerminationRequest) GetCableEnd() End1 {
if o == nil {
- var ret End
+ var ret End1
return ret
}
@@ -86,7 +86,7 @@ func (o *CableTerminationRequest) GetCableEnd() End {
// GetCableEndOk returns a tuple with the CableEnd field value
// and a boolean to check if the value has been set.
-func (o *CableTerminationRequest) GetCableEndOk() (*End, bool) {
+func (o *CableTerminationRequest) GetCableEndOk() (*End1, bool) {
if o == nil {
return nil, false
}
@@ -94,7 +94,7 @@ func (o *CableTerminationRequest) GetCableEndOk() (*End, bool) {
}
// SetCableEnd sets field value
-func (o *CableTerminationRequest) SetCableEnd(v End) {
+func (o *CableTerminationRequest) SetCableEnd(v End1) {
o.CableEnd = v
}
diff --git a/model_cable_type.go b/model_cable_type.go
deleted file mode 100644
index e60e7b506e..0000000000
--- a/model_cable_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: 3.7.7 (3.7)
-*/
-
-// 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) * `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_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",
- "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 7f5421a941..bd64655eb7 100644
--- a/model_circuit.go
+++ b/model_circuit.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Circuit type satisfies the MappedNullable interface at compile time
@@ -25,24 +24,8 @@ type Circuit struct {
Url string `json:"url"`
Display string `json:"display"`
// Unique circuit ID
- Cid string `json:"cid"`
- Provider NestedProvider `json:"provider"`
- ProviderAccount NullableNestedProviderAccount `json:"provider_account,omitempty"`
- Type NestedCircuitType `json:"type"`
- Status *CircuitStatus `json:"status,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
- // Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- TerminationA NullableCircuitCircuitTermination `json:"termination_a"`
- TerminationZ NullableCircuitCircuitTermination `json:"termination_z"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Cid string `json:"cid"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,18 +35,12 @@ 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, provider NestedProvider, type_ NestedCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime) *Circuit {
+func NewCircuit(id int32, url string, display string, cid string) *Circuit {
this := Circuit{}
this.Id = id
this.Url = url
this.Display = display
this.Cid = cid
- this.Provider = provider
- this.Type = type_
- this.TerminationA = terminationA
- this.TerminationZ = terminationZ
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -171,301 +148,6 @@ func (o *Circuit) SetCid(v string) {
o.Cid = v
}
-// GetProvider returns the Provider field value
-func (o *Circuit) GetProvider() NestedProvider {
- if o == nil {
- var ret NestedProvider
- 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() (*NestedProvider, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *Circuit) SetProvider(v NestedProvider) {
- 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() NestedProviderAccount {
- if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret NestedProviderAccount
- 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() (*NestedProviderAccount, 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 NullableNestedProviderAccount and assigns it to the ProviderAccount field.
-func (o *Circuit) SetProviderAccount(v NestedProviderAccount) {
- o.ProviderAccount.Set(&v)
-}
-
-// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
-func (o *Circuit) SetProviderAccountNil() {
- o.ProviderAccount.Set(nil)
-}
-
-// 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() NestedCircuitType {
- if o == nil {
- var ret NestedCircuitType
- 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() (*NestedCircuitType, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *Circuit) SetType(v NestedCircuitType) {
- 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Circuit) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Circuit) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Circuit) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Circuit) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -498,206 +180,6 @@ func (o *Circuit) SetDescription(v string) {
o.Description = &v
}
-// GetTerminationA returns the TerminationA field value
-// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned
-func (o *Circuit) GetTerminationA() CircuitCircuitTermination {
- if o == nil || o.TerminationA.Get() == nil {
- var ret CircuitCircuitTermination
- return ret
- }
-
- return *o.TerminationA.Get()
-}
-
-// GetTerminationAOk returns a tuple with the TerminationA 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 *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) {
- if o == nil {
- return nil, false
- }
- return o.TerminationA.Get(), o.TerminationA.IsSet()
-}
-
-// SetTerminationA sets field value
-func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) {
- o.TerminationA.Set(&v)
-}
-
-// GetTerminationZ returns the TerminationZ field value
-// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned
-func (o *Circuit) GetTerminationZ() CircuitCircuitTermination {
- if o == nil || o.TerminationZ.Get() == nil {
- var ret CircuitCircuitTermination
- return ret
- }
-
- return *o.TerminationZ.Get()
-}
-
-// GetTerminationZOk returns a tuple with the TerminationZ 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 *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) {
- if o == nil {
- return nil, false
- }
- return o.TerminationZ.Get(), o.TerminationZ.IsSet()
-}
-
-// SetTerminationZ sets field value
-func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) {
- o.TerminationZ.Set(&v)
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Circuit) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Circuit) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Circuit) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Circuit) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Circuit) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o Circuit) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -712,42 +194,9 @@ func (o Circuit) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
}
- toSerialize["termination_a"] = o.TerminationA.Get()
- 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -765,12 +214,6 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"cid",
- "provider",
- "type",
- "termination_a",
- "termination_z",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -804,22 +247,7 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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, "termination_a")
- delete(additionalProperties, "termination_z")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- delete(additionalProperties, "created")
- delete(additionalProperties, "last_updated")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go
deleted file mode 100644
index f48299ca7f..0000000000
--- a/model_circuit_circuit_termination.go
+++ /dev/null
@@ -1,459 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- Display string `json:"display"`
- Site NullableNestedSite `json:"site"`
- ProviderNetwork NullableNestedProviderNetwork `json:"provider_network"`
- // Physical circuit speed
- PortSpeed NullableInt32 `json:"port_speed,omitempty"`
- // Upstream speed, if different from port speed
- UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"`
- // ID of the local cross-connect
- XconnectId *string `json:"xconnect_id,omitempty"`
- Description *string `json:"description,omitempty"`
- 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, site NullableNestedSite, providerNetwork NullableNestedProviderNetwork) *CircuitCircuitTermination {
- this := CircuitCircuitTermination{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Site = site
- this.ProviderNetwork = providerNetwork
- 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
-}
-
-// 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
-}
-
-// GetSite returns the Site field value
-// If the value is explicit nil, the zero value for NestedSite will be returned
-func (o *CircuitCircuitTermination) GetSite() NestedSite {
- if o == nil || o.Site.Get() == nil {
- var ret NestedSite
- return ret
- }
-
- return *o.Site.Get()
-}
-
-// GetSiteOk returns a tuple with the Site 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 *CircuitCircuitTermination) GetSiteOk() (*NestedSite, bool) {
- if o == nil {
- return nil, false
- }
- return o.Site.Get(), o.Site.IsSet()
-}
-
-// SetSite sets field value
-func (o *CircuitCircuitTermination) SetSite(v NestedSite) {
- o.Site.Set(&v)
-}
-
-// GetProviderNetwork returns the ProviderNetwork field value
-// If the value is explicit nil, the zero value for NestedProviderNetwork will be returned
-func (o *CircuitCircuitTermination) GetProviderNetwork() NestedProviderNetwork {
- if o == nil || o.ProviderNetwork.Get() == nil {
- var ret NestedProviderNetwork
- return ret
- }
-
- return *o.ProviderNetwork.Get()
-}
-
-// GetProviderNetworkOk returns a tuple with the ProviderNetwork 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 *CircuitCircuitTermination) GetProviderNetworkOk() (*NestedProviderNetwork, bool) {
- if o == nil {
- return nil, false
- }
- return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet()
-}
-
-// SetProviderNetwork sets field value
-func (o *CircuitCircuitTermination) SetProviderNetwork(v NestedProviderNetwork) {
- o.ProviderNetwork.Set(&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
- toSerialize["display"] = o.Display
- toSerialize["site"] = o.Site.Get()
- toSerialize["provider_network"] = o.ProviderNetwork.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 *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",
- "site",
- "provider_network",
- }
-
- 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)
- }
- }
-
- 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")
- delete(additionalProperties, "site")
- delete(additionalProperties, "provider_network")
- 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
deleted file mode 100644
index 318418b6cb..0000000000
--- a/model_circuit_circuit_termination_request.go
+++ /dev/null
@@ -1,372 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// 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 {
- Site NullableNestedSiteRequest `json:"site"`
- ProviderNetwork NullableNestedProviderNetworkRequest `json:"provider_network"`
- // Physical circuit speed
- PortSpeed NullableInt32 `json:"port_speed,omitempty"`
- // Upstream speed, if different from port speed
- UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"`
- // ID of the local cross-connect
- XconnectId *string `json:"xconnect_id,omitempty"`
- Description *string `json:"description,omitempty"`
- 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(site NullableNestedSiteRequest, providerNetwork NullableNestedProviderNetworkRequest) *CircuitCircuitTerminationRequest {
- this := CircuitCircuitTerminationRequest{}
- this.Site = site
- this.ProviderNetwork = providerNetwork
- 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
-}
-
-// GetSite returns the Site field value
-// If the value is explicit nil, the zero value for NestedSiteRequest will be returned
-func (o *CircuitCircuitTerminationRequest) GetSite() NestedSiteRequest {
- if o == nil || o.Site.Get() == nil {
- var ret NestedSiteRequest
- return ret
- }
-
- return *o.Site.Get()
-}
-
-// GetSiteOk returns a tuple with the Site 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 *CircuitCircuitTerminationRequest) GetSiteOk() (*NestedSiteRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Site.Get(), o.Site.IsSet()
-}
-
-// SetSite sets field value
-func (o *CircuitCircuitTerminationRequest) SetSite(v NestedSiteRequest) {
- o.Site.Set(&v)
-}
-
-// GetProviderNetwork returns the ProviderNetwork field value
-// If the value is explicit nil, the zero value for NestedProviderNetworkRequest will be returned
-func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() NestedProviderNetworkRequest {
- if o == nil || o.ProviderNetwork.Get() == nil {
- var ret NestedProviderNetworkRequest
- return ret
- }
-
- return *o.ProviderNetwork.Get()
-}
-
-// GetProviderNetworkOk returns a tuple with the ProviderNetwork 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 *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*NestedProviderNetworkRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet()
-}
-
-// SetProviderNetwork sets field value
-func (o *CircuitCircuitTerminationRequest) SetProviderNetwork(v NestedProviderNetworkRequest) {
- o.ProviderNetwork.Set(&v)
-}
-
-// 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{}{}
- toSerialize["site"] = o.Site.Get()
- toSerialize["provider_network"] = o.ProviderNetwork.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) {
- // 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{
- "site",
- "provider_network",
- }
-
- 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)
- }
- }
-
- 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, "site")
- delete(additionalProperties, "provider_network")
- 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_request.go b/model_circuit_request.go
index e09ac7fffa..f5d44906d0 100644
--- a/model_circuit_request.go
+++ b/model_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,20 +21,8 @@ var _ MappedNullable = &CircuitRequest{}
// CircuitRequest Adds support for custom fields and tags.
type CircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- Provider NestedProviderRequest `json:"provider"`
- ProviderAccount NullableNestedProviderAccountRequest `json:"provider_account,omitempty"`
- Type NestedCircuitTypeRequest `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
- // Committed rate
- CommitRate NullableInt32 `json:"commit_rate,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Cid string `json:"cid"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,11 +32,9 @@ 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, provider NestedProviderRequest, type_ NestedCircuitTypeRequest) *CircuitRequest {
+func NewCircuitRequest(cid string) *CircuitRequest {
this := CircuitRequest{}
this.Cid = cid
- this.Provider = provider
- this.Type = type_
return &this
}
@@ -84,301 +70,6 @@ func (o *CircuitRequest) SetCid(v string) {
o.Cid = v
}
-// GetProvider returns the Provider field value
-func (o *CircuitRequest) GetProvider() NestedProviderRequest {
- if o == nil {
- var ret NestedProviderRequest
- 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() (*NestedProviderRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *CircuitRequest) SetProvider(v NestedProviderRequest) {
- 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() NestedProviderAccountRequest {
- if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret NestedProviderAccountRequest
- 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() (*NestedProviderAccountRequest, 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 NullableNestedProviderAccountRequest and assigns it to the ProviderAccount field.
-func (o *CircuitRequest) SetProviderAccount(v NestedProviderAccountRequest) {
- o.ProviderAccount.Set(&v)
-}
-
-// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil
-func (o *CircuitRequest) SetProviderAccountNil() {
- o.ProviderAccount.Set(nil)
-}
-
-// 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() NestedCircuitTypeRequest {
- if o == nil {
- var ret NestedCircuitTypeRequest
- 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() (*NestedCircuitTypeRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *CircuitRequest) SetType(v NestedCircuitTypeRequest) {
- 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *CircuitRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *CircuitRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *CircuitRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *CircuitRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -411,102 +102,6 @@ func (o *CircuitRequest) SetDescription(v string) {
o.Description = &v
}
-// 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
-}
-
func (o CircuitRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -518,38 +113,9 @@ 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 !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
@@ -564,8 +130,6 @@ 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",
}
allProperties := make(map[string]interface{})
@@ -596,18 +160,7 @@ 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, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_circuit_status.go b/model_circuit_status.go
deleted file mode 100644
index e14d6a1aea..0000000000
--- a/model_circuit_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 46c0b65939..0000000000
--- a/model_circuit_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 7d62024750..0000000000
--- a/model_circuit_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: 3.7.7 (3.7)
-*/
-
-// 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 dace469925..e9304fcbea 100644
--- a/model_circuit_termination.go
+++ b/model_circuit_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ var _ MappedNullable = &CircuitTermination{}
// CircuitTermination Adds support for custom fields and tags.
type CircuitTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Circuit NestedCircuit `json:"circuit"`
- TermSide Termination `json:"term_side"`
- Site NullableNestedSite `json:"site,omitempty"`
- ProviderNetwork NullableNestedProviderNetwork `json:"provider_network,omitempty"`
+ 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"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -38,10 +38,10 @@ type CircuitTermination struct {
PpInfo *string `json:"pp_info,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -58,7 +58,7 @@ 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 NestedCircuit, termSide Termination, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination {
+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 {
this := CircuitTermination{}
this.Id = id
this.Url = url
@@ -156,9 +156,9 @@ func (o *CircuitTermination) SetDisplay(v string) {
}
// GetCircuit returns the Circuit field value
-func (o *CircuitTermination) GetCircuit() NestedCircuit {
+func (o *CircuitTermination) GetCircuit() Circuit {
if o == nil {
- var ret NestedCircuit
+ var ret Circuit
return ret
}
@@ -167,7 +167,7 @@ func (o *CircuitTermination) GetCircuit() NestedCircuit {
// GetCircuitOk returns a tuple with the Circuit field value
// and a boolean to check if the value has been set.
-func (o *CircuitTermination) GetCircuitOk() (*NestedCircuit, bool) {
+func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) {
if o == nil {
return nil, false
}
@@ -175,14 +175,14 @@ func (o *CircuitTermination) GetCircuitOk() (*NestedCircuit, bool) {
}
// SetCircuit sets field value
-func (o *CircuitTermination) SetCircuit(v NestedCircuit) {
+func (o *CircuitTermination) SetCircuit(v Circuit) {
o.Circuit = v
}
// GetTermSide returns the TermSide field value
-func (o *CircuitTermination) GetTermSide() Termination {
+func (o *CircuitTermination) GetTermSide() Termination1 {
if o == nil {
- var ret Termination
+ var ret Termination1
return ret
}
@@ -191,7 +191,7 @@ func (o *CircuitTermination) GetTermSide() Termination {
// GetTermSideOk returns a tuple with the TermSide field value
// and a boolean to check if the value has been set.
-func (o *CircuitTermination) GetTermSideOk() (*Termination, bool) {
+func (o *CircuitTermination) GetTermSideOk() (*Termination1, bool) {
if o == nil {
return nil, false
}
@@ -199,14 +199,14 @@ func (o *CircuitTermination) GetTermSideOk() (*Termination, bool) {
}
// SetTermSide sets field value
-func (o *CircuitTermination) SetTermSide(v Termination) {
+func (o *CircuitTermination) SetTermSide(v Termination1) {
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() NestedSite {
+func (o *CircuitTermination) GetSite() Site {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSite
+ var ret Site
return ret
}
return *o.Site.Get()
@@ -215,7 +215,7 @@ func (o *CircuitTermination) GetSite() NestedSite {
// 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 *CircuitTermination) GetSiteOk() (*NestedSite, bool) {
+func (o *CircuitTermination) GetSiteOk() (*Site, bool) {
if o == nil {
return nil, false
}
@@ -231,8 +231,8 @@ func (o *CircuitTermination) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSite and assigns it to the Site field.
-func (o *CircuitTermination) SetSite(v NestedSite) {
+// 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)
}
@@ -247,9 +247,9 @@ func (o *CircuitTermination) UnsetSite() {
}
// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CircuitTermination) GetProviderNetwork() NestedProviderNetwork {
+func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork {
if o == nil || IsNil(o.ProviderNetwork.Get()) {
- var ret NestedProviderNetwork
+ var ret ProviderNetwork
return ret
}
return *o.ProviderNetwork.Get()
@@ -258,7 +258,7 @@ func (o *CircuitTermination) GetProviderNetwork() NestedProviderNetwork {
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise
// and a 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() (*NestedProviderNetwork, bool) {
+func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) {
if o == nil {
return nil, false
}
@@ -274,8 +274,8 @@ func (o *CircuitTermination) HasProviderNetwork() bool {
return false
}
-// SetProviderNetwork gets a reference to the given NullableNestedProviderNetwork and assigns it to the ProviderNetwork field.
-func (o *CircuitTermination) SetProviderNetwork(v NestedProviderNetwork) {
+// 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)
}
@@ -504,10 +504,10 @@ func (o *CircuitTermination) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *CircuitTermination) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -517,7 +517,7 @@ func (o *CircuitTermination) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *CircuitTermination) GetCableOk() (*NestedCable, bool) {
+func (o *CircuitTermination) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -525,7 +525,7 @@ func (o *CircuitTermination) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *CircuitTermination) SetCable(v NestedCable) {
+func (o *CircuitTermination) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go
index b6a8f9533d..d8a1b14e41 100644
--- a/model_circuit_termination_request.go
+++ b/model_circuit_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedCircuitRequest `json:"circuit"`
- TermSide Termination `json:"term_side"`
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- ProviderNetwork NullableNestedProviderNetworkRequest `json:"provider_network,omitempty"`
+ Circuit CircuitRequest `json:"circuit"`
+ TermSide Termination1 `json:"term_side"`
+ Site NullableSiteRequest `json:"site,omitempty"`
+ ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -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 NestedCircuitRequest, termSide Termination) *CircuitTerminationRequest {
+func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *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() NestedCircuitRequest {
+func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest {
if o == nil {
- var ret NestedCircuitRequest
+ var ret CircuitRequest
return ret
}
@@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() NestedCircuitRequest {
// GetCircuitOk returns a tuple with the Circuit field value
// and a boolean to check if the value has been set.
-func (o *CircuitTerminationRequest) GetCircuitOk() (*NestedCircuitRequest, bool) {
+func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,14 +81,14 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*NestedCircuitRequest, bool)
}
// SetCircuit sets field value
-func (o *CircuitTerminationRequest) SetCircuit(v NestedCircuitRequest) {
+func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) {
o.Circuit = v
}
// GetTermSide returns the TermSide field value
-func (o *CircuitTerminationRequest) GetTermSide() Termination {
+func (o *CircuitTerminationRequest) GetTermSide() Termination1 {
if o == nil {
- var ret Termination
+ var ret Termination1
return ret
}
@@ -97,7 +97,7 @@ func (o *CircuitTerminationRequest) GetTermSide() Termination {
// GetTermSideOk returns a tuple with the TermSide field value
// and a boolean to check if the value has been set.
-func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
+func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination1, bool) {
if o == nil {
return nil, false
}
@@ -105,14 +105,14 @@ func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
}
// SetTermSide sets field value
-func (o *CircuitTerminationRequest) SetTermSide(v Termination) {
+func (o *CircuitTerminationRequest) SetTermSide(v Termination1) {
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() NestedSiteRequest {
+func (o *CircuitTerminationRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSiteRequest
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -121,7 +121,7 @@ func (o *CircuitTerminationRequest) GetSite() NestedSiteRequest {
// 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 *CircuitTerminationRequest) GetSiteOk() (*NestedSiteRequest, bool) {
+func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -137,8 +137,8 @@ func (o *CircuitTerminationRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSiteRequest and assigns it to the Site field.
-func (o *CircuitTerminationRequest) SetSite(v NestedSiteRequest) {
+// 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)
}
@@ -153,9 +153,9 @@ func (o *CircuitTerminationRequest) UnsetSite() {
}
// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CircuitTerminationRequest) GetProviderNetwork() NestedProviderNetworkRequest {
+func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest {
if o == nil || IsNil(o.ProviderNetwork.Get()) {
- var ret NestedProviderNetworkRequest
+ var ret ProviderNetworkRequest
return ret
}
return *o.ProviderNetwork.Get()
@@ -164,7 +164,7 @@ func (o *CircuitTerminationRequest) GetProviderNetwork() NestedProviderNetworkRe
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise
// and a 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() (*NestedProviderNetworkRequest, bool) {
+func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) {
if o == nil {
return nil, false
}
@@ -180,8 +180,8 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool {
return false
}
-// SetProviderNetwork gets a reference to the given NullableNestedProviderNetworkRequest and assigns it to the ProviderNetwork field.
-func (o *CircuitTerminationRequest) SetProviderNetwork(v NestedProviderNetworkRequest) {
+// 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)
}
diff --git a/model_circuit_type.go b/model_circuit_type.go
index f172d08bec..56afd1a848 100644
--- a/model_circuit_type.go
+++ b/model_circuit_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -32,7 +32,7 @@ type CircuitType struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- CircuitCount int32 `json:"circuit_count"`
+ CircuitCount int64 `json:"circuit_count"`
AdditionalProperties map[string]interface{}
}
@@ -42,7 +42,7 @@ 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 int32) *CircuitType {
+func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType {
this := CircuitType{}
this.Id = id
this.Url = url
@@ -364,9 +364,9 @@ func (o *CircuitType) SetLastUpdated(v time.Time) {
}
// GetCircuitCount returns the CircuitCount field value
-func (o *CircuitType) GetCircuitCount() int32 {
+func (o *CircuitType) GetCircuitCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -375,7 +375,7 @@ func (o *CircuitType) GetCircuitCount() int32 {
// GetCircuitCountOk returns a tuple with the CircuitCount field value
// and a boolean to check if the value has been set.
-func (o *CircuitType) GetCircuitCountOk() (*int32, bool) {
+func (o *CircuitType) GetCircuitCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -383,7 +383,7 @@ func (o *CircuitType) GetCircuitCountOk() (*int32, bool) {
}
// SetCircuitCount sets field value
-func (o *CircuitType) SetCircuitCount(v int32) {
+func (o *CircuitType) SetCircuitCount(v int64) {
o.CircuitCount = v
}
diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go
index ad3dd1c1fa..48eba514f5 100644
--- a/model_circuit_type_request.go
+++ b/model_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go
new file mode 100644
index 0000000000..b4ea69c2ce
--- /dev/null
+++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go
@@ -0,0 +1,110 @@
+/*
+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"
+)
+
+// CircuitsCircuitTerminationsListCableEndParameter the model 'CircuitsCircuitTerminationsListCableEndParameter'
+type CircuitsCircuitTerminationsListCableEndParameter string
+
+// List of circuits_circuit_terminations_list_cable_end_parameter
+const (
+ CIRCUITSCIRCUITTERMINATIONSLISTCABLEENDPARAMETER_A CircuitsCircuitTerminationsListCableEndParameter = "A"
+ CIRCUITSCIRCUITTERMINATIONSLISTCABLEENDPARAMETER_B CircuitsCircuitTerminationsListCableEndParameter = "B"
+)
+
+// All allowed values of CircuitsCircuitTerminationsListCableEndParameter enum
+var AllowedCircuitsCircuitTerminationsListCableEndParameterEnumValues = []CircuitsCircuitTerminationsListCableEndParameter{
+ "A",
+ "B",
+}
+
+func (v *CircuitsCircuitTerminationsListCableEndParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := CircuitsCircuitTerminationsListCableEndParameter(value)
+ for _, existing := range AllowedCircuitsCircuitTerminationsListCableEndParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid CircuitsCircuitTerminationsListCableEndParameter", value)
+}
+
+// NewCircuitsCircuitTerminationsListCableEndParameterFromValue returns a pointer to a valid CircuitsCircuitTerminationsListCableEndParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewCircuitsCircuitTerminationsListCableEndParameterFromValue(v string) (*CircuitsCircuitTerminationsListCableEndParameter, error) {
+ ev := CircuitsCircuitTerminationsListCableEndParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitTerminationsListCableEndParameter: valid values are %v", v, AllowedCircuitsCircuitTerminationsListCableEndParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v CircuitsCircuitTerminationsListCableEndParameter) IsValid() bool {
+ for _, existing := range AllowedCircuitsCircuitTerminationsListCableEndParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to circuits_circuit_terminations_list_cable_end_parameter value
+func (v CircuitsCircuitTerminationsListCableEndParameter) Ptr() *CircuitsCircuitTerminationsListCableEndParameter {
+ return &v
+}
+
+type NullableCircuitsCircuitTerminationsListCableEndParameter struct {
+ value *CircuitsCircuitTerminationsListCableEndParameter
+ isSet bool
+}
+
+func (v NullableCircuitsCircuitTerminationsListCableEndParameter) Get() *CircuitsCircuitTerminationsListCableEndParameter {
+ return v.value
+}
+
+func (v *NullableCircuitsCircuitTerminationsListCableEndParameter) Set(val *CircuitsCircuitTerminationsListCableEndParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCircuitsCircuitTerminationsListCableEndParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCircuitsCircuitTerminationsListCableEndParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCircuitsCircuitTerminationsListCableEndParameter(val *CircuitsCircuitTerminationsListCableEndParameter) *NullableCircuitsCircuitTerminationsListCableEndParameter {
+ return &NullableCircuitsCircuitTerminationsListCableEndParameter{value: val, isSet: true}
+}
+
+func (v NullableCircuitsCircuitTerminationsListCableEndParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCircuitsCircuitTerminationsListCableEndParameter) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_cluster.go b/model_cluster.go
index b4df59e7f9..ac931d63f5 100644
--- a/model_cluster.go
+++ b/model_cluster.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Cluster type satisfies the MappedNullable interface at compile time
@@ -21,23 +20,12 @@ var _ MappedNullable = &Cluster{}
// Cluster Adds support for custom fields and tags.
type Cluster struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Type NestedClusterType `json:"type"`
- Group NullableNestedClusterGroup `json:"group,omitempty"`
- Status *ClusterStatus `json:"status,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Site NullableNestedSite `json:"site,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- DeviceCount int32 `json:"device_count"`
- VirtualmachineCount int32 `json:"virtualmachine_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ VirtualmachineCount int64 `json:"virtualmachine_count"`
AdditionalProperties map[string]interface{}
}
@@ -47,16 +35,12 @@ 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, type_ NestedClusterType, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32) *Cluster {
+func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64) *Cluster {
this := Cluster{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Type = type_
- this.Created = created
- this.LastUpdated = lastUpdated
- this.DeviceCount = deviceCount
this.VirtualmachineCount = virtualmachineCount
return &this
}
@@ -165,191 +149,6 @@ func (o *Cluster) SetName(v string) {
o.Name = v
}
-// GetType returns the Type field value
-func (o *Cluster) GetType() NestedClusterType {
- if o == nil {
- var ret NestedClusterType
- 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() (*NestedClusterType, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *Cluster) SetType(v NestedClusterType) {
- 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() NestedClusterGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedClusterGroup
- 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() (*NestedClusterGroup, 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 NullableNestedClusterGroup and assigns it to the Group field.
-func (o *Cluster) SetGroup(v NestedClusterGroup) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *Cluster) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cluster) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Cluster) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Cluster) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Cluster) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *Cluster) 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 *Cluster) GetSite() NestedSite {
- if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSite
- 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 *Cluster) GetSiteOk() (*NestedSite, 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 *Cluster) HasSite() bool {
- if o != nil && o.Site.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetSite gets a reference to the given NullableNestedSite and assigns it to the Site field.
-func (o *Cluster) SetSite(v NestedSite) {
- o.Site.Set(&v)
-}
-
-// SetSiteNil sets the value for Site to be an explicit nil
-func (o *Cluster) SetSiteNil() {
- o.Site.Set(nil)
-}
-
-// UnsetSite ensures that no value is present for Site, not even an explicit nil
-func (o *Cluster) UnsetSite() {
- o.Site.Unset()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Cluster) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -382,182 +181,10 @@ func (o *Cluster) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Cluster) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cluster) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Cluster) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Cluster) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Cluster) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetDeviceCount returns the DeviceCount field value
-func (o *Cluster) GetDeviceCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceCount
-}
-
-// GetDeviceCountOk returns a tuple with the DeviceCount field value
-// and a boolean to check if the value has been set.
-func (o *Cluster) GetDeviceCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceCount, true
-}
-
-// SetDeviceCount sets field value
-func (o *Cluster) SetDeviceCount(v int32) {
- o.DeviceCount = v
-}
-
// GetVirtualmachineCount returns the VirtualmachineCount field value
-func (o *Cluster) GetVirtualmachineCount() int32 {
+func (o *Cluster) GetVirtualmachineCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -566,7 +193,7 @@ func (o *Cluster) GetVirtualmachineCount() int32 {
// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value
// and a boolean to check if the value has been set.
-func (o *Cluster) GetVirtualmachineCountOk() (*int32, bool) {
+func (o *Cluster) GetVirtualmachineCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -574,7 +201,7 @@ func (o *Cluster) GetVirtualmachineCountOk() (*int32, bool) {
}
// SetVirtualmachineCount sets field value
-func (o *Cluster) SetVirtualmachineCount(v int32) {
+func (o *Cluster) SetVirtualmachineCount(v int64) {
o.VirtualmachineCount = v
}
@@ -592,34 +219,9 @@ func (o Cluster) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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.Site.IsSet() {
- toSerialize["site"] = o.Site.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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["device_count"] = o.DeviceCount
toSerialize["virtualmachine_count"] = o.VirtualmachineCount
for key, value := range o.AdditionalProperties {
@@ -638,10 +240,6 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "type",
- "created",
- "last_updated",
- "device_count",
"virtualmachine_count",
}
@@ -676,18 +274,7 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display")
delete(additionalProperties, "name")
- delete(additionalProperties, "type")
- delete(additionalProperties, "group")
- delete(additionalProperties, "status")
- delete(additionalProperties, "tenant")
- delete(additionalProperties, "site")
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")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_cluster_group.go b/model_cluster_group.go
index 82fd52bfc1..9544ec8500 100644
--- a/model_cluster_group.go
+++ b/model_cluster_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -31,7 +31,7 @@ type ClusterGroup struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- ClusterCount int32 `json:"cluster_count"`
+ ClusterCount int64 `json:"cluster_count"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ 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 int32) *ClusterGroup {
+func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup {
this := ClusterGroup{}
this.Id = id
this.Url = url
@@ -331,9 +331,9 @@ func (o *ClusterGroup) SetLastUpdated(v time.Time) {
}
// GetClusterCount returns the ClusterCount field value
-func (o *ClusterGroup) GetClusterCount() int32 {
+func (o *ClusterGroup) GetClusterCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -342,7 +342,7 @@ func (o *ClusterGroup) GetClusterCount() int32 {
// GetClusterCountOk returns a tuple with the ClusterCount field value
// and a boolean to check if the value has been set.
-func (o *ClusterGroup) GetClusterCountOk() (*int32, bool) {
+func (o *ClusterGroup) GetClusterCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -350,7 +350,7 @@ func (o *ClusterGroup) GetClusterCountOk() (*int32, bool) {
}
// SetClusterCount sets field value
-func (o *ClusterGroup) SetClusterCount(v int32) {
+func (o *ClusterGroup) SetClusterCount(v int64) {
o.ClusterCount = v
}
diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go
index 6bb3251cad..1f95667486 100644
--- a/model_cluster_group_request.go
+++ b/model_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_cluster_request.go b/model_cluster_request.go
index 097114c770..a89789ff3d 100644
--- a/model_cluster_request.go
+++ b/model_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,8 @@ var _ MappedNullable = &ClusterRequest{}
// ClusterRequest Adds support for custom fields and tags.
type ClusterRequest struct {
- Name string `json:"name"`
- Type NestedClusterTypeRequest `json:"type"`
- Group NullableNestedClusterGroupRequest `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,10 +31,9 @@ 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, type_ NestedClusterTypeRequest) *ClusterRequest {
+func NewClusterRequest(name string) *ClusterRequest {
this := ClusterRequest{}
this.Name = name
- this.Type = type_
return &this
}
@@ -78,191 +69,6 @@ func (o *ClusterRequest) SetName(v string) {
o.Name = v
}
-// GetType returns the Type field value
-func (o *ClusterRequest) GetType() NestedClusterTypeRequest {
- if o == nil {
- var ret NestedClusterTypeRequest
- 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() (*NestedClusterTypeRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *ClusterRequest) SetType(v NestedClusterTypeRequest) {
- 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() NestedClusterGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedClusterGroupRequest
- 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() (*NestedClusterGroupRequest, 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 NullableNestedClusterGroupRequest and assigns it to the Group field.
-func (o *ClusterRequest) SetGroup(v NestedClusterGroupRequest) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *ClusterRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ClusterRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *ClusterRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *ClusterRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *ClusterRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *ClusterRequest) 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 *ClusterRequest) GetSite() NestedSiteRequest {
- if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSiteRequest
- 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 *ClusterRequest) GetSiteOk() (*NestedSiteRequest, 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 *ClusterRequest) HasSite() bool {
- if o != nil && o.Site.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetSite gets a reference to the given NullableNestedSiteRequest and assigns it to the Site field.
-func (o *ClusterRequest) SetSite(v NestedSiteRequest) {
- o.Site.Set(&v)
-}
-
-// SetSiteNil sets the value for Site to be an explicit nil
-func (o *ClusterRequest) SetSiteNil() {
- o.Site.Set(nil)
-}
-
-// UnsetSite ensures that no value is present for Site, not even an explicit nil
-func (o *ClusterRequest) UnsetSite() {
- o.Site.Unset()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ClusterRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -295,102 +101,6 @@ 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()
if err != nil {
@@ -402,31 +112,9 @@ 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.Site.IsSet() {
- toSerialize["site"] = o.Site.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
@@ -441,7 +129,6 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "type",
}
allProperties := make(map[string]interface{})
@@ -472,15 +159,7 @@ 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, "site")
delete(additionalProperties, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_cluster_status.go b/model_cluster_status.go
deleted file mode 100644
index 41ea240cdb..0000000000
--- a/model_cluster_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 877c1473b5..0000000000
--- a/model_cluster_status_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 1b945d7acb..0000000000
--- a/model_cluster_status_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: 3.7.7 (3.7)
-*/
-
-// 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 9f193fe9d0..df806d5093 100644
--- a/model_cluster_type.go
+++ b/model_cluster_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -31,7 +31,7 @@ type ClusterType struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- ClusterCount int32 `json:"cluster_count"`
+ ClusterCount int64 `json:"cluster_count"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ 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 int32) *ClusterType {
+func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType {
this := ClusterType{}
this.Id = id
this.Url = url
@@ -331,9 +331,9 @@ func (o *ClusterType) SetLastUpdated(v time.Time) {
}
// GetClusterCount returns the ClusterCount field value
-func (o *ClusterType) GetClusterCount() int32 {
+func (o *ClusterType) GetClusterCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -342,7 +342,7 @@ func (o *ClusterType) GetClusterCount() int32 {
// GetClusterCountOk returns a tuple with the ClusterCount field value
// and a boolean to check if the value has been set.
-func (o *ClusterType) GetClusterCountOk() (*int32, bool) {
+func (o *ClusterType) GetClusterCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -350,7 +350,7 @@ func (o *ClusterType) GetClusterCountOk() (*int32, bool) {
}
// SetClusterCount sets field value
-func (o *ClusterType) SetClusterCount(v int32) {
+func (o *ClusterType) SetClusterCount(v int64) {
o.ClusterCount = v
}
diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go
index f84485ec49..a72f53e3bf 100644
--- a/model_cluster_type_request.go
+++ b/model_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_component_nested_module.go b/model_component_nested_module.go
deleted file mode 100644
index ca48a0a76c..0000000000
--- a/model_component_nested_module.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the ComponentNestedModule type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ComponentNestedModule{}
-
-// ComponentNestedModule Used by device component serializers.
-type ComponentNestedModule struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device int32 `json:"device"`
- ModuleBay ModuleNestedModuleBay `json:"module_bay"`
- AdditionalProperties map[string]interface{}
-}
-
-type _ComponentNestedModule ComponentNestedModule
-
-// NewComponentNestedModule instantiates a new ComponentNestedModule object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewComponentNestedModule(id int32, url string, display string, device int32, moduleBay ModuleNestedModuleBay) *ComponentNestedModule {
- this := ComponentNestedModule{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Device = device
- this.ModuleBay = moduleBay
- return &this
-}
-
-// NewComponentNestedModuleWithDefaults instantiates a new ComponentNestedModule object
-// This 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 NewComponentNestedModuleWithDefaults() *ComponentNestedModule {
- this := ComponentNestedModule{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *ComponentNestedModule) 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 *ComponentNestedModule) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *ComponentNestedModule) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *ComponentNestedModule) 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 *ComponentNestedModule) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *ComponentNestedModule) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *ComponentNestedModule) 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 *ComponentNestedModule) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *ComponentNestedModule) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetDevice returns the Device field value
-func (o *ComponentNestedModule) GetDevice() int32 {
- if o == nil {
- var ret int32
- 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 *ComponentNestedModule) GetDeviceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *ComponentNestedModule) SetDevice(v int32) {
- o.Device = v
-}
-
-// GetModuleBay returns the ModuleBay field value
-func (o *ComponentNestedModule) GetModuleBay() ModuleNestedModuleBay {
- if o == nil {
- var ret ModuleNestedModuleBay
- 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 *ComponentNestedModule) GetModuleBayOk() (*ModuleNestedModuleBay, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ModuleBay, true
-}
-
-// SetModuleBay sets field value
-func (o *ComponentNestedModule) SetModuleBay(v ModuleNestedModuleBay) {
- o.ModuleBay = v
-}
-
-func (o ComponentNestedModule) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o ComponentNestedModule) 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 *ComponentNestedModule) 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",
- }
-
- 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)
- }
- }
-
- varComponentNestedModule := _ComponentNestedModule{}
-
- err = json.Unmarshal(data, &varComponentNestedModule)
-
- if err != nil {
- return err
- }
-
- *o = ComponentNestedModule(varComponentNestedModule)
-
- 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 NullableComponentNestedModule struct {
- value *ComponentNestedModule
- isSet bool
-}
-
-func (v NullableComponentNestedModule) Get() *ComponentNestedModule {
- return v.value
-}
-
-func (v *NullableComponentNestedModule) Set(val *ComponentNestedModule) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableComponentNestedModule) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableComponentNestedModule) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableComponentNestedModule(val *ComponentNestedModule) *NullableComponentNestedModule {
- return &NullableComponentNestedModule{value: val, isSet: true}
-}
-
-func (v NullableComponentNestedModule) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableComponentNestedModule) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_component_nested_module_request.go b/model_component_nested_module_request.go
deleted file mode 100644
index 0007c51c88..0000000000
--- a/model_component_nested_module_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the ComponentNestedModuleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ComponentNestedModuleRequest{}
-
-// ComponentNestedModuleRequest Used by device component serializers.
-type ComponentNestedModuleRequest struct {
- Device int32 `json:"device"`
- AdditionalProperties map[string]interface{}
-}
-
-type _ComponentNestedModuleRequest ComponentNestedModuleRequest
-
-// NewComponentNestedModuleRequest instantiates a new ComponentNestedModuleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewComponentNestedModuleRequest(device int32) *ComponentNestedModuleRequest {
- this := ComponentNestedModuleRequest{}
- this.Device = device
- return &this
-}
-
-// NewComponentNestedModuleRequestWithDefaults instantiates a new ComponentNestedModuleRequest object
-// This 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 NewComponentNestedModuleRequestWithDefaults() *ComponentNestedModuleRequest {
- this := ComponentNestedModuleRequest{}
- return &this
-}
-
-// GetDevice returns the Device field value
-func (o *ComponentNestedModuleRequest) GetDevice() int32 {
- if o == nil {
- var ret int32
- 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 *ComponentNestedModuleRequest) GetDeviceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *ComponentNestedModuleRequest) SetDevice(v int32) {
- o.Device = v
-}
-
-func (o ComponentNestedModuleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o ComponentNestedModuleRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device"] = o.Device
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *ComponentNestedModuleRequest) 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",
- }
-
- 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)
- }
- }
-
- varComponentNestedModuleRequest := _ComponentNestedModuleRequest{}
-
- err = json.Unmarshal(data, &varComponentNestedModuleRequest)
-
- if err != nil {
- return err
- }
-
- *o = ComponentNestedModuleRequest(varComponentNestedModuleRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableComponentNestedModuleRequest struct {
- value *ComponentNestedModuleRequest
- isSet bool
-}
-
-func (v NullableComponentNestedModuleRequest) Get() *ComponentNestedModuleRequest {
- return v.value
-}
-
-func (v *NullableComponentNestedModuleRequest) Set(val *ComponentNestedModuleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableComponentNestedModuleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableComponentNestedModuleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableComponentNestedModuleRequest(val *ComponentNestedModuleRequest) *NullableComponentNestedModuleRequest {
- return &NullableComponentNestedModuleRequest{value: val, isSet: true}
-}
-
-func (v NullableComponentNestedModuleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableComponentNestedModuleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_config_context.go b/model_config_context.go
index d5377f63f0..8cfdce3277 100644
--- a/model_config_context.go
+++ b/model_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,34 +21,34 @@ var _ MappedNullable = &ConfigContext{}
// ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []int32 `json:"regions,omitempty"`
- SiteGroups []int32 `json:"site_groups,omitempty"`
- Sites []int32 `json:"sites,omitempty"`
- Locations []int32 `json:"locations,omitempty"`
- DeviceTypes []int32 `json:"device_types,omitempty"`
- Roles []int32 `json:"roles,omitempty"`
- Platforms []int32 `json:"platforms,omitempty"`
- ClusterTypes []int32 `json:"cluster_types,omitempty"`
- ClusterGroups []int32 `json:"cluster_groups,omitempty"`
- Clusters []int32 `json:"clusters,omitempty"`
- TenantGroups []int32 `json:"tenant_groups,omitempty"`
- Tenants []int32 `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- DataSource *NestedDataSource `json:"data_source,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Weight *int32 `json:"weight,omitempty"`
+ Description *string `json:"description,omitempty"`
+ IsActive *bool `json:"is_active,omitempty"`
+ Regions []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"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile NestedDataFile `json:"data_file"`
- DataSynced NullableTime `json:"data_synced"`
- Data interface{} `json:"data"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -58,7 +58,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 NestedDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext {
+func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext {
this := ConfigContext{}
this.Id = id
this.Url = url
@@ -274,9 +274,9 @@ func (o *ConfigContext) SetIsActive(v bool) {
}
// GetRegions returns the Regions field value if set, zero value otherwise.
-func (o *ConfigContext) GetRegions() []int32 {
+func (o *ConfigContext) GetRegions() []Region {
if o == nil || IsNil(o.Regions) {
- var ret []int32
+ var ret []Region
return ret
}
return o.Regions
@@ -284,7 +284,7 @@ func (o *ConfigContext) GetRegions() []int32 {
// GetRegionsOk returns a tuple with the Regions field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetRegionsOk() ([]int32, bool) {
+func (o *ConfigContext) GetRegionsOk() ([]Region, bool) {
if o == nil || IsNil(o.Regions) {
return nil, false
}
@@ -300,15 +300,15 @@ func (o *ConfigContext) HasRegions() bool {
return false
}
-// SetRegions gets a reference to the given []int32 and assigns it to the Regions field.
-func (o *ConfigContext) SetRegions(v []int32) {
+// SetRegions gets a reference to the given []Region and assigns it to the Regions field.
+func (o *ConfigContext) SetRegions(v []Region) {
o.Regions = v
}
// GetSiteGroups returns the SiteGroups field value if set, zero value otherwise.
-func (o *ConfigContext) GetSiteGroups() []int32 {
+func (o *ConfigContext) GetSiteGroups() []SiteGroup {
if o == nil || IsNil(o.SiteGroups) {
- var ret []int32
+ var ret []SiteGroup
return ret
}
return o.SiteGroups
@@ -316,7 +316,7 @@ func (o *ConfigContext) GetSiteGroups() []int32 {
// GetSiteGroupsOk returns a tuple with the SiteGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetSiteGroupsOk() ([]int32, bool) {
+func (o *ConfigContext) GetSiteGroupsOk() ([]SiteGroup, bool) {
if o == nil || IsNil(o.SiteGroups) {
return nil, false
}
@@ -332,15 +332,15 @@ func (o *ConfigContext) HasSiteGroups() bool {
return false
}
-// SetSiteGroups gets a reference to the given []int32 and assigns it to the SiteGroups field.
-func (o *ConfigContext) SetSiteGroups(v []int32) {
+// SetSiteGroups gets a reference to the given []SiteGroup and assigns it to the SiteGroups field.
+func (o *ConfigContext) SetSiteGroups(v []SiteGroup) {
o.SiteGroups = v
}
// GetSites returns the Sites field value if set, zero value otherwise.
-func (o *ConfigContext) GetSites() []int32 {
+func (o *ConfigContext) GetSites() []Site {
if o == nil || IsNil(o.Sites) {
- var ret []int32
+ var ret []Site
return ret
}
return o.Sites
@@ -348,7 +348,7 @@ func (o *ConfigContext) GetSites() []int32 {
// GetSitesOk returns a tuple with the Sites field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetSitesOk() ([]int32, bool) {
+func (o *ConfigContext) GetSitesOk() ([]Site, bool) {
if o == nil || IsNil(o.Sites) {
return nil, false
}
@@ -364,15 +364,15 @@ func (o *ConfigContext) HasSites() bool {
return false
}
-// SetSites gets a reference to the given []int32 and assigns it to the Sites field.
-func (o *ConfigContext) SetSites(v []int32) {
+// SetSites gets a reference to the given []Site and assigns it to the Sites field.
+func (o *ConfigContext) SetSites(v []Site) {
o.Sites = v
}
// GetLocations returns the Locations field value if set, zero value otherwise.
-func (o *ConfigContext) GetLocations() []int32 {
+func (o *ConfigContext) GetLocations() []Location {
if o == nil || IsNil(o.Locations) {
- var ret []int32
+ var ret []Location
return ret
}
return o.Locations
@@ -380,7 +380,7 @@ func (o *ConfigContext) GetLocations() []int32 {
// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetLocationsOk() ([]int32, bool) {
+func (o *ConfigContext) GetLocationsOk() ([]Location, bool) {
if o == nil || IsNil(o.Locations) {
return nil, false
}
@@ -396,15 +396,15 @@ func (o *ConfigContext) HasLocations() bool {
return false
}
-// SetLocations gets a reference to the given []int32 and assigns it to the Locations field.
-func (o *ConfigContext) SetLocations(v []int32) {
+// SetLocations gets a reference to the given []Location and assigns it to the Locations field.
+func (o *ConfigContext) SetLocations(v []Location) {
o.Locations = v
}
// GetDeviceTypes returns the DeviceTypes field value if set, zero value otherwise.
-func (o *ConfigContext) GetDeviceTypes() []int32 {
+func (o *ConfigContext) GetDeviceTypes() []DeviceType {
if o == nil || IsNil(o.DeviceTypes) {
- var ret []int32
+ var ret []DeviceType
return ret
}
return o.DeviceTypes
@@ -412,7 +412,7 @@ func (o *ConfigContext) GetDeviceTypes() []int32 {
// GetDeviceTypesOk returns a tuple with the DeviceTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetDeviceTypesOk() ([]int32, bool) {
+func (o *ConfigContext) GetDeviceTypesOk() ([]DeviceType, bool) {
if o == nil || IsNil(o.DeviceTypes) {
return nil, false
}
@@ -428,15 +428,15 @@ func (o *ConfigContext) HasDeviceTypes() bool {
return false
}
-// SetDeviceTypes gets a reference to the given []int32 and assigns it to the DeviceTypes field.
-func (o *ConfigContext) SetDeviceTypes(v []int32) {
+// SetDeviceTypes gets a reference to the given []DeviceType and assigns it to the DeviceTypes field.
+func (o *ConfigContext) SetDeviceTypes(v []DeviceType) {
o.DeviceTypes = v
}
// GetRoles returns the Roles field value if set, zero value otherwise.
-func (o *ConfigContext) GetRoles() []int32 {
+func (o *ConfigContext) GetRoles() []DeviceRole {
if o == nil || IsNil(o.Roles) {
- var ret []int32
+ var ret []DeviceRole
return ret
}
return o.Roles
@@ -444,7 +444,7 @@ func (o *ConfigContext) GetRoles() []int32 {
// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetRolesOk() ([]int32, bool) {
+func (o *ConfigContext) GetRolesOk() ([]DeviceRole, bool) {
if o == nil || IsNil(o.Roles) {
return nil, false
}
@@ -460,15 +460,15 @@ func (o *ConfigContext) HasRoles() bool {
return false
}
-// SetRoles gets a reference to the given []int32 and assigns it to the Roles field.
-func (o *ConfigContext) SetRoles(v []int32) {
+// SetRoles gets a reference to the given []DeviceRole and assigns it to the Roles field.
+func (o *ConfigContext) SetRoles(v []DeviceRole) {
o.Roles = v
}
// GetPlatforms returns the Platforms field value if set, zero value otherwise.
-func (o *ConfigContext) GetPlatforms() []int32 {
+func (o *ConfigContext) GetPlatforms() []Platform {
if o == nil || IsNil(o.Platforms) {
- var ret []int32
+ var ret []Platform
return ret
}
return o.Platforms
@@ -476,7 +476,7 @@ func (o *ConfigContext) GetPlatforms() []int32 {
// GetPlatformsOk returns a tuple with the Platforms field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetPlatformsOk() ([]int32, bool) {
+func (o *ConfigContext) GetPlatformsOk() ([]Platform, bool) {
if o == nil || IsNil(o.Platforms) {
return nil, false
}
@@ -492,15 +492,15 @@ func (o *ConfigContext) HasPlatforms() bool {
return false
}
-// SetPlatforms gets a reference to the given []int32 and assigns it to the Platforms field.
-func (o *ConfigContext) SetPlatforms(v []int32) {
+// SetPlatforms gets a reference to the given []Platform and assigns it to the Platforms field.
+func (o *ConfigContext) SetPlatforms(v []Platform) {
o.Platforms = v
}
// GetClusterTypes returns the ClusterTypes field value if set, zero value otherwise.
-func (o *ConfigContext) GetClusterTypes() []int32 {
+func (o *ConfigContext) GetClusterTypes() []ClusterType {
if o == nil || IsNil(o.ClusterTypes) {
- var ret []int32
+ var ret []ClusterType
return ret
}
return o.ClusterTypes
@@ -508,7 +508,7 @@ func (o *ConfigContext) GetClusterTypes() []int32 {
// GetClusterTypesOk returns a tuple with the ClusterTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetClusterTypesOk() ([]int32, bool) {
+func (o *ConfigContext) GetClusterTypesOk() ([]ClusterType, bool) {
if o == nil || IsNil(o.ClusterTypes) {
return nil, false
}
@@ -524,15 +524,15 @@ func (o *ConfigContext) HasClusterTypes() bool {
return false
}
-// SetClusterTypes gets a reference to the given []int32 and assigns it to the ClusterTypes field.
-func (o *ConfigContext) SetClusterTypes(v []int32) {
+// SetClusterTypes gets a reference to the given []ClusterType and assigns it to the ClusterTypes field.
+func (o *ConfigContext) SetClusterTypes(v []ClusterType) {
o.ClusterTypes = v
}
// GetClusterGroups returns the ClusterGroups field value if set, zero value otherwise.
-func (o *ConfigContext) GetClusterGroups() []int32 {
+func (o *ConfigContext) GetClusterGroups() []ClusterGroup {
if o == nil || IsNil(o.ClusterGroups) {
- var ret []int32
+ var ret []ClusterGroup
return ret
}
return o.ClusterGroups
@@ -540,7 +540,7 @@ func (o *ConfigContext) GetClusterGroups() []int32 {
// GetClusterGroupsOk returns a tuple with the ClusterGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetClusterGroupsOk() ([]int32, bool) {
+func (o *ConfigContext) GetClusterGroupsOk() ([]ClusterGroup, bool) {
if o == nil || IsNil(o.ClusterGroups) {
return nil, false
}
@@ -556,15 +556,15 @@ func (o *ConfigContext) HasClusterGroups() bool {
return false
}
-// SetClusterGroups gets a reference to the given []int32 and assigns it to the ClusterGroups field.
-func (o *ConfigContext) SetClusterGroups(v []int32) {
+// SetClusterGroups gets a reference to the given []ClusterGroup and assigns it to the ClusterGroups field.
+func (o *ConfigContext) SetClusterGroups(v []ClusterGroup) {
o.ClusterGroups = v
}
// GetClusters returns the Clusters field value if set, zero value otherwise.
-func (o *ConfigContext) GetClusters() []int32 {
+func (o *ConfigContext) GetClusters() []Cluster {
if o == nil || IsNil(o.Clusters) {
- var ret []int32
+ var ret []Cluster
return ret
}
return o.Clusters
@@ -572,7 +572,7 @@ func (o *ConfigContext) GetClusters() []int32 {
// GetClustersOk returns a tuple with the Clusters field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetClustersOk() ([]int32, bool) {
+func (o *ConfigContext) GetClustersOk() ([]Cluster, bool) {
if o == nil || IsNil(o.Clusters) {
return nil, false
}
@@ -588,15 +588,15 @@ func (o *ConfigContext) HasClusters() bool {
return false
}
-// SetClusters gets a reference to the given []int32 and assigns it to the Clusters field.
-func (o *ConfigContext) SetClusters(v []int32) {
+// SetClusters gets a reference to the given []Cluster and assigns it to the Clusters field.
+func (o *ConfigContext) SetClusters(v []Cluster) {
o.Clusters = v
}
// GetTenantGroups returns the TenantGroups field value if set, zero value otherwise.
-func (o *ConfigContext) GetTenantGroups() []int32 {
+func (o *ConfigContext) GetTenantGroups() []TenantGroup {
if o == nil || IsNil(o.TenantGroups) {
- var ret []int32
+ var ret []TenantGroup
return ret
}
return o.TenantGroups
@@ -604,7 +604,7 @@ func (o *ConfigContext) GetTenantGroups() []int32 {
// GetTenantGroupsOk returns a tuple with the TenantGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetTenantGroupsOk() ([]int32, bool) {
+func (o *ConfigContext) GetTenantGroupsOk() ([]TenantGroup, bool) {
if o == nil || IsNil(o.TenantGroups) {
return nil, false
}
@@ -620,15 +620,15 @@ func (o *ConfigContext) HasTenantGroups() bool {
return false
}
-// SetTenantGroups gets a reference to the given []int32 and assigns it to the TenantGroups field.
-func (o *ConfigContext) SetTenantGroups(v []int32) {
+// SetTenantGroups gets a reference to the given []TenantGroup and assigns it to the TenantGroups field.
+func (o *ConfigContext) SetTenantGroups(v []TenantGroup) {
o.TenantGroups = v
}
// GetTenants returns the Tenants field value if set, zero value otherwise.
-func (o *ConfigContext) GetTenants() []int32 {
+func (o *ConfigContext) GetTenants() []Tenant {
if o == nil || IsNil(o.Tenants) {
- var ret []int32
+ var ret []Tenant
return ret
}
return o.Tenants
@@ -636,7 +636,7 @@ func (o *ConfigContext) GetTenants() []int32 {
// GetTenantsOk returns a tuple with the Tenants field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetTenantsOk() ([]int32, bool) {
+func (o *ConfigContext) GetTenantsOk() ([]Tenant, bool) {
if o == nil || IsNil(o.Tenants) {
return nil, false
}
@@ -652,8 +652,8 @@ func (o *ConfigContext) HasTenants() bool {
return false
}
-// SetTenants gets a reference to the given []int32 and assigns it to the Tenants field.
-func (o *ConfigContext) SetTenants(v []int32) {
+// SetTenants gets a reference to the given []Tenant and assigns it to the Tenants field.
+func (o *ConfigContext) SetTenants(v []Tenant) {
o.Tenants = v
}
@@ -690,9 +690,9 @@ func (o *ConfigContext) SetTags(v []string) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ConfigContext) GetDataSource() NestedDataSource {
+func (o *ConfigContext) GetDataSource() DataSource {
if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSource
+ var ret DataSource
return ret
}
return *o.DataSource
@@ -700,7 +700,7 @@ func (o *ConfigContext) GetDataSource() NestedDataSource {
// 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() (*NestedDataSource, bool) {
+func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -716,8 +716,8 @@ func (o *ConfigContext) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given NestedDataSource and assigns it to the DataSource field.
-func (o *ConfigContext) SetDataSource(v NestedDataSource) {
+// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field.
+func (o *ConfigContext) SetDataSource(v DataSource) {
o.DataSource = &v
}
@@ -746,9 +746,9 @@ func (o *ConfigContext) SetDataPath(v string) {
}
// GetDataFile returns the DataFile field value
-func (o *ConfigContext) GetDataFile() NestedDataFile {
+func (o *ConfigContext) GetDataFile() DataFile {
if o == nil {
- var ret NestedDataFile
+ var ret DataFile
return ret
}
@@ -757,7 +757,7 @@ func (o *ConfigContext) GetDataFile() NestedDataFile {
// GetDataFileOk returns a tuple with the DataFile field value
// and a boolean to check if the value has been set.
-func (o *ConfigContext) GetDataFileOk() (*NestedDataFile, bool) {
+func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) {
if o == nil {
return nil, false
}
@@ -765,7 +765,7 @@ func (o *ConfigContext) GetDataFileOk() (*NestedDataFile, bool) {
}
// SetDataFile sets field value
-func (o *ConfigContext) SetDataFile(v NestedDataFile) {
+func (o *ConfigContext) SetDataFile(v DataFile) {
o.DataFile = v
}
diff --git a/model_config_context_request.go b/model_config_context_request.go
index b197eeb6f8..86b8fad880 100644
--- a/model_config_context_request.go
+++ b/model_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 *NestedDataSourceRequest `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 *DataSourceRequest `json:"data_source,omitempty"`
+ Data interface{} `json:"data"`
AdditionalProperties map[string]interface{}
}
@@ -600,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ConfigContextRequest) GetDataSource() NestedDataSourceRequest {
+func (o *ConfigContextRequest) GetDataSource() DataSourceRequest {
if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSourceRequest
+ var ret DataSourceRequest
return ret
}
return *o.DataSource
@@ -610,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() NestedDataSourceRequest {
// 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() (*NestedDataSourceRequest, bool) {
+func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -626,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given NestedDataSourceRequest and assigns it to the DataSource field.
-func (o *ConfigContextRequest) SetDataSource(v NestedDataSourceRequest) {
+// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field.
+func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) {
o.DataSource = &v
}
diff --git a/model_config_template.go b/model_config_template.go
index 34ce01ec34..3995c0dbd7 100644
--- a/model_config_template.go
+++ b/model_config_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time
@@ -21,23 +20,11 @@ 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"`
- // 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 *NestedDataSource `json:"data_source,omitempty"`
- // Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile *NestedDataFile `json:"data_file,omitempty"`
- DataSynced NullableTime `json:"data_synced"`
- Tags []NestedTag `json:"tags,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,17 +34,12 @@ 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, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate {
+func NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate {
this := ConfigTemplate{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.TemplateCode = templateCode
- this.DataPath = dataPath
- this.DataSynced = dataSynced
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -197,261 +179,6 @@ 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() NestedDataSource {
- if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSource
- 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() (*NestedDataSource, 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 NestedDataSource and assigns it to the DataSource field.
-func (o *ConfigTemplate) SetDataSource(v NestedDataSource) {
- 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() NestedDataFile {
- if o == nil || IsNil(o.DataFile) {
- var ret NestedDataFile
- 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() (*NestedDataFile, 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 NestedDataFile and assigns it to the DataFile field.
-func (o *ConfigTemplate) SetDataFile(v NestedDataFile) {
- o.DataFile = &v
-}
-
-// GetDataSynced returns the DataSynced field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *ConfigTemplate) GetDataSynced() time.Time {
- if o == nil || o.DataSynced.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.DataSynced.Get()
-}
-
-// GetDataSyncedOk returns a tuple with the DataSynced 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 *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataSynced.Get(), o.DataSynced.IsSet()
-}
-
-// SetDataSynced sets field value
-func (o *ConfigTemplate) SetDataSynced(v time.Time) {
- o.DataSynced.Set(&v)
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *ConfigTemplate) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *ConfigTemplate) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *ConfigTemplate) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *ConfigTemplate) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o ConfigTemplate) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -469,23 +196,6 @@ func (o ConfigTemplate) 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
- }
- toSerialize["data_path"] = o.DataPath
- if !IsNil(o.DataFile) {
- toSerialize["data_file"] = o.DataFile
- }
- toSerialize["data_synced"] = o.DataSynced.Get()
- if !IsNil(o.Tags) {
- toSerialize["tags"] = o.Tags
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -503,11 +213,6 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "template_code",
- "data_path",
- "data_synced",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -542,15 +247,6 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_config_template_request.go b/model_config_template_request.go
index b346a63760..916c0e4912 100644
--- a/model_config_template_request.go
+++ b/model_config_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,8 @@ 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"`
- // 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 *NestedDataSourceRequest `json:"data_source,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -37,10 +31,9 @@ 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, templateCode string) *ConfigTemplateRequest {
+func NewConfigTemplateRequest(name string) *ConfigTemplateRequest {
this := ConfigTemplateRequest{}
this.Name = name
- this.TemplateCode = templateCode
return &this
}
@@ -108,127 +101,6 @@ 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() NestedDataSourceRequest {
- if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSourceRequest
- 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() (*NestedDataSourceRequest, 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 NestedDataSourceRequest and assigns it to the DataSource field.
-func (o *ConfigTemplateRequest) SetDataSource(v NestedDataSourceRequest) {
- 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()
if err != nil {
@@ -243,16 +115,6 @@ 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
@@ -267,7 +129,6 @@ 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",
}
allProperties := make(map[string]interface{})
@@ -299,10 +160,6 @@ 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
}
diff --git a/model_console_port.go b/model_console_port.go
index fb2de7859f..c931788c33 100644
--- a/model_console_port.go
+++ b/model_console_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,22 +21,22 @@ var _ MappedNullable = &ConsolePort{}
// ConsolePort Adds support for custom fields and tags.
type ConsolePort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Module NullableModule `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"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
ConnectedEndpoints []interface{} `json:"connected_endpoints"`
@@ -56,7 +56,7 @@ 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 NestedDevice, name string, cable NullableNestedCable, 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 Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort {
this := ConsolePort{}
this.Id = id
this.Url = url
@@ -157,9 +157,9 @@ func (o *ConsolePort) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *ConsolePort) GetDevice() NestedDevice {
+func (o *ConsolePort) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -168,7 +168,7 @@ func (o *ConsolePort) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsolePort) GetDeviceOk() (*NestedDevice, bool) {
+func (o *ConsolePort) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -176,14 +176,14 @@ func (o *ConsolePort) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *ConsolePort) SetDevice(v NestedDevice) {
+func (o *ConsolePort) SetDevice(v Device) {
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() ComponentNestedModule {
+func (o *ConsolePort) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -192,7 +192,7 @@ func (o *ConsolePort) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *ConsolePort) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -208,8 +208,8 @@ func (o *ConsolePort) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *ConsolePort) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *ConsolePort) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -419,10 +419,10 @@ func (o *ConsolePort) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *ConsolePort) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -432,7 +432,7 @@ func (o *ConsolePort) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *ConsolePort) GetCableOk() (*NestedCable, bool) {
+func (o *ConsolePort) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -440,7 +440,7 @@ func (o *ConsolePort) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *ConsolePort) SetCable(v NestedCable) {
+func (o *ConsolePort) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_console_port_request.go b/model_console_port_request.go
index f0d1c73817..02bc1a10aa 100644
--- a/model_console_port_request.go
+++ b/model_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &ConsolePortRequest{}
// ConsolePortRequest Adds support for custom fields and tags.
type ConsolePortRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *ConsolePortTypeValue `json:"type,omitempty"`
@@ -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 NestedDeviceRequest, name string) *ConsolePortRequest {
+func NewConsolePortRequest(device DeviceRequest, 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() NestedDeviceRequest {
+func (o *ConsolePortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsolePortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ConsolePortRequest) SetDevice(v NestedDeviceRequest) {
+func (o *ConsolePortRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
+func (o *ConsolePortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -92,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -108,8 +108,8 @@ func (o *ConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *ConsolePortRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *ConsolePortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go
index bbc13b9b45..c00a14247e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_speed.go b/model_console_port_speed.go
index d793a81a9a..e28484684d 100644
--- a/model_console_port_speed.go
+++ b/model_console_port_speed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go
index 8769177fa1..4a4aaa9755 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go
index 339187c372..814b669e04 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_template.go b/model_console_port_template.go
index 0f052711e0..804ed4efc0 100644
--- a/model_console_port_template.go
+++ b/model_console_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,11 +21,11 @@ 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 NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType NullableDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableModuleType `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
@@ -135,9 +135,9 @@ func (o *ConsolePortTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsolePortTemplate) GetDeviceType() NestedDeviceType {
+func (o *ConsolePortTemplate) GetDeviceType() DeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
return *o.DeviceType.Get()
@@ -146,7 +146,7 @@ func (o *ConsolePortTemplate) GetDeviceType() NestedDeviceType {
// 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() (*NestedDeviceType, bool) {
+func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -162,8 +162,8 @@ func (o *ConsolePortTemplate) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *ConsolePortTemplate) SetDeviceType(v NestedDeviceType) {
+// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field.
+func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) {
o.DeviceType.Set(&v)
}
@@ -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() NestedModuleType {
+func (o *ConsolePortTemplate) GetModuleType() ModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
+ var ret ModuleType
return ret
}
return *o.ModuleType.Get()
@@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() NestedModuleType {
// 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() (*NestedModuleType, bool) {
+func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) {
if o == nil {
return nil, false
}
@@ -205,8 +205,8 @@ func (o *ConsolePortTemplate) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *ConsolePortTemplate) SetModuleType(v NestedModuleType) {
+// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field.
+func (o *ConsolePortTemplate) SetModuleType(v ModuleType) {
o.ModuleType.Set(&v)
}
diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go
index aa9b95711d..e3f1100b75 100644
--- a/model_console_port_template_request.go
+++ b/model_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() NestedDeviceTypeRequest {
+func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// 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() (*NestedDeviceTypeRequest, bool) {
+func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *ConsolePortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() NestedModuleTypeRequest {
+func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() NestedModuleTypeRequest {
// 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() (*NestedModuleTypeRequest, bool) {
+func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *ConsolePortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_console_port_type.go b/model_console_port_type.go
index 0c27498524..9e92401fc2 100644
--- a/model_console_port_type.go
+++ b/model_console_port_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go
index ae1c9b218b..9e6a3ab15a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go
index 55673c7b7d..f9f68676da 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_console_server_port.go b/model_console_server_port.go
index 96253866a9..958e45db05 100644
--- a/model_console_server_port.go
+++ b/model_console_server_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,22 +21,22 @@ var _ MappedNullable = &ConsoleServerPort{}
// ConsoleServerPort Adds support for custom fields and tags.
type ConsoleServerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Module NullableModule `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"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
ConnectedEndpoints []interface{} `json:"connected_endpoints"`
@@ -56,7 +56,7 @@ 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 NestedDevice, name string, cable NullableNestedCable, 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 Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort {
this := ConsoleServerPort{}
this.Id = id
this.Url = url
@@ -157,9 +157,9 @@ func (o *ConsoleServerPort) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *ConsoleServerPort) GetDevice() NestedDevice {
+func (o *ConsoleServerPort) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -168,7 +168,7 @@ func (o *ConsoleServerPort) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsoleServerPort) GetDeviceOk() (*NestedDevice, bool) {
+func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -176,14 +176,14 @@ func (o *ConsoleServerPort) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *ConsoleServerPort) SetDevice(v NestedDevice) {
+func (o *ConsoleServerPort) SetDevice(v Device) {
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() ComponentNestedModule {
+func (o *ConsoleServerPort) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -192,7 +192,7 @@ func (o *ConsoleServerPort) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *ConsoleServerPort) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -208,8 +208,8 @@ func (o *ConsoleServerPort) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *ConsoleServerPort) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *ConsoleServerPort) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -419,10 +419,10 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *ConsoleServerPort) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -432,7 +432,7 @@ func (o *ConsoleServerPort) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *ConsoleServerPort) GetCableOk() (*NestedCable, bool) {
+func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -440,7 +440,7 @@ func (o *ConsoleServerPort) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *ConsoleServerPort) SetCable(v NestedCable) {
+func (o *ConsoleServerPort) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go
index b2d8f97247..a51f7782ac 100644
--- a/model_console_server_port_request.go
+++ b/model_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &ConsoleServerPortRequest{}
// ConsoleServerPortRequest Adds support for custom fields and tags.
type ConsoleServerPortRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *ConsolePortTypeValue `json:"type,omitempty"`
@@ -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 NestedDeviceRequest, name string) *ConsoleServerPortRequest {
+func NewConsoleServerPortRequest(device DeviceRequest, 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() NestedDeviceRequest {
+func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ConsoleServerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ConsoleServerPortRequest) SetDevice(v NestedDeviceRequest) {
+func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
+func (o *ConsoleServerPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -92,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -108,8 +108,8 @@ func (o *ConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *ConsoleServerPortRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go
index 223e58001f..1ab6eee1c6 100644
--- a/model_console_server_port_template.go
+++ b/model_console_server_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,11 +21,11 @@ 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 NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType NullableDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableModuleType `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
@@ -135,9 +135,9 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *ConsoleServerPortTemplate) GetDeviceType() NestedDeviceType {
+func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
return *o.DeviceType.Get()
@@ -146,7 +146,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() NestedDeviceType {
// 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() (*NestedDeviceType, bool) {
+func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -162,8 +162,8 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *ConsoleServerPortTemplate) SetDeviceType(v NestedDeviceType) {
+// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field.
+func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) {
o.DeviceType.Set(&v)
}
@@ -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() NestedModuleType {
+func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
+ var ret ModuleType
return ret
}
return *o.ModuleType.Get()
@@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() NestedModuleType {
// 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() (*NestedModuleType, bool) {
+func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) {
if o == nil {
return nil, false
}
@@ -205,8 +205,8 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *ConsoleServerPortTemplate) SetModuleType(v NestedModuleType) {
+// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field.
+func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) {
o.ModuleType.Set(&v)
}
diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go
index 5c2bdffb6e..bcbbf7a821 100644
--- a/model_console_server_port_template_request.go
+++ b/model_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() NestedDeviceTypeRequest {
+func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() NestedDeviceTypeReque
// 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() (*NestedDeviceTypeRequest, bool) {
+func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() NestedModuleTypeRequest {
+func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() NestedModuleTypeReque
// 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() (*NestedModuleTypeRequest, bool) {
+func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *ConsoleServerPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_contact.go b/model_contact.go
index 9c56a97ed1..74e7412d70 100644
--- a/model_contact.go
+++ b/model_contact.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Contact type satisfies the MappedNullable interface at compile time
@@ -21,22 +20,11 @@ var _ MappedNullable = &Contact{}
// Contact Adds support for custom fields and tags.
type Contact struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Group NullableNestedContactGroup `json:"group,omitempty"`
- Name string `json:"name"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,14 +34,12 @@ type _Contact Contact
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewContact(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *Contact {
+func NewContact(id int32, url string, display string, name string) *Contact {
this := Contact{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -137,49 +123,6 @@ 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() NestedContactGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedContactGroup
- 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() (*NestedContactGroup, 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 NullableNestedContactGroup and assigns it to the Group field.
-func (o *Contact) SetGroup(v NestedContactGroup) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *Contact) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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 {
@@ -204,166 +147,6 @@ 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) {
@@ -396,154 +179,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Contact) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Contact) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Contact) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Contact) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Contact) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Contact) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o Contact) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -557,39 +192,10 @@ func (o Contact) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -607,8 +213,6 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -641,19 +245,8 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "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
}
diff --git a/model_contact_assignment.go b/model_contact_assignment.go
index 404978c0e4..a623126393 100644
--- a/model_contact_assignment.go
+++ b/model_contact_assignment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,11 +24,11 @@ type ContactAssignment struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- ContentType string `json:"content_type"`
+ ObjectType string `json:"object_type"`
ObjectId int64 `json:"object_id"`
Object map[string]interface{} `json:"object"`
- Contact NestedContact `json:"contact"`
- Role NullableNestedContactRole `json:"role,omitempty"`
+ 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"`
@@ -43,12 +43,12 @@ 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, contentType string, objectId int64, object map[string]interface{}, contact NestedContact, created NullableTime, lastUpdated NullableTime) *ContactAssignment {
+func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment {
this := ContactAssignment{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentType = contentType
+ this.ObjectType = objectType
this.ObjectId = objectId
this.Object = object
this.Contact = contact
@@ -137,28 +137,28 @@ func (o *ContactAssignment) SetDisplay(v string) {
o.Display = v
}
-// GetContentType returns the ContentType field value
-func (o *ContactAssignment) GetContentType() string {
+// GetObjectType returns the ObjectType field value
+func (o *ContactAssignment) GetObjectType() string {
if o == nil {
var ret string
return ret
}
- return o.ContentType
+ return o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value
+// GetObjectTypeOk returns a tuple with the ObjectType field value
// and a boolean to check if the value has been set.
-func (o *ContactAssignment) GetContentTypeOk() (*string, bool) {
+func (o *ContactAssignment) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return &o.ContentType, true
+ return &o.ObjectType, true
}
-// SetContentType sets field value
-func (o *ContactAssignment) SetContentType(v string) {
- o.ContentType = v
+// SetObjectType sets field value
+func (o *ContactAssignment) SetObjectType(v string) {
+ o.ObjectType = v
}
// GetObjectId returns the ObjectId field value
@@ -210,9 +210,9 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) {
}
// GetContact returns the Contact field value
-func (o *ContactAssignment) GetContact() NestedContact {
+func (o *ContactAssignment) GetContact() Contact {
if o == nil {
- var ret NestedContact
+ var ret Contact
return ret
}
@@ -221,7 +221,7 @@ func (o *ContactAssignment) GetContact() NestedContact {
// GetContactOk returns a tuple with the Contact field value
// and a boolean to check if the value has been set.
-func (o *ContactAssignment) GetContactOk() (*NestedContact, bool) {
+func (o *ContactAssignment) GetContactOk() (*Contact, bool) {
if o == nil {
return nil, false
}
@@ -229,14 +229,14 @@ func (o *ContactAssignment) GetContactOk() (*NestedContact, bool) {
}
// SetContact sets field value
-func (o *ContactAssignment) SetContact(v NestedContact) {
+func (o *ContactAssignment) SetContact(v Contact) {
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() NestedContactRole {
+func (o *ContactAssignment) GetRole() ContactRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedContactRole
+ var ret ContactRole
return ret
}
return *o.Role.Get()
@@ -245,7 +245,7 @@ func (o *ContactAssignment) GetRole() NestedContactRole {
// 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() (*NestedContactRole, bool) {
+func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool) {
if o == nil {
return nil, false
}
@@ -261,8 +261,8 @@ func (o *ContactAssignment) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedContactRole and assigns it to the Role field.
-func (o *ContactAssignment) SetRole(v NestedContactRole) {
+// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field.
+func (o *ContactAssignment) SetRole(v ContactRole) {
o.Role.Set(&v)
}
@@ -437,7 +437,7 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_type"] = o.ContentType
+ toSerialize["object_type"] = o.ObjectType
toSerialize["object_id"] = o.ObjectId
toSerialize["object"] = o.Object
toSerialize["contact"] = o.Contact
@@ -471,7 +471,7 @@ func (o *ContactAssignment) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_type",
+ "object_type",
"object_id",
"object",
"contact",
@@ -509,7 +509,7 @@ func (o *ContactAssignment) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "object")
delete(additionalProperties, "contact")
diff --git a/model_contact_assignment_priority.go b/model_contact_assignment_priority.go
index efae54b5ab..6e2052b8de 100644
--- a/model_contact_assignment_priority.go
+++ b/model_contact_assignment_priority.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_contact_assignment_priority_label.go b/model_contact_assignment_priority_label.go
index 221218bc45..686c37a822 100644
--- a/model_contact_assignment_priority_label.go
+++ b/model_contact_assignment_priority_label.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_contact_assignment_priority_value.go b/model_contact_assignment_priority_value.go
index 3e43fb50dc..19d96ef34f 100644
--- a/model_contact_assignment_priority_value.go
+++ b/model_contact_assignment_priority_value.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go
index c85a3da52a..8fb3e6e652 100644
--- a/model_contact_assignment_request.go
+++ b/model_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 {
- ContentType string `json:"content_type"`
- ObjectId int64 `json:"object_id"`
- Contact NestedContactRequest `json:"contact"`
- Role NullableNestedContactRoleRequest `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 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"`
AdditionalProperties map[string]interface{}
}
@@ -36,9 +36,9 @@ 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(contentType string, objectId int64, contact NestedContactRequest) *ContactAssignmentRequest {
+func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest {
this := ContactAssignmentRequest{}
- this.ContentType = contentType
+ this.ObjectType = objectType
this.ObjectId = objectId
this.Contact = contact
return &this
@@ -52,28 +52,28 @@ func NewContactAssignmentRequestWithDefaults() *ContactAssignmentRequest {
return &this
}
-// GetContentType returns the ContentType field value
-func (o *ContactAssignmentRequest) GetContentType() string {
+// GetObjectType returns the ObjectType field value
+func (o *ContactAssignmentRequest) GetObjectType() string {
if o == nil {
var ret string
return ret
}
- return o.ContentType
+ return o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value
+// GetObjectTypeOk returns a tuple with the ObjectType field value
// and a boolean to check if the value has been set.
-func (o *ContactAssignmentRequest) GetContentTypeOk() (*string, bool) {
+func (o *ContactAssignmentRequest) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return &o.ContentType, true
+ return &o.ObjectType, true
}
-// SetContentType sets field value
-func (o *ContactAssignmentRequest) SetContentType(v string) {
- o.ContentType = v
+// SetObjectType sets field value
+func (o *ContactAssignmentRequest) SetObjectType(v string) {
+ o.ObjectType = v
}
// GetObjectId returns the ObjectId field value
@@ -101,9 +101,9 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) {
}
// GetContact returns the Contact field value
-func (o *ContactAssignmentRequest) GetContact() NestedContactRequest {
+func (o *ContactAssignmentRequest) GetContact() ContactRequest {
if o == nil {
- var ret NestedContactRequest
+ var ret ContactRequest
return ret
}
@@ -112,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() NestedContactRequest {
// GetContactOk returns a tuple with the Contact field value
// and a boolean to check if the value has been set.
-func (o *ContactAssignmentRequest) GetContactOk() (*NestedContactRequest, bool) {
+func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) {
if o == nil {
return nil, false
}
@@ -120,14 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*NestedContactRequest, bool)
}
// SetContact sets field value
-func (o *ContactAssignmentRequest) SetContact(v NestedContactRequest) {
+func (o *ContactAssignmentRequest) SetContact(v ContactRequest) {
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() NestedContactRoleRequest {
+func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedContactRoleRequest
+ var ret ContactRoleRequest
return ret
}
return *o.Role.Get()
@@ -136,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() NestedContactRoleRequest {
// 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() (*NestedContactRoleRequest, bool) {
+func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -152,8 +152,8 @@ func (o *ContactAssignmentRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedContactRoleRequest and assigns it to the Role field.
-func (o *ContactAssignmentRequest) SetRole(v NestedContactRoleRequest) {
+// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field.
+func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) {
o.Role.Set(&v)
}
@@ -273,7 +273,7 @@ func (o ContactAssignmentRequest) MarshalJSON() ([]byte, error) {
func (o ContactAssignmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_type"] = o.ContentType
+ toSerialize["object_type"] = o.ObjectType
toSerialize["object_id"] = o.ObjectId
toSerialize["contact"] = o.Contact
if o.Role.IsSet() {
@@ -301,7 +301,7 @@ func (o *ContactAssignmentRequest) 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{
- "content_type",
+ "object_type",
"object_id",
"contact",
}
@@ -333,7 +333,7 @@ func (o *ContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
diff --git a/model_contact_group.go b/model_contact_group.go
index 5bb8bae3c9..12c15cf45e 100644
--- a/model_contact_group.go
+++ b/model_contact_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_contact_group_request.go b/model_contact_group_request.go
index c1e1ecbe51..9aea2147b5 100644
--- a/model_contact_group_request.go
+++ b/model_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_contact_request.go b/model_contact_request.go
index 0da3c95a0e..bb1e2df509 100644
--- a/model_contact_request.go
+++ b/model_contact_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,8 @@ var _ MappedNullable = &ContactRequest{}
// ContactRequest Adds support for custom fields and tags.
type ContactRequest struct {
- Group NullableNestedContactGroupRequest `json:"group,omitempty"`
- Name string `json:"name"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -54,49 +45,6 @@ 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() NestedContactGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedContactGroupRequest
- 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() (*NestedContactGroupRequest, 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 NullableNestedContactGroupRequest and assigns it to the Group field.
-func (o *ContactRequest) SetGroup(v NestedContactGroupRequest) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *ContactRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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 {
@@ -121,166 +69,6 @@ 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) {
@@ -313,102 +101,6 @@ 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()
if err != nil {
@@ -419,37 +111,10 @@ 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
@@ -493,17 +158,8 @@ 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
}
diff --git a/model_contact_role.go b/model_contact_role.go
index 9b9ef666fc..bb4b6f62b6 100644
--- a/model_contact_role.go
+++ b/model_contact_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the ContactRole type satisfies the MappedNullable interface at compile time
@@ -21,16 +20,12 @@ var _ MappedNullable = &ContactRole{}
// ContactRole Adds support for custom fields and tags.
type ContactRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,15 +35,13 @@ type _ContactRole ContactRole
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewContactRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *ContactRole {
+func NewContactRole(id int32, url string, display string, name string, slug string) *ContactRole {
this := ContactRole{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -212,122 +205,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *ContactRole) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ContactRole) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *ContactRole) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *ContactRole) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *ContactRole) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o ContactRole) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -346,14 +223,6 @@ func (o ContactRole) 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -372,8 +241,6 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -409,10 +276,6 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_contact_role_request.go b/model_contact_role_request.go
index 7d65f80ac8..c602937805 100644
--- a/model_contact_role_request.go
+++ b/model_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,9 @@ var _ MappedNullable = &ContactRoleRequest{}
// ContactRoleRequest Adds support for custom fields and tags.
type ContactRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -129,70 +127,6 @@ 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()
if err != nil {
@@ -208,12 +142,6 @@ 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
@@ -261,8 +189,6 @@ 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
}
diff --git a/model_custom_field.go b/model_custom_field.go
index cfe6778fbb..aea0cf477b 100644
--- a/model_custom_field.go
+++ b/model_custom_field.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ var _ MappedNullable = &CustomField{}
// CustomField Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomField struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ContentTypes []string `json:"content_types"`
- Type CustomFieldType `json:"type"`
- ObjectType NullableString `json:"object_type,omitempty"`
- DataType string `json:"data_type"`
+ 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"`
// Internal field name
Name string `json:"name"`
// Name of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -53,10 +53,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 NullableNestedCustomFieldChoiceSet `json:"choice_set,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -66,12 +67,12 @@ 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, contentTypes []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, created NullableTime, lastUpdated NullableTime) *CustomField {
this := CustomField{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Type = type_
this.DataType = dataType
this.Name = name
@@ -160,28 +161,28 @@ func (o *CustomField) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *CustomField) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *CustomField) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *CustomField) GetContentTypesOk() ([]string, bool) {
+func (o *CustomField) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *CustomField) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *CustomField) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetType returns the Type field value
@@ -208,47 +209,47 @@ func (o *CustomField) SetType(v CustomFieldType) {
o.Type = v
}
-// GetObjectType returns the ObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomField) GetObjectType() string {
- if o == nil || IsNil(o.ObjectType.Get()) {
+// 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()) {
var ret string
return ret
}
- return *o.ObjectType.Get()
+ return *o.RelatedObjectType.Get()
}
-// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
+// GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field value if set, nil otherwise
// and a 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) GetObjectTypeOk() (*string, bool) {
+func (o *CustomField) GetRelatedObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.ObjectType.Get(), o.ObjectType.IsSet()
+ return o.RelatedObjectType.Get(), o.RelatedObjectType.IsSet()
}
-// HasObjectType returns a boolean if a field has been set.
-func (o *CustomField) HasObjectType() bool {
- if o != nil && o.ObjectType.IsSet() {
+// HasRelatedObjectType returns a boolean if a field has been set.
+func (o *CustomField) HasRelatedObjectType() bool {
+ if o != nil && o.RelatedObjectType.IsSet() {
return true
}
return false
}
-// SetObjectType gets a reference to the given NullableString and assigns it to the ObjectType field.
-func (o *CustomField) SetObjectType(v string) {
- o.ObjectType.Set(&v)
+// SetRelatedObjectType gets a reference to the given NullableString and assigns it to the RelatedObjectType field.
+func (o *CustomField) SetRelatedObjectType(v string) {
+ o.RelatedObjectType.Set(&v)
}
-// SetObjectTypeNil sets the value for ObjectType to be an explicit nil
-func (o *CustomField) SetObjectTypeNil() {
- o.ObjectType.Set(nil)
+// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
+func (o *CustomField) SetRelatedObjectTypeNil() {
+ o.RelatedObjectType.Set(nil)
}
-// UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
-func (o *CustomField) UnsetObjectType() {
- o.ObjectType.Unset()
+// UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
+func (o *CustomField) UnsetRelatedObjectType() {
+ o.RelatedObjectType.Unset()
}
// GetDataType returns the DataType field value
@@ -771,9 +772,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() NestedCustomFieldChoiceSet {
+func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret NestedCustomFieldChoiceSet
+ var ret CustomFieldChoiceSet
return ret
}
return *o.ChoiceSet.Get()
@@ -782,7 +783,7 @@ func (o *CustomField) GetChoiceSet() NestedCustomFieldChoiceSet {
// 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() (*NestedCustomFieldChoiceSet, bool) {
+func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) {
if o == nil {
return nil, false
}
@@ -798,8 +799,8 @@ func (o *CustomField) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableNestedCustomFieldChoiceSet and assigns it to the ChoiceSet field.
-func (o *CustomField) SetChoiceSet(v NestedCustomFieldChoiceSet) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field.
+func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) {
o.ChoiceSet.Set(&v)
}
@@ -813,6 +814,38 @@ func (o *CustomField) UnsetChoiceSet() {
o.ChoiceSet.Unset()
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *CustomField) 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 *CustomField) 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 *CustomField) 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 *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
func (o *CustomField) GetCreated() time.Time {
@@ -878,10 +911,10 @@ func (o CustomField) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["type"] = o.Type
- if o.ObjectType.IsSet() {
- toSerialize["object_type"] = o.ObjectType.Get()
+ if o.RelatedObjectType.IsSet() {
+ toSerialize["related_object_type"] = o.RelatedObjectType.Get()
}
toSerialize["data_type"] = o.DataType
toSerialize["name"] = o.Name
@@ -930,6 +963,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) {
if o.ChoiceSet.IsSet() {
toSerialize["choice_set"] = o.ChoiceSet.Get()
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
toSerialize["created"] = o.Created.Get()
toSerialize["last_updated"] = o.LastUpdated.Get()
@@ -948,7 +984,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_types",
+ "object_types",
"type",
"data_type",
"name",
@@ -986,9 +1022,9 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "type")
- delete(additionalProperties, "object_type")
+ delete(additionalProperties, "related_object_type")
delete(additionalProperties, "data_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
@@ -1006,6 +1042,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "validation_maximum")
delete(additionalProperties, "validation_regex")
delete(additionalProperties, "choice_set")
+ delete(additionalProperties, "comments")
delete(additionalProperties, "created")
delete(additionalProperties, "last_updated")
o.AdditionalProperties = additionalProperties
diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go
index 70750fba0e..7926b715a7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go
index 493e16a5cc..387404fe08 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go
index 74483e996b..bea7b22b52 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go
index 454e21d0ca..2e891195a5 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go
index 8f9f8bbb4e..9b0c67818c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go
index 58c5e7829f..ec27bbfe0c 100644
--- a/model_custom_field_filter_logic.go
+++ b/model_custom_field_filter_logic.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go
index 482f5190bf..55b62d6da0 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go
index b66250314b..b99381d64f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_request.go b/model_custom_field_request.go
index 0a61e02b01..e62680adbc 100644
--- a/model_custom_field_request.go
+++ b/model_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ 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 {
- ContentTypes []string `json:"content_types"`
- Type CustomFieldTypeValue `json:"type"`
- ObjectType NullableString `json:"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 of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -48,8 +48,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 NullableNestedCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +60,9 @@ type _CustomFieldRequest CustomFieldRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCustomFieldRequest(contentTypes []string, type_ CustomFieldTypeValue, name string) *CustomFieldRequest {
+func NewCustomFieldRequest(objectTypes []string, type_ CustomFieldTypeValue, name string) *CustomFieldRequest {
this := CustomFieldRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Type = type_
this.Name = name
return &this
@@ -75,28 +76,28 @@ func NewCustomFieldRequestWithDefaults() *CustomFieldRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *CustomFieldRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *CustomFieldRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *CustomFieldRequest) GetContentTypesOk() ([]string, bool) {
+func (o *CustomFieldRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *CustomFieldRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *CustomFieldRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetType returns the Type field value
@@ -123,47 +124,47 @@ func (o *CustomFieldRequest) SetType(v CustomFieldTypeValue) {
o.Type = v
}
-// GetObjectType returns the ObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *CustomFieldRequest) GetObjectType() string {
- if o == nil || IsNil(o.ObjectType.Get()) {
+// 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()) {
var ret string
return ret
}
- return *o.ObjectType.Get()
+ return *o.RelatedObjectType.Get()
}
-// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
+// GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field value if set, nil otherwise
// and a 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) GetObjectTypeOk() (*string, bool) {
+func (o *CustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.ObjectType.Get(), o.ObjectType.IsSet()
+ return o.RelatedObjectType.Get(), o.RelatedObjectType.IsSet()
}
-// HasObjectType returns a boolean if a field has been set.
-func (o *CustomFieldRequest) HasObjectType() bool {
- if o != nil && o.ObjectType.IsSet() {
+// HasRelatedObjectType returns a boolean if a field has been set.
+func (o *CustomFieldRequest) HasRelatedObjectType() bool {
+ if o != nil && o.RelatedObjectType.IsSet() {
return true
}
return false
}
-// SetObjectType gets a reference to the given NullableString and assigns it to the ObjectType field.
-func (o *CustomFieldRequest) SetObjectType(v string) {
- o.ObjectType.Set(&v)
+// SetRelatedObjectType gets a reference to the given NullableString and assigns it to the RelatedObjectType field.
+func (o *CustomFieldRequest) SetRelatedObjectType(v string) {
+ o.RelatedObjectType.Set(&v)
}
-// SetObjectTypeNil sets the value for ObjectType to be an explicit nil
-func (o *CustomFieldRequest) SetObjectTypeNil() {
- o.ObjectType.Set(nil)
+// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
+func (o *CustomFieldRequest) SetRelatedObjectTypeNil() {
+ o.RelatedObjectType.Set(nil)
}
-// UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
-func (o *CustomFieldRequest) UnsetObjectType() {
- o.ObjectType.Unset()
+// UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
+func (o *CustomFieldRequest) UnsetRelatedObjectType() {
+ o.RelatedObjectType.Unset()
}
// GetName returns the Name field value
@@ -662,9 +663,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() NestedCustomFieldChoiceSetRequest {
+func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret NestedCustomFieldChoiceSetRequest
+ var ret CustomFieldChoiceSetRequest
return ret
}
return *o.ChoiceSet.Get()
@@ -673,7 +674,7 @@ func (o *CustomFieldRequest) GetChoiceSet() NestedCustomFieldChoiceSetRequest {
// 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() (*NestedCustomFieldChoiceSetRequest, bool) {
+func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) {
if o == nil {
return nil, false
}
@@ -689,8 +690,8 @@ func (o *CustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableNestedCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
-func (o *CustomFieldRequest) SetChoiceSet(v NestedCustomFieldChoiceSetRequest) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
+func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) {
o.ChoiceSet.Set(&v)
}
@@ -704,6 +705,38 @@ func (o *CustomFieldRequest) UnsetChoiceSet() {
o.ChoiceSet.Unset()
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *CustomFieldRequest) 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 *CustomFieldRequest) 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 *CustomFieldRequest) 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 *CustomFieldRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o CustomFieldRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -714,10 +747,10 @@ func (o CustomFieldRequest) MarshalJSON() ([]byte, error) {
func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["type"] = o.Type
- if o.ObjectType.IsSet() {
- toSerialize["object_type"] = o.ObjectType.Get()
+ if o.RelatedObjectType.IsSet() {
+ toSerialize["related_object_type"] = o.RelatedObjectType.Get()
}
toSerialize["name"] = o.Name
if !IsNil(o.Label) {
@@ -765,6 +798,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) {
if o.ChoiceSet.IsSet() {
toSerialize["choice_set"] = o.ChoiceSet.Get()
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -778,7 +814,7 @@ func (o *CustomFieldRequest) 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{
- "content_types",
+ "object_types",
"type",
"name",
}
@@ -810,9 +846,9 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "type")
- delete(additionalProperties, "object_type")
+ delete(additionalProperties, "related_object_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "group_name")
@@ -829,6 +865,7 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "validation_maximum")
delete(additionalProperties, "validation_regex")
delete(additionalProperties, "choice_set")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_custom_field_type.go b/model_custom_field_type.go
index 6d0c83f424..a3be15abff 100644
--- a/model_custom_field_type.go
+++ b/model_custom_field_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go
index ccdab9316c..4e8cbc627a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go
index 0f1790547c..097829be52 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go
index 16523aa3e7..8d3e41d9a2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go
index 1ab296f745..6c09b4063d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go
index 6daa8f7c40..b758a54553 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go
index 8d58e76818..d643bce9c8 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go
index bdf147009c..b66ef1e2bb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go
index 045e6fca2f..d9f11b99bb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_link.go b/model_custom_link.go
index c6a524e087..1de90af8a9 100644
--- a/model_custom_link.go
+++ b/model_custom_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ 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"`
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectTypes []string `json:"object_types"`
+ 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
@@ -48,12 +48,12 @@ 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, contentTypes []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, created NullableTime, lastUpdated NullableTime) *CustomLink {
this := CustomLink{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.LinkText = linkText
this.LinkUrl = linkUrl
@@ -142,28 +142,28 @@ func (o *CustomLink) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *CustomLink) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *CustomLink) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *CustomLink) GetContentTypesOk() ([]string, bool) {
+func (o *CustomLink) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *CustomLink) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *CustomLink) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -463,7 +463,7 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
@@ -500,7 +500,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_types",
+ "object_types",
"name",
"link_text",
"link_url",
@@ -538,7 +538,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
delete(additionalProperties, "link_text")
diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go
index f947c73368..50fd2a8f1f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_custom_link_request.go b/model_custom_link_request.go
index 231f7d2210..6de4bbfdb8 100644
--- a/model_custom_link_request.go
+++ b/model_custom_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &CustomLinkRequest{}
// CustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type CustomLinkRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
+ ObjectTypes []string `json:"object_types"`
+ 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
@@ -42,9 +42,9 @@ type _CustomLinkRequest CustomLinkRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCustomLinkRequest(contentTypes []string, name string, linkText string, linkUrl string) *CustomLinkRequest {
+func NewCustomLinkRequest(objectTypes []string, name string, linkText string, linkUrl string) *CustomLinkRequest {
this := CustomLinkRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.LinkText = linkText
this.LinkUrl = linkUrl
@@ -59,28 +59,28 @@ func NewCustomLinkRequestWithDefaults() *CustomLinkRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *CustomLinkRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *CustomLinkRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *CustomLinkRequest) GetContentTypesOk() ([]string, bool) {
+func (o *CustomLinkRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *CustomLinkRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *CustomLinkRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -325,7 +325,7 @@ func (o CustomLinkRequest) MarshalJSON() ([]byte, error) {
func (o CustomLinkRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.Enabled) {
toSerialize["enabled"] = o.Enabled
@@ -357,7 +357,7 @@ func (o *CustomLinkRequest) 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{
- "content_types",
+ "object_types",
"name",
"link_text",
"link_url",
@@ -390,7 +390,7 @@ func (o *CustomLinkRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
delete(additionalProperties, "link_text")
diff --git a/model_dashboard.go b/model_dashboard.go
index e2f6962022..5f90d03d61 100644
--- a/model_dashboard.go
+++ b/model_dashboard.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_dashboard_request.go b/model_dashboard_request.go
index c9f05f2dc0..800dcc04ea 100644
--- a/model_dashboard_request.go
+++ b/model_dashboard_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_data_file.go b/model_data_file.go
index 1db62e4e00..53adc911d4 100644
--- a/model_data_file.go
+++ b/model_data_file.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ var _ MappedNullable = &DataFile{}
// DataFile Adds support for custom fields and tags.
type DataFile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Source NestedDataSource `json:"source"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Source DataSource `json:"source"`
// File path relative to the data source's root
Path string `json:"path"`
LastUpdated time.Time `json:"last_updated"`
@@ -40,7 +40,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 NestedDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile {
+func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile {
this := DataFile{}
this.Id = id
this.Url = url
@@ -134,9 +134,9 @@ func (o *DataFile) SetDisplay(v string) {
}
// GetSource returns the Source field value
-func (o *DataFile) GetSource() NestedDataSource {
+func (o *DataFile) GetSource() DataSource {
if o == nil {
- var ret NestedDataSource
+ var ret DataSource
return ret
}
@@ -145,7 +145,7 @@ func (o *DataFile) GetSource() NestedDataSource {
// GetSourceOk returns a tuple with the Source field value
// and a boolean to check if the value has been set.
-func (o *DataFile) GetSourceOk() (*NestedDataSource, bool) {
+func (o *DataFile) GetSourceOk() (*DataSource, bool) {
if o == nil {
return nil, false
}
@@ -153,7 +153,7 @@ func (o *DataFile) GetSourceOk() (*NestedDataSource, bool) {
}
// SetSource sets field value
-func (o *DataFile) SetSource(v NestedDataSource) {
+func (o *DataFile) SetSource(v DataSource) {
o.Source = v
}
diff --git a/model_data_source.go b/model_data_source.go
index ee42249659..2757ef5b20 100644
--- a/model_data_source.go
+++ b/model_data_source.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the DataSource type satisfies the MappedNullable interface at compile time
@@ -21,23 +20,11 @@ var _ MappedNullable = &DataSource{}
// DataSource Adds support for custom fields and tags.
type DataSource struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Type DataSourceType `json:"type"`
- SourceUrl string `json:"source_url"`
- Enabled *bool `json:"enabled,omitempty"`
- Status DataSourceStatus `json:"status"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Parameters 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"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- FileCount int32 `json:"file_count"`
+ 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{}
}
@@ -47,18 +34,12 @@ 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, created NullableTime, lastUpdated NullableTime, fileCount int32) *DataSource {
+func NewDataSource(id int32, url string, display string, name string) *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.Created = created
- this.LastUpdated = lastUpdated
- this.FileCount = fileCount
return &this
}
@@ -166,110 +147,6 @@ 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) {
@@ -302,211 +179,6 @@ func (o *DataSource) SetDescription(v string) {
o.Description = &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
-}
-
-// 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
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *DataSource) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DataSource) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *DataSource) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *DataSource) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *DataSource) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetFileCount returns the FileCount field value
-func (o *DataSource) GetFileCount() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.FileCount, true
-}
-
-// SetFileCount sets field value
-func (o *DataSource) SetFileCount(v int32) {
- o.FileCount = v
-}
-
func (o DataSource) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -521,30 +193,9 @@ func (o DataSource) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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 !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.CustomFields) {
- toSerialize["custom_fields"] = o.CustomFields
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["file_count"] = o.FileCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -562,12 +213,6 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "type",
- "source_url",
- "status",
- "created",
- "last_updated",
- "file_count",
}
allProperties := make(map[string]interface{})
@@ -601,18 +246,7 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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, "comments")
- delete(additionalProperties, "parameters")
- delete(additionalProperties, "ignore_rules")
- delete(additionalProperties, "custom_fields")
- delete(additionalProperties, "created")
- delete(additionalProperties, "last_updated")
- delete(additionalProperties, "file_count")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_data_source_request.go b/model_data_source_request.go
index cac1af21e5..356c146f75 100644
--- a/model_data_source_request.go
+++ b/model_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &DataSourceRequest{}
// DataSourceRequest Adds support for custom fields and tags.
type DataSourceRequest struct {
- Name string `json:"name"`
- Type DataSourceTypeValue `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 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"`
// Patterns (one per line) matching files to ignore when syncing
IgnoreRules *string `json:"ignore_rules,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -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_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest {
+func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest {
this := DataSourceRequest{}
this.Name = name
this.Type = type_
@@ -80,9 +80,9 @@ func (o *DataSourceRequest) SetName(v string) {
}
// GetType returns the Type field value
-func (o *DataSourceRequest) GetType() DataSourceTypeValue {
+func (o *DataSourceRequest) GetType() DataSourceRequestType {
if o == nil {
- var ret DataSourceTypeValue
+ var ret DataSourceRequestType
return ret
}
@@ -91,7 +91,7 @@ func (o *DataSourceRequest) GetType() DataSourceTypeValue {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) {
+func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) {
if o == nil {
return nil, false
}
@@ -99,7 +99,7 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) {
}
// SetType sets field value
-func (o *DataSourceRequest) SetType(v DataSourceTypeValue) {
+func (o *DataSourceRequest) SetType(v DataSourceRequestType) {
o.Type = v
}
diff --git a/model_data_source_request_type.go b/model_data_source_request_type.go
new file mode 100644
index 0000000000..b924aad2e9
--- /dev/null
+++ b/model_data_source_request_type.go
@@ -0,0 +1,112 @@
+/*
+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_data_source_status_label.go b/model_data_source_status_label.go
deleted file mode 100644
index 1ad63e062b..0000000000
--- a/model_data_source_status_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index efad5db523..0000000000
--- a/model_data_source_status_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 0ba7025887..0000000000
--- a/model_data_source_type.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index a9a251f888..0000000000
--- a/model_data_source_type_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 4f30858892..0000000000
--- a/model_data_source_type_value.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: 3.7.7 (3.7)
-*/
-
-// 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
new file mode 100644
index 0000000000..f19ebe5fef
--- /dev/null
+++ b/model_dcim_cables_list_length_unit_parameter.go
@@ -0,0 +1,118 @@
+/*
+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"
+)
+
+// DcimCablesListLengthUnitParameter the model 'DcimCablesListLengthUnitParameter'
+type DcimCablesListLengthUnitParameter string
+
+// List of dcim_cables_list_length_unit_parameter
+const (
+ DCIMCABLESLISTLENGTHUNITPARAMETER_CM DcimCablesListLengthUnitParameter = "cm"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_FT DcimCablesListLengthUnitParameter = "ft"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_IN DcimCablesListLengthUnitParameter = "in"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_KM DcimCablesListLengthUnitParameter = "km"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_M DcimCablesListLengthUnitParameter = "m"
+ DCIMCABLESLISTLENGTHUNITPARAMETER_MI DcimCablesListLengthUnitParameter = "mi"
+)
+
+// All allowed values of DcimCablesListLengthUnitParameter enum
+var AllowedDcimCablesListLengthUnitParameterEnumValues = []DcimCablesListLengthUnitParameter{
+ "cm",
+ "ft",
+ "in",
+ "km",
+ "m",
+ "mi",
+}
+
+func (v *DcimCablesListLengthUnitParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimCablesListLengthUnitParameter(value)
+ for _, existing := range AllowedDcimCablesListLengthUnitParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimCablesListLengthUnitParameter", value)
+}
+
+// NewDcimCablesListLengthUnitParameterFromValue returns a pointer to a valid DcimCablesListLengthUnitParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimCablesListLengthUnitParameterFromValue(v string) (*DcimCablesListLengthUnitParameter, error) {
+ ev := DcimCablesListLengthUnitParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimCablesListLengthUnitParameter: valid values are %v", v, AllowedDcimCablesListLengthUnitParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimCablesListLengthUnitParameter) IsValid() bool {
+ for _, existing := range AllowedDcimCablesListLengthUnitParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_cables_list_length_unit_parameter value
+func (v DcimCablesListLengthUnitParameter) Ptr() *DcimCablesListLengthUnitParameter {
+ return &v
+}
+
+type NullableDcimCablesListLengthUnitParameter struct {
+ value *DcimCablesListLengthUnitParameter
+ isSet bool
+}
+
+func (v NullableDcimCablesListLengthUnitParameter) Get() *DcimCablesListLengthUnitParameter {
+ return v.value
+}
+
+func (v *NullableDcimCablesListLengthUnitParameter) Set(val *DcimCablesListLengthUnitParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimCablesListLengthUnitParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimCablesListLengthUnitParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimCablesListLengthUnitParameter(val *DcimCablesListLengthUnitParameter) *NullableDcimCablesListLengthUnitParameter {
+ return &NullableDcimCablesListLengthUnitParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimCablesListLengthUnitParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimCablesListLengthUnitParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..7554c6357e
--- /dev/null
+++ b/model_dcim_console_port_templates_list_type_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// DcimConsolePortTemplatesListTypeParameter the model 'DcimConsolePortTemplatesListTypeParameter'
+type DcimConsolePortTemplatesListTypeParameter string
+
+// List of dcim_console_port_templates_list_type_parameter
+const (
+ DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimConsolePortTemplatesListTypeParameter = "Other"
+ DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_SERIAL DcimConsolePortTemplatesListTypeParameter = "Serial"
+ DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_USB DcimConsolePortTemplatesListTypeParameter = "USB"
+)
+
+// All allowed values of DcimConsolePortTemplatesListTypeParameter enum
+var AllowedDcimConsolePortTemplatesListTypeParameterEnumValues = []DcimConsolePortTemplatesListTypeParameter{
+ "Other",
+ "Serial",
+ "USB",
+}
+
+func (v *DcimConsolePortTemplatesListTypeParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimConsolePortTemplatesListTypeParameter(value)
+ for _, existing := range AllowedDcimConsolePortTemplatesListTypeParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimConsolePortTemplatesListTypeParameter", value)
+}
+
+// NewDcimConsolePortTemplatesListTypeParameterFromValue returns a pointer to a valid DcimConsolePortTemplatesListTypeParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimConsolePortTemplatesListTypeParameterFromValue(v string) (*DcimConsolePortTemplatesListTypeParameter, error) {
+ ev := DcimConsolePortTemplatesListTypeParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimConsolePortTemplatesListTypeParameter: valid values are %v", v, AllowedDcimConsolePortTemplatesListTypeParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimConsolePortTemplatesListTypeParameter) IsValid() bool {
+ for _, existing := range AllowedDcimConsolePortTemplatesListTypeParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_console_port_templates_list_type_parameter value
+func (v DcimConsolePortTemplatesListTypeParameter) Ptr() *DcimConsolePortTemplatesListTypeParameter {
+ return &v
+}
+
+type NullableDcimConsolePortTemplatesListTypeParameter struct {
+ value *DcimConsolePortTemplatesListTypeParameter
+ isSet bool
+}
+
+func (v NullableDcimConsolePortTemplatesListTypeParameter) Get() *DcimConsolePortTemplatesListTypeParameter {
+ return v.value
+}
+
+func (v *NullableDcimConsolePortTemplatesListTypeParameter) Set(val *DcimConsolePortTemplatesListTypeParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimConsolePortTemplatesListTypeParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimConsolePortTemplatesListTypeParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimConsolePortTemplatesListTypeParameter(val *DcimConsolePortTemplatesListTypeParameter) *NullableDcimConsolePortTemplatesListTypeParameter {
+ return &NullableDcimConsolePortTemplatesListTypeParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimConsolePortTemplatesListTypeParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimConsolePortTemplatesListTypeParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..1f1008b17c
--- /dev/null
+++ b/model_dcim_console_ports_list_speed_parameter.go
@@ -0,0 +1,122 @@
+/*
+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"
+)
+
+// DcimConsolePortsListSpeedParameter the model 'DcimConsolePortsListSpeedParameter'
+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
+)
+
+// All allowed values of DcimConsolePortsListSpeedParameter enum
+var AllowedDcimConsolePortsListSpeedParameterEnumValues = []DcimConsolePortsListSpeedParameter{
+ 115200,
+ 1200,
+ 19200,
+ 2400,
+ 38400,
+ 4800,
+ 57600,
+ 9600,
+}
+
+func (v *DcimConsolePortsListSpeedParameter) UnmarshalJSON(src []byte) error {
+ var value int32
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimConsolePortsListSpeedParameter(value)
+ for _, existing := range AllowedDcimConsolePortsListSpeedParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimConsolePortsListSpeedParameter", value)
+}
+
+// NewDcimConsolePortsListSpeedParameterFromValue returns a pointer to a valid DcimConsolePortsListSpeedParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimConsolePortsListSpeedParameterFromValue(v int32) (*DcimConsolePortsListSpeedParameter, error) {
+ ev := DcimConsolePortsListSpeedParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimConsolePortsListSpeedParameter: valid values are %v", v, AllowedDcimConsolePortsListSpeedParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimConsolePortsListSpeedParameter) IsValid() bool {
+ for _, existing := range AllowedDcimConsolePortsListSpeedParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_console_ports_list_speed_parameter value
+func (v DcimConsolePortsListSpeedParameter) Ptr() *DcimConsolePortsListSpeedParameter {
+ return &v
+}
+
+type NullableDcimConsolePortsListSpeedParameter struct {
+ value *DcimConsolePortsListSpeedParameter
+ isSet bool
+}
+
+func (v NullableDcimConsolePortsListSpeedParameter) Get() *DcimConsolePortsListSpeedParameter {
+ return v.value
+}
+
+func (v *NullableDcimConsolePortsListSpeedParameter) Set(val *DcimConsolePortsListSpeedParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimConsolePortsListSpeedParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimConsolePortsListSpeedParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimConsolePortsListSpeedParameter(val *DcimConsolePortsListSpeedParameter) *NullableDcimConsolePortsListSpeedParameter {
+ return &NullableDcimConsolePortsListSpeedParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimConsolePortsListSpeedParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimConsolePortsListSpeedParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..0d667f2249
--- /dev/null
+++ b/model_dcim_device_types_list_airflow_parameter.go
@@ -0,0 +1,120 @@
+/*
+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"
+)
+
+// DcimDeviceTypesListAirflowParameter the model 'DcimDeviceTypesListAirflowParameter'
+type DcimDeviceTypesListAirflowParameter string
+
+// List of dcim_device_types_list_airflow_parameter
+const (
+ 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_REAR_TO_FRONT DcimDeviceTypesListAirflowParameter = "rear-to-front"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimDeviceTypesListAirflowParameter = "right-to-left"
+ DCIMDEVICETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimDeviceTypesListAirflowParameter = "side-to-rear"
+)
+
+// All allowed values of DcimDeviceTypesListAirflowParameter enum
+var AllowedDcimDeviceTypesListAirflowParameterEnumValues = []DcimDeviceTypesListAirflowParameter{
+ "front-to-rear",
+ "left-to-right",
+ "mixed",
+ "passive",
+ "rear-to-front",
+ "right-to-left",
+ "side-to-rear",
+}
+
+func (v *DcimDeviceTypesListAirflowParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimDeviceTypesListAirflowParameter(value)
+ for _, existing := range AllowedDcimDeviceTypesListAirflowParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimDeviceTypesListAirflowParameter", value)
+}
+
+// NewDcimDeviceTypesListAirflowParameterFromValue returns a pointer to a valid DcimDeviceTypesListAirflowParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimDeviceTypesListAirflowParameterFromValue(v string) (*DcimDeviceTypesListAirflowParameter, error) {
+ ev := DcimDeviceTypesListAirflowParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimDeviceTypesListAirflowParameter: valid values are %v", v, AllowedDcimDeviceTypesListAirflowParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimDeviceTypesListAirflowParameter) IsValid() bool {
+ for _, existing := range AllowedDcimDeviceTypesListAirflowParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_device_types_list_airflow_parameter value
+func (v DcimDeviceTypesListAirflowParameter) Ptr() *DcimDeviceTypesListAirflowParameter {
+ return &v
+}
+
+type NullableDcimDeviceTypesListAirflowParameter struct {
+ value *DcimDeviceTypesListAirflowParameter
+ isSet bool
+}
+
+func (v NullableDcimDeviceTypesListAirflowParameter) Get() *DcimDeviceTypesListAirflowParameter {
+ return v.value
+}
+
+func (v *NullableDcimDeviceTypesListAirflowParameter) Set(val *DcimDeviceTypesListAirflowParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimDeviceTypesListAirflowParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimDeviceTypesListAirflowParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimDeviceTypesListAirflowParameter(val *DcimDeviceTypesListAirflowParameter) *NullableDcimDeviceTypesListAirflowParameter {
+ return &NullableDcimDeviceTypesListAirflowParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimDeviceTypesListAirflowParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimDeviceTypesListAirflowParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..acfb6c6fe4
--- /dev/null
+++ b/model_dcim_device_types_list_weight_unit_parameter.go
@@ -0,0 +1,114 @@
+/*
+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"
+)
+
+// DcimDeviceTypesListWeightUnitParameter the model 'DcimDeviceTypesListWeightUnitParameter'
+type DcimDeviceTypesListWeightUnitParameter string
+
+// List of dcim_device_types_list_weight_unit_parameter
+const (
+ DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_G DcimDeviceTypesListWeightUnitParameter = "g"
+ DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_KG DcimDeviceTypesListWeightUnitParameter = "kg"
+ DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_LB DcimDeviceTypesListWeightUnitParameter = "lb"
+ DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_OZ DcimDeviceTypesListWeightUnitParameter = "oz"
+)
+
+// All allowed values of DcimDeviceTypesListWeightUnitParameter enum
+var AllowedDcimDeviceTypesListWeightUnitParameterEnumValues = []DcimDeviceTypesListWeightUnitParameter{
+ "g",
+ "kg",
+ "lb",
+ "oz",
+}
+
+func (v *DcimDeviceTypesListWeightUnitParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimDeviceTypesListWeightUnitParameter(value)
+ for _, existing := range AllowedDcimDeviceTypesListWeightUnitParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimDeviceTypesListWeightUnitParameter", value)
+}
+
+// NewDcimDeviceTypesListWeightUnitParameterFromValue returns a pointer to a valid DcimDeviceTypesListWeightUnitParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimDeviceTypesListWeightUnitParameterFromValue(v string) (*DcimDeviceTypesListWeightUnitParameter, error) {
+ ev := DcimDeviceTypesListWeightUnitParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimDeviceTypesListWeightUnitParameter: valid values are %v", v, AllowedDcimDeviceTypesListWeightUnitParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimDeviceTypesListWeightUnitParameter) IsValid() bool {
+ for _, existing := range AllowedDcimDeviceTypesListWeightUnitParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_device_types_list_weight_unit_parameter value
+func (v DcimDeviceTypesListWeightUnitParameter) Ptr() *DcimDeviceTypesListWeightUnitParameter {
+ return &v
+}
+
+type NullableDcimDeviceTypesListWeightUnitParameter struct {
+ value *DcimDeviceTypesListWeightUnitParameter
+ isSet bool
+}
+
+func (v NullableDcimDeviceTypesListWeightUnitParameter) Get() *DcimDeviceTypesListWeightUnitParameter {
+ return v.value
+}
+
+func (v *NullableDcimDeviceTypesListWeightUnitParameter) Set(val *DcimDeviceTypesListWeightUnitParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimDeviceTypesListWeightUnitParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimDeviceTypesListWeightUnitParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimDeviceTypesListWeightUnitParameter(val *DcimDeviceTypesListWeightUnitParameter) *NullableDcimDeviceTypesListWeightUnitParameter {
+ return &NullableDcimDeviceTypesListWeightUnitParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimDeviceTypesListWeightUnitParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimDeviceTypesListWeightUnitParameter) UnmarshalJSON(src []byte) error {
+ 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 d8f565251d..62cac65410 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go
new file mode 100644
index 0000000000..64b1b66dae
--- /dev/null
+++ b/model_dcim_interfaces_list_mode_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// DcimInterfacesListModeParameter the model 'DcimInterfacesListModeParameter'
+type DcimInterfacesListModeParameter string
+
+// List of dcim_interfaces_list_mode_parameter
+const (
+ DCIMINTERFACESLISTMODEPARAMETER_ACCESS DcimInterfacesListModeParameter = "access"
+ DCIMINTERFACESLISTMODEPARAMETER_TAGGED DcimInterfacesListModeParameter = "tagged"
+ DCIMINTERFACESLISTMODEPARAMETER_TAGGED_ALL DcimInterfacesListModeParameter = "tagged-all"
+)
+
+// All allowed values of DcimInterfacesListModeParameter enum
+var AllowedDcimInterfacesListModeParameterEnumValues = []DcimInterfacesListModeParameter{
+ "access",
+ "tagged",
+ "tagged-all",
+}
+
+func (v *DcimInterfacesListModeParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimInterfacesListModeParameter(value)
+ for _, existing := range AllowedDcimInterfacesListModeParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimInterfacesListModeParameter", value)
+}
+
+// NewDcimInterfacesListModeParameterFromValue returns a pointer to a valid DcimInterfacesListModeParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimInterfacesListModeParameterFromValue(v string) (*DcimInterfacesListModeParameter, error) {
+ ev := DcimInterfacesListModeParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimInterfacesListModeParameter: valid values are %v", v, AllowedDcimInterfacesListModeParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimInterfacesListModeParameter) IsValid() bool {
+ for _, existing := range AllowedDcimInterfacesListModeParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_interfaces_list_mode_parameter value
+func (v DcimInterfacesListModeParameter) Ptr() *DcimInterfacesListModeParameter {
+ return &v
+}
+
+type NullableDcimInterfacesListModeParameter struct {
+ value *DcimInterfacesListModeParameter
+ isSet bool
+}
+
+func (v NullableDcimInterfacesListModeParameter) Get() *DcimInterfacesListModeParameter {
+ return v.value
+}
+
+func (v *NullableDcimInterfacesListModeParameter) Set(val *DcimInterfacesListModeParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimInterfacesListModeParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimInterfacesListModeParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimInterfacesListModeParameter(val *DcimInterfacesListModeParameter) *NullableDcimInterfacesListModeParameter {
+ return &NullableDcimInterfacesListModeParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimInterfacesListModeParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimInterfacesListModeParameter) 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
new file mode 100644
index 0000000000..887c4c1857
--- /dev/null
+++ b/model_dcim_power_feeds_list_phase_parameter.go
@@ -0,0 +1,110 @@
+/*
+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"
+)
+
+// DcimPowerFeedsListPhaseParameter the model 'DcimPowerFeedsListPhaseParameter'
+type DcimPowerFeedsListPhaseParameter string
+
+// List of dcim_power_feeds_list_phase_parameter
+const (
+ DCIMPOWERFEEDSLISTPHASEPARAMETER_SINGLE_PHASE DcimPowerFeedsListPhaseParameter = "single-phase"
+ DCIMPOWERFEEDSLISTPHASEPARAMETER_THREE_PHASE DcimPowerFeedsListPhaseParameter = "three-phase"
+)
+
+// All allowed values of DcimPowerFeedsListPhaseParameter enum
+var AllowedDcimPowerFeedsListPhaseParameterEnumValues = []DcimPowerFeedsListPhaseParameter{
+ "single-phase",
+ "three-phase",
+}
+
+func (v *DcimPowerFeedsListPhaseParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimPowerFeedsListPhaseParameter(value)
+ for _, existing := range AllowedDcimPowerFeedsListPhaseParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimPowerFeedsListPhaseParameter", value)
+}
+
+// NewDcimPowerFeedsListPhaseParameterFromValue returns a pointer to a valid DcimPowerFeedsListPhaseParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimPowerFeedsListPhaseParameterFromValue(v string) (*DcimPowerFeedsListPhaseParameter, error) {
+ ev := DcimPowerFeedsListPhaseParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimPowerFeedsListPhaseParameter: valid values are %v", v, AllowedDcimPowerFeedsListPhaseParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimPowerFeedsListPhaseParameter) IsValid() bool {
+ for _, existing := range AllowedDcimPowerFeedsListPhaseParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_power_feeds_list_phase_parameter value
+func (v DcimPowerFeedsListPhaseParameter) Ptr() *DcimPowerFeedsListPhaseParameter {
+ return &v
+}
+
+type NullableDcimPowerFeedsListPhaseParameter struct {
+ value *DcimPowerFeedsListPhaseParameter
+ isSet bool
+}
+
+func (v NullableDcimPowerFeedsListPhaseParameter) Get() *DcimPowerFeedsListPhaseParameter {
+ return v.value
+}
+
+func (v *NullableDcimPowerFeedsListPhaseParameter) Set(val *DcimPowerFeedsListPhaseParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimPowerFeedsListPhaseParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimPowerFeedsListPhaseParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimPowerFeedsListPhaseParameter(val *DcimPowerFeedsListPhaseParameter) *NullableDcimPowerFeedsListPhaseParameter {
+ return &NullableDcimPowerFeedsListPhaseParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimPowerFeedsListPhaseParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimPowerFeedsListPhaseParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..a9d411a9a8
--- /dev/null
+++ b/model_dcim_power_feeds_list_supply_parameter.go
@@ -0,0 +1,110 @@
+/*
+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"
+)
+
+// DcimPowerFeedsListSupplyParameter the model 'DcimPowerFeedsListSupplyParameter'
+type DcimPowerFeedsListSupplyParameter string
+
+// List of dcim_power_feeds_list_supply_parameter
+const (
+ DCIMPOWERFEEDSLISTSUPPLYPARAMETER_AC DcimPowerFeedsListSupplyParameter = "ac"
+ DCIMPOWERFEEDSLISTSUPPLYPARAMETER_DC DcimPowerFeedsListSupplyParameter = "dc"
+)
+
+// All allowed values of DcimPowerFeedsListSupplyParameter enum
+var AllowedDcimPowerFeedsListSupplyParameterEnumValues = []DcimPowerFeedsListSupplyParameter{
+ "ac",
+ "dc",
+}
+
+func (v *DcimPowerFeedsListSupplyParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimPowerFeedsListSupplyParameter(value)
+ for _, existing := range AllowedDcimPowerFeedsListSupplyParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimPowerFeedsListSupplyParameter", value)
+}
+
+// NewDcimPowerFeedsListSupplyParameterFromValue returns a pointer to a valid DcimPowerFeedsListSupplyParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimPowerFeedsListSupplyParameterFromValue(v string) (*DcimPowerFeedsListSupplyParameter, error) {
+ ev := DcimPowerFeedsListSupplyParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimPowerFeedsListSupplyParameter: valid values are %v", v, AllowedDcimPowerFeedsListSupplyParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimPowerFeedsListSupplyParameter) IsValid() bool {
+ for _, existing := range AllowedDcimPowerFeedsListSupplyParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_power_feeds_list_supply_parameter value
+func (v DcimPowerFeedsListSupplyParameter) Ptr() *DcimPowerFeedsListSupplyParameter {
+ return &v
+}
+
+type NullableDcimPowerFeedsListSupplyParameter struct {
+ value *DcimPowerFeedsListSupplyParameter
+ isSet bool
+}
+
+func (v NullableDcimPowerFeedsListSupplyParameter) Get() *DcimPowerFeedsListSupplyParameter {
+ return v.value
+}
+
+func (v *NullableDcimPowerFeedsListSupplyParameter) Set(val *DcimPowerFeedsListSupplyParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimPowerFeedsListSupplyParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimPowerFeedsListSupplyParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimPowerFeedsListSupplyParameter(val *DcimPowerFeedsListSupplyParameter) *NullableDcimPowerFeedsListSupplyParameter {
+ return &NullableDcimPowerFeedsListSupplyParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimPowerFeedsListSupplyParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimPowerFeedsListSupplyParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..133f1c231e
--- /dev/null
+++ b/model_dcim_power_feeds_list_type_parameter.go
@@ -0,0 +1,110 @@
+/*
+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"
+)
+
+// DcimPowerFeedsListTypeParameter the model 'DcimPowerFeedsListTypeParameter'
+type DcimPowerFeedsListTypeParameter string
+
+// List of dcim_power_feeds_list_type_parameter
+const (
+ DCIMPOWERFEEDSLISTTYPEPARAMETER_PRIMARY DcimPowerFeedsListTypeParameter = "primary"
+ DCIMPOWERFEEDSLISTTYPEPARAMETER_REDUNDANT DcimPowerFeedsListTypeParameter = "redundant"
+)
+
+// All allowed values of DcimPowerFeedsListTypeParameter enum
+var AllowedDcimPowerFeedsListTypeParameterEnumValues = []DcimPowerFeedsListTypeParameter{
+ "primary",
+ "redundant",
+}
+
+func (v *DcimPowerFeedsListTypeParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimPowerFeedsListTypeParameter(value)
+ for _, existing := range AllowedDcimPowerFeedsListTypeParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimPowerFeedsListTypeParameter", value)
+}
+
+// NewDcimPowerFeedsListTypeParameterFromValue returns a pointer to a valid DcimPowerFeedsListTypeParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimPowerFeedsListTypeParameterFromValue(v string) (*DcimPowerFeedsListTypeParameter, error) {
+ ev := DcimPowerFeedsListTypeParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimPowerFeedsListTypeParameter: valid values are %v", v, AllowedDcimPowerFeedsListTypeParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimPowerFeedsListTypeParameter) IsValid() bool {
+ for _, existing := range AllowedDcimPowerFeedsListTypeParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_power_feeds_list_type_parameter value
+func (v DcimPowerFeedsListTypeParameter) Ptr() *DcimPowerFeedsListTypeParameter {
+ return &v
+}
+
+type NullableDcimPowerFeedsListTypeParameter struct {
+ value *DcimPowerFeedsListTypeParameter
+ isSet bool
+}
+
+func (v NullableDcimPowerFeedsListTypeParameter) Get() *DcimPowerFeedsListTypeParameter {
+ return v.value
+}
+
+func (v *NullableDcimPowerFeedsListTypeParameter) Set(val *DcimPowerFeedsListTypeParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimPowerFeedsListTypeParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimPowerFeedsListTypeParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimPowerFeedsListTypeParameter(val *DcimPowerFeedsListTypeParameter) *NullableDcimPowerFeedsListTypeParameter {
+ return &NullableDcimPowerFeedsListTypeParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimPowerFeedsListTypeParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimPowerFeedsListTypeParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..dc7840bb14
--- /dev/null
+++ b/model_dcim_power_outlet_templates_list_type_parameter.go
@@ -0,0 +1,130 @@
+/*
+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"
+)
+
+// DcimPowerOutletTemplatesListTypeParameter the model 'DcimPowerOutletTemplatesListTypeParameter'
+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_ITA_INTERNATIONAL DcimPowerOutletTemplatesListTypeParameter = "ITA/International"
+ 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"
+)
+
+// All allowed values of DcimPowerOutletTemplatesListTypeParameter enum
+var AllowedDcimPowerOutletTemplatesListTypeParameterEnumValues = []DcimPowerOutletTemplatesListTypeParameter{
+ "California Style",
+ "DC",
+ "IEC 60309",
+ "IEC 60320",
+ "IEC 60906-1",
+ "ITA/International",
+ "Molex",
+ "NEMA (Locking)",
+ "NEMA (Non-locking)",
+ "Other",
+ "Proprietary",
+ "USB",
+}
+
+func (v *DcimPowerOutletTemplatesListTypeParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimPowerOutletTemplatesListTypeParameter(value)
+ for _, existing := range AllowedDcimPowerOutletTemplatesListTypeParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimPowerOutletTemplatesListTypeParameter", value)
+}
+
+// NewDcimPowerOutletTemplatesListTypeParameterFromValue returns a pointer to a valid DcimPowerOutletTemplatesListTypeParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimPowerOutletTemplatesListTypeParameterFromValue(v string) (*DcimPowerOutletTemplatesListTypeParameter, error) {
+ ev := DcimPowerOutletTemplatesListTypeParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimPowerOutletTemplatesListTypeParameter: valid values are %v", v, AllowedDcimPowerOutletTemplatesListTypeParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimPowerOutletTemplatesListTypeParameter) IsValid() bool {
+ for _, existing := range AllowedDcimPowerOutletTemplatesListTypeParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_power_outlet_templates_list_type_parameter value
+func (v DcimPowerOutletTemplatesListTypeParameter) Ptr() *DcimPowerOutletTemplatesListTypeParameter {
+ return &v
+}
+
+type NullableDcimPowerOutletTemplatesListTypeParameter struct {
+ value *DcimPowerOutletTemplatesListTypeParameter
+ isSet bool
+}
+
+func (v NullableDcimPowerOutletTemplatesListTypeParameter) Get() *DcimPowerOutletTemplatesListTypeParameter {
+ return v.value
+}
+
+func (v *NullableDcimPowerOutletTemplatesListTypeParameter) Set(val *DcimPowerOutletTemplatesListTypeParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimPowerOutletTemplatesListTypeParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimPowerOutletTemplatesListTypeParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimPowerOutletTemplatesListTypeParameter(val *DcimPowerOutletTemplatesListTypeParameter) *NullableDcimPowerOutletTemplatesListTypeParameter {
+ return &NullableDcimPowerOutletTemplatesListTypeParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimPowerOutletTemplatesListTypeParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimPowerOutletTemplatesListTypeParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..dcc5cfc555
--- /dev/null
+++ b/model_dcim_power_port_templates_list_type_parameter.go
@@ -0,0 +1,130 @@
+/*
+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"
+)
+
+// DcimPowerPortTemplatesListTypeParameter the model 'DcimPowerPortTemplatesListTypeParameter'
+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_INTERNATIONAL_ITA DcimPowerPortTemplatesListTypeParameter = "International/ITA"
+ 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"
+)
+
+// All allowed values of DcimPowerPortTemplatesListTypeParameter enum
+var AllowedDcimPowerPortTemplatesListTypeParameterEnumValues = []DcimPowerPortTemplatesListTypeParameter{
+ "California Style",
+ "DC",
+ "IEC 60309",
+ "IEC 60320",
+ "IEC 60906-1",
+ "International/ITA",
+ "Molex",
+ "NEMA (Locking)",
+ "NEMA (Non-locking)",
+ "Other",
+ "Proprietary",
+ "USB",
+}
+
+func (v *DcimPowerPortTemplatesListTypeParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DcimPowerPortTemplatesListTypeParameter(value)
+ for _, existing := range AllowedDcimPowerPortTemplatesListTypeParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid DcimPowerPortTemplatesListTypeParameter", value)
+}
+
+// NewDcimPowerPortTemplatesListTypeParameterFromValue returns a pointer to a valid DcimPowerPortTemplatesListTypeParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDcimPowerPortTemplatesListTypeParameterFromValue(v string) (*DcimPowerPortTemplatesListTypeParameter, error) {
+ ev := DcimPowerPortTemplatesListTypeParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DcimPowerPortTemplatesListTypeParameter: valid values are %v", v, AllowedDcimPowerPortTemplatesListTypeParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DcimPowerPortTemplatesListTypeParameter) IsValid() bool {
+ for _, existing := range AllowedDcimPowerPortTemplatesListTypeParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to dcim_power_port_templates_list_type_parameter value
+func (v DcimPowerPortTemplatesListTypeParameter) Ptr() *DcimPowerPortTemplatesListTypeParameter {
+ return &v
+}
+
+type NullableDcimPowerPortTemplatesListTypeParameter struct {
+ value *DcimPowerPortTemplatesListTypeParameter
+ isSet bool
+}
+
+func (v NullableDcimPowerPortTemplatesListTypeParameter) Get() *DcimPowerPortTemplatesListTypeParameter {
+ return v.value
+}
+
+func (v *NullableDcimPowerPortTemplatesListTypeParameter) Set(val *DcimPowerPortTemplatesListTypeParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDcimPowerPortTemplatesListTypeParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDcimPowerPortTemplatesListTypeParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDcimPowerPortTemplatesListTypeParameter(val *DcimPowerPortTemplatesListTypeParameter) *NullableDcimPowerPortTemplatesListTypeParameter {
+ return &NullableDcimPowerPortTemplatesListTypeParameter{value: val, isSet: true}
+}
+
+func (v NullableDcimPowerPortTemplatesListTypeParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDcimPowerPortTemplatesListTypeParameter) 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 6339e0308b..564e2c159d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go
index db10fcbd31..2506cd2cc7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_dcim_racks_list_outer_unit_parameter.go b/model_dcim_racks_list_outer_unit_parameter.go
new file mode 100644
index 0000000000..5a8f1464cf
--- /dev/null
+++ b/model_dcim_racks_list_outer_unit_parameter.go
@@ -0,0 +1,110 @@
+/*
+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 b4a5bb66e4..7585fb9dde 100644
--- a/model_device.go
+++ b/model_device.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,43 +21,42 @@ var _ MappedNullable = &Device{}
// Device Adds support for custom fields and tags.
type Device struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name NullableString `json:"name,omitempty"`
- DeviceType NestedDeviceType `json:"device_type"`
- Role NestedDeviceRole `json:"role"`
- DeviceRole DeviceDeviceRole `json:"device_role"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Platform NullableNestedPlatform `json:"platform,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceType `json:"device_type"`
+ Role DeviceRole `json:"role"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
+ Platform NullablePlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site NestedSite `json:"site"`
- Location NullableNestedLocation `json:"location,omitempty"`
- Rack NullableNestedRack `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFace `json:"face,omitempty"`
+ 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"`
// 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 NullableNestedIPAddress `json:"primary_ip"`
- PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"`
- OobIp NullableNestedIPAddress `json:"oob_ip,omitempty"`
- Cluster NullableNestedCluster `json:"cluster,omitempty"`
- VirtualChassis NullableNestedVirtualChassis `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ 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"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableConfigTemplate `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"`
@@ -83,14 +82,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 NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NullableNestedDevice, primaryIp NullableNestedIPAddress, 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, 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 {
this := Device{}
this.Id = id
this.Url = url
this.Display = display
this.DeviceType = deviceType
this.Role = role
- this.DeviceRole = deviceRole
this.Site = site
this.ParentDevice = parentDevice
this.PrimaryIp = primaryIp
@@ -233,9 +231,9 @@ func (o *Device) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *Device) GetDeviceType() NestedDeviceType {
+func (o *Device) GetDeviceType() DeviceType {
if o == nil {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
@@ -244,7 +242,7 @@ func (o *Device) GetDeviceType() NestedDeviceType {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *Device) GetDeviceTypeOk() (*NestedDeviceType, bool) {
+func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -252,14 +250,14 @@ func (o *Device) GetDeviceTypeOk() (*NestedDeviceType, bool) {
}
// SetDeviceType sets field value
-func (o *Device) SetDeviceType(v NestedDeviceType) {
+func (o *Device) SetDeviceType(v DeviceType) {
o.DeviceType = v
}
// GetRole returns the Role field value
-func (o *Device) GetRole() NestedDeviceRole {
+func (o *Device) GetRole() DeviceRole {
if o == nil {
- var ret NestedDeviceRole
+ var ret DeviceRole
return ret
}
@@ -268,7 +266,7 @@ func (o *Device) GetRole() NestedDeviceRole {
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *Device) GetRoleOk() (*NestedDeviceRole, bool) {
+func (o *Device) GetRoleOk() (*DeviceRole, bool) {
if o == nil {
return nil, false
}
@@ -276,38 +274,14 @@ func (o *Device) GetRoleOk() (*NestedDeviceRole, bool) {
}
// SetRole sets field value
-func (o *Device) SetRole(v NestedDeviceRole) {
+func (o *Device) SetRole(v DeviceRole) {
o.Role = v
}
-// GetDeviceRole returns the DeviceRole field value
-func (o *Device) GetDeviceRole() DeviceDeviceRole {
- if o == nil {
- var ret DeviceDeviceRole
- return ret
- }
-
- return o.DeviceRole
-}
-
-// GetDeviceRoleOk returns a tuple with the DeviceRole field value
-// and a boolean to check if the value has been set.
-func (o *Device) GetDeviceRoleOk() (*DeviceDeviceRole, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceRole, true
-}
-
-// SetDeviceRole sets field value
-func (o *Device) SetDeviceRole(v DeviceDeviceRole) {
- o.DeviceRole = 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() NestedTenant {
+func (o *Device) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -316,7 +290,7 @@ func (o *Device) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *Device) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -332,8 +306,8 @@ func (o *Device) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Device) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *Device) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -348,9 +322,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() NestedPlatform {
+func (o *Device) GetPlatform() Platform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret NestedPlatform
+ var ret Platform
return ret
}
return *o.Platform.Get()
@@ -359,7 +333,7 @@ func (o *Device) GetPlatform() NestedPlatform {
// 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() (*NestedPlatform, bool) {
+func (o *Device) GetPlatformOk() (*Platform, bool) {
if o == nil {
return nil, false
}
@@ -375,8 +349,8 @@ func (o *Device) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableNestedPlatform and assigns it to the Platform field.
-func (o *Device) SetPlatform(v NestedPlatform) {
+// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field.
+func (o *Device) SetPlatform(v Platform) {
o.Platform.Set(&v)
}
@@ -466,9 +440,9 @@ func (o *Device) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *Device) GetSite() NestedSite {
+func (o *Device) GetSite() Site {
if o == nil {
- var ret NestedSite
+ var ret Site
return ret
}
@@ -477,7 +451,7 @@ func (o *Device) GetSite() NestedSite {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *Device) GetSiteOk() (*NestedSite, bool) {
+func (o *Device) GetSiteOk() (*Site, bool) {
if o == nil {
return nil, false
}
@@ -485,14 +459,14 @@ func (o *Device) GetSiteOk() (*NestedSite, bool) {
}
// SetSite sets field value
-func (o *Device) SetSite(v NestedSite) {
+func (o *Device) SetSite(v Site) {
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() NestedLocation {
+func (o *Device) GetLocation() Location {
if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocation
+ var ret Location
return ret
}
return *o.Location.Get()
@@ -501,7 +475,7 @@ func (o *Device) GetLocation() NestedLocation {
// 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() (*NestedLocation, bool) {
+func (o *Device) GetLocationOk() (*Location, bool) {
if o == nil {
return nil, false
}
@@ -517,8 +491,8 @@ func (o *Device) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableNestedLocation and assigns it to the Location field.
-func (o *Device) SetLocation(v NestedLocation) {
+// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field.
+func (o *Device) SetLocation(v Location) {
o.Location.Set(&v)
}
@@ -533,9 +507,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() NestedRack {
+func (o *Device) GetRack() Rack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret NestedRack
+ var ret Rack
return ret
}
return *o.Rack.Get()
@@ -544,7 +518,7 @@ func (o *Device) GetRack() NestedRack {
// 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() (*NestedRack, bool) {
+func (o *Device) GetRackOk() (*Rack, bool) {
if o == nil {
return nil, false
}
@@ -560,8 +534,8 @@ func (o *Device) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableNestedRack and assigns it to the Rack field.
-func (o *Device) SetRack(v NestedRack) {
+// SetRack gets a reference to the given NullableRack and assigns it to the Rack field.
+func (o *Device) SetRack(v Rack) {
o.Rack.Set(&v)
}
@@ -827,10 +801,10 @@ func (o *Device) SetAirflow(v DeviceAirflow) {
}
// GetPrimaryIp returns the PrimaryIp field value
-// If the value is explicit nil, the zero value for NestedIPAddress will be returned
-func (o *Device) GetPrimaryIp() NestedIPAddress {
+// 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 NestedIPAddress
+ var ret IPAddress
return ret
}
@@ -840,7 +814,7 @@ func (o *Device) GetPrimaryIp() NestedIPAddress {
// GetPrimaryIpOk returns a tuple with the PrimaryIp 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) GetPrimaryIpOk() (*NestedIPAddress, bool) {
+func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -848,14 +822,14 @@ func (o *Device) GetPrimaryIpOk() (*NestedIPAddress, bool) {
}
// SetPrimaryIp sets field value
-func (o *Device) SetPrimaryIp(v NestedIPAddress) {
+func (o *Device) SetPrimaryIp(v IPAddress) {
o.PrimaryIp.Set(&v)
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Device) GetPrimaryIp4() NestedIPAddress {
+func (o *Device) GetPrimaryIp4() IPAddress {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp4.Get()
@@ -864,7 +838,7 @@ func (o *Device) GetPrimaryIp4() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -880,8 +854,8 @@ func (o *Device) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp4 field.
-func (o *Device) SetPrimaryIp4(v NestedIPAddress) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field.
+func (o *Device) SetPrimaryIp4(v IPAddress) {
o.PrimaryIp4.Set(&v)
}
@@ -896,9 +870,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() NestedIPAddress {
+func (o *Device) GetPrimaryIp6() IPAddress {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp6.Get()
@@ -907,7 +881,7 @@ func (o *Device) GetPrimaryIp6() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -923,8 +897,8 @@ func (o *Device) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp6 field.
-func (o *Device) SetPrimaryIp6(v NestedIPAddress) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field.
+func (o *Device) SetPrimaryIp6(v IPAddress) {
o.PrimaryIp6.Set(&v)
}
@@ -939,9 +913,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() NestedIPAddress {
+func (o *Device) GetOobIp() IPAddress {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.OobIp.Get()
@@ -950,7 +924,7 @@ func (o *Device) GetOobIp() NestedIPAddress {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Device) GetOobIpOk() (*NestedIPAddress, bool) {
+func (o *Device) GetOobIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -966,8 +940,8 @@ func (o *Device) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableNestedIPAddress and assigns it to the OobIp field.
-func (o *Device) SetOobIp(v NestedIPAddress) {
+// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field.
+func (o *Device) SetOobIp(v IPAddress) {
o.OobIp.Set(&v)
}
@@ -982,9 +956,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() NestedCluster {
+func (o *Device) GetCluster() Cluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret NestedCluster
+ var ret Cluster
return ret
}
return *o.Cluster.Get()
@@ -993,7 +967,7 @@ func (o *Device) GetCluster() NestedCluster {
// 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() (*NestedCluster, bool) {
+func (o *Device) GetClusterOk() (*Cluster, bool) {
if o == nil {
return nil, false
}
@@ -1009,8 +983,8 @@ func (o *Device) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableNestedCluster and assigns it to the Cluster field.
-func (o *Device) SetCluster(v NestedCluster) {
+// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field.
+func (o *Device) SetCluster(v Cluster) {
o.Cluster.Set(&v)
}
@@ -1025,9 +999,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() NestedVirtualChassis {
+func (o *Device) GetVirtualChassis() VirtualChassis {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret NestedVirtualChassis
+ var ret VirtualChassis
return ret
}
return *o.VirtualChassis.Get()
@@ -1036,7 +1010,7 @@ func (o *Device) GetVirtualChassis() NestedVirtualChassis {
// 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() (*NestedVirtualChassis, bool) {
+func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool) {
if o == nil {
return nil, false
}
@@ -1052,8 +1026,8 @@ func (o *Device) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableNestedVirtualChassis and assigns it to the VirtualChassis field.
-func (o *Device) SetVirtualChassis(v NestedVirtualChassis) {
+// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field.
+func (o *Device) SetVirtualChassis(v VirtualChassis) {
o.VirtualChassis.Set(&v)
}
@@ -1218,9 +1192,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() NestedConfigTemplate {
+func (o *Device) GetConfigTemplate() ConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplate
+ var ret ConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -1229,7 +1203,7 @@ func (o *Device) GetConfigTemplate() NestedConfigTemplate {
// 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() (*NestedConfigTemplate, bool) {
+func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -1245,8 +1219,8 @@ func (o *Device) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field.
-func (o *Device) SetConfigTemplate(v NestedConfigTemplate) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *Device) SetConfigTemplate(v ConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
@@ -1667,7 +1641,6 @@ func (o Device) ToMap() (map[string]interface{}, error) {
}
toSerialize["device_type"] = o.DeviceType
toSerialize["role"] = o.Role
- toSerialize["device_role"] = o.DeviceRole
if o.Tenant.IsSet() {
toSerialize["tenant"] = o.Tenant.Get()
}
@@ -1776,7 +1749,6 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) {
"display",
"device_type",
"role",
- "device_role",
"site",
"parent_device",
"primary_ip",
@@ -1827,7 +1799,6 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "device_type")
delete(additionalProperties, "role")
- delete(additionalProperties, "device_role")
delete(additionalProperties, "tenant")
delete(additionalProperties, "platform")
delete(additionalProperties, "serial")
diff --git a/model_device_airflow.go b/model_device_airflow.go
index 1a242da1a5..b3812caaea 100644
--- a/model_device_airflow.go
+++ b/model_device_airflow.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go
index 7f0699bd7f..9d2429b948 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go
index 52992d0ac4..9ff9281c99 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_bay.go b/model_device_bay.go
index 837292569e..ab35b6a54a 100644
--- a/model_device_bay.go
+++ b/model_device_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,15 +21,15 @@ var _ MappedNullable = &DeviceBay{}
// DeviceBay Adds support for custom fields and tags.
type DeviceBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Description *string `json:"description,omitempty"`
- InstalledDevice NullableNestedDevice `json:"installed_device,omitempty"`
+ InstalledDevice NullableDevice `json:"installed_device,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
@@ -43,7 +43,7 @@ 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 NestedDevice, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay {
+func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay {
this := DeviceBay{}
this.Id = id
this.Url = url
@@ -136,9 +136,9 @@ func (o *DeviceBay) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *DeviceBay) GetDevice() NestedDevice {
+func (o *DeviceBay) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -147,7 +147,7 @@ func (o *DeviceBay) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *DeviceBay) GetDeviceOk() (*NestedDevice, bool) {
+func (o *DeviceBay) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -155,7 +155,7 @@ func (o *DeviceBay) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *DeviceBay) SetDevice(v NestedDevice) {
+func (o *DeviceBay) SetDevice(v Device) {
o.Device = v
}
@@ -248,9 +248,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() NestedDevice {
+func (o *DeviceBay) GetInstalledDevice() Device {
if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret NestedDevice
+ var ret Device
return ret
}
return *o.InstalledDevice.Get()
@@ -259,7 +259,7 @@ func (o *DeviceBay) GetInstalledDevice() NestedDevice {
// 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() (*NestedDevice, bool) {
+func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -275,8 +275,8 @@ func (o *DeviceBay) HasInstalledDevice() bool {
return false
}
-// SetInstalledDevice gets a reference to the given NullableNestedDevice and assigns it to the InstalledDevice field.
-func (o *DeviceBay) SetInstalledDevice(v NestedDevice) {
+// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field.
+func (o *DeviceBay) SetInstalledDevice(v Device) {
o.InstalledDevice.Set(&v)
}
diff --git a/model_device_bay_request.go b/model_device_bay_request.go
index 8f3555f555..514b0172eb 100644
--- a/model_device_bay_request.go
+++ b/model_device_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedDeviceRequest `json:"device"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- InstalledDevice NullableNestedDeviceRequest `json:"installed_device,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Description *string `json:"description,omitempty"`
+ InstalledDevice NullableDeviceRequest `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 NestedDeviceRequest, name string) *DeviceBayRequest {
+func NewDeviceBayRequest(device DeviceRequest, 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() NestedDeviceRequest {
+func (o *DeviceBayRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *DeviceBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -72,7 +72,7 @@ func (o *DeviceBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *DeviceBayRequest) SetDevice(v NestedDeviceRequest) {
+func (o *DeviceBayRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -165,9 +165,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() NestedDeviceRequest {
+func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest {
if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
return *o.InstalledDevice.Get()
@@ -176,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() NestedDeviceRequest {
// 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() (*NestedDeviceRequest, bool) {
+func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -192,8 +192,8 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool {
return false
}
-// SetInstalledDevice gets a reference to the given NullableNestedDeviceRequest and assigns it to the InstalledDevice field.
-func (o *DeviceBayRequest) SetInstalledDevice(v NestedDeviceRequest) {
+// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field.
+func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) {
o.InstalledDevice.Set(&v)
}
diff --git a/model_device_bay_template.go b/model_device_bay_template.go
index 9e45424fb5..6ea0c9a93f 100644
--- a/model_device_bay_template.go
+++ b/model_device_bay_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ 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 NestedDeviceType `json:"device_type"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType DeviceType `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
@@ -41,7 +41,7 @@ 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 NestedDeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate {
+func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate {
this := DeviceBayTemplate{}
this.Id = id
this.Url = url
@@ -134,9 +134,9 @@ func (o *DeviceBayTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value
-func (o *DeviceBayTemplate) GetDeviceType() NestedDeviceType {
+func (o *DeviceBayTemplate) GetDeviceType() DeviceType {
if o == nil {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
@@ -145,7 +145,7 @@ func (o *DeviceBayTemplate) GetDeviceType() NestedDeviceType {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
+func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -153,7 +153,7 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
}
// SetDeviceType sets field value
-func (o *DeviceBayTemplate) SetDeviceType(v NestedDeviceType) {
+func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) {
o.DeviceType = v
}
diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go
index d46034e820..b75a4eaa35 100644
--- a/model_device_bay_template_request.go
+++ b/model_device_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &DeviceBayTemplateRequest{}
// DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type DeviceBayTemplateRequest struct {
- DeviceType NestedDeviceTypeRequest `json:"device_type"`
+ DeviceType DeviceTypeRequest `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
@@ -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 NestedDeviceTypeRequest, name string) *DeviceBayTemplateRequest {
+func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, 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() NestedDeviceTypeRequest {
+func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
@@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool) {
+func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -70,7 +70,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest,
}
// SetDeviceType sets field value
-func (o *DeviceBayTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = v
}
diff --git a/model_device_device_role.go b/model_device_device_role.go
deleted file mode 100644
index 3df7139527..0000000000
--- a/model_device_device_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the DeviceDeviceRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &DeviceDeviceRole{}
-
-// DeviceDeviceRole Deprecated in v3.6 in favor of `role`.
-type DeviceDeviceRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _DeviceDeviceRole DeviceDeviceRole
-
-// NewDeviceDeviceRole instantiates a new DeviceDeviceRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewDeviceDeviceRole(id int32, url string, display string, name string, slug string) *DeviceDeviceRole {
- this := DeviceDeviceRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewDeviceDeviceRoleWithDefaults instantiates a new DeviceDeviceRole object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewDeviceDeviceRoleWithDefaults() *DeviceDeviceRole {
- this := DeviceDeviceRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *DeviceDeviceRole) GetId() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Id
-}
-
-// GetIdOk returns a tuple with the Id field value
-// and a boolean to check if the value has been set.
-func (o *DeviceDeviceRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *DeviceDeviceRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *DeviceDeviceRole) GetUrl() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Url
-}
-
-// GetUrlOk returns a tuple with the Url field value
-// and a boolean to check if the value has been set.
-func (o *DeviceDeviceRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *DeviceDeviceRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *DeviceDeviceRole) GetDisplay() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Display
-}
-
-// GetDisplayOk returns a tuple with the Display field value
-// and a boolean to check if the value has been set.
-func (o *DeviceDeviceRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *DeviceDeviceRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *DeviceDeviceRole) GetName() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Name
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-func (o *DeviceDeviceRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *DeviceDeviceRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *DeviceDeviceRole) GetSlug() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Slug
-}
-
-// GetSlugOk returns a tuple with the Slug field value
-// and a boolean to check if the value has been set.
-func (o *DeviceDeviceRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *DeviceDeviceRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o DeviceDeviceRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o DeviceDeviceRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *DeviceDeviceRole) UnmarshalJSON(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",
- }
-
- 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)
- }
- }
-
- varDeviceDeviceRole := _DeviceDeviceRole{}
-
- err = json.Unmarshal(data, &varDeviceDeviceRole)
-
- if err != nil {
- return err
- }
-
- *o = DeviceDeviceRole(varDeviceDeviceRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableDeviceDeviceRole struct {
- value *DeviceDeviceRole
- isSet bool
-}
-
-func (v NullableDeviceDeviceRole) Get() *DeviceDeviceRole {
- return v.value
-}
-
-func (v *NullableDeviceDeviceRole) Set(val *DeviceDeviceRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableDeviceDeviceRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableDeviceDeviceRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableDeviceDeviceRole(val *DeviceDeviceRole) *NullableDeviceDeviceRole {
- return &NullableDeviceDeviceRole{value: val, isSet: true}
-}
-
-func (v NullableDeviceDeviceRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableDeviceDeviceRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_device_face.go b/model_device_face.go
index d6187866cc..380afa6899 100644
--- a/model_device_face.go
+++ b/model_device_face.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_face_label.go b/model_device_face_label.go
index 8bd1ab8034..b74e4452a2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_face_value.go b/model_device_face_value.go
index a004240bdd..c693fb0de4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_request.go b/model_device_request.go
new file mode 100644
index 0000000000..9b39372c98
--- /dev/null
+++ b/model_device_request.go
@@ -0,0 +1,201 @@
+/*
+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 DeviceRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &DeviceRequest{}
+
+// DeviceRequest Adds support for custom fields and tags.
+type DeviceRequest struct {
+ Name NullableString `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _DeviceRequest DeviceRequest
+
+// NewDeviceRequest instantiates a new DeviceRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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{}
+ return &this
+}
+
+// NewDeviceRequestWithDefaults instantiates a new DeviceRequest object
+// This 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{}
+ 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 {
+ 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 *DeviceRequest) 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 *DeviceRequest) 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 *DeviceRequest) SetName(v string) {
+ o.Name.Set(&v)
+}
+
+// SetNameNil sets the value for Name to be an explicit nil
+func (o *DeviceRequest) SetNameNil() {
+ o.Name.Set(nil)
+}
+
+// UnsetName ensures that no value is present for Name, not even an explicit nil
+func (o *DeviceRequest) UnsetName() {
+ o.Name.Unset()
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *DeviceRequest) 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 *DeviceRequest) 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 *DeviceRequest) 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 *DeviceRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+func (o DeviceRequest) 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) {
+ toSerialize := map[string]interface{}{}
+ 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 *DeviceRequest) UnmarshalJSON(data []byte) (err error) {
+ varDeviceRequest := _DeviceRequest{}
+
+ err = json.Unmarshal(data, &varDeviceRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = DeviceRequest(varDeviceRequest)
+
+ 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 NullableDeviceRequest struct {
+ value *DeviceRequest
+ isSet bool
+}
+
+func (v NullableDeviceRequest) Get() *DeviceRequest {
+ return v.value
+}
+
+func (v *NullableDeviceRequest) Set(val *DeviceRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDeviceRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDeviceRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDeviceRequest(val *DeviceRequest) *NullableDeviceRequest {
+ return &NullableDeviceRequest{value: val, isSet: true}
+}
+
+func (v NullableDeviceRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDeviceRequest) 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 5654cb37f3..1c2cf2a0c6 100644
--- a/model_device_role.go
+++ b/model_device_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the DeviceRole type satisfies the MappedNullable interface at compile time
@@ -21,22 +20,14 @@ var _ MappedNullable = &DeviceRole{}
// DeviceRole Adds support for custom fields and tags.
type DeviceRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Color *string `json:"color,omitempty"`
- // Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- DeviceCount int32 `json:"device_count"`
- VirtualmachineCount int32 `json:"virtualmachine_count"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -46,15 +37,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, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32) *DeviceRole {
+func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *DeviceRole {
this := DeviceRole{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.DeviceCount = deviceCount
this.VirtualmachineCount = virtualmachineCount
return &this
@@ -188,113 +177,6 @@ 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() NestedConfigTemplate {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplate
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceRole) GetConfigTemplateOk() (*NestedConfigTemplate, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *DeviceRole) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field.
-func (o *DeviceRole) SetConfigTemplate(v NestedConfigTemplate) {
- o.ConfigTemplate.Set(&v)
-}
-
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *DeviceRole) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// 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) {
@@ -327,126 +209,10 @@ func (o *DeviceRole) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *DeviceRole) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceRole) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *DeviceRole) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *DeviceRole) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *DeviceRole) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetDeviceCount returns the DeviceCount field value
-func (o *DeviceRole) GetDeviceCount() int32 {
+func (o *DeviceRole) GetDeviceCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -455,7 +221,7 @@ func (o *DeviceRole) GetDeviceCount() int32 {
// GetDeviceCountOk returns a tuple with the DeviceCount field value
// and a boolean to check if the value has been set.
-func (o *DeviceRole) GetDeviceCountOk() (*int32, bool) {
+func (o *DeviceRole) GetDeviceCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -463,14 +229,14 @@ func (o *DeviceRole) GetDeviceCountOk() (*int32, bool) {
}
// SetDeviceCount sets field value
-func (o *DeviceRole) SetDeviceCount(v int32) {
+func (o *DeviceRole) SetDeviceCount(v int64) {
o.DeviceCount = v
}
// GetVirtualmachineCount returns the VirtualmachineCount field value
-func (o *DeviceRole) GetVirtualmachineCount() int32 {
+func (o *DeviceRole) GetVirtualmachineCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -479,7 +245,7 @@ func (o *DeviceRole) GetVirtualmachineCount() int32 {
// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value
// and a boolean to check if the value has been set.
-func (o *DeviceRole) GetVirtualmachineCountOk() (*int32, bool) {
+func (o *DeviceRole) GetVirtualmachineCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -487,7 +253,7 @@ func (o *DeviceRole) GetVirtualmachineCountOk() (*int32, bool) {
}
// SetVirtualmachineCount sets field value
-func (o *DeviceRole) SetVirtualmachineCount(v int32) {
+func (o *DeviceRole) SetVirtualmachineCount(v int64) {
o.VirtualmachineCount = v
}
@@ -506,26 +272,9 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) {
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
}
- 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()
toSerialize["device_count"] = o.DeviceCount
toSerialize["virtualmachine_count"] = o.VirtualmachineCount
@@ -546,8 +295,6 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"device_count",
"virtualmachine_count",
}
@@ -584,14 +331,7 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) {
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
diff --git a/model_device_role_request.go b/model_device_role_request.go
index b853352794..111b389d1b 100644
--- a/model_device_role_request.go
+++ b/model_device_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,11 +24,11 @@ type DeviceRoleRequest struct {
Slug string `json:"slug"`
Color *string `json:"color,omitempty"`
// Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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{}
}
@@ -166,9 +166,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() NestedConfigTemplateRequest {
+func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplateRequest
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -177,7 +177,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() NestedConfigTemplateRequest {
// 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() (*NestedConfigTemplateRequest, bool) {
+func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -193,8 +193,8 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *DeviceRoleRequest) SetConfigTemplate(v NestedConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_device_status.go b/model_device_status.go
index 7527dddef8..04e480442d 100644
--- a/model_device_status.go
+++ b/model_device_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_status_label.go b/model_device_status_label.go
index e62c74e9f2..4490be89a1 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_status_value.go b/model_device_status_value.go
index d0a0ee773f..032b9b5b65 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_device_type.go b/model_device_type.go
index 955f915365..6b71ca2b42 100644
--- a/model_device_type.go
+++ b/model_device_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the DeviceType type satisfies the MappedNullable interface at compile time
@@ -21,44 +20,15 @@ var _ MappedNullable = &DeviceType{}
// DeviceType Adds support for custom fields and tags.
type DeviceType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer NestedManufacturer `json:"manufacturer"`
- DefaultPlatform NullableNestedPlatform `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug"`
- // 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"`
- LastUpdated NullableTime `json:"last_updated"`
- DeviceCount int32 `json:"device_count"`
- ConsolePortTemplateCount int32 `json:"console_port_template_count"`
- ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"`
- PowerPortTemplateCount int32 `json:"power_port_template_count"`
- PowerOutletTemplateCount int32 `json:"power_outlet_template_count"`
- InterfaceTemplateCount int32 `json:"interface_template_count"`
- FrontPortTemplateCount int32 `json:"front_port_template_count"`
- RearPortTemplateCount int32 `json:"rear_port_template_count"`
- DeviceBayTemplateCount int32 `json:"device_bay_template_count"`
- ModuleBayTemplateCount int32 `json:"module_bay_template_count"`
- InventoryItemTemplateCount int32 `json:"inventory_item_template_count"`
- AdditionalProperties map[string]interface{}
+ 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"`
+ AdditionalProperties map[string]interface{}
}
type _DeviceType DeviceType
@@ -67,7 +37,7 @@ type _DeviceType DeviceType
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType {
+func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64) *DeviceType {
this := DeviceType{}
this.Id = id
this.Url = url
@@ -75,21 +45,7 @@ func NewDeviceType(id int32, url string, display string, manufacturer NestedManu
this.Manufacturer = manufacturer
this.Model = model
this.Slug = slug
- var uHeight float64 = 1.0
- this.UHeight = &uHeight
- this.Created = created
- this.LastUpdated = lastUpdated
this.DeviceCount = deviceCount
- this.ConsolePortTemplateCount = consolePortTemplateCount
- this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount
- this.PowerPortTemplateCount = powerPortTemplateCount
- this.PowerOutletTemplateCount = powerOutletTemplateCount
- this.InterfaceTemplateCount = interfaceTemplateCount
- this.FrontPortTemplateCount = frontPortTemplateCount
- this.RearPortTemplateCount = rearPortTemplateCount
- this.DeviceBayTemplateCount = deviceBayTemplateCount
- this.ModuleBayTemplateCount = moduleBayTemplateCount
- this.InventoryItemTemplateCount = inventoryItemTemplateCount
return &this
}
@@ -98,8 +54,6 @@ func NewDeviceType(id int32, url string, display string, manufacturer NestedManu
// 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
}
@@ -176,9 +130,9 @@ func (o *DeviceType) SetDisplay(v string) {
}
// GetManufacturer returns the Manufacturer field value
-func (o *DeviceType) GetManufacturer() NestedManufacturer {
+func (o *DeviceType) GetManufacturer() Manufacturer {
if o == nil {
- var ret NestedManufacturer
+ var ret Manufacturer
return ret
}
@@ -187,7 +141,7 @@ func (o *DeviceType) GetManufacturer() NestedManufacturer {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *DeviceType) GetManufacturerOk() (*NestedManufacturer, bool) {
+func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) {
if o == nil {
return nil, false
}
@@ -195,53 +149,10 @@ func (o *DeviceType) GetManufacturerOk() (*NestedManufacturer, bool) {
}
// SetManufacturer sets field value
-func (o *DeviceType) SetManufacturer(v NestedManufacturer) {
+func (o *DeviceType) SetManufacturer(v Manufacturer) {
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() NestedPlatform {
- if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret NestedPlatform
- 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() (*NestedPlatform, 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 NullableNestedPlatform and assigns it to the DefaultPlatform field.
-func (o *DeviceType) SetDefaultPlatform(v NestedPlatform) {
- o.DefaultPlatform.Set(&v)
-}
-
-// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
-func (o *DeviceType) SetDefaultPlatformNil() {
- o.DefaultPlatform.Set(nil)
-}
-
-// 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 {
@@ -290,392 +201,6 @@ 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) {
@@ -708,158 +233,10 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *DeviceType) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceType) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *DeviceType) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *DeviceType) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *DeviceType) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetDeviceCount returns the DeviceCount field value
-func (o *DeviceType) GetDeviceCount() int32 {
+func (o *DeviceType) GetDeviceCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -868,7 +245,7 @@ func (o *DeviceType) GetDeviceCount() int32 {
// GetDeviceCountOk returns a tuple with the DeviceCount field value
// and a boolean to check if the value has been set.
-func (o *DeviceType) GetDeviceCountOk() (*int32, bool) {
+func (o *DeviceType) GetDeviceCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -876,250 +253,10 @@ func (o *DeviceType) GetDeviceCountOk() (*int32, bool) {
}
// SetDeviceCount sets field value
-func (o *DeviceType) SetDeviceCount(v int32) {
+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) GetConsolePortTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ConsolePortTemplateCount, true
-}
-
-// SetConsolePortTemplateCount sets field value
-func (o *DeviceType) SetConsolePortTemplateCount(v int32) {
- o.ConsolePortTemplateCount = v
-}
-
-// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value
-func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.ConsoleServerPortTemplateCount
-}
-
-// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ConsoleServerPortTemplateCount, true
-}
-
-// SetConsoleServerPortTemplateCount sets field value
-func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) {
- o.ConsoleServerPortTemplateCount = v
-}
-
-// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value
-func (o *DeviceType) GetPowerPortTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.PowerPortTemplateCount
-}
-
-// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PowerPortTemplateCount, true
-}
-
-// SetPowerPortTemplateCount sets field value
-func (o *DeviceType) SetPowerPortTemplateCount(v int32) {
- o.PowerPortTemplateCount = v
-}
-
-// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value
-func (o *DeviceType) GetPowerOutletTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.PowerOutletTemplateCount
-}
-
-// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PowerOutletTemplateCount, true
-}
-
-// SetPowerOutletTemplateCount sets field value
-func (o *DeviceType) SetPowerOutletTemplateCount(v int32) {
- o.PowerOutletTemplateCount = v
-}
-
-// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value
-func (o *DeviceType) GetInterfaceTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.InterfaceTemplateCount
-}
-
-// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InterfaceTemplateCount, true
-}
-
-// SetInterfaceTemplateCount sets field value
-func (o *DeviceType) SetInterfaceTemplateCount(v int32) {
- o.InterfaceTemplateCount = v
-}
-
-// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value
-func (o *DeviceType) GetFrontPortTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.FrontPortTemplateCount
-}
-
-// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.FrontPortTemplateCount, true
-}
-
-// SetFrontPortTemplateCount sets field value
-func (o *DeviceType) SetFrontPortTemplateCount(v int32) {
- o.FrontPortTemplateCount = v
-}
-
-// GetRearPortTemplateCount returns the RearPortTemplateCount field value
-func (o *DeviceType) GetRearPortTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.RearPortTemplateCount
-}
-
-// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.RearPortTemplateCount, true
-}
-
-// SetRearPortTemplateCount sets field value
-func (o *DeviceType) SetRearPortTemplateCount(v int32) {
- o.RearPortTemplateCount = v
-}
-
-// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value
-func (o *DeviceType) GetDeviceBayTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceBayTemplateCount
-}
-
-// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceBayTemplateCount, true
-}
-
-// SetDeviceBayTemplateCount sets field value
-func (o *DeviceType) SetDeviceBayTemplateCount(v int32) {
- o.DeviceBayTemplateCount = v
-}
-
-// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value
-func (o *DeviceType) GetModuleBayTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.ModuleBayTemplateCount
-}
-
-// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ModuleBayTemplateCount, true
-}
-
-// SetModuleBayTemplateCount sets field value
-func (o *DeviceType) SetModuleBayTemplateCount(v int32) {
- o.ModuleBayTemplateCount = v
-}
-
-// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value
-func (o *DeviceType) GetInventoryItemTemplateCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.InventoryItemTemplateCount
-}
-
-// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value
-// and a boolean to check if the value has been set.
-func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InventoryItemTemplateCount, true
-}
-
-// SetInventoryItemTemplateCount sets field value
-func (o *DeviceType) SetInventoryItemTemplateCount(v int32) {
- o.InventoryItemTemplateCount = v
-}
-
func (o DeviceType) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -1134,66 +271,12 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
}
- 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["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
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
@@ -1213,19 +296,7 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) {
"manufacturer",
"model",
"slug",
- "created",
- "last_updated",
"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",
}
allProperties := make(map[string]interface{})
@@ -1259,36 +330,10 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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
}
diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go
deleted file mode 100644
index b18dc84904..0000000000
--- a/model_device_type_airflow.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: 3.7.7 (3.7)
-*/
-
-// 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 fd1fa36b6a..f72377aaa0 100644
--- a/model_device_type_request.go
+++ b/model_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "os"
)
// checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time
@@ -21,27 +20,10 @@ var _ MappedNullable = &DeviceTypeRequest{}
// DeviceTypeRequest Adds support for custom fields and tags.
type DeviceTypeRequest struct {
- Manufacturer NestedManufacturerRequest `json:"manufacturer"`
- DefaultPlatform NullableNestedPlatformRequest `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug"`
- // 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"`
+ Manufacturer ManufacturerRequest `json:"manufacturer"`
+ Model string `json:"model"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -51,13 +33,11 @@ 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 NestedManufacturerRequest, model string, slug string) *DeviceTypeRequest {
+func NewDeviceTypeRequest(manufacturer ManufacturerRequest, 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
}
@@ -66,15 +46,13 @@ func NewDeviceTypeRequest(manufacturer NestedManufacturerRequest, model string,
// 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() NestedManufacturerRequest {
+func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil {
- var ret NestedManufacturerRequest
+ var ret ManufacturerRequest
return ret
}
@@ -83,7 +61,7 @@ func (o *DeviceTypeRequest) GetManufacturer() NestedManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *DeviceTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool) {
+func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -91,53 +69,10 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, boo
}
// SetManufacturer sets field value
-func (o *DeviceTypeRequest) SetManufacturer(v NestedManufacturerRequest) {
+func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) {
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() NestedPlatformRequest {
- if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret NestedPlatformRequest
- 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() (*NestedPlatformRequest, 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 NullableNestedPlatformRequest and assigns it to the DefaultPlatform field.
-func (o *DeviceTypeRequest) SetDefaultPlatform(v NestedPlatformRequest) {
- o.DefaultPlatform.Set(&v)
-}
-
-// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil
-func (o *DeviceTypeRequest) SetDefaultPlatformNil() {
- o.DefaultPlatform.Set(nil)
-}
-
-// 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 {
@@ -186,370 +121,6 @@ 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) {
@@ -582,102 +153,6 @@ 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()
if err != nil {
@@ -689,53 +164,11 @@ 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
@@ -782,23 +215,9 @@ 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
}
diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go
deleted file mode 100644
index 392a89bcfa..0000000000
--- a/model_device_type_request_airflow.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: 3.7.7 (3.7)
-*/
-
-// 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 * `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_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",
- "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
deleted file mode 100644
index 348adadf1c..0000000000
--- a/model_device_type_request_subdevice_role.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index f454a22cef..0000000000
--- a/model_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 9babee1341..0000000000
--- a/model_device_type_subdevice_role.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index e3247b0f35..0000000000
--- a/model_device_type_subdevice_role_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 3964b0518f..0000000000
--- a/model_device_type_subdevice_role_value.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index fef2c0cf01..0000000000
--- a/model_device_type_weight_unit.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 5ea73d759f..0000000000
--- a/model_device_type_weight_unit_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 537a4d8114..0000000000
--- a/model_device_type_weight_unit_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: 3.7.7 (3.7)
-*/
-
-// 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 fdf7d6ba40..f4dfc538e1 100644
--- a/model_device_with_config_context.go
+++ b/model_device_with_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,44 +21,43 @@ var _ MappedNullable = &DeviceWithConfigContext{}
// DeviceWithConfigContext Adds support for custom fields and tags.
type DeviceWithConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name NullableString `json:"name,omitempty"`
- DeviceType NestedDeviceType `json:"device_type"`
- Role NestedDeviceRole `json:"role"`
- DeviceRole DeviceDeviceRole `json:"device_role"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Platform NullableNestedPlatform `json:"platform,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceType `json:"device_type"`
+ Role DeviceRole `json:"role"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
+ Platform NullablePlatform `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site NestedSite `json:"site"`
- Location NullableNestedLocation `json:"location,omitempty"`
- Rack NullableNestedRack `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFace `json:"face,omitempty"`
+ 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"`
// 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 NullableNestedIPAddress `json:"primary_ip"`
- PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"`
- OobIp NullableNestedIPAddress `json:"oob_ip,omitempty"`
- Cluster NullableNestedCluster `json:"cluster,omitempty"`
- VirtualChassis NullableNestedVirtualChassis `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ 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"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableNestedConfigTemplate `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 NullableConfigTemplate `json:"config_template,omitempty"`
+ ConfigContext interface{} `json:"config_context"`
// 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"`
@@ -84,14 +83,13 @@ type _DeviceWithConfigContext DeviceWithConfigContext
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NullableNestedDevice, primaryIp NullableNestedIPAddress, 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 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 {
this := DeviceWithConfigContext{}
this.Id = id
this.Url = url
this.Display = display
this.DeviceType = deviceType
this.Role = role
- this.DeviceRole = deviceRole
this.Site = site
this.ParentDevice = parentDevice
this.PrimaryIp = primaryIp
@@ -235,9 +233,9 @@ func (o *DeviceWithConfigContext) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *DeviceWithConfigContext) GetDeviceType() NestedDeviceType {
+func (o *DeviceWithConfigContext) GetDeviceType() DeviceType {
if o == nil {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
@@ -246,7 +244,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() NestedDeviceType {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*NestedDeviceType, bool) {
+func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -254,14 +252,14 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*NestedDeviceType, bool) {
}
// SetDeviceType sets field value
-func (o *DeviceWithConfigContext) SetDeviceType(v NestedDeviceType) {
+func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) {
o.DeviceType = v
}
// GetRole returns the Role field value
-func (o *DeviceWithConfigContext) GetRole() NestedDeviceRole {
+func (o *DeviceWithConfigContext) GetRole() DeviceRole {
if o == nil {
- var ret NestedDeviceRole
+ var ret DeviceRole
return ret
}
@@ -270,7 +268,7 @@ func (o *DeviceWithConfigContext) GetRole() NestedDeviceRole {
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool) {
+func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) {
if o == nil {
return nil, false
}
@@ -278,38 +276,14 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool) {
}
// SetRole sets field value
-func (o *DeviceWithConfigContext) SetRole(v NestedDeviceRole) {
+func (o *DeviceWithConfigContext) SetRole(v DeviceRole) {
o.Role = v
}
-// GetDeviceRole returns the DeviceRole field value
-func (o *DeviceWithConfigContext) GetDeviceRole() DeviceDeviceRole {
- if o == nil {
- var ret DeviceDeviceRole
- return ret
- }
-
- return o.DeviceRole
-}
-
-// GetDeviceRoleOk returns a tuple with the DeviceRole field value
-// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*DeviceDeviceRole, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceRole, true
-}
-
-// SetDeviceRole sets field value
-func (o *DeviceWithConfigContext) SetDeviceRole(v DeviceDeviceRole) {
- o.DeviceRole = 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() NestedTenant {
+func (o *DeviceWithConfigContext) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -318,7 +292,7 @@ func (o *DeviceWithConfigContext) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -334,8 +308,8 @@ func (o *DeviceWithConfigContext) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *DeviceWithConfigContext) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *DeviceWithConfigContext) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -350,9 +324,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() NestedPlatform {
+func (o *DeviceWithConfigContext) GetPlatform() Platform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret NestedPlatform
+ var ret Platform
return ret
}
return *o.Platform.Get()
@@ -361,7 +335,7 @@ func (o *DeviceWithConfigContext) GetPlatform() NestedPlatform {
// 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() (*NestedPlatform, bool) {
+func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool) {
if o == nil {
return nil, false
}
@@ -377,8 +351,8 @@ func (o *DeviceWithConfigContext) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableNestedPlatform and assigns it to the Platform field.
-func (o *DeviceWithConfigContext) SetPlatform(v NestedPlatform) {
+// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field.
+func (o *DeviceWithConfigContext) SetPlatform(v Platform) {
o.Platform.Set(&v)
}
@@ -468,9 +442,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *DeviceWithConfigContext) GetSite() NestedSite {
+func (o *DeviceWithConfigContext) GetSite() Site {
if o == nil {
- var ret NestedSite
+ var ret Site
return ret
}
@@ -479,7 +453,7 @@ func (o *DeviceWithConfigContext) GetSite() NestedSite {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContext) GetSiteOk() (*NestedSite, bool) {
+func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) {
if o == nil {
return nil, false
}
@@ -487,14 +461,14 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*NestedSite, bool) {
}
// SetSite sets field value
-func (o *DeviceWithConfigContext) SetSite(v NestedSite) {
+func (o *DeviceWithConfigContext) SetSite(v Site) {
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() NestedLocation {
+func (o *DeviceWithConfigContext) GetLocation() Location {
if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocation
+ var ret Location
return ret
}
return *o.Location.Get()
@@ -503,7 +477,7 @@ func (o *DeviceWithConfigContext) GetLocation() NestedLocation {
// 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() (*NestedLocation, bool) {
+func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool) {
if o == nil {
return nil, false
}
@@ -519,8 +493,8 @@ func (o *DeviceWithConfigContext) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableNestedLocation and assigns it to the Location field.
-func (o *DeviceWithConfigContext) SetLocation(v NestedLocation) {
+// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field.
+func (o *DeviceWithConfigContext) SetLocation(v Location) {
o.Location.Set(&v)
}
@@ -535,9 +509,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() NestedRack {
+func (o *DeviceWithConfigContext) GetRack() Rack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret NestedRack
+ var ret Rack
return ret
}
return *o.Rack.Get()
@@ -546,7 +520,7 @@ func (o *DeviceWithConfigContext) GetRack() NestedRack {
// 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() (*NestedRack, bool) {
+func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool) {
if o == nil {
return nil, false
}
@@ -562,8 +536,8 @@ func (o *DeviceWithConfigContext) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableNestedRack and assigns it to the Rack field.
-func (o *DeviceWithConfigContext) SetRack(v NestedRack) {
+// SetRack gets a reference to the given NullableRack and assigns it to the Rack field.
+func (o *DeviceWithConfigContext) SetRack(v Rack) {
o.Rack.Set(&v)
}
@@ -829,10 +803,10 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) {
}
// GetPrimaryIp returns the PrimaryIp field value
-// If the value is explicit nil, the zero value for NestedIPAddress will be returned
-func (o *DeviceWithConfigContext) GetPrimaryIp() NestedIPAddress {
+// 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 NestedIPAddress
+ var ret IPAddress
return ret
}
@@ -842,7 +816,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp() NestedIPAddress {
// GetPrimaryIpOk returns a tuple with the PrimaryIp field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bool) {
+func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -850,14 +824,14 @@ func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bool) {
}
// SetPrimaryIp sets field value
-func (o *DeviceWithConfigContext) SetPrimaryIp(v NestedIPAddress) {
+func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) {
o.PrimaryIp.Set(&v)
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *DeviceWithConfigContext) GetPrimaryIp4() NestedIPAddress {
+func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp4.Get()
@@ -866,7 +840,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -882,8 +856,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp4 field.
-func (o *DeviceWithConfigContext) SetPrimaryIp4(v NestedIPAddress) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field.
+func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) {
o.PrimaryIp4.Set(&v)
}
@@ -898,9 +872,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() NestedIPAddress {
+func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp6.Get()
@@ -909,7 +883,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -925,8 +899,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp6 field.
-func (o *DeviceWithConfigContext) SetPrimaryIp6(v NestedIPAddress) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field.
+func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) {
o.PrimaryIp6.Set(&v)
}
@@ -941,9 +915,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() NestedIPAddress {
+func (o *DeviceWithConfigContext) GetOobIp() IPAddress {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.OobIp.Get()
@@ -952,7 +926,7 @@ func (o *DeviceWithConfigContext) GetOobIp() NestedIPAddress {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContext) GetOobIpOk() (*NestedIPAddress, bool) {
+func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -968,8 +942,8 @@ func (o *DeviceWithConfigContext) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableNestedIPAddress and assigns it to the OobIp field.
-func (o *DeviceWithConfigContext) SetOobIp(v NestedIPAddress) {
+// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field.
+func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) {
o.OobIp.Set(&v)
}
@@ -984,9 +958,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() NestedCluster {
+func (o *DeviceWithConfigContext) GetCluster() Cluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret NestedCluster
+ var ret Cluster
return ret
}
return *o.Cluster.Get()
@@ -995,7 +969,7 @@ func (o *DeviceWithConfigContext) GetCluster() NestedCluster {
// 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() (*NestedCluster, bool) {
+func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool) {
if o == nil {
return nil, false
}
@@ -1011,8 +985,8 @@ func (o *DeviceWithConfigContext) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableNestedCluster and assigns it to the Cluster field.
-func (o *DeviceWithConfigContext) SetCluster(v NestedCluster) {
+// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field.
+func (o *DeviceWithConfigContext) SetCluster(v Cluster) {
o.Cluster.Set(&v)
}
@@ -1027,9 +1001,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() NestedVirtualChassis {
+func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret NestedVirtualChassis
+ var ret VirtualChassis
return ret
}
return *o.VirtualChassis.Get()
@@ -1038,7 +1012,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() NestedVirtualChassis {
// 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() (*NestedVirtualChassis, bool) {
+func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool) {
if o == nil {
return nil, false
}
@@ -1054,8 +1028,8 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableNestedVirtualChassis and assigns it to the VirtualChassis field.
-func (o *DeviceWithConfigContext) SetVirtualChassis(v NestedVirtualChassis) {
+// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field.
+func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) {
o.VirtualChassis.Set(&v)
}
@@ -1220,9 +1194,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() NestedConfigTemplate {
+func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplate
+ var ret ConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -1231,7 +1205,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate {
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool) {
+func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -1247,8 +1221,8 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field.
-func (o *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
@@ -1695,7 +1669,6 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) {
}
toSerialize["device_type"] = o.DeviceType
toSerialize["role"] = o.Role
- toSerialize["device_role"] = o.DeviceRole
if o.Tenant.IsSet() {
toSerialize["tenant"] = o.Tenant.Get()
}
@@ -1807,7 +1780,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) {
"display",
"device_type",
"role",
- "device_role",
"site",
"parent_device",
"primary_ip",
@@ -1859,7 +1831,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "name")
delete(additionalProperties, "device_type")
delete(additionalProperties, "role")
- delete(additionalProperties, "device_role")
delete(additionalProperties, "tenant")
delete(additionalProperties, "platform")
delete(additionalProperties, "serial")
diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go
index e559bfd339..b259fc842e 100644
--- a/model_device_with_config_context_request.go
+++ b/model_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,37 +20,37 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{}
// DeviceWithConfigContextRequest Adds support for custom fields and tags.
type DeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType NestedDeviceTypeRequest `json:"device_type"`
- Role NestedDeviceRoleRequest `json:"role"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Platform NullableNestedPlatformRequest `json:"platform,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceTypeRequest `json:"device_type"`
+ Role DeviceRoleRequest `json:"role"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
+ Platform NullablePlatformRequest `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site NestedSiteRequest `json:"site"`
- Location NullableNestedLocationRequest `json:"location,omitempty"`
- Rack NullableNestedRackRequest `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *DeviceFaceValue `json:"face,omitempty"`
+ 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"`
// 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 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"`
- OobIp NullableNestedIPAddressRequest `json:"oob_ip,omitempty"`
- Cluster NullableNestedClusterRequest `json:"cluster,omitempty"`
- VirtualChassis NullableNestedVirtualChassisRequest `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ 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"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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"`
@@ -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 NestedDeviceTypeRequest, role NestedDeviceRoleRequest, site NestedSiteRequest) *DeviceWithConfigContextRequest {
+func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest {
this := DeviceWithConfigContextRequest{}
this.DeviceType = deviceType
this.Role = role
@@ -124,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *DeviceWithConfigContextRequest) GetDeviceType() NestedDeviceTypeRequest {
+func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest {
if o == nil {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
@@ -135,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() NestedDeviceTypeRequest
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -143,14 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*NestedDeviceTypeReq
}
// SetDeviceType sets field value
-func (o *DeviceWithConfigContextRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = v
}
// GetRole returns the Role field value
-func (o *DeviceWithConfigContextRequest) GetRole() NestedDeviceRoleRequest {
+func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil {
- var ret NestedDeviceRoleRequest
+ var ret DeviceRoleRequest
return ret
}
@@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() NestedDeviceRoleRequest {
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -167,14 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest,
}
// SetRole sets field value
-func (o *DeviceWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest) {
+func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
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() NestedTenantRequest {
+func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -183,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -199,8 +199,8 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *DeviceWithConfigContextRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -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() NestedPlatformRequest {
+func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret NestedPlatformRequest
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() NestedPlatformRequest {
// 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() (*NestedPlatformRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -242,8 +242,8 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableNestedPlatformRequest and assigns it to the Platform field.
-func (o *DeviceWithConfigContextRequest) SetPlatform(v NestedPlatformRequest) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -333,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *DeviceWithConfigContextRequest) GetSite() NestedSiteRequest {
+func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest {
if o == nil {
- var ret NestedSiteRequest
+ var ret SiteRequest
return ret
}
@@ -344,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() NestedSiteRequest {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *DeviceWithConfigContextRequest) GetSiteOk() (*NestedSiteRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -352,14 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*NestedSiteRequest, bool)
}
// SetSite sets field value
-func (o *DeviceWithConfigContextRequest) SetSite(v NestedSiteRequest) {
+func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) {
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() NestedLocationRequest {
+func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocationRequest
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -368,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() NestedLocationRequest {
// 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() (*NestedLocationRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -384,8 +384,8 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableNestedLocationRequest and assigns it to the Location field.
-func (o *DeviceWithConfigContextRequest) SetLocation(v NestedLocationRequest) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
@@ -400,9 +400,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() NestedRackRequest {
+func (o *DeviceWithConfigContextRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret NestedRackRequest
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -411,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() NestedRackRequest {
// 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() (*NestedRackRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -427,8 +427,8 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableNestedRackRequest and assigns it to the Rack field.
-func (o *DeviceWithConfigContextRequest) SetRack(v NestedRackRequest) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -668,9 +668,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() NestedIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -679,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() NestedIPAddressRequest
// 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() (*NestedIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -695,8 +695,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -711,9 +711,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() NestedIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -722,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() NestedIPAddressRequest
// 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() (*NestedIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -738,8 +738,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -754,9 +754,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() NestedIPAddressRequest {
+func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.OobIp.Get()
@@ -765,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() NestedIPAddressRequest {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*NestedIPAddressRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -781,8 +781,8 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableNestedIPAddressRequest and assigns it to the OobIp field.
-func (o *DeviceWithConfigContextRequest) SetOobIp(v NestedIPAddressRequest) {
+// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field.
+func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) {
o.OobIp.Set(&v)
}
@@ -797,9 +797,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() NestedClusterRequest {
+func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret NestedClusterRequest
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -808,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() NestedClusterRequest {
// 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() (*NestedClusterRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -824,8 +824,8 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableNestedClusterRequest and assigns it to the Cluster field.
-func (o *DeviceWithConfigContextRequest) SetCluster(v NestedClusterRequest) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -840,9 +840,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() NestedVirtualChassisRequest {
+func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret NestedVirtualChassisRequest
+ var ret VirtualChassisRequest
return ret
}
return *o.VirtualChassis.Get()
@@ -851,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() NestedVirtualChassi
// 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() (*NestedVirtualChassisRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) {
if o == nil {
return nil, false
}
@@ -867,8 +867,8 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableNestedVirtualChassisRequest and assigns it to the VirtualChassis field.
-func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v NestedVirtualChassisRequest) {
+// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field.
+func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) {
o.VirtualChassis.Set(&v)
}
@@ -1033,9 +1033,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() NestedConfigTemplateRequest {
+func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplateRequest
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -1044,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplat
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool) {
+func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -1060,8 +1060,8 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_encryption.go b/model_encryption.go
index cce40eab30..718a00acd8 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_end.go b/model_end.go
index c863f27674..e5ba360cb8 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ import (
"fmt"
)
-// End * `A` - A * `B` - B
+// End the model 'End'
type End string
// List of End
diff --git a/model_end_1.go b/model_end_1.go
new file mode 100644
index 0000000000..b71fc25b13
--- /dev/null
+++ b/model_end_1.go
@@ -0,0 +1,110 @@
+/*
+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"
+)
+
+// End1 * `A` - A * `B` - B
+type End1 string
+
+// List of End_1
+const (
+ END1_A End1 = "A"
+ END1_B End1 = "B"
+)
+
+// All allowed values of End1 enum
+var AllowedEnd1EnumValues = []End1{
+ "A",
+ "B",
+}
+
+func (v *End1) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := End1(value)
+ for _, existing := range AllowedEnd1EnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid End1", value)
+}
+
+// NewEnd1FromValue returns a pointer to a valid End1
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewEnd1FromValue(v string) (*End1, error) {
+ ev := End1(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for End1: valid values are %v", v, AllowedEnd1EnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v End1) IsValid() bool {
+ for _, existing := range AllowedEnd1EnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to End_1 value
+func (v End1) Ptr() *End1 {
+ return &v
+}
+
+type NullableEnd1 struct {
+ value *End1
+ isSet bool
+}
+
+func (v NullableEnd1) Get() *End1 {
+ return v.value
+}
+
+func (v *NullableEnd1) Set(val *End1) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEnd1) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEnd1) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEnd1(val *End1) *NullableEnd1 {
+ return &NullableEnd1{value: val, isSet: true}
+}
+
+func (v NullableEnd1) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEnd1) 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 f4ac066761..b3f5d4e410 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,11 +21,11 @@ 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"`
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ 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.
@@ -57,12 +57,12 @@ 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, contentTypes []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, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule {
this := EventRule{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.ActionType = actionType
this.ActionObjectType = actionObjectType
@@ -152,28 +152,28 @@ func (o *EventRule) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *EventRule) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *EventRule) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *EventRule) GetContentTypesOk() ([]string, bool) {
+func (o *EventRule) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *EventRule) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *EventRule) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -701,7 +701,7 @@ func (o EventRule) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.TypeCreate) {
toSerialize["type_create"] = o.TypeCreate
@@ -757,7 +757,7 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_types",
+ "object_types",
"name",
"action_type",
"action_object_type",
@@ -796,7 +796,7 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "type_create")
delete(additionalProperties, "type_update")
diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go
index 3f8a5044f5..1c8cb0534a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go
index 3f35ccbdde..d58423d475 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go
index 791fa84f54..9c309b8d2b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_event_rule_request.go b/model_event_rule_request.go
index 5d4184e6ba..e9a76def0f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &EventRuleRequest{}
// EventRuleRequest Adds support for custom fields and tags.
type EventRuleRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
+ 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.
@@ -50,9 +50,9 @@ 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(contentTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest {
+func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest {
this := EventRuleRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.ActionType = actionType
this.ActionObjectType = actionObjectType
@@ -67,28 +67,28 @@ func NewEventRuleRequestWithDefaults() *EventRuleRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *EventRuleRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *EventRuleRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *EventRuleRequest) GetContentTypesOk() ([]string, bool) {
+func (o *EventRuleRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *EventRuleRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *EventRuleRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -537,7 +537,7 @@ func (o EventRuleRequest) MarshalJSON() ([]byte, error) {
func (o EventRuleRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.TypeCreate) {
toSerialize["type_create"] = o.TypeCreate
@@ -587,7 +587,7 @@ func (o *EventRuleRequest) 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{
- "content_types",
+ "object_types",
"name",
"action_type",
"action_object_type",
@@ -620,7 +620,7 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "type_create")
delete(additionalProperties, "type_update")
diff --git a/model_export_template.go b/model_export_template.go
index 5e1d5cf9f1..e034604cdc 100644
--- a/model_export_template.go
+++ b/model_export_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ var _ MappedNullable = &ExportTemplate{}
// ExportTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ExportTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ ObjectTypes []string `json:"object_types"`
+ 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 +34,14 @@ type ExportTemplate struct {
// Extension to append to the rendered filename
FileExtension *string `json:"file_extension,omitempty"`
// Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- DataSource *NestedDataSource `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *DataSource `json:"data_source,omitempty"`
// Path to remote file (relative to data source root)
- DataPath string `json:"data_path"`
- DataFile NestedDataFile `json:"data_file"`
- DataSynced NullableTime `json:"data_synced"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ DataPath string `json:"data_path"`
+ DataFile DataFile `json:"data_file"`
+ DataSynced NullableTime `json:"data_synced"`
+ Created NullableTime `json:"created"`
+ LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
}
@@ -51,12 +51,12 @@ 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, contentTypes []string, name string, templateCode string, dataPath string, dataFile NestedDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate {
+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 {
this := ExportTemplate{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.TemplateCode = templateCode
this.DataPath = dataPath
@@ -147,28 +147,28 @@ func (o *ExportTemplate) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *ExportTemplate) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *ExportTemplate) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *ExportTemplate) GetContentTypesOk() ([]string, bool) {
+func (o *ExportTemplate) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *ExportTemplate) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *ExportTemplate) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -348,9 +348,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ExportTemplate) GetDataSource() NestedDataSource {
+func (o *ExportTemplate) GetDataSource() DataSource {
if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSource
+ var ret DataSource
return ret
}
return *o.DataSource
@@ -358,7 +358,7 @@ func (o *ExportTemplate) GetDataSource() NestedDataSource {
// 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() (*NestedDataSource, bool) {
+func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -374,8 +374,8 @@ func (o *ExportTemplate) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given NestedDataSource and assigns it to the DataSource field.
-func (o *ExportTemplate) SetDataSource(v NestedDataSource) {
+// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field.
+func (o *ExportTemplate) SetDataSource(v DataSource) {
o.DataSource = &v
}
@@ -404,9 +404,9 @@ func (o *ExportTemplate) SetDataPath(v string) {
}
// GetDataFile returns the DataFile field value
-func (o *ExportTemplate) GetDataFile() NestedDataFile {
+func (o *ExportTemplate) GetDataFile() DataFile {
if o == nil {
- var ret NestedDataFile
+ var ret DataFile
return ret
}
@@ -415,7 +415,7 @@ func (o *ExportTemplate) GetDataFile() NestedDataFile {
// GetDataFileOk returns a tuple with the DataFile field value
// and a boolean to check if the value has been set.
-func (o *ExportTemplate) GetDataFileOk() (*NestedDataFile, bool) {
+func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) {
if o == nil {
return nil, false
}
@@ -423,7 +423,7 @@ func (o *ExportTemplate) GetDataFileOk() (*NestedDataFile, bool) {
}
// SetDataFile sets field value
-func (o *ExportTemplate) SetDataFile(v NestedDataFile) {
+func (o *ExportTemplate) SetDataFile(v DataFile) {
o.DataFile = v
}
@@ -518,7 +518,7 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
@@ -557,7 +557,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_types",
+ "object_types",
"name",
"template_code",
"data_path",
@@ -597,7 +597,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "template_code")
diff --git a/model_export_template_request.go b/model_export_template_request.go
index 2285e24196..16e3ea6a5c 100644
--- a/model_export_template_request.go
+++ b/model_export_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &ExportTemplateRequest{}
// ExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ExportTemplateRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
+ ObjectTypes []string `json:"object_types"`
+ 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 *NestedDataSourceRequest `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *DataSourceRequest `json:"data_source,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,9 +41,9 @@ type _ExportTemplateRequest ExportTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewExportTemplateRequest(contentTypes []string, name string, templateCode string) *ExportTemplateRequest {
+func NewExportTemplateRequest(objectTypes []string, name string, templateCode string) *ExportTemplateRequest {
this := ExportTemplateRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.TemplateCode = templateCode
return &this
@@ -57,28 +57,28 @@ func NewExportTemplateRequestWithDefaults() *ExportTemplateRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *ExportTemplateRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *ExportTemplateRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *ExportTemplateRequest) GetContentTypesOk() ([]string, bool) {
+func (o *ExportTemplateRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *ExportTemplateRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *ExportTemplateRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -258,9 +258,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) {
}
// GetDataSource returns the DataSource field value if set, zero value otherwise.
-func (o *ExportTemplateRequest) GetDataSource() NestedDataSourceRequest {
+func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest {
if o == nil || IsNil(o.DataSource) {
- var ret NestedDataSourceRequest
+ var ret DataSourceRequest
return ret
}
return *o.DataSource
@@ -268,7 +268,7 @@ func (o *ExportTemplateRequest) GetDataSource() NestedDataSourceRequest {
// 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() (*NestedDataSourceRequest, bool) {
+func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) {
if o == nil || IsNil(o.DataSource) {
return nil, false
}
@@ -284,8 +284,8 @@ func (o *ExportTemplateRequest) HasDataSource() bool {
return false
}
-// SetDataSource gets a reference to the given NestedDataSourceRequest and assigns it to the DataSource field.
-func (o *ExportTemplateRequest) SetDataSource(v NestedDataSourceRequest) {
+// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field.
+func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) {
o.DataSource = &v
}
@@ -299,7 +299,7 @@ func (o ExportTemplateRequest) MarshalJSON() ([]byte, error) {
func (o ExportTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
@@ -330,7 +330,7 @@ func (o *ExportTemplateRequest) 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{
- "content_types",
+ "object_types",
"name",
"template_code",
}
@@ -362,7 +362,7 @@ func (o *ExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "template_code")
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
new file mode 100644
index 0000000000..549d77f709
--- /dev/null
+++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// ExtrasCustomFieldChoiceSetsListBaseChoicesParameter the model 'ExtrasCustomFieldChoiceSetsListBaseChoicesParameter'
+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_UN_LOCODE ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "UN_LOCODE"
+)
+
+// All allowed values of ExtrasCustomFieldChoiceSetsListBaseChoicesParameter enum
+var AllowedExtrasCustomFieldChoiceSetsListBaseChoicesParameterEnumValues = []ExtrasCustomFieldChoiceSetsListBaseChoicesParameter{
+ "IATA",
+ "ISO_3166",
+ "UN_LOCODE",
+}
+
+func (v *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ExtrasCustomFieldChoiceSetsListBaseChoicesParameter(value)
+ for _, existing := range AllowedExtrasCustomFieldChoiceSetsListBaseChoicesParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ExtrasCustomFieldChoiceSetsListBaseChoicesParameter", value)
+}
+
+// NewExtrasCustomFieldChoiceSetsListBaseChoicesParameterFromValue returns a pointer to a valid ExtrasCustomFieldChoiceSetsListBaseChoicesParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewExtrasCustomFieldChoiceSetsListBaseChoicesParameterFromValue(v string) (*ExtrasCustomFieldChoiceSetsListBaseChoicesParameter, error) {
+ ev := ExtrasCustomFieldChoiceSetsListBaseChoicesParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomFieldChoiceSetsListBaseChoicesParameter: valid values are %v", v, AllowedExtrasCustomFieldChoiceSetsListBaseChoicesParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) IsValid() bool {
+ for _, existing := range AllowedExtrasCustomFieldChoiceSetsListBaseChoicesParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to extras_custom_field_choice_sets_list_base_choices_parameter value
+func (v ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) Ptr() *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter {
+ return &v
+}
+
+type NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter struct {
+ value *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter
+ isSet bool
+}
+
+func (v NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) Get() *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter {
+ return v.value
+}
+
+func (v *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) Set(val *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter(val *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter {
+ return &NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter{value: val, isSet: true}
+}
+
+func (v NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..e06b579501
--- /dev/null
+++ b/model_extras_custom_fields_list_filter_logic_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// ExtrasCustomFieldsListFilterLogicParameter the model 'ExtrasCustomFieldsListFilterLogicParameter'
+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"
+)
+
+// All allowed values of ExtrasCustomFieldsListFilterLogicParameter enum
+var AllowedExtrasCustomFieldsListFilterLogicParameterEnumValues = []ExtrasCustomFieldsListFilterLogicParameter{
+ "disabled",
+ "exact",
+ "loose",
+}
+
+func (v *ExtrasCustomFieldsListFilterLogicParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ExtrasCustomFieldsListFilterLogicParameter(value)
+ for _, existing := range AllowedExtrasCustomFieldsListFilterLogicParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ExtrasCustomFieldsListFilterLogicParameter", value)
+}
+
+// NewExtrasCustomFieldsListFilterLogicParameterFromValue returns a pointer to a valid ExtrasCustomFieldsListFilterLogicParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewExtrasCustomFieldsListFilterLogicParameterFromValue(v string) (*ExtrasCustomFieldsListFilterLogicParameter, error) {
+ ev := ExtrasCustomFieldsListFilterLogicParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomFieldsListFilterLogicParameter: valid values are %v", v, AllowedExtrasCustomFieldsListFilterLogicParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ExtrasCustomFieldsListFilterLogicParameter) IsValid() bool {
+ for _, existing := range AllowedExtrasCustomFieldsListFilterLogicParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to extras_custom_fields_list_filter_logic_parameter value
+func (v ExtrasCustomFieldsListFilterLogicParameter) Ptr() *ExtrasCustomFieldsListFilterLogicParameter {
+ return &v
+}
+
+type NullableExtrasCustomFieldsListFilterLogicParameter struct {
+ value *ExtrasCustomFieldsListFilterLogicParameter
+ isSet bool
+}
+
+func (v NullableExtrasCustomFieldsListFilterLogicParameter) Get() *ExtrasCustomFieldsListFilterLogicParameter {
+ return v.value
+}
+
+func (v *NullableExtrasCustomFieldsListFilterLogicParameter) Set(val *ExtrasCustomFieldsListFilterLogicParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExtrasCustomFieldsListFilterLogicParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExtrasCustomFieldsListFilterLogicParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExtrasCustomFieldsListFilterLogicParameter(val *ExtrasCustomFieldsListFilterLogicParameter) *NullableExtrasCustomFieldsListFilterLogicParameter {
+ return &NullableExtrasCustomFieldsListFilterLogicParameter{value: val, isSet: true}
+}
+
+func (v NullableExtrasCustomFieldsListFilterLogicParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExtrasCustomFieldsListFilterLogicParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..507235fe93
--- /dev/null
+++ b/model_extras_custom_fields_list_ui_editable_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// ExtrasCustomFieldsListUiEditableParameter the model 'ExtrasCustomFieldsListUiEditableParameter'
+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"
+)
+
+// All allowed values of ExtrasCustomFieldsListUiEditableParameter enum
+var AllowedExtrasCustomFieldsListUiEditableParameterEnumValues = []ExtrasCustomFieldsListUiEditableParameter{
+ "hidden",
+ "no",
+ "yes",
+}
+
+func (v *ExtrasCustomFieldsListUiEditableParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ExtrasCustomFieldsListUiEditableParameter(value)
+ for _, existing := range AllowedExtrasCustomFieldsListUiEditableParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ExtrasCustomFieldsListUiEditableParameter", value)
+}
+
+// NewExtrasCustomFieldsListUiEditableParameterFromValue returns a pointer to a valid ExtrasCustomFieldsListUiEditableParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewExtrasCustomFieldsListUiEditableParameterFromValue(v string) (*ExtrasCustomFieldsListUiEditableParameter, error) {
+ ev := ExtrasCustomFieldsListUiEditableParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomFieldsListUiEditableParameter: valid values are %v", v, AllowedExtrasCustomFieldsListUiEditableParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ExtrasCustomFieldsListUiEditableParameter) IsValid() bool {
+ for _, existing := range AllowedExtrasCustomFieldsListUiEditableParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to extras_custom_fields_list_ui_editable_parameter value
+func (v ExtrasCustomFieldsListUiEditableParameter) Ptr() *ExtrasCustomFieldsListUiEditableParameter {
+ return &v
+}
+
+type NullableExtrasCustomFieldsListUiEditableParameter struct {
+ value *ExtrasCustomFieldsListUiEditableParameter
+ isSet bool
+}
+
+func (v NullableExtrasCustomFieldsListUiEditableParameter) Get() *ExtrasCustomFieldsListUiEditableParameter {
+ return v.value
+}
+
+func (v *NullableExtrasCustomFieldsListUiEditableParameter) Set(val *ExtrasCustomFieldsListUiEditableParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExtrasCustomFieldsListUiEditableParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExtrasCustomFieldsListUiEditableParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExtrasCustomFieldsListUiEditableParameter(val *ExtrasCustomFieldsListUiEditableParameter) *NullableExtrasCustomFieldsListUiEditableParameter {
+ return &NullableExtrasCustomFieldsListUiEditableParameter{value: val, isSet: true}
+}
+
+func (v NullableExtrasCustomFieldsListUiEditableParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExtrasCustomFieldsListUiEditableParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..47e4aaa2bd
--- /dev/null
+++ b/model_extras_custom_fields_list_ui_visible_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// ExtrasCustomFieldsListUiVisibleParameter the model 'ExtrasCustomFieldsListUiVisibleParameter'
+type ExtrasCustomFieldsListUiVisibleParameter string
+
+// List of extras_custom_fields_list_ui_visible_parameter
+const (
+ EXTRASCUSTOMFIELDSLISTUIVISIBLEPARAMETER_ALWAYS ExtrasCustomFieldsListUiVisibleParameter = "always"
+ EXTRASCUSTOMFIELDSLISTUIVISIBLEPARAMETER_HIDDEN ExtrasCustomFieldsListUiVisibleParameter = "hidden"
+ EXTRASCUSTOMFIELDSLISTUIVISIBLEPARAMETER_IF_SET ExtrasCustomFieldsListUiVisibleParameter = "if-set"
+)
+
+// All allowed values of ExtrasCustomFieldsListUiVisibleParameter enum
+var AllowedExtrasCustomFieldsListUiVisibleParameterEnumValues = []ExtrasCustomFieldsListUiVisibleParameter{
+ "always",
+ "hidden",
+ "if-set",
+}
+
+func (v *ExtrasCustomFieldsListUiVisibleParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ExtrasCustomFieldsListUiVisibleParameter(value)
+ for _, existing := range AllowedExtrasCustomFieldsListUiVisibleParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ExtrasCustomFieldsListUiVisibleParameter", value)
+}
+
+// NewExtrasCustomFieldsListUiVisibleParameterFromValue returns a pointer to a valid ExtrasCustomFieldsListUiVisibleParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewExtrasCustomFieldsListUiVisibleParameterFromValue(v string) (*ExtrasCustomFieldsListUiVisibleParameter, error) {
+ ev := ExtrasCustomFieldsListUiVisibleParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomFieldsListUiVisibleParameter: valid values are %v", v, AllowedExtrasCustomFieldsListUiVisibleParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ExtrasCustomFieldsListUiVisibleParameter) IsValid() bool {
+ for _, existing := range AllowedExtrasCustomFieldsListUiVisibleParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to extras_custom_fields_list_ui_visible_parameter value
+func (v ExtrasCustomFieldsListUiVisibleParameter) Ptr() *ExtrasCustomFieldsListUiVisibleParameter {
+ return &v
+}
+
+type NullableExtrasCustomFieldsListUiVisibleParameter struct {
+ value *ExtrasCustomFieldsListUiVisibleParameter
+ isSet bool
+}
+
+func (v NullableExtrasCustomFieldsListUiVisibleParameter) Get() *ExtrasCustomFieldsListUiVisibleParameter {
+ return v.value
+}
+
+func (v *NullableExtrasCustomFieldsListUiVisibleParameter) Set(val *ExtrasCustomFieldsListUiVisibleParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExtrasCustomFieldsListUiVisibleParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExtrasCustomFieldsListUiVisibleParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExtrasCustomFieldsListUiVisibleParameter(val *ExtrasCustomFieldsListUiVisibleParameter) *NullableExtrasCustomFieldsListUiVisibleParameter {
+ return &NullableExtrasCustomFieldsListUiVisibleParameter{value: val, isSet: true}
+}
+
+func (v NullableExtrasCustomFieldsListUiVisibleParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExtrasCustomFieldsListUiVisibleParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..db3b288e92
--- /dev/null
+++ b/model_extras_custom_links_list_button_class_parameter.go
@@ -0,0 +1,136 @@
+/*
+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"
+)
+
+// ExtrasCustomLinksListButtonClassParameter the model 'ExtrasCustomLinksListButtonClassParameter'
+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"
+)
+
+// All allowed values of ExtrasCustomLinksListButtonClassParameter enum
+var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomLinksListButtonClassParameter{
+ "black",
+ "blue",
+ "cyan",
+ "ghost-dark",
+ "gray",
+ "green",
+ "indigo",
+ "orange",
+ "outline-dark",
+ "pink",
+ "purple",
+ "red",
+ "teal",
+ "white",
+ "yellow",
+}
+
+func (v *ExtrasCustomLinksListButtonClassParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ExtrasCustomLinksListButtonClassParameter(value)
+ for _, existing := range AllowedExtrasCustomLinksListButtonClassParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ExtrasCustomLinksListButtonClassParameter", value)
+}
+
+// NewExtrasCustomLinksListButtonClassParameterFromValue returns a pointer to a valid ExtrasCustomLinksListButtonClassParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewExtrasCustomLinksListButtonClassParameterFromValue(v string) (*ExtrasCustomLinksListButtonClassParameter, error) {
+ ev := ExtrasCustomLinksListButtonClassParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomLinksListButtonClassParameter: valid values are %v", v, AllowedExtrasCustomLinksListButtonClassParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ExtrasCustomLinksListButtonClassParameter) IsValid() bool {
+ for _, existing := range AllowedExtrasCustomLinksListButtonClassParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to extras_custom_links_list_button_class_parameter value
+func (v ExtrasCustomLinksListButtonClassParameter) Ptr() *ExtrasCustomLinksListButtonClassParameter {
+ return &v
+}
+
+type NullableExtrasCustomLinksListButtonClassParameter struct {
+ value *ExtrasCustomLinksListButtonClassParameter
+ isSet bool
+}
+
+func (v NullableExtrasCustomLinksListButtonClassParameter) Get() *ExtrasCustomLinksListButtonClassParameter {
+ return v.value
+}
+
+func (v *NullableExtrasCustomLinksListButtonClassParameter) Set(val *ExtrasCustomLinksListButtonClassParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableExtrasCustomLinksListButtonClassParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableExtrasCustomLinksListButtonClassParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableExtrasCustomLinksListButtonClassParameter(val *ExtrasCustomLinksListButtonClassParameter) *NullableExtrasCustomLinksListButtonClassParameter {
+ return &NullableExtrasCustomLinksListButtonClassParameter{value: val, isSet: true}
+}
+
+func (v NullableExtrasCustomLinksListButtonClassParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableExtrasCustomLinksListButtonClassParameter) UnmarshalJSON(src []byte) error {
+ 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
new file mode 100644
index 0000000000..bafdc5ac8e
--- /dev/null
+++ b/model_extras_object_changes_list_action_parameter.go
@@ -0,0 +1,112 @@
+/*
+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 e178cad9e7..edddea0c1c 100644
--- a/model_fhrp_group.go
+++ b/model_fhrp_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the FHRPGroup type satisfies the MappedNullable interface at compile time
@@ -21,21 +20,12 @@ var _ MappedNullable = &FHRPGroup{}
// FHRPGroup Adds support for custom fields and tags.
type FHRPGroup struct {
- Id int32 `json:"id"`
- Name *string `json:"name,omitempty"`
- Url string `json:"url"`
- Display string `json:"display"`
- Protocol FHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- AuthType *AuthenticationType `json:"auth_type,omitempty"`
- AuthKey *string `json:"auth_key,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- IpAddresses []NestedIPAddress `json:"ip_addresses"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -45,16 +35,13 @@ 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, created NullableTime, lastUpdated NullableTime, ipAddresses []NestedIPAddress) *FHRPGroup {
+func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup {
this := FHRPGroup{}
this.Id = id
this.Url = url
this.Display = display
this.Protocol = protocol
this.GroupId = groupId
- this.Created = created
- this.LastUpdated = lastUpdated
- this.IpAddresses = ipAddresses
return &this
}
@@ -90,38 +77,6 @@ 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 {
@@ -218,70 +173,6 @@ func (o *FHRPGroup) SetGroupId(v int32) {
o.GroupId = v
}
-// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *FHRPGroup) GetAuthType() AuthenticationType {
- if o == nil || IsNil(o.AuthType) {
- var ret AuthenticationType
- return ret
- }
- return *o.AuthType
-}
-
-// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) {
- if o == nil || IsNil(o.AuthType) {
- return nil, false
- }
- return o.AuthType, true
-}
-
-// HasAuthType returns a boolean if a field has been set.
-func (o *FHRPGroup) HasAuthType() bool {
- if o != nil && !IsNil(o.AuthType) {
- return true
- }
-
- return false
-}
-
-// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field.
-func (o *FHRPGroup) SetAuthType(v AuthenticationType) {
- o.AuthType = &v
-}
-
-// 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) {
@@ -314,178 +205,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *FHRPGroup) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *FHRPGroup) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *FHRPGroup) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *FHRPGroup) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetIpAddresses returns the IpAddresses field value
-func (o *FHRPGroup) GetIpAddresses() []NestedIPAddress {
- if o == nil {
- var ret []NestedIPAddress
- 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() ([]NestedIPAddress, bool) {
- if o == nil {
- return nil, false
- }
- return o.IpAddresses, true
-}
-
-// SetIpAddresses sets field value
-func (o *FHRPGroup) SetIpAddresses(v []NestedIPAddress) {
- o.IpAddresses = v
-}
-
func (o FHRPGroup) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -497,34 +216,13 @@ 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
toSerialize["display"] = o.Display
toSerialize["protocol"] = o.Protocol
toSerialize["group_id"] = o.GroupId
- if !IsNil(o.AuthType) {
- toSerialize["auth_type"] = o.AuthType
- }
- 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["ip_addresses"] = o.IpAddresses
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -543,9 +241,6 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) {
"display",
"protocol",
"group_id",
- "created",
- "last_updated",
- "ip_addresses",
}
allProperties := make(map[string]interface{})
@@ -576,20 +271,11 @@ 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")
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
}
diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go
index c709224551..d81aefa155 100644
--- a/model_fhrp_group_assignment.go
+++ b/model_fhrp_group_assignment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -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 NestedFHRPGroup `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 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"`
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 NestedFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment {
+func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment {
this := FHRPGroupAssignment{}
this.Id = id
this.Url = url
@@ -136,9 +136,9 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) {
}
// GetGroup returns the Group field value
-func (o *FHRPGroupAssignment) GetGroup() NestedFHRPGroup {
+func (o *FHRPGroupAssignment) GetGroup() FHRPGroup {
if o == nil {
- var ret NestedFHRPGroup
+ var ret FHRPGroup
return ret
}
@@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() NestedFHRPGroup {
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *FHRPGroupAssignment) GetGroupOk() (*NestedFHRPGroup, bool) {
+func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) {
if o == nil {
return nil, false
}
@@ -155,7 +155,7 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*NestedFHRPGroup, bool) {
}
// SetGroup sets field value
-func (o *FHRPGroupAssignment) SetGroup(v NestedFHRPGroup) {
+func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) {
o.Group = v
}
diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go
index 4200a39458..fda4826a17 100644
--- a/model_fhrp_group_assignment_request.go
+++ b/model_fhrp_group_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedFHRPGroupRequest `json:"group"`
- InterfaceType string `json:"interface_type"`
- InterfaceId int64 `json:"interface_id"`
- Priority int32 `json:"priority"`
+ Group FHRPGroupRequest `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 NestedFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest {
+func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, 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() NestedFHRPGroupRequest {
+func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest {
if o == nil {
- var ret NestedFHRPGroupRequest
+ var ret FHRPGroupRequest
return ret
}
@@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() NestedFHRPGroupRequest {
// GetGroupOk returns a tuple with the Group field value
// and a boolean to check if the value has been set.
-func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*NestedFHRPGroupRequest, bool) {
+func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -70,7 +70,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*NestedFHRPGroupRequest, bool
}
// SetGroup sets field value
-func (o *FHRPGroupAssignmentRequest) SetGroup(v NestedFHRPGroupRequest) {
+func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) {
o.Group = v
}
diff --git a/model_fhrp_group_protocol.go b/model_fhrp_group_protocol.go
index ec6708895a..003e74a846 100644
--- a/model_fhrp_group_protocol.go
+++ b/model_fhrp_group_protocol.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go
index b7a71235b9..a3fbe25685 100644
--- a/model_fhrp_group_request.go
+++ b/model_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,9 @@ var _ MappedNullable = &FHRPGroupRequest{}
// FHRPGroupRequest Adds support for custom fields and tags.
type FHRPGroupRequest struct {
- Name *string `json:"name,omitempty"`
- Protocol FHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- 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"`
+ Protocol FHRPGroupProtocol `json:"protocol"`
+ GroupId int32 `json:"group_id"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -53,38 +47,6 @@ 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 {
if o == nil {
@@ -133,70 +95,6 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) {
o.GroupId = v
}
-// GetAuthType returns the AuthType field value if set, zero value otherwise.
-func (o *FHRPGroupRequest) GetAuthType() AuthenticationType {
- if o == nil || IsNil(o.AuthType) {
- var ret AuthenticationType
- return ret
- }
- return *o.AuthType
-}
-
-// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) {
- if o == nil || IsNil(o.AuthType) {
- return nil, false
- }
- return o.AuthType, true
-}
-
-// HasAuthType returns a boolean if a field has been set.
-func (o *FHRPGroupRequest) HasAuthType() bool {
- if o != nil && !IsNil(o.AuthType) {
- return true
- }
-
- return false
-}
-
-// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field.
-func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) {
- o.AuthType = &v
-}
-
-// 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) {
@@ -229,102 +127,6 @@ 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()
if err != nil {
@@ -335,29 +137,11 @@ 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 !IsNil(o.AuthType) {
- toSerialize["auth_type"] = o.AuthType
- }
- 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
@@ -402,15 +186,9 @@ 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
}
diff --git a/model_front_port.go b/model_front_port.go
index 7ef4a6a967..14255269db 100644
--- a/model_front_port.go
+++ b/model_front_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ var _ MappedNullable = &FrontPort{}
// FrontPort Adds support for custom fields and tags.
type FrontPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Module NullableModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortType `json:"type"`
@@ -36,10 +36,10 @@ type FrontPort struct {
RearPortPosition *int32 `json:"rear_port_position,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -56,7 +56,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 NestedDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort {
+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 {
this := FrontPort{}
this.Id = id
this.Url = url
@@ -65,6 +65,8 @@ func NewFrontPort(id int32, url string, display string, device NestedDevice, nam
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
@@ -80,6 +82,8 @@ func NewFrontPort(id int32, url string, display string, device NestedDevice, nam
// 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
}
@@ -156,9 +160,9 @@ func (o *FrontPort) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *FrontPort) GetDevice() NestedDevice {
+func (o *FrontPort) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -167,7 +171,7 @@ func (o *FrontPort) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *FrontPort) GetDeviceOk() (*NestedDevice, bool) {
+func (o *FrontPort) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -175,14 +179,14 @@ func (o *FrontPort) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *FrontPort) SetDevice(v NestedDevice) {
+func (o *FrontPort) SetDevice(v Device) {
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() ComponentNestedModule {
+func (o *FrontPort) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -191,7 +195,7 @@ func (o *FrontPort) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *FrontPort) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -207,8 +211,8 @@ func (o *FrontPort) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *FrontPort) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *FrontPort) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -455,10 +459,10 @@ func (o *FrontPort) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *FrontPort) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -468,7 +472,7 @@ func (o *FrontPort) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *FrontPort) GetCableOk() (*NestedCable, bool) {
+func (o *FrontPort) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -476,7 +480,7 @@ func (o *FrontPort) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *FrontPort) SetCable(v NestedCable) {
+func (o *FrontPort) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go
index 078cf12c7d..bfddbbc627 100644
--- a/model_front_port_rear_port.go
+++ b/model_front_port_rear_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go
index f1ad259547..efa9119db0 100644
--- a/model_front_port_rear_port_request.go
+++ b/model_front_port_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_front_port_request.go b/model_front_port_request.go
index db52de23a5..b3cc287bbe 100644
--- a/model_front_port_request.go
+++ b/model_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &FrontPortRequest{}
// FrontPortRequest Adds support for custom fields and tags.
type FrontPortRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortTypeValue `json:"type"`
@@ -44,12 +44,14 @@ 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 NestedDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest {
+func NewFrontPortRequest(device DeviceRequest, 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
}
@@ -58,13 +60,15 @@ func NewFrontPortRequest(device NestedDeviceRequest, name string, type_ FrontPor
// 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() NestedDeviceRequest {
+func (o *FrontPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -73,7 +77,7 @@ func (o *FrontPortRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *FrontPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,14 +85,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *FrontPortRequest) SetDevice(v NestedDeviceRequest) {
+func (o *FrontPortRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
+func (o *FrontPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -97,7 +101,7 @@ func (o *FrontPortRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -113,8 +117,8 @@ func (o *FrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *FrontPortRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *FrontPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_front_port_template.go b/model_front_port_template.go
index 5f64641eb7..66ed545004 100644
--- a/model_front_port_template.go
+++ b/model_front_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -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 NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType NullableDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableModuleType `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 NestedRearPortTemplate `json:"rear_port"`
- RearPortPosition *int32 `json:"rear_port_position,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Label *string `json:"label,omitempty"`
+ Type FrontPortType `json:"type"`
+ Color *string `json:"color,omitempty"`
+ RearPort 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"`
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 NestedRearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate {
+func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate {
this := FrontPortTemplate{}
this.Id = id
this.Url = url
@@ -54,6 +54,8 @@ 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
@@ -64,6 +66,8 @@ 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
}
@@ -140,9 +144,9 @@ func (o *FrontPortTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *FrontPortTemplate) GetDeviceType() NestedDeviceType {
+func (o *FrontPortTemplate) GetDeviceType() DeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
return *o.DeviceType.Get()
@@ -151,7 +155,7 @@ func (o *FrontPortTemplate) GetDeviceType() NestedDeviceType {
// 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() (*NestedDeviceType, bool) {
+func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -167,8 +171,8 @@ func (o *FrontPortTemplate) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *FrontPortTemplate) SetDeviceType(v NestedDeviceType) {
+// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field.
+func (o *FrontPortTemplate) SetDeviceType(v DeviceType) {
o.DeviceType.Set(&v)
}
@@ -183,9 +187,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() NestedModuleType {
+func (o *FrontPortTemplate) GetModuleType() ModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
+ var ret ModuleType
return ret
}
return *o.ModuleType.Get()
@@ -194,7 +198,7 @@ func (o *FrontPortTemplate) GetModuleType() NestedModuleType {
// 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() (*NestedModuleType, bool) {
+func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) {
if o == nil {
return nil, false
}
@@ -210,8 +214,8 @@ func (o *FrontPortTemplate) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *FrontPortTemplate) SetModuleType(v NestedModuleType) {
+// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field.
+func (o *FrontPortTemplate) SetModuleType(v ModuleType) {
o.ModuleType.Set(&v)
}
@@ -338,9 +342,9 @@ func (o *FrontPortTemplate) SetColor(v string) {
}
// GetRearPort returns the RearPort field value
-func (o *FrontPortTemplate) GetRearPort() NestedRearPortTemplate {
+func (o *FrontPortTemplate) GetRearPort() RearPortTemplate {
if o == nil {
- var ret NestedRearPortTemplate
+ var ret RearPortTemplate
return ret
}
@@ -349,7 +353,7 @@ func (o *FrontPortTemplate) GetRearPort() NestedRearPortTemplate {
// GetRearPortOk returns a tuple with the RearPort field value
// and a boolean to check if the value has been set.
-func (o *FrontPortTemplate) GetRearPortOk() (*NestedRearPortTemplate, bool) {
+func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) {
if o == nil {
return nil, false
}
@@ -357,7 +361,7 @@ func (o *FrontPortTemplate) GetRearPortOk() (*NestedRearPortTemplate, bool) {
}
// SetRearPort sets field value
-func (o *FrontPortTemplate) SetRearPort(v NestedRearPortTemplate) {
+func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) {
o.RearPort = v
}
diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go
index 1e34724237..995c21f99c 100644
--- a/model_front_port_template_request.go
+++ b/model_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 NestedRearPortTemplateRequest `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"`
+ RearPort RearPortTemplateRequest `json:"rear_port"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,11 +40,13 @@ 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 NestedRearPortTemplateRequest) *FrontPortTemplateRequest {
+func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *FrontPortTemplateRequest {
this := FrontPortTemplateRequest{}
this.Name = name
this.Type = type_
this.RearPort = rearPort
+ var rearPortPosition int32 = 1
+ this.RearPortPosition = &rearPortPosition
return &this
}
@@ -53,13 +55,15 @@ 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() NestedDeviceTypeRequest {
+func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -68,7 +72,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// 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() (*NestedDeviceTypeRequest, bool) {
+func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -84,8 +88,8 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *FrontPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -100,9 +104,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() NestedModuleTypeRequest {
+func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -111,7 +115,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() NestedModuleTypeRequest {
// 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() (*NestedModuleTypeRequest, bool) {
+func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -127,8 +131,8 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *FrontPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -255,9 +259,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value
-func (o *FrontPortTemplateRequest) GetRearPort() NestedRearPortTemplateRequest {
+func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest {
if o == nil {
- var ret NestedRearPortTemplateRequest
+ var ret RearPortTemplateRequest
return ret
}
@@ -266,7 +270,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() NestedRearPortTemplateRequest {
// GetRearPortOk returns a tuple with the RearPort field value
// and a boolean to check if the value has been set.
-func (o *FrontPortTemplateRequest) GetRearPortOk() (*NestedRearPortTemplateRequest, bool) {
+func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -274,7 +278,7 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*NestedRearPortTemplateReque
}
// SetRearPort sets field value
-func (o *FrontPortTemplateRequest) SetRearPort(v NestedRearPortTemplateRequest) {
+func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) {
o.RearPort = v
}
diff --git a/model_front_port_type.go b/model_front_port_type.go
index 3d7374db81..17d1190463 100644
--- a/model_front_port_type.go
+++ b/model_front_port_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go
index 678aacac11..88117ae3a6 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go
index a5d9763a2f..55f3bf9e53 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_generic_object.go b/model_generic_object.go
deleted file mode 100644
index 7df48bfd3d..0000000000
--- a/model_generic_object.go
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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, object interface{}) *GenericObject {
- this := GenericObject{}
- this.ObjectType = objectType
- this.ObjectId = objectId
- this.Object = object
- 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 the value is explicit nil, the zero value for interface{} will be returned
-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
-// and a 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
-}
-
-// SetObject sets field value
-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",
- "object",
- }
-
- 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)
- }
- }
-
- 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 c804bd3369..af5fa0e139 100644
--- a/model_generic_object_request.go
+++ b/model_generic_object_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_group.go b/model_group.go
index 4a66944e7a..cc0cb78e9e 100644
--- a/model_group.go
+++ b/model_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,13 @@ var _ MappedNullable = &Group{}
// Group Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type Group struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- UserCount int32 `json:"user_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Permissions []ObjectPermission `json:"permissions,omitempty"`
+ UserCount int32 `json:"user_count"`
AdditionalProperties map[string]interface{}
}
@@ -148,6 +150,70 @@ 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) {
+ 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 *Group) 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 *Group) 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 *Group) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetPermissions returns the Permissions field value if set, zero value otherwise.
+func (o *Group) 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 *Group) 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 *Group) 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 *Group) SetPermissions(v []ObjectPermission) {
+ o.Permissions = v
+}
+
// GetUserCount returns the UserCount field value
func (o *Group) GetUserCount() int32 {
if o == nil {
@@ -186,6 +252,12 @@ func (o Group) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Permissions) {
+ toSerialize["permissions"] = o.Permissions
+ }
toSerialize["user_count"] = o.UserCount
for key, value := range o.AdditionalProperties {
@@ -238,6 +310,8 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display")
delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "permissions")
delete(additionalProperties, "user_count")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_group_request.go b/model_group_request.go
index 991603da52..a3b3fc4d92 100644
--- a/model_group_request.go
+++ b/model_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +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"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ Permissions []int32 `json:"permissions,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -68,6 +70,70 @@ 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) {
+ 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 *GroupRequest) 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 *GroupRequest) 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 *GroupRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetPermissions returns the Permissions field value if set, zero value otherwise.
+func (o *GroupRequest) 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 *GroupRequest) 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 *GroupRequest) 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 *GroupRequest) SetPermissions(v []int32) {
+ o.Permissions = v
+}
+
func (o GroupRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -79,6 +145,12 @@ func (o GroupRequest) MarshalJSON() ([]byte, error) {
func (o GroupRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Permissions) {
+ toSerialize["permissions"] = o.Permissions
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -123,6 +195,8 @@ func (o *GroupRequest) UnmarshalJSON(data []byte) (err error) {
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "permissions")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_ike_policy.go b/model_ike_policy.go
index 8a060c1f6a..60a1325948 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,7 +28,7 @@ type IKEPolicy struct {
Description *string `json:"description,omitempty"`
Version IKEPolicyVersion `json:"version"`
Mode IKEPolicyMode `json:"mode"`
- Proposals []int32 `json:"proposals,omitempty"`
+ Proposals []IKEProposal `json:"proposals,omitempty"`
PresharedKey *string `json:"preshared_key,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -242,9 +242,9 @@ func (o *IKEPolicy) SetMode(v IKEPolicyMode) {
}
// GetProposals returns the Proposals field value if set, zero value otherwise.
-func (o *IKEPolicy) GetProposals() []int32 {
+func (o *IKEPolicy) GetProposals() []IKEProposal {
if o == nil || IsNil(o.Proposals) {
- var ret []int32
+ var ret []IKEProposal
return ret
}
return o.Proposals
@@ -252,7 +252,7 @@ func (o *IKEPolicy) GetProposals() []int32 {
// GetProposalsOk returns a tuple with the Proposals field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IKEPolicy) GetProposalsOk() ([]int32, bool) {
+func (o *IKEPolicy) GetProposalsOk() ([]IKEProposal, bool) {
if o == nil || IsNil(o.Proposals) {
return nil, false
}
@@ -268,8 +268,8 @@ func (o *IKEPolicy) HasProposals() bool {
return false
}
-// SetProposals gets a reference to the given []int32 and assigns it to the Proposals field.
-func (o *IKEPolicy) SetProposals(v []int32) {
+// SetProposals gets a reference to the given []IKEProposal and assigns it to the Proposals field.
+func (o *IKEPolicy) SetProposals(v []IKEProposal) {
o.Proposals = v
}
diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go
index ac89e4a503..561cdd0eef 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go
index fa63f3475d..6f710f6ac2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go
index 5af9e4dd01..f7209d9324 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go
index a3fa0d9054..b10b248b69 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go
index 7ca31e121f..afa22c6de8 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go
index 0cff70bb4c..8b11ad9d66 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go
index 3481c8d506..7abf472f2f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal.go b/model_ike_proposal.go
index d9adb6f5ed..cd4eed1ca7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go
index f4cf9f66e2..beeab83348 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go
index a9c6fd50ce..ed37a3e8d4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go
index 6af6a48685..ac2ff5a013 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go
index 7aa101b045..ce563d6e21 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go
index a4230cfe73..35519ca6b0 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go
index cbc42a6be7..c1e5b8266c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go
index 2031c2553f..208e101996 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go
index 0b04f7542b..4485f50f2c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go
index f0ac6b360a..f152c2e121 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go
index 3b2a02df51..b4e5729484 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go
index f17f10fd34..acb825e47a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go
index 9c7ca1cd87..482fc4b74d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go
index c8cc06739e..532a3552d5 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_image_attachment.go b/model_image_attachment.go
index 32c98cb37b..3eef1f2cd9 100644
--- a/model_image_attachment.go
+++ b/model_image_attachment.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type ImageAttachment struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- ContentType string `json:"content_type"`
+ ObjectType string `json:"object_type"`
ObjectId int64 `json:"object_id"`
Parent interface{} `json:"parent"`
Name *string `json:"name,omitempty"`
@@ -42,12 +42,12 @@ 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, contentType 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, parent interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime) *ImageAttachment {
this := ImageAttachment{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentType = contentType
+ this.ObjectType = objectType
this.ObjectId = objectId
this.Parent = parent
this.Image = image
@@ -138,28 +138,28 @@ func (o *ImageAttachment) SetDisplay(v string) {
o.Display = v
}
-// GetContentType returns the ContentType field value
-func (o *ImageAttachment) GetContentType() string {
+// GetObjectType returns the ObjectType field value
+func (o *ImageAttachment) GetObjectType() string {
if o == nil {
var ret string
return ret
}
- return o.ContentType
+ return o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value
+// GetObjectTypeOk returns a tuple with the ObjectType field value
// and a boolean to check if the value has been set.
-func (o *ImageAttachment) GetContentTypeOk() (*string, bool) {
+func (o *ImageAttachment) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return &o.ContentType, true
+ return &o.ObjectType, true
}
-// SetContentType sets field value
-func (o *ImageAttachment) SetContentType(v string) {
- o.ContentType = v
+// SetObjectType sets field value
+func (o *ImageAttachment) SetObjectType(v string) {
+ o.ObjectType = v
}
// GetObjectId returns the ObjectId field value
@@ -381,7 +381,7 @@ func (o ImageAttachment) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_type"] = o.ContentType
+ toSerialize["object_type"] = o.ObjectType
toSerialize["object_id"] = o.ObjectId
if o.Parent != nil {
toSerialize["parent"] = o.Parent
@@ -410,7 +410,7 @@ func (o *ImageAttachment) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_type",
+ "object_type",
"object_id",
"parent",
"image",
@@ -450,7 +450,7 @@ func (o *ImageAttachment) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "parent")
delete(additionalProperties, "name")
diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go
index 2864f2ad96..26ce0cc75e 100644
--- a/model_image_attachment_request.go
+++ b/model_image_attachment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,7 +21,7 @@ var _ MappedNullable = &ImageAttachmentRequest{}
// ImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ImageAttachmentRequest struct {
- ContentType string `json:"content_type"`
+ ObjectType string `json:"object_type"`
ObjectId int64 `json:"object_id"`
Name *string `json:"name,omitempty"`
Image *os.File `json:"image"`
@@ -36,9 +36,9 @@ 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(contentType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest {
+func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest {
this := ImageAttachmentRequest{}
- this.ContentType = contentType
+ this.ObjectType = objectType
this.ObjectId = objectId
this.Image = image
this.ImageHeight = imageHeight
@@ -54,28 +54,28 @@ func NewImageAttachmentRequestWithDefaults() *ImageAttachmentRequest {
return &this
}
-// GetContentType returns the ContentType field value
-func (o *ImageAttachmentRequest) GetContentType() string {
+// GetObjectType returns the ObjectType field value
+func (o *ImageAttachmentRequest) GetObjectType() string {
if o == nil {
var ret string
return ret
}
- return o.ContentType
+ return o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value
+// GetObjectTypeOk returns a tuple with the ObjectType field value
// and a boolean to check if the value has been set.
-func (o *ImageAttachmentRequest) GetContentTypeOk() (*string, bool) {
+func (o *ImageAttachmentRequest) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return &o.ContentType, true
+ return &o.ObjectType, true
}
-// SetContentType sets field value
-func (o *ImageAttachmentRequest) SetContentType(v string) {
- o.ContentType = v
+// SetObjectType sets field value
+func (o *ImageAttachmentRequest) SetObjectType(v string) {
+ o.ObjectType = v
}
// GetObjectId returns the ObjectId field value
@@ -216,7 +216,7 @@ func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) {
func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_type"] = o.ContentType
+ toSerialize["object_type"] = o.ObjectType
toSerialize["object_id"] = o.ObjectId
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -237,7 +237,7 @@ func (o *ImageAttachmentRequest) 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{
- "content_type",
+ "object_type",
"object_id",
"image",
"image_height",
@@ -271,7 +271,7 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "name")
delete(additionalProperties, "image")
diff --git a/model_interface.go b/model_interface.go
index aeb06a71fe..8990492b10 100644
--- a/model_interface.go
+++ b/model_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,13 @@ var _ MappedNullable = &Interface{}
// Interface Adds support for custom fields and tags.
type Interface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"`
+ Module NullableModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type InterfaceType `json:"type"`
@@ -51,31 +51,31 @@ type Interface struct {
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"`
- TaggedVlans []NestedVLAN `json:"tagged_vlans,omitempty"`
+ 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"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
+ Cable NullableCable `json:"cable"`
CableEnd string `json:"cable_end"`
WirelessLink NullableNestedWirelessLink `json:"wireless_link"`
LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
- LinkPeersType string `json:"link_peers_type"`
- WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableNestedVRF `json:"vrf,omitempty"`
- L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints"`
- ConnectedEndpointsType string `json:"connected_endpoints_type"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- CountIpaddresses int32 `json:"count_ipaddresses"`
- CountFhrpGroups int32 `json:"count_fhrp_groups"`
- Occupied bool `json:"_occupied"`
+ 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{}
}
@@ -85,7 +85,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 NestedDevice, name string, type_ InterfaceType, cable NullableNestedCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableNestedL2VPNTermination, 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 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 {
this := Interface{}
this.Id = id
this.Url = url
@@ -191,9 +191,9 @@ func (o *Interface) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *Interface) GetDevice() NestedDevice {
+func (o *Interface) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -202,7 +202,7 @@ func (o *Interface) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *Interface) GetDeviceOk() (*NestedDevice, bool) {
+func (o *Interface) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -210,14 +210,14 @@ func (o *Interface) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *Interface) SetDevice(v NestedDevice) {
+func (o *Interface) SetDevice(v Device) {
o.Device = v
}
// GetVdcs returns the Vdcs field value if set, zero value otherwise.
-func (o *Interface) GetVdcs() []int32 {
+func (o *Interface) GetVdcs() []VirtualDeviceContext {
if o == nil || IsNil(o.Vdcs) {
- var ret []int32
+ var ret []VirtualDeviceContext
return ret
}
return o.Vdcs
@@ -225,7 +225,7 @@ func (o *Interface) GetVdcs() []int32 {
// GetVdcsOk returns a tuple with the Vdcs field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Interface) GetVdcsOk() ([]int32, bool) {
+func (o *Interface) GetVdcsOk() ([]VirtualDeviceContext, bool) {
if o == nil || IsNil(o.Vdcs) {
return nil, false
}
@@ -241,15 +241,15 @@ func (o *Interface) HasVdcs() bool {
return false
}
-// SetVdcs gets a reference to the given []int32 and assigns it to the Vdcs field.
-func (o *Interface) SetVdcs(v []int32) {
+// SetVdcs gets a reference to the given []VirtualDeviceContext and assigns it to the Vdcs field.
+func (o *Interface) SetVdcs(v []VirtualDeviceContext) {
o.Vdcs = v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Interface) GetModule() ComponentNestedModule {
+func (o *Interface) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -258,7 +258,7 @@ func (o *Interface) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *Interface) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -274,8 +274,8 @@ func (o *Interface) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *Interface) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *Interface) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -1099,9 +1099,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() NestedVLAN {
+func (o *Interface) GetUntaggedVlan() VLAN {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret NestedVLAN
+ var ret VLAN
return ret
}
return *o.UntaggedVlan.Get()
@@ -1110,7 +1110,7 @@ func (o *Interface) GetUntaggedVlan() NestedVLAN {
// 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() (*NestedVLAN, bool) {
+func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool) {
if o == nil {
return nil, false
}
@@ -1126,8 +1126,8 @@ func (o *Interface) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableNestedVLAN and assigns it to the UntaggedVlan field.
-func (o *Interface) SetUntaggedVlan(v NestedVLAN) {
+// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field.
+func (o *Interface) SetUntaggedVlan(v VLAN) {
o.UntaggedVlan.Set(&v)
}
@@ -1142,9 +1142,9 @@ func (o *Interface) UnsetUntaggedVlan() {
}
// GetTaggedVlans returns the TaggedVlans field value if set, zero value otherwise.
-func (o *Interface) GetTaggedVlans() []NestedVLAN {
+func (o *Interface) GetTaggedVlans() []VLAN {
if o == nil || IsNil(o.TaggedVlans) {
- var ret []NestedVLAN
+ var ret []VLAN
return ret
}
return o.TaggedVlans
@@ -1152,7 +1152,7 @@ func (o *Interface) GetTaggedVlans() []NestedVLAN {
// GetTaggedVlansOk returns a tuple with the TaggedVlans field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Interface) GetTaggedVlansOk() ([]NestedVLAN, bool) {
+func (o *Interface) GetTaggedVlansOk() ([]VLAN, bool) {
if o == nil || IsNil(o.TaggedVlans) {
return nil, false
}
@@ -1168,8 +1168,8 @@ func (o *Interface) HasTaggedVlans() bool {
return false
}
-// SetTaggedVlans gets a reference to the given []NestedVLAN and assigns it to the TaggedVlans field.
-func (o *Interface) SetTaggedVlans(v []NestedVLAN) {
+// SetTaggedVlans gets a reference to the given []VLAN and assigns it to the TaggedVlans field.
+func (o *Interface) SetTaggedVlans(v []VLAN) {
o.TaggedVlans = v
}
@@ -1206,10 +1206,10 @@ func (o *Interface) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *Interface) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -1219,7 +1219,7 @@ func (o *Interface) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *Interface) GetCableOk() (*NestedCable, bool) {
+func (o *Interface) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -1227,7 +1227,7 @@ func (o *Interface) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *Interface) SetCable(v NestedCable) {
+func (o *Interface) SetCable(v Cable) {
o.Cable.Set(&v)
}
@@ -1330,9 +1330,9 @@ func (o *Interface) SetLinkPeersType(v string) {
}
// GetWirelessLans returns the WirelessLans field value if set, zero value otherwise.
-func (o *Interface) GetWirelessLans() []int32 {
+func (o *Interface) GetWirelessLans() []WirelessLAN {
if o == nil || IsNil(o.WirelessLans) {
- var ret []int32
+ var ret []WirelessLAN
return ret
}
return o.WirelessLans
@@ -1340,7 +1340,7 @@ func (o *Interface) GetWirelessLans() []int32 {
// GetWirelessLansOk returns a tuple with the WirelessLans field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Interface) GetWirelessLansOk() ([]int32, bool) {
+func (o *Interface) GetWirelessLansOk() ([]WirelessLAN, bool) {
if o == nil || IsNil(o.WirelessLans) {
return nil, false
}
@@ -1356,15 +1356,15 @@ func (o *Interface) HasWirelessLans() bool {
return false
}
-// SetWirelessLans gets a reference to the given []int32 and assigns it to the WirelessLans field.
-func (o *Interface) SetWirelessLans(v []int32) {
+// SetWirelessLans gets a reference to the given []WirelessLAN and assigns it to the WirelessLans field.
+func (o *Interface) SetWirelessLans(v []WirelessLAN) {
o.WirelessLans = v
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Interface) GetVrf() NestedVRF {
+func (o *Interface) GetVrf() VRF {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRF
+ var ret VRF
return ret
}
return *o.Vrf.Get()
@@ -1373,7 +1373,7 @@ func (o *Interface) GetVrf() NestedVRF {
// 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() (*NestedVRF, bool) {
+func (o *Interface) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -1389,8 +1389,8 @@ func (o *Interface) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRF and assigns it to the Vrf field.
-func (o *Interface) SetVrf(v NestedVRF) {
+// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field.
+func (o *Interface) SetVrf(v VRF) {
o.Vrf.Set(&v)
}
@@ -1405,10 +1405,10 @@ func (o *Interface) UnsetVrf() {
}
// GetL2vpnTermination returns the L2vpnTermination field value
-// If the value is explicit nil, the zero value for NestedL2VPNTermination will be returned
-func (o *Interface) GetL2vpnTermination() NestedL2VPNTermination {
+// 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 NestedL2VPNTermination
+ var ret L2VPNTermination
return ret
}
@@ -1418,7 +1418,7 @@ func (o *Interface) GetL2vpnTermination() NestedL2VPNTermination {
// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *Interface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool) {
+func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) {
if o == nil {
return nil, false
}
@@ -1426,7 +1426,7 @@ func (o *Interface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool) {
}
// SetL2vpnTermination sets field value
-func (o *Interface) SetL2vpnTermination(v NestedL2VPNTermination) {
+func (o *Interface) SetL2vpnTermination(v L2VPNTermination) {
o.L2vpnTermination.Set(&v)
}
diff --git a/model_interface_duplex.go b/model_interface_duplex.go
index 89aa518c46..aa73ec088b 100644
--- a/model_interface_duplex.go
+++ b/model_interface_duplex.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go
index 94cc4dae81..eaab1a072f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go
index 3e4bf6689e..93e3ce1203 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_mode.go b/model_interface_mode.go
index e3a6c4aa6e..9441de5dd8 100644
--- a/model_interface_mode.go
+++ b/model_interface_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go
index d3a8d61f3f..cde6b2ae1d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go
index f7eb24b803..f057fe019a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go
index 88baeb0975..8f365d75eb 100644
--- a/model_interface_poe_mode.go
+++ b/model_interface_poe_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go
index 0274f532ab..7736be9cc7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go
index 21f3e51933..4e044ad153 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go
index d6f0caffe6..ef7c2e113e 100644
--- a/model_interface_poe_type.go
+++ b/model_interface_poe_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go
index 6d17dbe2dc..21265631bd 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go
index 4d78b2e365..d1f9f85a3b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_request.go b/model_interface_request.go
index d473924bf6..b066995e98 100644
--- a/model_interface_request.go
+++ b/model_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &InterfaceRequest{}
// InterfaceRequest Adds support for custom fields and tags.
type InterfaceRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type InterfaceTypeValue `json:"type"`
@@ -47,16 +47,16 @@ type InterfaceRequest struct {
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
+ TxPower NullableInt32 `json:"tx_power,omitempty"`
+ UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"`
+ TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ WirelessLans []int32 `json:"wireless_lans,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
+ Tags []NestedTagRequest `json:"tags,omitempty"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -66,7 +66,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 NestedDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest {
+func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest {
this := InterfaceRequest{}
this.Device = device
this.Name = name
@@ -83,9 +83,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest {
}
// GetDevice returns the Device field value
-func (o *InterfaceRequest) GetDevice() NestedDeviceRequest {
+func (o *InterfaceRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -94,7 +94,7 @@ func (o *InterfaceRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *InterfaceRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *InterfaceRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *InterfaceRequest) SetDevice(v NestedDeviceRequest) {
+func (o *InterfaceRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -139,9 +139,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() ComponentNestedModuleRequest {
+func (o *InterfaceRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -150,7 +150,7 @@ func (o *InterfaceRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -166,8 +166,8 @@ func (o *InterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *InterfaceRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *InterfaceRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -991,9 +991,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() NestedVLANRequest {
+func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret NestedVLANRequest
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -1002,7 +1002,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() NestedVLANRequest {
// 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() (*NestedVLANRequest, bool) {
+func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -1018,8 +1018,8 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableNestedVLANRequest and assigns it to the UntaggedVlan field.
-func (o *InterfaceRequest) SetUntaggedVlan(v NestedVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -1130,9 +1130,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() NestedVRFRequest {
+func (o *InterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRFRequest
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -1141,7 +1141,7 @@ func (o *InterfaceRequest) GetVrf() NestedVRFRequest {
// 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() (*NestedVRFRequest, bool) {
+func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -1157,8 +1157,8 @@ func (o *InterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRFRequest and assigns it to the Vrf field.
-func (o *InterfaceRequest) SetVrf(v NestedVRFRequest) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *InterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go
index ca883f4bbe..2cfab20fa6 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go
index 824720bfbb..6cdd517fac 100644
--- a/model_interface_rf_channel.go
+++ b/model_interface_rf_channel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go
index da1fb688af..c6ca5df46e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go
index 1a824bb8e5..5a426d213f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go
index ba231202dd..a7f8f1cd97 100644
--- a/model_interface_rf_role.go
+++ b/model_interface_rf_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go
index 9c22990e08..201cb2af42 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go
index d2b50a9ad9..364371e9c3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template.go b/model_interface_template.go
index b5dc41002e..37184eb6b0 100644
--- a/model_interface_template.go
+++ b/model_interface_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,11 +21,11 @@ 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 NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType NullableDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableModuleType `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
@@ -142,9 +142,9 @@ func (o *InterfaceTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *InterfaceTemplate) GetDeviceType() NestedDeviceType {
+func (o *InterfaceTemplate) GetDeviceType() DeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
return *o.DeviceType.Get()
@@ -153,7 +153,7 @@ func (o *InterfaceTemplate) GetDeviceType() NestedDeviceType {
// 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() (*NestedDeviceType, bool) {
+func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -169,8 +169,8 @@ func (o *InterfaceTemplate) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *InterfaceTemplate) SetDeviceType(v NestedDeviceType) {
+// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field.
+func (o *InterfaceTemplate) SetDeviceType(v DeviceType) {
o.DeviceType.Set(&v)
}
@@ -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() NestedModuleType {
+func (o *InterfaceTemplate) GetModuleType() ModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
+ var ret ModuleType
return ret
}
return *o.ModuleType.Get()
@@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() NestedModuleType {
// 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() (*NestedModuleType, bool) {
+func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool) {
if o == nil {
return nil, false
}
@@ -212,8 +212,8 @@ func (o *InterfaceTemplate) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *InterfaceTemplate) SetModuleType(v NestedModuleType) {
+// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field.
+func (o *InterfaceTemplate) SetModuleType(v ModuleType) {
o.ModuleType.Set(&v)
}
diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go
index 46d5bcb3a0..7811b7e106 100644
--- a/model_interface_template_poe_mode.go
+++ b/model_interface_template_poe_mode.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go
index 8f1d80b391..2c1cb4d01b 100644
--- a/model_interface_template_poe_type.go
+++ b/model_interface_template_poe_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template_request.go b/model_interface_template_request.go
index 2d7dcf3321..bea10caaf9 100644
--- a/model_interface_template_request.go
+++ b/model_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() NestedDeviceTypeRequest {
+func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// 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() (*NestedDeviceTypeRequest, bool) {
+func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -86,8 +86,8 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *InterfaceTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -102,9 +102,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() NestedModuleTypeRequest {
+func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -113,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() NestedModuleTypeRequest {
// 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() (*NestedModuleTypeRequest, bool) {
+func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -129,8 +129,8 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *InterfaceTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go
index 1cef305095..f2b93a7818 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go
index bb922128c2..1f35567e15 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go
index 33e0080491..db39e85145 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go
index f146fcbe9c..3eaf185c19 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_type.go b/model_interface_type.go
index 0d5a51d037..d5a16d3e2d 100644
--- a/model_interface_type.go
+++ b/model_interface_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_interface_type_label.go b/model_interface_type_label.go
index 26df02b9e8..99dedfa786 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -64,6 +64,8 @@ const (
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)"
@@ -84,6 +86,8 @@ const (
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"
@@ -117,12 +121,15 @@ const (
INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)"
INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL"
INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS"
- INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gps)"
+ 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_EPON__1_GBPS InterfaceTypeLabel = "EPON (1 Gbps)"
- INTERFACETYPELABEL__10_G_EPON__10_GBPS InterfaceTypeLabel = "10G-EPON (10 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"
@@ -186,6 +193,8 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{
"QSFP-DD (800GE)",
"OSFP (800GE)",
"1000BASE-KX (1GE)",
+ "2.5GBASE-KX (2.5GE)",
+ "5GBASE-KR (5GE)",
"10GBASE-KR (10GE)",
"10GBASE-KX4 (10GE)",
"25GBASE-KR (25GE)",
@@ -206,6 +215,8 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{
"GSM",
"CDMA",
"LTE",
+ "4G",
+ "5G",
"OC-3/STM-1",
"OC-12/STM-4",
"OC-48/STM-16",
@@ -239,12 +250,15 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{
"E3 (34 Mbps)",
"xDSL",
"DOCSIS",
- "GPON (2.5 Gbps / 1.25 Gps)",
+ "BPON (622 Mbps / 155 Mbps)",
+ "EPON (1 Gbps)",
+ "10G-EPON (10 Gbps)",
+ "GPON (2.5 Gbps / 1.25 Gbps)",
"XG-PON (10 Gbps / 2.5 Gbps)",
"XGS-PON (10 Gbps)",
"NG-PON2 (TWDM-PON) (4x10 Gbps)",
- "EPON (1 Gbps)",
- "10G-EPON (10 Gbps)",
+ "25G-PON (25 Gbps)",
+ "50G-PON (50 Gbps)",
"Cisco StackWise",
"Cisco StackWise Plus",
"Cisco FlexStack",
diff --git a/model_interface_type_value.go b/model_interface_type_value.go
index 2638789783..324edde787 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ 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) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `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 * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other
+// 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
type InterfaceTypeValue string
// List of Interface_type_value
@@ -64,6 +64,8 @@ const (
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"
@@ -84,6 +86,8 @@ const (
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"
@@ -117,12 +121,15 @@ const (
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_EPON InterfaceTypeValue = "epon"
- INTERFACETYPEVALUE__10G_EPON InterfaceTypeValue = "10g-epon"
+ 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"
@@ -186,6 +193,8 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{
"800gbase-x-qsfpdd",
"800gbase-x-osfp",
"1000base-kx",
+ "2.5gbase-kx",
+ "5gbase-kr",
"10gbase-kr",
"10gbase-kx4",
"25gbase-kr",
@@ -206,6 +215,8 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{
"gsm",
"cdma",
"lte",
+ "4g",
+ "5g",
"sonet-oc3",
"sonet-oc12",
"sonet-oc48",
@@ -239,12 +250,15 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{
"e3",
"xdsl",
"docsis",
+ "bpon",
+ "epon",
+ "10g-epon",
"gpon",
"xg-pon",
"xgs-pon",
"ng-pon2",
- "epon",
- "10g-epon",
+ "25g-pon",
+ "50g-pon",
"cisco-stackwise",
"cisco-stackwise-plus",
"cisco-flexstack",
diff --git a/model_inventory_item.go b/model_inventory_item.go
index 344798b6a3..288a4619cb 100644
--- a/model_inventory_item.go
+++ b/model_inventory_item.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,13 +24,13 @@ type InventoryItem struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- Device NestedDevice `json:"device"`
+ Device Device `json:"device"`
Parent NullableInt32 `json:"parent,omitempty"`
Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableNestedInventoryItemRole `json:"role,omitempty"`
- Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRole `json:"role,omitempty"`
+ Manufacturer NullableManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
@@ -56,7 +56,7 @@ 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 NestedDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem {
+func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem {
this := InventoryItem{}
this.Id = id
this.Url = url
@@ -151,9 +151,9 @@ func (o *InventoryItem) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *InventoryItem) GetDevice() NestedDevice {
+func (o *InventoryItem) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -162,7 +162,7 @@ func (o *InventoryItem) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *InventoryItem) GetDeviceOk() (*NestedDevice, bool) {
+func (o *InventoryItem) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -170,7 +170,7 @@ func (o *InventoryItem) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *InventoryItem) SetDevice(v NestedDevice) {
+func (o *InventoryItem) SetDevice(v Device) {
o.Device = v
}
@@ -274,9 +274,9 @@ func (o *InventoryItem) 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 *InventoryItem) GetRole() NestedInventoryItemRole {
+func (o *InventoryItem) GetRole() InventoryItemRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedInventoryItemRole
+ var ret InventoryItemRole
return ret
}
return *o.Role.Get()
@@ -285,7 +285,7 @@ func (o *InventoryItem) GetRole() NestedInventoryItemRole {
// 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() (*NestedInventoryItemRole, bool) {
+func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) {
if o == nil {
return nil, false
}
@@ -301,8 +301,8 @@ func (o *InventoryItem) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedInventoryItemRole and assigns it to the Role field.
-func (o *InventoryItem) SetRole(v NestedInventoryItemRole) {
+// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field.
+func (o *InventoryItem) SetRole(v InventoryItemRole) {
o.Role.Set(&v)
}
@@ -317,9 +317,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() NestedManufacturer {
+func (o *InventoryItem) GetManufacturer() Manufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturer
+ var ret Manufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -328,7 +328,7 @@ func (o *InventoryItem) GetManufacturer() NestedManufacturer {
// 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() (*NestedManufacturer, bool) {
+func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) {
if o == nil {
return nil, false
}
@@ -344,8 +344,8 @@ func (o *InventoryItem) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableNestedManufacturer and assigns it to the Manufacturer field.
-func (o *InventoryItem) SetManufacturer(v NestedManufacturer) {
+// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field.
+func (o *InventoryItem) SetManufacturer(v Manufacturer) {
o.Manufacturer.Set(&v)
}
diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go
index d0d8b2a56f..c93a233fc4 100644
--- a/model_inventory_item_request.go
+++ b/model_inventory_item_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &InventoryItemRequest{}
// InventoryItemRequest Adds support for custom fields and tags.
type InventoryItemRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Parent NullableInt32 `json:"parent,omitempty"`
+ Name string `json:"name"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableNestedInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRoleRequest `json:"role,omitempty"`
+ Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
@@ -48,7 +48,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 NestedDeviceRequest, name string) *InventoryItemRequest {
+func NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest {
this := InventoryItemRequest{}
this.Device = device
this.Name = name
@@ -64,9 +64,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest {
}
// GetDevice returns the Device field value
-func (o *InventoryItemRequest) GetDevice() NestedDeviceRequest {
+func (o *InventoryItemRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -75,7 +75,7 @@ func (o *InventoryItemRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -83,7 +83,7 @@ func (o *InventoryItemRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *InventoryItemRequest) SetDevice(v NestedDeviceRequest) {
+func (o *InventoryItemRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -187,9 +187,9 @@ func (o *InventoryItemRequest) 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 *InventoryItemRequest) GetRole() NestedInventoryItemRoleRequest {
+func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedInventoryItemRoleRequest
+ var ret InventoryItemRoleRequest
return ret
}
return *o.Role.Get()
@@ -198,7 +198,7 @@ func (o *InventoryItemRequest) GetRole() NestedInventoryItemRoleRequest {
// 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() (*NestedInventoryItemRoleRequest, bool) {
+func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -214,8 +214,8 @@ func (o *InventoryItemRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedInventoryItemRoleRequest and assigns it to the Role field.
-func (o *InventoryItemRequest) SetRole(v NestedInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field.
+func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) {
o.Role.Set(&v)
}
@@ -230,9 +230,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() NestedManufacturerRequest {
+func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturerRequest
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer.Get()
@@ -241,7 +241,7 @@ func (o *InventoryItemRequest) GetManufacturer() NestedManufacturerRequest {
// 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() (*NestedManufacturerRequest, bool) {
+func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -257,8 +257,8 @@ func (o *InventoryItemRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableNestedManufacturerRequest and assigns it to the Manufacturer field.
-func (o *InventoryItemRequest) SetManufacturer(v NestedManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field.
+func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer.Set(&v)
}
diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go
index 1a12827255..ee6f289909 100644
--- a/model_inventory_item_role.go
+++ b/model_inventory_item_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -32,7 +32,7 @@ type InventoryItemRole struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- InventoryitemCount int32 `json:"inventoryitem_count"`
+ InventoryitemCount int64 `json:"inventoryitem_count"`
AdditionalProperties map[string]interface{}
}
@@ -42,7 +42,7 @@ 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 int32) *InventoryItemRole {
+func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole {
this := InventoryItemRole{}
this.Id = id
this.Url = url
@@ -364,9 +364,9 @@ func (o *InventoryItemRole) SetLastUpdated(v time.Time) {
}
// GetInventoryitemCount returns the InventoryitemCount field value
-func (o *InventoryItemRole) GetInventoryitemCount() int32 {
+func (o *InventoryItemRole) GetInventoryitemCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -375,7 +375,7 @@ func (o *InventoryItemRole) GetInventoryitemCount() int32 {
// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemRole) GetInventoryitemCountOk() (*int32, bool) {
+func (o *InventoryItemRole) GetInventoryitemCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -383,7 +383,7 @@ func (o *InventoryItemRole) GetInventoryitemCountOk() (*int32, bool) {
}
// SetInventoryitemCount sets field value
-func (o *InventoryItemRole) SetInventoryitemCount(v int32) {
+func (o *InventoryItemRole) SetInventoryitemCount(v int64) {
o.InventoryitemCount = v
}
diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go
index 95e6b26e36..c00674ef53 100644
--- a/model_inventory_item_role_request.go
+++ b/model_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go
index 431fbe847a..2e41792819 100644
--- a/model_inventory_item_template.go
+++ b/model_inventory_item_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,17 +21,17 @@ 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 NestedDeviceType `json:"device_type"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType DeviceType `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 NullableNestedInventoryItemRole `json:"role,omitempty"`
- Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRole `json:"role,omitempty"`
+ Manufacturer NullableManufacturer `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Description *string `json:"description,omitempty"`
@@ -50,7 +50,7 @@ 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 NestedDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate {
+func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate {
this := InventoryItemTemplate{}
this.Id = id
this.Url = url
@@ -145,9 +145,9 @@ func (o *InventoryItemTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value
-func (o *InventoryItemTemplate) GetDeviceType() NestedDeviceType {
+func (o *InventoryItemTemplate) GetDeviceType() DeviceType {
if o == nil {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
@@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() NestedDeviceType {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
+func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -164,7 +164,7 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
}
// SetDeviceType sets field value
-func (o *InventoryItemTemplate) SetDeviceType(v NestedDeviceType) {
+func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) {
o.DeviceType = v
}
@@ -268,9 +268,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() NestedInventoryItemRole {
+func (o *InventoryItemTemplate) GetRole() InventoryItemRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedInventoryItemRole
+ var ret InventoryItemRole
return ret
}
return *o.Role.Get()
@@ -279,7 +279,7 @@ func (o *InventoryItemTemplate) GetRole() NestedInventoryItemRole {
// 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() (*NestedInventoryItemRole, bool) {
+func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) {
if o == nil {
return nil, false
}
@@ -295,8 +295,8 @@ func (o *InventoryItemTemplate) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedInventoryItemRole and assigns it to the Role field.
-func (o *InventoryItemTemplate) SetRole(v NestedInventoryItemRole) {
+// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field.
+func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) {
o.Role.Set(&v)
}
@@ -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() NestedManufacturer {
+func (o *InventoryItemTemplate) GetManufacturer() Manufacturer {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturer
+ var ret Manufacturer
return ret
}
return *o.Manufacturer.Get()
@@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() NestedManufacturer {
// 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() (*NestedManufacturer, bool) {
+func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) {
if o == nil {
return nil, false
}
@@ -338,8 +338,8 @@ func (o *InventoryItemTemplate) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableNestedManufacturer and assigns it to the Manufacturer field.
-func (o *InventoryItemTemplate) SetManufacturer(v NestedManufacturer) {
+// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field.
+func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) {
o.Manufacturer.Set(&v)
}
diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go
index 64d1416773..c7d639e2d8 100644
--- a/model_inventory_item_template_request.go
+++ b/model_inventory_item_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &InventoryItemTemplateRequest{}
// InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type InventoryItemTemplateRequest struct {
- DeviceType NestedDeviceTypeRequest `json:"device_type"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ DeviceType DeviceTypeRequest `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 NullableNestedInventoryItemRoleRequest `json:"role,omitempty"`
- Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRoleRequest `json:"role,omitempty"`
+ Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Description *string `json:"description,omitempty"`
@@ -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 NestedDeviceTypeRequest, name string) *InventoryItemTemplateRequest {
+func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, 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() NestedDeviceTypeRequest {
+func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
@@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -77,7 +77,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeReque
}
// SetDeviceType sets field value
-func (o *InventoryItemTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = v
}
@@ -181,9 +181,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() NestedInventoryItemRoleRequest {
+func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedInventoryItemRoleRequest
+ var ret InventoryItemRoleRequest
return ret
}
return *o.Role.Get()
@@ -192,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() NestedInventoryItemRoleRequest
// 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() (*NestedInventoryItemRoleRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -208,8 +208,8 @@ func (o *InventoryItemTemplateRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedInventoryItemRoleRequest and assigns it to the Role field.
-func (o *InventoryItemTemplateRequest) SetRole(v NestedInventoryItemRoleRequest) {
+// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field.
+func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) {
o.Role.Set(&v)
}
@@ -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() NestedManufacturerRequest {
+func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturerRequest
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer.Get()
@@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() NestedManufacturerReque
// 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() (*NestedManufacturerRequest, bool) {
+func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -251,8 +251,8 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableNestedManufacturerRequest and assigns it to the Manufacturer field.
-func (o *InventoryItemTemplateRequest) SetManufacturer(v NestedManufacturerRequest) {
+// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field.
+func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer.Set(&v)
}
diff --git a/model_ip_address.go b/model_ip_address.go
index 2366f728b0..5fdb687b45 100644
--- a/model_ip_address.go
+++ b/model_ip_address.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the IPAddress type satisfies the MappedNullable interface at compile time
@@ -21,28 +20,12 @@ var _ MappedNullable = &IPAddress{}
// IPAddress Adds support for custom fields and tags.
type IPAddress struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- Address string `json:"address"`
- Vrf NullableNestedVRF `json:"vrf,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Status *IPAddressStatus `json:"status,omitempty"`
- Role *IPAddressRole `json:"role,omitempty"`
- AssignedObjectType NullableString `json:"assigned_object_type,omitempty"`
- AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"`
- AssignedObject interface{} `json:"assigned_object"`
- NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"`
- NatOutside []NestedIPAddress `json:"nat_outside"`
- // Hostname or FQDN (not case-sensitive)
- DnsName *string `json:"dns_name,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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{}
}
@@ -52,17 +35,13 @@ 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, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress {
+func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress {
this := IPAddress{}
this.Id = id
this.Url = url
this.Display = display
this.Family = family
this.Address = address
- this.AssignedObject = assignedObject
- this.NatOutside = natOutside
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -194,367 +173,6 @@ 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() NestedVRF {
- if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRF
- 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() (*NestedVRF, 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 NullableNestedVRF and assigns it to the Vrf field.
-func (o *IPAddress) SetVrf(v NestedVRF) {
- o.Vrf.Set(&v)
-}
-
-// SetVrfNil sets the value for Vrf to be an explicit nil
-func (o *IPAddress) SetVrfNil() {
- o.Vrf.Set(nil)
-}
-
-// 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddress) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *IPAddress) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *IPAddress) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *IPAddress) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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 the value is explicit nil, the zero value for interface{} will be returned
-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
-// and a 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
-}
-
-// SetAssignedObject sets field value
-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) {
@@ -587,154 +205,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *IPAddress) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddress) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *IPAddress) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *IPAddress) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *IPAddress) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o IPAddress) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -750,48 +220,9 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -810,10 +241,6 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) {
"display",
"family",
"address",
- "assigned_object",
- "nat_outside",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -848,22 +275,7 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_ip_address_request.go b/model_ip_address_request.go
index 17fcfe1976..6c3232de2e 100644
--- a/model_ip_address_request.go
+++ b/model_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,20 +20,8 @@ var _ MappedNullable = &IPAddressRequest{}
// IPAddressRequest Adds support for custom fields and tags.
type IPAddressRequest struct {
- Address string `json:"address"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- 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"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Address string `json:"address"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -81,317 +69,6 @@ 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() NestedVRFRequest {
- if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRFRequest
- 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() (*NestedVRFRequest, 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 NullableNestedVRFRequest and assigns it to the Vrf field.
-func (o *IPAddressRequest) SetVrf(v NestedVRFRequest) {
- o.Vrf.Set(&v)
-}
-
-// SetVrfNil sets the value for Vrf to be an explicit nil
-func (o *IPAddressRequest) SetVrfNil() {
- o.Vrf.Set(nil)
-}
-
-// 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *IPAddressRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *IPAddressRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *IPAddressRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *IPAddressRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -424,102 +101,6 @@ 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()
if err != nil {
@@ -531,42 +112,9 @@ 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
@@ -611,18 +159,7 @@ 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
}
diff --git a/model_ip_address_role.go b/model_ip_address_role.go
deleted file mode 100644
index efce25918e..0000000000
--- a/model_ip_address_role.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 2df4a5ec95..0000000000
--- a/model_ip_address_role_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 614a0026ae..0000000000
--- a/model_ip_address_role_value.go
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 6a010b211d..0000000000
--- a/model_ip_address_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 254433dbd5..0000000000
--- a/model_ip_address_status_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 9ba7d0d4b8..0000000000
--- a/model_ip_address_status_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: 3.7.7 (3.7)
-*/
-
-// 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 085217154f..8775cca43a 100644
--- a/model_ip_range.go
+++ b/model_ip_range.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,10 +28,10 @@ type IPRange struct {
StartAddress string `json:"start_address"`
EndAddress string `json:"end_address"`
Size int32 `json:"size"`
- Vrf NullableNestedVRF `json:"vrf,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ Vrf NullableVRF `json:"vrf,omitempty"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
Status *IPRangeStatus `json:"status,omitempty"`
- Role NullableNestedRole `json:"role,omitempty"`
+ Role NullableRole `json:"role,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -240,9 +240,9 @@ func (o *IPRange) SetSize(v int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *IPRange) GetVrf() NestedVRF {
+func (o *IPRange) GetVrf() VRF {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRF
+ var ret VRF
return ret
}
return *o.Vrf.Get()
@@ -251,7 +251,7 @@ func (o *IPRange) GetVrf() NestedVRF {
// 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() (*NestedVRF, bool) {
+func (o *IPRange) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -267,8 +267,8 @@ func (o *IPRange) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRF and assigns it to the Vrf field.
-func (o *IPRange) SetVrf(v NestedVRF) {
+// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field.
+func (o *IPRange) SetVrf(v VRF) {
o.Vrf.Set(&v)
}
@@ -283,9 +283,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() NestedTenant {
+func (o *IPRange) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -294,7 +294,7 @@ func (o *IPRange) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *IPRange) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -310,8 +310,8 @@ func (o *IPRange) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *IPRange) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *IPRange) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -358,9 +358,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() NestedRole {
+func (o *IPRange) GetRole() Role {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRole
+ var ret Role
return ret
}
return *o.Role.Get()
@@ -369,7 +369,7 @@ func (o *IPRange) GetRole() NestedRole {
// 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() (*NestedRole, bool) {
+func (o *IPRange) GetRoleOk() (*Role, bool) {
if o == nil {
return nil, false
}
@@ -385,8 +385,8 @@ func (o *IPRange) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedRole and assigns it to the Role field.
-func (o *IPRange) SetRole(v NestedRole) {
+// SetRole gets a reference to the given NullableRole and assigns it to the Role field.
+func (o *IPRange) SetRole(v Role) {
o.Role.Set(&v)
}
diff --git a/model_ip_range_request.go b/model_ip_range_request.go
index cfdfa66dc1..89c81001d1 100644
--- a/model_ip_range_request.go
+++ b/model_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &IPRangeRequest{}
// IPRangeRequest Adds support for custom fields and tags.
type IPRangeRequest struct {
- StartAddress string `json:"start_address"`
- EndAddress string `json:"end_address"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Status *IPRangeStatusValue `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
+ CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
// Treat as fully utilized
MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
@@ -105,9 +105,9 @@ func (o *IPRangeRequest) 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 *IPRangeRequest) GetVrf() NestedVRFRequest {
+func (o *IPRangeRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRFRequest
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -116,7 +116,7 @@ func (o *IPRangeRequest) GetVrf() NestedVRFRequest {
// 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() (*NestedVRFRequest, bool) {
+func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -132,8 +132,8 @@ func (o *IPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRFRequest and assigns it to the Vrf field.
-func (o *IPRangeRequest) SetVrf(v NestedVRFRequest) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *IPRangeRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -148,9 +148,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() NestedTenantRequest {
+func (o *IPRangeRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -159,7 +159,7 @@ func (o *IPRangeRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -175,8 +175,8 @@ func (o *IPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *IPRangeRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *IPRangeRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -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() NestedRoleRequest {
+func (o *IPRangeRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRoleRequest
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() NestedRoleRequest {
// 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() (*NestedRoleRequest, bool) {
+func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -250,8 +250,8 @@ func (o *IPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedRoleRequest and assigns it to the Role field.
-func (o *IPRangeRequest) SetRole(v NestedRoleRequest) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *IPRangeRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_ip_range_status.go b/model_ip_range_status.go
index 513baf82d0..7382048fb1 100644
--- a/model_ip_range_status.go
+++ b/model_ip_range_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go
index 5370576bbc..385ab47e7c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go
index 54b02c421c..df62fcdf6d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go
index 36b0113a44..36f1f6c999 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,7 +26,7 @@ type IPSecPolicy struct {
Display string `json:"display"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
- Proposals []int32 `json:"proposals,omitempty"`
+ Proposals []IPSecProposal `json:"proposals,omitempty"`
PfsGroup *IKEProposalGroup `json:"pfs_group,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -190,9 +190,9 @@ func (o *IPSecPolicy) SetDescription(v string) {
}
// GetProposals returns the Proposals field value if set, zero value otherwise.
-func (o *IPSecPolicy) GetProposals() []int32 {
+func (o *IPSecPolicy) GetProposals() []IPSecProposal {
if o == nil || IsNil(o.Proposals) {
- var ret []int32
+ var ret []IPSecProposal
return ret
}
return o.Proposals
@@ -200,7 +200,7 @@ func (o *IPSecPolicy) GetProposals() []int32 {
// GetProposalsOk returns a tuple with the Proposals field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IPSecPolicy) GetProposalsOk() ([]int32, bool) {
+func (o *IPSecPolicy) GetProposalsOk() ([]IPSecProposal, bool) {
if o == nil || IsNil(o.Proposals) {
return nil, false
}
@@ -216,8 +216,8 @@ func (o *IPSecPolicy) HasProposals() bool {
return false
}
-// SetProposals gets a reference to the given []int32 and assigns it to the Proposals field.
-func (o *IPSecPolicy) SetProposals(v []int32) {
+// SetProposals gets a reference to the given []IPSecProposal and assigns it to the Proposals field.
+func (o *IPSecPolicy) SetProposals(v []IPSecProposal) {
o.Proposals = v
}
diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go
index 3c3b648a20..9612f14fab 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go
index 97de4b3996..9146d80747 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,8 +27,8 @@ type IPSecProfile struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Mode IPSecProfileMode `json:"mode"`
- IkePolicy NestedIKEPolicy `json:"ike_policy"`
- IpsecPolicy NestedIPSecPolicy `json:"ipsec_policy"`
+ 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"`
@@ -43,7 +43,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 NestedIKEPolicy, ipsecPolicy NestedIPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile {
+func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile {
this := IPSecProfile{}
this.Id = id
this.Url = url
@@ -218,9 +218,9 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) {
}
// GetIkePolicy returns the IkePolicy field value
-func (o *IPSecProfile) GetIkePolicy() NestedIKEPolicy {
+func (o *IPSecProfile) GetIkePolicy() IKEPolicy {
if o == nil {
- var ret NestedIKEPolicy
+ var ret IKEPolicy
return ret
}
@@ -229,7 +229,7 @@ func (o *IPSecProfile) GetIkePolicy() NestedIKEPolicy {
// GetIkePolicyOk returns a tuple with the IkePolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfile) GetIkePolicyOk() (*NestedIKEPolicy, bool) {
+func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) {
if o == nil {
return nil, false
}
@@ -237,14 +237,14 @@ func (o *IPSecProfile) GetIkePolicyOk() (*NestedIKEPolicy, bool) {
}
// SetIkePolicy sets field value
-func (o *IPSecProfile) SetIkePolicy(v NestedIKEPolicy) {
+func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) {
o.IkePolicy = v
}
// GetIpsecPolicy returns the IpsecPolicy field value
-func (o *IPSecProfile) GetIpsecPolicy() NestedIPSecPolicy {
+func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy {
if o == nil {
- var ret NestedIPSecPolicy
+ var ret IPSecPolicy
return ret
}
@@ -253,7 +253,7 @@ func (o *IPSecProfile) GetIpsecPolicy() NestedIPSecPolicy {
// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfile) GetIpsecPolicyOk() (*NestedIPSecPolicy, bool) {
+func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) {
if o == nil {
return nil, false
}
@@ -261,7 +261,7 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*NestedIPSecPolicy, bool) {
}
// SetIpsecPolicy sets field value
-func (o *IPSecProfile) SetIpsecPolicy(v NestedIPSecPolicy) {
+func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) {
o.IpsecPolicy = v
}
diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go
index d4a11c90cb..69bcffc186 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go
index 09b33e3d1e..31f8922ec4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go
index 5d7fef6e0b..75a1b1c6a7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go
index f48a69e01c..09202cc1ee 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedIKEPolicyRequest `json:"ike_policy"`
- IpsecPolicy NestedIPSecPolicyRequest `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 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"`
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 NestedIKEPolicyRequest, ipsecPolicy NestedIPSecPolicyRequest) *IPSecProfileRequest {
+func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest {
this := IPSecProfileRequest{}
this.Name = name
this.Mode = mode
@@ -135,9 +135,9 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
}
// GetIkePolicy returns the IkePolicy field value
-func (o *IPSecProfileRequest) GetIkePolicy() NestedIKEPolicyRequest {
+func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest {
if o == nil {
- var ret NestedIKEPolicyRequest
+ var ret IKEPolicyRequest
return ret
}
@@ -146,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() NestedIKEPolicyRequest {
// GetIkePolicyOk returns a tuple with the IkePolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfileRequest) GetIkePolicyOk() (*NestedIKEPolicyRequest, bool) {
+func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) {
if o == nil {
return nil, false
}
@@ -154,14 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*NestedIKEPolicyRequest, bool) {
}
// SetIkePolicy sets field value
-func (o *IPSecProfileRequest) SetIkePolicy(v NestedIKEPolicyRequest) {
+func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) {
o.IkePolicy = v
}
// GetIpsecPolicy returns the IpsecPolicy field value
-func (o *IPSecProfileRequest) GetIpsecPolicy() NestedIPSecPolicyRequest {
+func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest {
if o == nil {
- var ret NestedIPSecPolicyRequest
+ var ret IPSecPolicyRequest
return ret
}
@@ -170,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() NestedIPSecPolicyRequest {
// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
// and a boolean to check if the value has been set.
-func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*NestedIPSecPolicyRequest, bool) {
+func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) {
if o == nil {
return nil, false
}
@@ -178,7 +178,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*NestedIPSecPolicyRequest, boo
}
// SetIpsecPolicy sets field value
-func (o *IPSecProfileRequest) SetIpsecPolicy(v NestedIPSecPolicyRequest) {
+func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) {
o.IpsecPolicy = v
}
diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go
index d92959ed48..cdc9250e23 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go
index d8947fd751..1a4cdf787d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go
new file mode 100644
index 0000000000..f5e1d118cd
--- /dev/null
+++ b/model_ipam_service_templates_list_protocol_parameter.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// IpamServiceTemplatesListProtocolParameter the model 'IpamServiceTemplatesListProtocolParameter'
+type IpamServiceTemplatesListProtocolParameter string
+
+// List of ipam_service_templates_list_protocol_parameter
+const (
+ IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_SCTP IpamServiceTemplatesListProtocolParameter = "sctp"
+ IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_TCP IpamServiceTemplatesListProtocolParameter = "tcp"
+ IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_UDP IpamServiceTemplatesListProtocolParameter = "udp"
+)
+
+// All allowed values of IpamServiceTemplatesListProtocolParameter enum
+var AllowedIpamServiceTemplatesListProtocolParameterEnumValues = []IpamServiceTemplatesListProtocolParameter{
+ "sctp",
+ "tcp",
+ "udp",
+}
+
+func (v *IpamServiceTemplatesListProtocolParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := IpamServiceTemplatesListProtocolParameter(value)
+ for _, existing := range AllowedIpamServiceTemplatesListProtocolParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid IpamServiceTemplatesListProtocolParameter", value)
+}
+
+// NewIpamServiceTemplatesListProtocolParameterFromValue returns a pointer to a valid IpamServiceTemplatesListProtocolParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewIpamServiceTemplatesListProtocolParameterFromValue(v string) (*IpamServiceTemplatesListProtocolParameter, error) {
+ ev := IpamServiceTemplatesListProtocolParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for IpamServiceTemplatesListProtocolParameter: valid values are %v", v, AllowedIpamServiceTemplatesListProtocolParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v IpamServiceTemplatesListProtocolParameter) IsValid() bool {
+ for _, existing := range AllowedIpamServiceTemplatesListProtocolParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to ipam_service_templates_list_protocol_parameter value
+func (v IpamServiceTemplatesListProtocolParameter) Ptr() *IpamServiceTemplatesListProtocolParameter {
+ return &v
+}
+
+type NullableIpamServiceTemplatesListProtocolParameter struct {
+ value *IpamServiceTemplatesListProtocolParameter
+ isSet bool
+}
+
+func (v NullableIpamServiceTemplatesListProtocolParameter) Get() *IpamServiceTemplatesListProtocolParameter {
+ return v.value
+}
+
+func (v *NullableIpamServiceTemplatesListProtocolParameter) Set(val *IpamServiceTemplatesListProtocolParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableIpamServiceTemplatesListProtocolParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableIpamServiceTemplatesListProtocolParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableIpamServiceTemplatesListProtocolParameter(val *IpamServiceTemplatesListProtocolParameter) *NullableIpamServiceTemplatesListProtocolParameter {
+ return &NullableIpamServiceTemplatesListProtocolParameter{value: val, isSet: true}
+}
+
+func (v NullableIpamServiceTemplatesListProtocolParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableIpamServiceTemplatesListProtocolParameter) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_job.go b/model_job.go
index 89da48d2fa..7c41c0fe14 100644
--- a/model_job.go
+++ b/model_job.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -34,7 +34,7 @@ type Job struct {
Interval NullableInt32 `json:"interval,omitempty"`
Started NullableTime `json:"started,omitempty"`
Completed NullableTime `json:"completed,omitempty"`
- User NestedUser `json:"user"`
+ User User `json:"user"`
Data interface{} `json:"data,omitempty"`
Error string `json:"error"`
JobId string `json:"job_id"`
@@ -47,7 +47,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 NestedUser, error_ string, jobId string) *Job {
+func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job {
this := Job{}
this.Id = id
this.Url = url
@@ -454,9 +454,9 @@ func (o *Job) UnsetCompleted() {
}
// GetUser returns the User field value
-func (o *Job) GetUser() NestedUser {
+func (o *Job) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -465,7 +465,7 @@ func (o *Job) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *Job) GetUserOk() (*NestedUser, bool) {
+func (o *Job) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -473,7 +473,7 @@ func (o *Job) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *Job) SetUser(v NestedUser) {
+func (o *Job) SetUser(v User) {
o.User = v
}
diff --git a/model_job_request.go b/model_job_request.go
new file mode 100644
index 0000000000..fb5cce40af
--- /dev/null
+++ b/model_job_request.go
@@ -0,0 +1,165 @@
+/*
+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"
+ "time"
+)
+
+// checks if the JobRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &JobRequest{}
+
+// JobRequest struct for JobRequest
+type JobRequest struct {
+ Completed NullableTime `json:"completed,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _JobRequest JobRequest
+
+// NewJobRequest instantiates a new JobRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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{}
+ return &this
+}
+
+// NewJobRequestWithDefaults instantiates a new JobRequest object
+// This 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{}
+ 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 {
+ 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 *JobRequest) 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 *JobRequest) 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 *JobRequest) SetCompleted(v time.Time) {
+ o.Completed.Set(&v)
+}
+
+// SetCompletedNil sets the value for Completed to be an explicit nil
+func (o *JobRequest) SetCompletedNil() {
+ o.Completed.Set(nil)
+}
+
+// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil
+func (o *JobRequest) UnsetCompleted() {
+ o.Completed.Unset()
+}
+
+func (o JobRequest) 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) {
+ toSerialize := map[string]interface{}{}
+ if o.Completed.IsSet() {
+ toSerialize["completed"] = o.Completed.Get()
+ }
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *JobRequest) UnmarshalJSON(data []byte) (err error) {
+ varJobRequest := _JobRequest{}
+
+ err = json.Unmarshal(data, &varJobRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = JobRequest(varJobRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "completed")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableJobRequest struct {
+ value *JobRequest
+ isSet bool
+}
+
+func (v NullableJobRequest) Get() *JobRequest {
+ return v.value
+}
+
+func (v *NullableJobRequest) Set(val *JobRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableJobRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableJobRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableJobRequest(val *JobRequest) *NullableJobRequest {
+ return &NullableJobRequest{value: val, isSet: true}
+}
+
+func (v NullableJobRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableJobRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_job_status.go b/model_job_status.go
index 6555c12562..d625ea334a 100644
--- a/model_job_status.go
+++ b/model_job_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_job_status_label.go b/model_job_status_label.go
index 3d1dbb094f..2e71e463ac 100644
--- a/model_job_status_label.go
+++ b/model_job_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_job_status_value.go b/model_job_status_value.go
index fc056e1dda..ea3383eaa1 100644
--- a/model_job_status_value.go
+++ b/model_job_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_journal_entry.go b/model_journal_entry.go
index 4f17ead504..85c554b79d 100644
--- a/model_journal_entry.go
+++ b/model_journal_entry.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go
index 69def9bb35..18d34bc98d 100644
--- a/model_journal_entry_kind.go
+++ b/model_journal_entry_kind.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go
index cc9afe5066..5c61d6c58d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go
index eb65a42d89..06b51fe786 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go
index afbd29cca5..03045dce65 100644
--- a/model_journal_entry_request.go
+++ b/model_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_l2_vpn.go b/model_l2_vpn.go
index c4aa29483c..b59c4021bf 100644
--- a/model_l2_vpn.go
+++ b/model_l2_vpn.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the L2VPN type satisfies the MappedNullable interface at compile time
@@ -21,22 +20,14 @@ var _ MappedNullable = &L2VPN{}
// L2VPN Adds support for custom fields and tags.
type L2VPN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type *L2VPNType `json:"type,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type *L2VPNType `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -46,15 +37,13 @@ type _L2VPN L2VPN
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewL2VPN(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *L2VPN {
+func NewL2VPN(id int32, url string, display string, name string, slug string) *L2VPN {
this := L2VPN{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -261,70 +250,6 @@ func (o *L2VPN) SetType(v L2VPNType) {
o.Type = &v
}
-// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
-func (o *L2VPN) 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 *L2VPN) 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 *L2VPN) 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 *L2VPN) SetImportTargets(v []int32) {
- o.ImportTargets = v
-}
-
-// GetExportTargets returns the ExportTargets field value if set, zero value otherwise.
-func (o *L2VPN) 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 *L2VPN) 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 *L2VPN) 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 *L2VPN) SetExportTargets(v []int32) {
- 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) {
@@ -357,197 +282,6 @@ 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPN) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *L2VPN) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *L2VPN) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *L2VPN) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *L2VPN) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPN) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *L2VPN) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *L2VPN) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *L2VPN) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o L2VPN) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -569,29 +303,9 @@ 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -610,8 +324,6 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -648,15 +360,7 @@ func (o *L2VPN) 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")
- delete(additionalProperties, "created")
- delete(additionalProperties, "last_updated")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go
index 2635769764..9722c656c9 100644
--- a/model_l2_vpn_request.go
+++ b/model_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,11 @@ 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"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Identifier NullableInt64 `json:"identifier,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type *L2VPNTypeValue `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -178,70 +172,6 @@ func (o *L2VPNRequest) SetType(v L2VPNTypeValue) {
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) {
@@ -274,145 +204,6 @@ 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPNRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *L2VPNRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *L2VPNRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *L2VPNRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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()
if err != nil {
@@ -431,27 +222,9 @@ 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
@@ -500,13 +273,7 @@ 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
}
diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go
index a0c7046670..b70569c1f7 100644
--- a/model_l2_vpn_termination.go
+++ b/model_l2_vpn_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time
@@ -21,17 +20,10 @@ var _ MappedNullable = &L2VPNTermination{}
// L2VPNTermination Adds support for custom fields and tags.
type L2VPNTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- L2vpn NestedL2VPN `json:"l2vpn"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- AssignedObject interface{} `json:"assigned_object"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ L2vpn L2VPN `json:"l2vpn"`
AdditionalProperties map[string]interface{}
}
@@ -41,17 +33,12 @@ 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 NestedL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination {
+func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination {
this := L2VPNTermination{}
this.Id = id
this.Url = url
this.Display = display
this.L2vpn = l2vpn
- this.AssignedObjectType = assignedObjectType
- this.AssignedObjectId = assignedObjectId
- this.AssignedObject = assignedObject
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -136,9 +123,9 @@ func (o *L2VPNTermination) SetDisplay(v string) {
}
// GetL2vpn returns the L2vpn field value
-func (o *L2VPNTermination) GetL2vpn() NestedL2VPN {
+func (o *L2VPNTermination) GetL2vpn() L2VPN {
if o == nil {
- var ret NestedL2VPN
+ var ret L2VPN
return ret
}
@@ -147,7 +134,7 @@ func (o *L2VPNTermination) GetL2vpn() NestedL2VPN {
// GetL2vpnOk returns a tuple with the L2vpn field value
// and a boolean to check if the value has been set.
-func (o *L2VPNTermination) GetL2vpnOk() (*NestedL2VPN, bool) {
+func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) {
if o == nil {
return nil, false
}
@@ -155,200 +142,10 @@ func (o *L2VPNTermination) GetL2vpnOk() (*NestedL2VPN, bool) {
}
// SetL2vpn sets field value
-func (o *L2VPNTermination) SetL2vpn(v NestedL2VPN) {
+func (o *L2VPNTermination) SetL2vpn(v L2VPN) {
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 the value is explicit nil, the zero value for interface{} will be returned
-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
-// and a 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
-}
-
-// SetAssignedObject sets field value
-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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *L2VPNTermination) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *L2VPNTermination) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *L2VPNTermination) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *L2VPNTermination) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o L2VPNTermination) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -363,19 +160,6 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -393,11 +177,6 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"l2vpn",
- "assigned_object_type",
- "assigned_object_id",
- "assigned_object",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -431,13 +210,6 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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
}
diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go
index 06816f31c4..6b293da4e6 100644
--- a/model_l2_vpn_termination_request.go
+++ b/model_l2_vpn_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,7 @@ var _ MappedNullable = &L2VPNTerminationRequest{}
// L2VPNTerminationRequest Adds support for custom fields and tags.
type L2VPNTerminationRequest struct {
- L2vpn NestedL2VPNRequest `json:"l2vpn"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ L2vpn L2VPNRequest `json:"l2vpn"`
AdditionalProperties map[string]interface{}
}
@@ -34,11 +30,9 @@ 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 NestedL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest {
+func NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest {
this := L2VPNTerminationRequest{}
this.L2vpn = l2vpn
- this.AssignedObjectType = assignedObjectType
- this.AssignedObjectId = assignedObjectId
return &this
}
@@ -51,9 +45,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest {
}
// GetL2vpn returns the L2vpn field value
-func (o *L2VPNTerminationRequest) GetL2vpn() NestedL2VPNRequest {
+func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest {
if o == nil {
- var ret NestedL2VPNRequest
+ var ret L2VPNRequest
return ret
}
@@ -62,7 +56,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() NestedL2VPNRequest {
// GetL2vpnOk returns a tuple with the L2vpn field value
// and a boolean to check if the value has been set.
-func (o *L2VPNTerminationRequest) GetL2vpnOk() (*NestedL2VPNRequest, bool) {
+func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) {
if o == nil {
return nil, false
}
@@ -70,122 +64,10 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*NestedL2VPNRequest, bool) {
}
// SetL2vpn sets field value
-func (o *L2VPNTerminationRequest) SetL2vpn(v NestedL2VPNRequest) {
+func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) {
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()
if err != nil {
@@ -197,14 +79,6 @@ 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
@@ -219,8 +93,6 @@ 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",
}
allProperties := make(map[string]interface{})
@@ -251,10 +123,6 @@ 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
}
diff --git a/model_l2_vpn_type.go b/model_l2_vpn_type.go
index 55d67553ff..2d3fba3632 100644
--- a/model_l2_vpn_type.go
+++ b/model_l2_vpn_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_l2_vpn_type_label.go b/model_l2_vpn_type_label.go
index 60ea961302..514444fe17 100644
--- a/model_l2_vpn_type_label.go
+++ b/model_l2_vpn_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_l2_vpn_type_value.go b/model_l2_vpn_type_value.go
index e539119752..fdbf47162d 100644
--- a/model_l2_vpn_type_value.go
+++ b/model_l2_vpn_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_location.go b/model_location.go
index f179e9c997..3da41e65f0 100644
--- a/model_location.go
+++ b/model_location.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Location type satisfies the MappedNullable interface at compile time
@@ -21,23 +20,14 @@ var _ MappedNullable = &Location{}
// Location Extends PrimaryModelSerializer to include MPTT support.
type Location struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Site NestedSite `json:"site"`
- Parent NullableNestedLocation `json:"parent,omitempty"`
- Status *LocationStatus `json:"status,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- RackCount int32 `json:"rack_count"`
- DeviceCount int32 `json:"device_count"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ RackCount int32 `json:"rack_count"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -47,18 +37,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, site NestedSite, created NullableTime, lastUpdated NullableTime, rackCount int32, deviceCount int32, depth int32) *Location {
+func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *Location {
this := Location{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Site = site
- this.Created = created
- this.LastUpdated = lastUpdated
this.RackCount = rackCount
- this.DeviceCount = deviceCount
this.Depth = depth
return &this
}
@@ -191,148 +177,6 @@ func (o *Location) SetSlug(v string) {
o.Slug = v
}
-// GetSite returns the Site field value
-func (o *Location) GetSite() NestedSite {
- if o == nil {
- var ret NestedSite
- 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() (*NestedSite, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *Location) SetSite(v NestedSite) {
- 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Location) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Location) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Location) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Location) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *Location) UnsetTenant() {
- o.Tenant.Unset()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Location) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -365,122 +209,6 @@ func (o *Location) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Location) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Location) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Location) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Location) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Location) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Location) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetRackCount returns the RackCount field value
func (o *Location) GetRackCount() int32 {
if o == nil {
@@ -505,30 +233,6 @@ func (o *Location) SetRackCount(v int32) {
o.RackCount = v
}
-// GetDeviceCount returns the DeviceCount field value
-func (o *Location) GetDeviceCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceCount
-}
-
-// GetDeviceCountOk returns a tuple with the DeviceCount field value
-// and a boolean to check if the value has been set.
-func (o *Location) GetDeviceCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceCount, true
-}
-
-// SetDeviceCount sets field value
-func (o *Location) SetDeviceCount(v int32) {
- o.DeviceCount = v
-}
-
// GetDepth returns the Depth field value
func (o *Location) GetDepth() int32 {
if o == nil {
@@ -568,29 +272,10 @@ func (o Location) ToMap() (map[string]interface{}, error) {
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.Description) {
toSerialize["description"] = o.Description
}
- 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()
toSerialize["rack_count"] = o.RackCount
- toSerialize["device_count"] = o.DeviceCount
toSerialize["_depth"] = o.Depth
for key, value := range o.AdditionalProperties {
@@ -610,11 +295,7 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "site",
- "created",
- "last_updated",
"rack_count",
- "device_count",
"_depth",
}
@@ -650,17 +331,8 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "display")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
- delete(additionalProperties, "site")
- delete(additionalProperties, "parent")
- delete(additionalProperties, "status")
- delete(additionalProperties, "tenant")
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, "_depth")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_location_request.go b/model_location_request.go
index 5a469a0f71..5f282485af 100644
--- a/model_location_request.go
+++ b/model_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,15 +20,9 @@ var _ MappedNullable = &LocationRequest{}
// LocationRequest Extends PrimaryModelSerializer to include MPTT support.
type LocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Site NestedSiteRequest `json:"site"`
- Parent NullableNestedLocationRequest `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -38,11 +32,10 @@ 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, site NestedSiteRequest) *LocationRequest {
+func NewLocationRequest(name string, slug string) *LocationRequest {
this := LocationRequest{}
this.Name = name
this.Slug = slug
- this.Site = site
return &this
}
@@ -102,148 +95,6 @@ func (o *LocationRequest) SetSlug(v string) {
o.Slug = v
}
-// GetSite returns the Site field value
-func (o *LocationRequest) GetSite() NestedSiteRequest {
- if o == nil {
- var ret NestedSiteRequest
- 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() (*NestedSiteRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *LocationRequest) SetSite(v NestedSiteRequest) {
- 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *LocationRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *LocationRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *LocationRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *LocationRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *LocationRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *LocationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -276,70 +127,6 @@ 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()
if err != nil {
@@ -352,25 +139,9 @@ 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.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
@@ -386,7 +157,6 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) {
requiredProperties := []string{
"name",
"slug",
- "site",
}
allProperties := make(map[string]interface{})
@@ -418,13 +188,7 @@ 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, "description")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_location_status.go b/model_location_status.go
deleted file mode 100644
index 6f6ef69d0e..0000000000
--- a/model_location_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 1be08cdaf4..0000000000
--- a/model_location_status_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 89be3b10f0..0000000000
--- a/model_location_status_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: 3.7.7 (3.7)
-*/
-
-// 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_manufacturer.go b/model_manufacturer.go
index 33e3a1f09e..6b8dcd9090 100644
--- a/model_manufacturer.go
+++ b/model_manufacturer.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Manufacturer type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,13 @@ var _ MappedNullable = &Manufacturer{}
// Manufacturer Adds support for custom fields and tags.
type Manufacturer struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- DevicetypeCount int32 `json:"devicetype_count"`
- InventoryitemCount int32 `json:"inventoryitem_count"`
- PlatformCount int32 `json:"platform_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ DevicetypeCount int64 `json:"devicetype_count"`
AdditionalProperties map[string]interface{}
}
@@ -43,18 +36,14 @@ 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, created NullableTime, lastUpdated NullableTime, devicetypeCount int32, inventoryitemCount int32, platformCount int32) *Manufacturer {
+func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64) *Manufacturer {
this := Manufacturer{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.DevicetypeCount = devicetypeCount
- this.InventoryitemCount = inventoryitemCount
- this.PlatformCount = platformCount
return &this
}
@@ -218,126 +207,10 @@ func (o *Manufacturer) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Manufacturer) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Manufacturer) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Manufacturer) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Manufacturer) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Manufacturer) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetDevicetypeCount returns the DevicetypeCount field value
-func (o *Manufacturer) GetDevicetypeCount() int32 {
+func (o *Manufacturer) GetDevicetypeCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -346,7 +219,7 @@ func (o *Manufacturer) GetDevicetypeCount() int32 {
// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value
// and a boolean to check if the value has been set.
-func (o *Manufacturer) GetDevicetypeCountOk() (*int32, bool) {
+func (o *Manufacturer) GetDevicetypeCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -354,58 +227,10 @@ func (o *Manufacturer) GetDevicetypeCountOk() (*int32, bool) {
}
// SetDevicetypeCount sets field value
-func (o *Manufacturer) SetDevicetypeCount(v int32) {
+func (o *Manufacturer) SetDevicetypeCount(v int64) {
o.DevicetypeCount = v
}
-// GetInventoryitemCount returns the InventoryitemCount field value
-func (o *Manufacturer) GetInventoryitemCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.InventoryitemCount
-}
-
-// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value
-// and a boolean to check if the value has been set.
-func (o *Manufacturer) GetInventoryitemCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InventoryitemCount, true
-}
-
-// SetInventoryitemCount sets field value
-func (o *Manufacturer) SetInventoryitemCount(v int32) {
- o.InventoryitemCount = v
-}
-
-// GetPlatformCount returns the PlatformCount field value
-func (o *Manufacturer) GetPlatformCount() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PlatformCount, true
-}
-
-// SetPlatformCount sets field value
-func (o *Manufacturer) SetPlatformCount(v int32) {
- o.PlatformCount = v
-}
-
func (o Manufacturer) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -424,17 +249,7 @@ func (o Manufacturer) 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["devicetype_count"] = o.DevicetypeCount
- toSerialize["inventoryitem_count"] = o.InventoryitemCount
- toSerialize["platform_count"] = o.PlatformCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -453,11 +268,7 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"devicetype_count",
- "inventoryitem_count",
- "platform_count",
}
allProperties := make(map[string]interface{})
@@ -493,13 +304,7 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go
index f2059e858e..35e495df84 100644
--- a/model_manufacturer_request.go
+++ b/model_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,9 @@ var _ MappedNullable = &ManufacturerRequest{}
// ManufacturerRequest Adds support for custom fields and tags.
type ManufacturerRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -129,70 +127,6 @@ 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()
if err != nil {
@@ -208,12 +142,6 @@ 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
@@ -261,8 +189,6 @@ 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
}
diff --git a/model_module.go b/model_module.go
index 820ba9cbb7..7154265d7d 100644
--- a/model_module.go
+++ b/model_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Module type satisfies the MappedNullable interface at compile time
@@ -21,22 +20,11 @@ var _ MappedNullable = &Module{}
// Module Adds support for custom fields and tags.
type Module struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- ModuleBay NestedModuleBay `json:"module_bay"`
- ModuleType NestedModuleType `json:"module_type"`
- Status *ModuleStatus `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
- // A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ ModuleBay NestedModuleBay `json:"module_bay"`
AdditionalProperties map[string]interface{}
}
@@ -46,16 +34,13 @@ 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 NestedDevice, moduleBay NestedModuleBay, moduleType NestedModuleType, created NullableTime, lastUpdated NullableTime) *Module {
+func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module {
this := Module{}
this.Id = id
this.Url = url
this.Display = display
this.Device = device
this.ModuleBay = moduleBay
- this.ModuleType = moduleType
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -140,9 +125,9 @@ func (o *Module) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *Module) GetDevice() NestedDevice {
+func (o *Module) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -151,7 +136,7 @@ func (o *Module) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *Module) GetDeviceOk() (*NestedDevice, bool) {
+func (o *Module) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -159,7 +144,7 @@ func (o *Module) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *Module) SetDevice(v NestedDevice) {
+func (o *Module) SetDevice(v Device) {
o.Device = v
}
@@ -187,317 +172,6 @@ func (o *Module) SetModuleBay(v NestedModuleBay) {
o.ModuleBay = v
}
-// GetModuleType returns the ModuleType field value
-func (o *Module) GetModuleType() NestedModuleType {
- if o == nil {
- var ret NestedModuleType
- 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() (*NestedModuleType, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ModuleType, true
-}
-
-// SetModuleType sets field value
-func (o *Module) SetModuleType(v NestedModuleType) {
- o.ModuleType = v
-}
-
-// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *Module) GetStatus() ModuleStatus {
- if o == nil || IsNil(o.Status) {
- var ret ModuleStatus
- 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() (*ModuleStatus, 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 ModuleStatus and assigns it to the Status field.
-func (o *Module) SetStatus(v ModuleStatus) {
- 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Module) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Module) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Module) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Module) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Module) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Module) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o Module) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -513,30 +187,6 @@ func (o Module) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -555,9 +205,6 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) {
"display",
"device",
"module_bay",
- "module_type",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -592,16 +239,6 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_module_bay.go b/model_module_bay.go
index af05a74618..3f883cc159 100644
--- a/model_module_bay.go
+++ b/model_module_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ var _ MappedNullable = &ModuleBay{}
// ModuleBay Adds support for custom fields and tags.
type ModuleBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Name string `json:"name"`
- InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"`
+ 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"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
@@ -45,7 +45,7 @@ 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 NestedDevice, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay {
+func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay {
this := ModuleBay{}
this.Id = id
this.Url = url
@@ -138,9 +138,9 @@ func (o *ModuleBay) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *ModuleBay) GetDevice() NestedDevice {
+func (o *ModuleBay) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -149,7 +149,7 @@ func (o *ModuleBay) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ModuleBay) GetDeviceOk() (*NestedDevice, bool) {
+func (o *ModuleBay) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -157,7 +157,7 @@ func (o *ModuleBay) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *ModuleBay) SetDevice(v NestedDevice) {
+func (o *ModuleBay) SetDevice(v Device) {
o.Device = v
}
@@ -186,9 +186,9 @@ func (o *ModuleBay) 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 *ModuleBay) GetInstalledModule() ModuleBayNestedModule {
+func (o *ModuleBay) GetInstalledModule() Module {
if o == nil || IsNil(o.InstalledModule.Get()) {
- var ret ModuleBayNestedModule
+ var ret Module
return ret
}
return *o.InstalledModule.Get()
@@ -197,7 +197,7 @@ func (o *ModuleBay) GetInstalledModule() ModuleBayNestedModule {
// 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() (*ModuleBayNestedModule, bool) {
+func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -213,8 +213,8 @@ func (o *ModuleBay) HasInstalledModule() bool {
return false
}
-// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field.
-func (o *ModuleBay) SetInstalledModule(v ModuleBayNestedModule) {
+// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field.
+func (o *ModuleBay) SetInstalledModule(v Module) {
o.InstalledModule.Set(&v)
}
diff --git a/model_module_bay_nested_module.go b/model_module_bay_nested_module.go
index f241f0470c..dcfeb6bd7d 100644
--- a/model_module_bay_nested_module.go
+++ b/model_module_bay_nested_module.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_module_bay_nested_module_request.go b/model_module_bay_nested_module_request.go
index 53a83c9f30..3d8d5c31db 100644
--- a/model_module_bay_nested_module_request.go
+++ b/model_module_bay_nested_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_module_bay_request.go b/model_module_bay_request.go
index 898154762c..7fb1ba15c8 100644
--- a/model_module_bay_request.go
+++ b/model_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &ModuleBayRequest{}
// ModuleBayRequest Adds support for custom fields and tags.
type ModuleBayRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Name string `json:"name"`
- InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"`
+ Device DeviceRequest `json:"device"`
+ Name string `json:"name"`
+ InstalledModule NullableModuleRequest `json:"installed_module,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
@@ -39,7 +39,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 NestedDeviceRequest, name string) *ModuleBayRequest {
+func NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest {
this := ModuleBayRequest{}
this.Device = device
this.Name = name
@@ -55,9 +55,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest {
}
// GetDevice returns the Device field value
-func (o *ModuleBayRequest) GetDevice() NestedDeviceRequest {
+func (o *ModuleBayRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -66,7 +66,7 @@ func (o *ModuleBayRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ModuleBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -74,7 +74,7 @@ func (o *ModuleBayRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ModuleBayRequest) SetDevice(v NestedDeviceRequest) {
+func (o *ModuleBayRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -103,9 +103,9 @@ func (o *ModuleBayRequest) 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 *ModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest {
+func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest {
if o == nil || IsNil(o.InstalledModule.Get()) {
- var ret ModuleBayNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.InstalledModule.Get()
@@ -114,7 +114,7 @@ func (o *ModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest {
// 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() (*ModuleBayNestedModuleRequest, bool) {
+func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -130,8 +130,8 @@ func (o *ModuleBayRequest) HasInstalledModule() bool {
return false
}
-// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field.
-func (o *ModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) {
+// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field.
+func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) {
o.InstalledModule.Set(&v)
}
diff --git a/model_module_bay_template.go b/model_module_bay_template.go
index 1eff391376..114c363b6e 100644
--- a/model_module_bay_template.go
+++ b/model_module_bay_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ 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 NestedDeviceType `json:"device_type"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType DeviceType `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
@@ -43,7 +43,7 @@ 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 NestedDeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate {
+func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate {
this := ModuleBayTemplate{}
this.Id = id
this.Url = url
@@ -136,9 +136,9 @@ func (o *ModuleBayTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value
-func (o *ModuleBayTemplate) GetDeviceType() NestedDeviceType {
+func (o *ModuleBayTemplate) GetDeviceType() DeviceType {
if o == nil {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
@@ -147,7 +147,7 @@ func (o *ModuleBayTemplate) GetDeviceType() NestedDeviceType {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *ModuleBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
+func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -155,7 +155,7 @@ func (o *ModuleBayTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool) {
}
// SetDeviceType sets field value
-func (o *ModuleBayTemplate) SetDeviceType(v NestedDeviceType) {
+func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) {
o.DeviceType = v
}
diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go
index 5e9e31d69d..6e407360e3 100644
--- a/model_module_bay_template_request.go
+++ b/model_module_bay_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &ModuleBayTemplateRequest{}
// ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type ModuleBayTemplateRequest struct {
- DeviceType NestedDeviceTypeRequest `json:"device_type"`
+ DeviceType DeviceTypeRequest `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
@@ -37,7 +37,7 @@ 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 NestedDeviceTypeRequest, name string) *ModuleBayTemplateRequest {
+func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest {
this := ModuleBayTemplateRequest{}
this.DeviceType = deviceType
this.Name = name
@@ -53,9 +53,9 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest {
}
// GetDeviceType returns the DeviceType field value
-func (o *ModuleBayTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
+func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
@@ -64,7 +64,7 @@ func (o *ModuleBayTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest, bool) {
+func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -72,7 +72,7 @@ func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*NestedDeviceTypeRequest,
}
// SetDeviceType sets field value
-func (o *ModuleBayTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = v
}
diff --git a/model_module_nested_module_bay.go b/model_module_nested_module_bay.go
deleted file mode 100644
index aa3d4adad8..0000000000
--- a/model_module_nested_module_bay.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the ModuleNestedModuleBay type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ModuleNestedModuleBay{}
-
-// ModuleNestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type ModuleNestedModuleBay struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _ModuleNestedModuleBay ModuleNestedModuleBay
-
-// NewModuleNestedModuleBay instantiates a new ModuleNestedModuleBay object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewModuleNestedModuleBay(id int32, url string, display string, name string) *ModuleNestedModuleBay {
- this := ModuleNestedModuleBay{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewModuleNestedModuleBayWithDefaults instantiates a new ModuleNestedModuleBay object
-// This 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 NewModuleNestedModuleBayWithDefaults() *ModuleNestedModuleBay {
- this := ModuleNestedModuleBay{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *ModuleNestedModuleBay) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *ModuleNestedModuleBay) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *ModuleNestedModuleBay) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *ModuleNestedModuleBay) SetName(v string) {
- o.Name = v
-}
-
-func (o ModuleNestedModuleBay) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o ModuleNestedModuleBay) 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 *ModuleNestedModuleBay) 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",
- }
-
- 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)
- }
- }
-
- varModuleNestedModuleBay := _ModuleNestedModuleBay{}
-
- err = json.Unmarshal(data, &varModuleNestedModuleBay)
-
- if err != nil {
- return err
- }
-
- *o = ModuleNestedModuleBay(varModuleNestedModuleBay)
-
- 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 NullableModuleNestedModuleBay struct {
- value *ModuleNestedModuleBay
- isSet bool
-}
-
-func (v NullableModuleNestedModuleBay) Get() *ModuleNestedModuleBay {
- return v.value
-}
-
-func (v *NullableModuleNestedModuleBay) Set(val *ModuleNestedModuleBay) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableModuleNestedModuleBay) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableModuleNestedModuleBay) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableModuleNestedModuleBay(val *ModuleNestedModuleBay) *NullableModuleNestedModuleBay {
- return &NullableModuleNestedModuleBay{value: val, isSet: true}
-}
-
-func (v NullableModuleNestedModuleBay) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableModuleNestedModuleBay) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_module_nested_module_bay_request.go b/model_module_nested_module_bay_request.go
deleted file mode 100644
index 8a7df70f89..0000000000
--- a/model_module_nested_module_bay_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the ModuleNestedModuleBayRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ModuleNestedModuleBayRequest{}
-
-// ModuleNestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type ModuleNestedModuleBayRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _ModuleNestedModuleBayRequest ModuleNestedModuleBayRequest
-
-// NewModuleNestedModuleBayRequest instantiates a new ModuleNestedModuleBayRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewModuleNestedModuleBayRequest(name string) *ModuleNestedModuleBayRequest {
- this := ModuleNestedModuleBayRequest{}
- this.Name = name
- return &this
-}
-
-// NewModuleNestedModuleBayRequestWithDefaults instantiates a new ModuleNestedModuleBayRequest object
-// This 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 NewModuleNestedModuleBayRequestWithDefaults() *ModuleNestedModuleBayRequest {
- this := ModuleNestedModuleBayRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *ModuleNestedModuleBayRequest) 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 *ModuleNestedModuleBayRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *ModuleNestedModuleBayRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o ModuleNestedModuleBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o ModuleNestedModuleBayRequest) 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 *ModuleNestedModuleBayRequest) 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",
- }
-
- 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)
- }
- }
-
- varModuleNestedModuleBayRequest := _ModuleNestedModuleBayRequest{}
-
- err = json.Unmarshal(data, &varModuleNestedModuleBayRequest)
-
- if err != nil {
- return err
- }
-
- *o = ModuleNestedModuleBayRequest(varModuleNestedModuleBayRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableModuleNestedModuleBayRequest struct {
- value *ModuleNestedModuleBayRequest
- isSet bool
-}
-
-func (v NullableModuleNestedModuleBayRequest) Get() *ModuleNestedModuleBayRequest {
- return v.value
-}
-
-func (v *NullableModuleNestedModuleBayRequest) Set(val *ModuleNestedModuleBayRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableModuleNestedModuleBayRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableModuleNestedModuleBayRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableModuleNestedModuleBayRequest(val *ModuleNestedModuleBayRequest) *NullableModuleNestedModuleBayRequest {
- return &NullableModuleNestedModuleBayRequest{value: val, isSet: true}
-}
-
-func (v NullableModuleNestedModuleBayRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableModuleNestedModuleBayRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_module_request.go b/model_module_request.go
index dbf3b6d476..0cdc3bf195 100644
--- a/model_module_request.go
+++ b/model_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,8 @@ var _ MappedNullable = &ModuleRequest{}
// ModuleRequest Adds support for custom fields and tags.
type ModuleRequest struct {
- Device NestedDeviceRequest `json:"device"`
- ModuleBay NestedModuleBayRequest `json:"module_bay"`
- ModuleType NestedModuleTypeRequest `json:"module_type"`
- Status *ModuleStatusValue `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"`
+ Device DeviceRequest `json:"device"`
+ ModuleBay NestedModuleBayRequest `json:"module_bay"`
AdditionalProperties map[string]interface{}
}
@@ -40,11 +31,10 @@ 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 NestedDeviceRequest, moduleBay NestedModuleBayRequest, moduleType NestedModuleTypeRequest) *ModuleRequest {
+func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest {
this := ModuleRequest{}
this.Device = device
this.ModuleBay = moduleBay
- this.ModuleType = moduleType
return &this
}
@@ -57,9 +47,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest {
}
// GetDevice returns the Device field value
-func (o *ModuleRequest) GetDevice() NestedDeviceRequest {
+func (o *ModuleRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -68,7 +58,7 @@ func (o *ModuleRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *ModuleRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,7 +66,7 @@ func (o *ModuleRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *ModuleRequest) SetDevice(v NestedDeviceRequest) {
+func (o *ModuleRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -104,265 +94,6 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) {
o.ModuleBay = v
}
-// GetModuleType returns the ModuleType field value
-func (o *ModuleRequest) GetModuleType() NestedModuleTypeRequest {
- if o == nil {
- var ret NestedModuleTypeRequest
- 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() (*NestedModuleTypeRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ModuleType, true
-}
-
-// SetModuleType sets field value
-func (o *ModuleRequest) SetModuleType(v NestedModuleTypeRequest) {
- o.ModuleType = v
-}
-
-// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *ModuleRequest) GetStatus() ModuleStatusValue {
- if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
- 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() (*ModuleStatusValue, 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 ModuleStatusValue and assigns it to the Status field.
-func (o *ModuleRequest) SetStatus(v ModuleStatusValue) {
- 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()
if err != nil {
@@ -375,28 +106,6 @@ 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
@@ -412,7 +121,6 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) {
requiredProperties := []string{
"device",
"module_bay",
- "module_type",
}
allProperties := make(map[string]interface{})
@@ -444,14 +152,6 @@ 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
}
diff --git a/model_module_status.go b/model_module_status.go
deleted file mode 100644
index 0721526e5a..0000000000
--- a/model_module_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the ModuleStatus type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ModuleStatus{}
-
-// ModuleStatus struct for ModuleStatus
-type ModuleStatus struct {
- Value *ModuleStatusValue `json:"value,omitempty"`
- Label *ModuleStatusLabel `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _ModuleStatus ModuleStatus
-
-// NewModuleStatus instantiates a new ModuleStatus object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewModuleStatus() *ModuleStatus {
- this := ModuleStatus{}
- return &this
-}
-
-// NewModuleStatusWithDefaults instantiates a new ModuleStatus object
-// This 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 NewModuleStatusWithDefaults() *ModuleStatus {
- this := ModuleStatus{}
- return &this
-}
-
-// GetValue returns the Value field value if set, zero value otherwise.
-func (o *ModuleStatus) GetValue() ModuleStatusValue {
- if o == nil || IsNil(o.Value) {
- var ret ModuleStatusValue
- 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 *ModuleStatus) GetValueOk() (*ModuleStatusValue, 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 *ModuleStatus) HasValue() bool {
- if o != nil && !IsNil(o.Value) {
- return true
- }
-
- return false
-}
-
-// SetValue gets a reference to the given ModuleStatusValue and assigns it to the Value field.
-func (o *ModuleStatus) SetValue(v ModuleStatusValue) {
- o.Value = &v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *ModuleStatus) GetLabel() ModuleStatusLabel {
- if o == nil || IsNil(o.Label) {
- var ret ModuleStatusLabel
- 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 *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, 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 *ModuleStatus) HasLabel() bool {
- if o != nil && !IsNil(o.Label) {
- return true
- }
-
- return false
-}
-
-// SetLabel gets a reference to the given ModuleStatusLabel and assigns it to the Label field.
-func (o *ModuleStatus) SetLabel(v ModuleStatusLabel) {
- o.Label = &v
-}
-
-func (o ModuleStatus) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o ModuleStatus) 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 *ModuleStatus) UnmarshalJSON(data []byte) (err error) {
- varModuleStatus := _ModuleStatus{}
-
- err = json.Unmarshal(data, &varModuleStatus)
-
- if err != nil {
- return err
- }
-
- *o = ModuleStatus(varModuleStatus)
-
- 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 NullableModuleStatus struct {
- value *ModuleStatus
- isSet bool
-}
-
-func (v NullableModuleStatus) Get() *ModuleStatus {
- return v.value
-}
-
-func (v *NullableModuleStatus) Set(val *ModuleStatus) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableModuleStatus) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableModuleStatus) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableModuleStatus(val *ModuleStatus) *NullableModuleStatus {
- return &NullableModuleStatus{value: val, isSet: true}
-}
-
-func (v NullableModuleStatus) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableModuleStatus) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_module_status_label.go b/model_module_status_label.go
deleted file mode 100644
index b5d129f9bf..0000000000
--- a/model_module_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// ModuleStatusLabel the model 'ModuleStatusLabel'
-type ModuleStatusLabel string
-
-// List of Module_status_label
-const (
- MODULESTATUSLABEL_OFFLINE ModuleStatusLabel = "Offline"
- MODULESTATUSLABEL_ACTIVE ModuleStatusLabel = "Active"
- MODULESTATUSLABEL_PLANNED ModuleStatusLabel = "Planned"
- MODULESTATUSLABEL_STAGED ModuleStatusLabel = "Staged"
- MODULESTATUSLABEL_FAILED ModuleStatusLabel = "Failed"
- MODULESTATUSLABEL_DECOMMISSIONING ModuleStatusLabel = "Decommissioning"
-)
-
-// All allowed values of ModuleStatusLabel enum
-var AllowedModuleStatusLabelEnumValues = []ModuleStatusLabel{
- "Offline",
- "Active",
- "Planned",
- "Staged",
- "Failed",
- "Decommissioning",
-}
-
-func (v *ModuleStatusLabel) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := ModuleStatusLabel(value)
- for _, existing := range AllowedModuleStatusLabelEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid ModuleStatusLabel", value)
-}
-
-// NewModuleStatusLabelFromValue returns a pointer to a valid ModuleStatusLabel
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewModuleStatusLabelFromValue(v string) (*ModuleStatusLabel, error) {
- ev := ModuleStatusLabel(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for ModuleStatusLabel: valid values are %v", v, AllowedModuleStatusLabelEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v ModuleStatusLabel) IsValid() bool {
- for _, existing := range AllowedModuleStatusLabelEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to Module_status_label value
-func (v ModuleStatusLabel) Ptr() *ModuleStatusLabel {
- return &v
-}
-
-type NullableModuleStatusLabel struct {
- value *ModuleStatusLabel
- isSet bool
-}
-
-func (v NullableModuleStatusLabel) Get() *ModuleStatusLabel {
- return v.value
-}
-
-func (v *NullableModuleStatusLabel) Set(val *ModuleStatusLabel) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableModuleStatusLabel) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableModuleStatusLabel) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableModuleStatusLabel(val *ModuleStatusLabel) *NullableModuleStatusLabel {
- return &NullableModuleStatusLabel{value: val, isSet: true}
-}
-
-func (v NullableModuleStatusLabel) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableModuleStatusLabel) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_module_status_value.go b/model_module_status_value.go
deleted file mode 100644
index 2349c25ba9..0000000000
--- a/model_module_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// ModuleStatusValue * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning
-type ModuleStatusValue string
-
-// List of Module_status_value
-const (
- MODULESTATUSVALUE_OFFLINE ModuleStatusValue = "offline"
- MODULESTATUSVALUE_ACTIVE ModuleStatusValue = "active"
- MODULESTATUSVALUE_PLANNED ModuleStatusValue = "planned"
- MODULESTATUSVALUE_STAGED ModuleStatusValue = "staged"
- MODULESTATUSVALUE_FAILED ModuleStatusValue = "failed"
- MODULESTATUSVALUE_DECOMMISSIONING ModuleStatusValue = "decommissioning"
-)
-
-// All allowed values of ModuleStatusValue enum
-var AllowedModuleStatusValueEnumValues = []ModuleStatusValue{
- "offline",
- "active",
- "planned",
- "staged",
- "failed",
- "decommissioning",
-}
-
-func (v *ModuleStatusValue) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := ModuleStatusValue(value)
- for _, existing := range AllowedModuleStatusValueEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid ModuleStatusValue", value)
-}
-
-// NewModuleStatusValueFromValue returns a pointer to a valid ModuleStatusValue
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewModuleStatusValueFromValue(v string) (*ModuleStatusValue, error) {
- ev := ModuleStatusValue(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for ModuleStatusValue: valid values are %v", v, AllowedModuleStatusValueEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v ModuleStatusValue) IsValid() bool {
- for _, existing := range AllowedModuleStatusValueEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to Module_status_value value
-func (v ModuleStatusValue) Ptr() *ModuleStatusValue {
- return &v
-}
-
-type NullableModuleStatusValue struct {
- value *ModuleStatusValue
- isSet bool
-}
-
-func (v NullableModuleStatusValue) Get() *ModuleStatusValue {
- return v.value
-}
-
-func (v *NullableModuleStatusValue) Set(val *ModuleStatusValue) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableModuleStatusValue) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableModuleStatusValue) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableModuleStatusValue(val *ModuleStatusValue) *NullableModuleStatusValue {
- return &NullableModuleStatusValue{value: val, isSet: true}
-}
-
-func (v NullableModuleStatusValue) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableModuleStatusValue) 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 449d47b92b..4b14e77195 100644
--- a/model_module_type.go
+++ b/model_module_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the ModuleType type satisfies the MappedNullable interface at compile time
@@ -21,21 +20,12 @@ 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 NestedManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- // Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -45,15 +35,13 @@ 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 NestedManufacturer, model string, created NullableTime, lastUpdated NullableTime) *ModuleType {
+func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType {
this := ModuleType{}
this.Id = id
this.Url = url
this.Display = display
this.Manufacturer = manufacturer
this.Model = model
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -138,9 +126,9 @@ func (o *ModuleType) SetDisplay(v string) {
}
// GetManufacturer returns the Manufacturer field value
-func (o *ModuleType) GetManufacturer() NestedManufacturer {
+func (o *ModuleType) GetManufacturer() Manufacturer {
if o == nil {
- var ret NestedManufacturer
+ var ret Manufacturer
return ret
}
@@ -149,7 +137,7 @@ func (o *ModuleType) GetManufacturer() NestedManufacturer {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *ModuleType) GetManufacturerOk() (*NestedManufacturer, bool) {
+func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) {
if o == nil {
return nil, false
}
@@ -157,7 +145,7 @@ func (o *ModuleType) GetManufacturerOk() (*NestedManufacturer, bool) {
}
// SetManufacturer sets field value
-func (o *ModuleType) SetManufacturer(v NestedManufacturer) {
+func (o *ModuleType) SetManufacturer(v Manufacturer) {
o.Manufacturer = v
}
@@ -185,124 +173,6 @@ 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
-}
-
-// 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) {
@@ -335,154 +205,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *ModuleType) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleType) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *ModuleType) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *ModuleType) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *ModuleType) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o ModuleType) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -498,29 +220,9 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) {
toSerialize["display"] = o.Display
toSerialize["manufacturer"] = o.Manufacturer
toSerialize["model"] = o.Model
- if !IsNil(o.PartNumber) {
- toSerialize["part_number"] = o.PartNumber
- }
- 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -539,8 +241,6 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
"display",
"manufacturer",
"model",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -575,15 +275,7 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "display")
delete(additionalProperties, "manufacturer")
delete(additionalProperties, "model")
- delete(additionalProperties, "part_number")
- 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
}
diff --git a/model_module_type_request.go b/model_module_type_request.go
index 4ed1f12b44..e247e64025 100644
--- a/model_module_type_request.go
+++ b/model_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,9 @@ var _ MappedNullable = &ModuleTypeRequest{}
// ModuleTypeRequest Adds support for custom fields and tags.
type ModuleTypeRequest struct {
- Manufacturer NestedManufacturerRequest `json:"manufacturer"`
- Model string `json:"model"`
- // Discrete part number (optional)
- PartNumber *string `json:"part_number,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"`
+ Manufacturer ManufacturerRequest `json:"manufacturer"`
+ Model string `json:"model"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,7 +32,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 NestedManufacturerRequest, model string) *ModuleTypeRequest {
+func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest {
this := ModuleTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -55,9 +48,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *ModuleTypeRequest) GetManufacturer() NestedManufacturerRequest {
+func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil {
- var ret NestedManufacturerRequest
+ var ret ManufacturerRequest
return ret
}
@@ -66,7 +59,7 @@ func (o *ModuleTypeRequest) GetManufacturer() NestedManufacturerRequest {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *ModuleTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, bool) {
+func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -74,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*NestedManufacturerRequest, boo
}
// SetManufacturer sets field value
-func (o *ModuleTypeRequest) SetManufacturer(v NestedManufacturerRequest) {
+func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer = v
}
@@ -102,124 +95,6 @@ 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
-}
-
-// 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) {
@@ -252,102 +127,6 @@ 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()
if err != nil {
@@ -360,27 +139,9 @@ 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.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
@@ -427,13 +188,7 @@ 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, "weight")
- delete(additionalProperties, "weight_unit")
delete(additionalProperties, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_nested_asn.go b/model_nested_asn.go
deleted file mode 100644
index 76da76e19c..0000000000
--- a/model_nested_asn.go
+++ /dev/null
@@ -1,254 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedASN type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedASN{}
-
-// NestedASN 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 NestedASN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- // 16- or 32-bit autonomous system number
- Asn int64 `json:"asn"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedASN NestedASN
-
-// NewNestedASN instantiates a new NestedASN object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedASN(id int32, url string, display string, asn int64) *NestedASN {
- this := NestedASN{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Asn = asn
- return &this
-}
-
-// NewNestedASNWithDefaults instantiates a new NestedASN object
-// This 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 NewNestedASNWithDefaults() *NestedASN {
- this := NestedASN{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedASN) 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 *NestedASN) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedASN) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedASN) 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 *NestedASN) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedASN) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedASN) 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 *NestedASN) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedASN) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetAsn returns the Asn field value
-func (o *NestedASN) GetAsn() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.Asn
-}
-
-// GetAsnOk returns a tuple with the Asn field value
-// and a boolean to check if the value has been set.
-func (o *NestedASN) GetAsnOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Asn, true
-}
-
-// SetAsn sets field value
-func (o *NestedASN) SetAsn(v int64) {
- o.Asn = v
-}
-
-func (o NestedASN) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedASN) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["asn"] = o.Asn
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedASN) 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",
- "asn",
- }
-
- 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)
- }
- }
-
- varNestedASN := _NestedASN{}
-
- err = json.Unmarshal(data, &varNestedASN)
-
- if err != nil {
- return err
- }
-
- *o = NestedASN(varNestedASN)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "id")
- delete(additionalProperties, "url")
- delete(additionalProperties, "display")
- delete(additionalProperties, "asn")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedASN struct {
- value *NestedASN
- isSet bool
-}
-
-func (v NullableNestedASN) Get() *NestedASN {
- return v.value
-}
-
-func (v *NullableNestedASN) Set(val *NestedASN) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedASN) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedASN) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedASN(val *NestedASN) *NullableNestedASN {
- return &NullableNestedASN{value: val, isSet: true}
-}
-
-func (v NullableNestedASN) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedASN) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cable.go b/model_nested_cable.go
deleted file mode 100644
index 4a606d714a..0000000000
--- a/model_nested_cable.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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCable type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCable{}
-
-// NestedCable Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCable struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Label *string `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCable NestedCable
-
-// NewNestedCable instantiates a new NestedCable object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCable(id int32, url string, display string) *NestedCable {
- this := NestedCable{}
- this.Id = id
- this.Url = url
- this.Display = display
- return &this
-}
-
-// NewNestedCableWithDefaults instantiates a new NestedCable object
-// This 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 NewNestedCableWithDefaults() *NestedCable {
- this := NestedCable{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedCable) 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 *NestedCable) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedCable) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedCable) 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 *NestedCable) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedCable) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedCable) 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 *NestedCable) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedCable) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *NestedCable) 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 *NestedCable) 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 *NestedCable) 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 *NestedCable) SetLabel(v string) {
- o.Label = &v
-}
-
-func (o NestedCable) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCable) 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
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCable) 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)
- }
- }
-
- varNestedCable := _NestedCable{}
-
- err = json.Unmarshal(data, &varNestedCable)
-
- if err != nil {
- return err
- }
-
- *o = NestedCable(varNestedCable)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCable struct {
- value *NestedCable
- isSet bool
-}
-
-func (v NullableNestedCable) Get() *NestedCable {
- return v.value
-}
-
-func (v *NullableNestedCable) Set(val *NestedCable) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCable) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCable) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCable(val *NestedCable) *NullableNestedCable {
- return &NullableNestedCable{value: val, isSet: true}
-}
-
-func (v NullableNestedCable) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCable) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cable_request.go b/model_nested_cable_request.go
deleted file mode 100644
index 57deb8bd43..0000000000
--- a/model_nested_cable_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the NestedCableRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCableRequest{}
-
-// NestedCableRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCableRequest struct {
- Label *string `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCableRequest NestedCableRequest
-
-// NewNestedCableRequest instantiates a new NestedCableRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCableRequest() *NestedCableRequest {
- this := NestedCableRequest{}
- return &this
-}
-
-// NewNestedCableRequestWithDefaults instantiates a new NestedCableRequest object
-// This 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 NewNestedCableRequestWithDefaults() *NestedCableRequest {
- this := NestedCableRequest{}
- return &this
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *NestedCableRequest) 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 *NestedCableRequest) 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 *NestedCableRequest) 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 *NestedCableRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-func (o NestedCableRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCableRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if !IsNil(o.Label) {
- toSerialize["label"] = o.Label
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCableRequest) UnmarshalJSON(data []byte) (err error) {
- varNestedCableRequest := _NestedCableRequest{}
-
- err = json.Unmarshal(data, &varNestedCableRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedCableRequest(varNestedCableRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "label")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCableRequest struct {
- value *NestedCableRequest
- isSet bool
-}
-
-func (v NullableNestedCableRequest) Get() *NestedCableRequest {
- return v.value
-}
-
-func (v *NullableNestedCableRequest) Set(val *NestedCableRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCableRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCableRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCableRequest(val *NestedCableRequest) *NullableNestedCableRequest {
- return &NullableNestedCableRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedCableRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCableRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_circuit.go b/model_nested_circuit.go
deleted file mode 100644
index 4ad9231e54..0000000000
--- a/model_nested_circuit.go
+++ /dev/null
@@ -1,254 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCircuit type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCircuit{}
-
-// NestedCircuit Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCircuit struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- // Unique circuit ID
- Cid string `json:"cid"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCircuit NestedCircuit
-
-// NewNestedCircuit instantiates a new NestedCircuit object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCircuit(id int32, url string, display string, cid string) *NestedCircuit {
- this := NestedCircuit{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Cid = cid
- return &this
-}
-
-// NewNestedCircuitWithDefaults instantiates a new NestedCircuit object
-// This 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 NewNestedCircuitWithDefaults() *NestedCircuit {
- this := NestedCircuit{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedCircuit) 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 *NestedCircuit) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedCircuit) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedCircuit) 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 *NestedCircuit) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedCircuit) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedCircuit) 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 *NestedCircuit) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedCircuit) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetCid returns the Cid field value
-func (o *NestedCircuit) 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 *NestedCircuit) GetCidOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Cid, true
-}
-
-// SetCid sets field value
-func (o *NestedCircuit) SetCid(v string) {
- o.Cid = v
-}
-
-func (o NestedCircuit) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCircuit) 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
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCircuit) 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",
- }
-
- 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)
- }
- }
-
- varNestedCircuit := _NestedCircuit{}
-
- err = json.Unmarshal(data, &varNestedCircuit)
-
- if err != nil {
- return err
- }
-
- *o = NestedCircuit(varNestedCircuit)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCircuit struct {
- value *NestedCircuit
- isSet bool
-}
-
-func (v NullableNestedCircuit) Get() *NestedCircuit {
- return v.value
-}
-
-func (v *NullableNestedCircuit) Set(val *NestedCircuit) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCircuit) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCircuit) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCircuit(val *NestedCircuit) *NullableNestedCircuit {
- return &NullableNestedCircuit{value: val, isSet: true}
-}
-
-func (v NullableNestedCircuit) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCircuit) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_circuit_request.go b/model_nested_circuit_request.go
deleted file mode 100644
index 1d1c5c0169..0000000000
--- a/model_nested_circuit_request.go
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCircuitRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCircuitRequest{}
-
-// NestedCircuitRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCircuitRequest struct {
- // Unique circuit ID
- Cid string `json:"cid"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCircuitRequest NestedCircuitRequest
-
-// NewNestedCircuitRequest instantiates a new NestedCircuitRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCircuitRequest(cid string) *NestedCircuitRequest {
- this := NestedCircuitRequest{}
- this.Cid = cid
- return &this
-}
-
-// NewNestedCircuitRequestWithDefaults instantiates a new NestedCircuitRequest object
-// This 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 NewNestedCircuitRequestWithDefaults() *NestedCircuitRequest {
- this := NestedCircuitRequest{}
- return &this
-}
-
-// GetCid returns the Cid field value
-func (o *NestedCircuitRequest) 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 *NestedCircuitRequest) GetCidOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Cid, true
-}
-
-// SetCid sets field value
-func (o *NestedCircuitRequest) SetCid(v string) {
- o.Cid = v
-}
-
-func (o NestedCircuitRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCircuitRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["cid"] = o.Cid
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCircuitRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedCircuitRequest := _NestedCircuitRequest{}
-
- err = json.Unmarshal(data, &varNestedCircuitRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedCircuitRequest(varNestedCircuitRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "cid")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCircuitRequest struct {
- value *NestedCircuitRequest
- isSet bool
-}
-
-func (v NullableNestedCircuitRequest) Get() *NestedCircuitRequest {
- return v.value
-}
-
-func (v *NullableNestedCircuitRequest) Set(val *NestedCircuitRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCircuitRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCircuitRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCircuitRequest(val *NestedCircuitRequest) *NullableNestedCircuitRequest {
- return &NullableNestedCircuitRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedCircuitRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCircuitRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_circuit_type.go b/model_nested_circuit_type.go
deleted file mode 100644
index 531a573543..0000000000
--- a/model_nested_circuit_type.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCircuitType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCircuitType{}
-
-// NestedCircuitType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCircuitType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCircuitType NestedCircuitType
-
-// NewNestedCircuitType instantiates a new NestedCircuitType object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCircuitType(id int32, url string, display string, name string, slug string) *NestedCircuitType {
- this := NestedCircuitType{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedCircuitTypeWithDefaults instantiates a new NestedCircuitType object
-// This 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 NewNestedCircuitTypeWithDefaults() *NestedCircuitType {
- this := NestedCircuitType{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedCircuitType) 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 *NestedCircuitType) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedCircuitType) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedCircuitType) 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 *NestedCircuitType) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedCircuitType) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedCircuitType) 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 *NestedCircuitType) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedCircuitType) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedCircuitType) 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 *NestedCircuitType) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedCircuitType) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedCircuitType) 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 *NestedCircuitType) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedCircuitType) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedCircuitType) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCircuitType) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCircuitType) 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",
- }
-
- 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)
- }
- }
-
- varNestedCircuitType := _NestedCircuitType{}
-
- err = json.Unmarshal(data, &varNestedCircuitType)
-
- if err != nil {
- return err
- }
-
- *o = NestedCircuitType(varNestedCircuitType)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCircuitType struct {
- value *NestedCircuitType
- isSet bool
-}
-
-func (v NullableNestedCircuitType) Get() *NestedCircuitType {
- return v.value
-}
-
-func (v *NullableNestedCircuitType) Set(val *NestedCircuitType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCircuitType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCircuitType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCircuitType(val *NestedCircuitType) *NullableNestedCircuitType {
- return &NullableNestedCircuitType{value: val, isSet: true}
-}
-
-func (v NullableNestedCircuitType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCircuitType) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_circuit_type_request.go b/model_nested_circuit_type_request.go
deleted file mode 100644
index 94163dd79d..0000000000
--- a/model_nested_circuit_type_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCircuitTypeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCircuitTypeRequest{}
-
-// NestedCircuitTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCircuitTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCircuitTypeRequest NestedCircuitTypeRequest
-
-// NewNestedCircuitTypeRequest instantiates a new NestedCircuitTypeRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCircuitTypeRequest(name string, slug string) *NestedCircuitTypeRequest {
- this := NestedCircuitTypeRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedCircuitTypeRequestWithDefaults instantiates a new NestedCircuitTypeRequest object
-// This 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 NewNestedCircuitTypeRequestWithDefaults() *NestedCircuitTypeRequest {
- this := NestedCircuitTypeRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedCircuitTypeRequest) 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 *NestedCircuitTypeRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedCircuitTypeRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedCircuitTypeRequest) 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 *NestedCircuitTypeRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedCircuitTypeRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCircuitTypeRequest) 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 *NestedCircuitTypeRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedCircuitTypeRequest := _NestedCircuitTypeRequest{}
-
- err = json.Unmarshal(data, &varNestedCircuitTypeRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedCircuitTypeRequest(varNestedCircuitTypeRequest)
-
- 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 NullableNestedCircuitTypeRequest struct {
- value *NestedCircuitTypeRequest
- isSet bool
-}
-
-func (v NullableNestedCircuitTypeRequest) Get() *NestedCircuitTypeRequest {
- return v.value
-}
-
-func (v *NullableNestedCircuitTypeRequest) Set(val *NestedCircuitTypeRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCircuitTypeRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCircuitTypeRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCircuitTypeRequest(val *NestedCircuitTypeRequest) *NullableNestedCircuitTypeRequest {
- return &NullableNestedCircuitTypeRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedCircuitTypeRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCircuitTypeRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster.go b/model_nested_cluster.go
deleted file mode 100644
index 5db8e997e5..0000000000
--- a/model_nested_cluster.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCluster type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCluster{}
-
-// NestedCluster Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCluster struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCluster NestedCluster
-
-// NewNestedCluster instantiates a new NestedCluster object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCluster(id int32, url string, display string, name string) *NestedCluster {
- this := NestedCluster{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedClusterWithDefaults instantiates a new NestedCluster object
-// This 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 NewNestedClusterWithDefaults() *NestedCluster {
- this := NestedCluster{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedCluster) 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 *NestedCluster) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedCluster) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedCluster) 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 *NestedCluster) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedCluster) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedCluster) 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 *NestedCluster) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedCluster) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedCluster) 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 *NestedCluster) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedCluster) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedCluster) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCluster) 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 *NestedCluster) 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",
- }
-
- 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)
- }
- }
-
- varNestedCluster := _NestedCluster{}
-
- err = json.Unmarshal(data, &varNestedCluster)
-
- if err != nil {
- return err
- }
-
- *o = NestedCluster(varNestedCluster)
-
- 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 NullableNestedCluster struct {
- value *NestedCluster
- isSet bool
-}
-
-func (v NullableNestedCluster) Get() *NestedCluster {
- return v.value
-}
-
-func (v *NullableNestedCluster) Set(val *NestedCluster) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCluster) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCluster) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCluster(val *NestedCluster) *NullableNestedCluster {
- return &NullableNestedCluster{value: val, isSet: true}
-}
-
-func (v NullableNestedCluster) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCluster) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster_group.go b/model_nested_cluster_group.go
deleted file mode 100644
index c8a4b55a77..0000000000
--- a/model_nested_cluster_group.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedClusterGroup type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedClusterGroup{}
-
-// NestedClusterGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedClusterGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedClusterGroup NestedClusterGroup
-
-// NewNestedClusterGroup instantiates a new NestedClusterGroup object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedClusterGroup(id int32, url string, display string, name string, slug string) *NestedClusterGroup {
- this := NestedClusterGroup{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedClusterGroupWithDefaults instantiates a new NestedClusterGroup object
-// This 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 NewNestedClusterGroupWithDefaults() *NestedClusterGroup {
- this := NestedClusterGroup{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedClusterGroup) 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 *NestedClusterGroup) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedClusterGroup) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedClusterGroup) 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 *NestedClusterGroup) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedClusterGroup) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedClusterGroup) 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 *NestedClusterGroup) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedClusterGroup) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedClusterGroup) 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 *NestedClusterGroup) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedClusterGroup) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedClusterGroup) 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 *NestedClusterGroup) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedClusterGroup) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedClusterGroup) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedClusterGroup) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedClusterGroup) 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",
- }
-
- 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)
- }
- }
-
- varNestedClusterGroup := _NestedClusterGroup{}
-
- err = json.Unmarshal(data, &varNestedClusterGroup)
-
- if err != nil {
- return err
- }
-
- *o = NestedClusterGroup(varNestedClusterGroup)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedClusterGroup struct {
- value *NestedClusterGroup
- isSet bool
-}
-
-func (v NullableNestedClusterGroup) Get() *NestedClusterGroup {
- return v.value
-}
-
-func (v *NullableNestedClusterGroup) Set(val *NestedClusterGroup) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedClusterGroup) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedClusterGroup) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedClusterGroup(val *NestedClusterGroup) *NullableNestedClusterGroup {
- return &NullableNestedClusterGroup{value: val, isSet: true}
-}
-
-func (v NullableNestedClusterGroup) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedClusterGroup) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster_group_request.go b/model_nested_cluster_group_request.go
deleted file mode 100644
index 85c49ec21f..0000000000
--- a/model_nested_cluster_group_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedClusterGroupRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedClusterGroupRequest{}
-
-// NestedClusterGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedClusterGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedClusterGroupRequest NestedClusterGroupRequest
-
-// NewNestedClusterGroupRequest instantiates a new NestedClusterGroupRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedClusterGroupRequest(name string, slug string) *NestedClusterGroupRequest {
- this := NestedClusterGroupRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedClusterGroupRequestWithDefaults instantiates a new NestedClusterGroupRequest object
-// This 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 NewNestedClusterGroupRequestWithDefaults() *NestedClusterGroupRequest {
- this := NestedClusterGroupRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedClusterGroupRequest) 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 *NestedClusterGroupRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedClusterGroupRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedClusterGroupRequest) 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 *NestedClusterGroupRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedClusterGroupRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedClusterGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedClusterGroupRequest) 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 *NestedClusterGroupRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedClusterGroupRequest := _NestedClusterGroupRequest{}
-
- err = json.Unmarshal(data, &varNestedClusterGroupRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedClusterGroupRequest(varNestedClusterGroupRequest)
-
- 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 NullableNestedClusterGroupRequest struct {
- value *NestedClusterGroupRequest
- isSet bool
-}
-
-func (v NullableNestedClusterGroupRequest) Get() *NestedClusterGroupRequest {
- return v.value
-}
-
-func (v *NullableNestedClusterGroupRequest) Set(val *NestedClusterGroupRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedClusterGroupRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedClusterGroupRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedClusterGroupRequest(val *NestedClusterGroupRequest) *NullableNestedClusterGroupRequest {
- return &NullableNestedClusterGroupRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedClusterGroupRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedClusterGroupRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster_request.go b/model_nested_cluster_request.go
deleted file mode 100644
index ee90c5f071..0000000000
--- a/model_nested_cluster_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedClusterRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedClusterRequest{}
-
-// NestedClusterRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedClusterRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedClusterRequest NestedClusterRequest
-
-// NewNestedClusterRequest instantiates a new NestedClusterRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedClusterRequest(name string) *NestedClusterRequest {
- this := NestedClusterRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedClusterRequestWithDefaults instantiates a new NestedClusterRequest object
-// This 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 NewNestedClusterRequestWithDefaults() *NestedClusterRequest {
- this := NestedClusterRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedClusterRequest) 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 *NestedClusterRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedClusterRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedClusterRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedClusterRequest) 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 *NestedClusterRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedClusterRequest := _NestedClusterRequest{}
-
- err = json.Unmarshal(data, &varNestedClusterRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedClusterRequest(varNestedClusterRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedClusterRequest struct {
- value *NestedClusterRequest
- isSet bool
-}
-
-func (v NullableNestedClusterRequest) Get() *NestedClusterRequest {
- return v.value
-}
-
-func (v *NullableNestedClusterRequest) Set(val *NestedClusterRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedClusterRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedClusterRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedClusterRequest(val *NestedClusterRequest) *NullableNestedClusterRequest {
- return &NullableNestedClusterRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedClusterRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedClusterRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster_type.go b/model_nested_cluster_type.go
deleted file mode 100644
index d30fefb33b..0000000000
--- a/model_nested_cluster_type.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedClusterType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedClusterType{}
-
-// NestedClusterType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedClusterType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedClusterType NestedClusterType
-
-// NewNestedClusterType instantiates a new NestedClusterType object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedClusterType(id int32, url string, display string, name string, slug string) *NestedClusterType {
- this := NestedClusterType{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedClusterTypeWithDefaults instantiates a new NestedClusterType object
-// This 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 NewNestedClusterTypeWithDefaults() *NestedClusterType {
- this := NestedClusterType{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedClusterType) 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 *NestedClusterType) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedClusterType) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedClusterType) 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 *NestedClusterType) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedClusterType) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedClusterType) 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 *NestedClusterType) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedClusterType) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedClusterType) 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 *NestedClusterType) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedClusterType) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedClusterType) 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 *NestedClusterType) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedClusterType) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedClusterType) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedClusterType) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedClusterType) 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",
- }
-
- 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)
- }
- }
-
- varNestedClusterType := _NestedClusterType{}
-
- err = json.Unmarshal(data, &varNestedClusterType)
-
- if err != nil {
- return err
- }
-
- *o = NestedClusterType(varNestedClusterType)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedClusterType struct {
- value *NestedClusterType
- isSet bool
-}
-
-func (v NullableNestedClusterType) Get() *NestedClusterType {
- return v.value
-}
-
-func (v *NullableNestedClusterType) Set(val *NestedClusterType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedClusterType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedClusterType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedClusterType(val *NestedClusterType) *NullableNestedClusterType {
- return &NullableNestedClusterType{value: val, isSet: true}
-}
-
-func (v NullableNestedClusterType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedClusterType) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_cluster_type_request.go b/model_nested_cluster_type_request.go
deleted file mode 100644
index 652517c7b8..0000000000
--- a/model_nested_cluster_type_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedClusterTypeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedClusterTypeRequest{}
-
-// NestedClusterTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedClusterTypeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedClusterTypeRequest NestedClusterTypeRequest
-
-// NewNestedClusterTypeRequest instantiates a new NestedClusterTypeRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedClusterTypeRequest(name string, slug string) *NestedClusterTypeRequest {
- this := NestedClusterTypeRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedClusterTypeRequestWithDefaults instantiates a new NestedClusterTypeRequest object
-// This 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 NewNestedClusterTypeRequestWithDefaults() *NestedClusterTypeRequest {
- this := NestedClusterTypeRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedClusterTypeRequest) 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 *NestedClusterTypeRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedClusterTypeRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedClusterTypeRequest) 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 *NestedClusterTypeRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedClusterTypeRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedClusterTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedClusterTypeRequest) 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 *NestedClusterTypeRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedClusterTypeRequest := _NestedClusterTypeRequest{}
-
- err = json.Unmarshal(data, &varNestedClusterTypeRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedClusterTypeRequest(varNestedClusterTypeRequest)
-
- 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 NullableNestedClusterTypeRequest struct {
- value *NestedClusterTypeRequest
- isSet bool
-}
-
-func (v NullableNestedClusterTypeRequest) Get() *NestedClusterTypeRequest {
- return v.value
-}
-
-func (v *NullableNestedClusterTypeRequest) Set(val *NestedClusterTypeRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedClusterTypeRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedClusterTypeRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedClusterTypeRequest(val *NestedClusterTypeRequest) *NullableNestedClusterTypeRequest {
- return &NullableNestedClusterTypeRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedClusterTypeRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedClusterTypeRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_config_template.go b/model_nested_config_template.go
deleted file mode 100644
index 6286867a28..0000000000
--- a/model_nested_config_template.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedConfigTemplate type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedConfigTemplate{}
-
-// NestedConfigTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedConfigTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedConfigTemplate NestedConfigTemplate
-
-// NewNestedConfigTemplate instantiates a new NestedConfigTemplate object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedConfigTemplate(id int32, url string, display string, name string) *NestedConfigTemplate {
- this := NestedConfigTemplate{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedConfigTemplateWithDefaults instantiates a new NestedConfigTemplate object
-// This 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 NewNestedConfigTemplateWithDefaults() *NestedConfigTemplate {
- this := NestedConfigTemplate{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedConfigTemplate) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedConfigTemplate) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedConfigTemplate) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedConfigTemplate) 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 *NestedConfigTemplate) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedConfigTemplate) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedConfigTemplate) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedConfigTemplate) 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 *NestedConfigTemplate) 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",
- }
-
- 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)
- }
- }
-
- varNestedConfigTemplate := _NestedConfigTemplate{}
-
- err = json.Unmarshal(data, &varNestedConfigTemplate)
-
- if err != nil {
- return err
- }
-
- *o = NestedConfigTemplate(varNestedConfigTemplate)
-
- 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 NullableNestedConfigTemplate struct {
- value *NestedConfigTemplate
- isSet bool
-}
-
-func (v NullableNestedConfigTemplate) Get() *NestedConfigTemplate {
- return v.value
-}
-
-func (v *NullableNestedConfigTemplate) Set(val *NestedConfigTemplate) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedConfigTemplate) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedConfigTemplate) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedConfigTemplate(val *NestedConfigTemplate) *NullableNestedConfigTemplate {
- return &NullableNestedConfigTemplate{value: val, isSet: true}
-}
-
-func (v NullableNestedConfigTemplate) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedConfigTemplate) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_config_template_request.go b/model_nested_config_template_request.go
deleted file mode 100644
index 7d0ae30aaf..0000000000
--- a/model_nested_config_template_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedConfigTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedConfigTemplateRequest{}
-
-// NestedConfigTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedConfigTemplateRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedConfigTemplateRequest NestedConfigTemplateRequest
-
-// NewNestedConfigTemplateRequest instantiates a new NestedConfigTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedConfigTemplateRequest(name string) *NestedConfigTemplateRequest {
- this := NestedConfigTemplateRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedConfigTemplateRequestWithDefaults instantiates a new NestedConfigTemplateRequest object
-// This 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 NewNestedConfigTemplateRequestWithDefaults() *NestedConfigTemplateRequest {
- this := NestedConfigTemplateRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedConfigTemplateRequest) 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 *NestedConfigTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedConfigTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedConfigTemplateRequest) 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 *NestedConfigTemplateRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedConfigTemplateRequest := _NestedConfigTemplateRequest{}
-
- err = json.Unmarshal(data, &varNestedConfigTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedConfigTemplateRequest(varNestedConfigTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedConfigTemplateRequest struct {
- value *NestedConfigTemplateRequest
- isSet bool
-}
-
-func (v NullableNestedConfigTemplateRequest) Get() *NestedConfigTemplateRequest {
- return v.value
-}
-
-func (v *NullableNestedConfigTemplateRequest) Set(val *NestedConfigTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedConfigTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedConfigTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedConfigTemplateRequest(val *NestedConfigTemplateRequest) *NullableNestedConfigTemplateRequest {
- return &NullableNestedConfigTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedConfigTemplateRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_contact.go b/model_nested_contact.go
deleted file mode 100644
index d2b448c58e..0000000000
--- a/model_nested_contact.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedContact type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedContact{}
-
-// NestedContact Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedContact struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedContact NestedContact
-
-// NewNestedContact instantiates a new NestedContact object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedContact(id int32, url string, display string, name string) *NestedContact {
- this := NestedContact{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedContactWithDefaults instantiates a new NestedContact object
-// This 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 NewNestedContactWithDefaults() *NestedContact {
- this := NestedContact{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedContact) 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 *NestedContact) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedContact) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedContact) 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 *NestedContact) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedContact) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedContact) 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 *NestedContact) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedContact) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedContact) 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 *NestedContact) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedContact) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedContact) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedContact) 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 *NestedContact) 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",
- }
-
- 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)
- }
- }
-
- varNestedContact := _NestedContact{}
-
- err = json.Unmarshal(data, &varNestedContact)
-
- if err != nil {
- return err
- }
-
- *o = NestedContact(varNestedContact)
-
- 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 NullableNestedContact struct {
- value *NestedContact
- isSet bool
-}
-
-func (v NullableNestedContact) Get() *NestedContact {
- return v.value
-}
-
-func (v *NullableNestedContact) Set(val *NestedContact) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedContact) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedContact) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedContact(val *NestedContact) *NullableNestedContact {
- return &NullableNestedContact{value: val, isSet: true}
-}
-
-func (v NullableNestedContact) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedContact) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go
index b435fb4176..88eb0f283e 100644
--- a/model_nested_contact_group.go
+++ b/model_nested_contact_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go
index ecfc9c008e..f275f723db 100644
--- a/model_nested_contact_group_request.go
+++ b/model_nested_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_contact_request.go b/model_nested_contact_request.go
deleted file mode 100644
index 717149431c..0000000000
--- a/model_nested_contact_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedContactRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedContactRequest{}
-
-// NestedContactRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedContactRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedContactRequest NestedContactRequest
-
-// NewNestedContactRequest instantiates a new NestedContactRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedContactRequest(name string) *NestedContactRequest {
- this := NestedContactRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedContactRequestWithDefaults instantiates a new NestedContactRequest object
-// This 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 NewNestedContactRequestWithDefaults() *NestedContactRequest {
- this := NestedContactRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedContactRequest) 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 *NestedContactRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedContactRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedContactRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedContactRequest) 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 *NestedContactRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedContactRequest := _NestedContactRequest{}
-
- err = json.Unmarshal(data, &varNestedContactRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedContactRequest(varNestedContactRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedContactRequest struct {
- value *NestedContactRequest
- isSet bool
-}
-
-func (v NullableNestedContactRequest) Get() *NestedContactRequest {
- return v.value
-}
-
-func (v *NullableNestedContactRequest) Set(val *NestedContactRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedContactRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedContactRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedContactRequest(val *NestedContactRequest) *NullableNestedContactRequest {
- return &NullableNestedContactRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedContactRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedContactRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_contact_role.go b/model_nested_contact_role.go
deleted file mode 100644
index b732758b1e..0000000000
--- a/model_nested_contact_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedContactRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedContactRole{}
-
-// NestedContactRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedContactRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedContactRole NestedContactRole
-
-// NewNestedContactRole instantiates a new NestedContactRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedContactRole(id int32, url string, display string, name string, slug string) *NestedContactRole {
- this := NestedContactRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedContactRoleWithDefaults instantiates a new NestedContactRole object
-// This 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 NewNestedContactRoleWithDefaults() *NestedContactRole {
- this := NestedContactRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedContactRole) 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 *NestedContactRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedContactRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedContactRole) 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 *NestedContactRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedContactRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedContactRole) 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 *NestedContactRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedContactRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedContactRole) 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 *NestedContactRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedContactRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedContactRole) 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 *NestedContactRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedContactRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedContactRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedContactRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedContactRole) 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",
- }
-
- 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)
- }
- }
-
- varNestedContactRole := _NestedContactRole{}
-
- err = json.Unmarshal(data, &varNestedContactRole)
-
- if err != nil {
- return err
- }
-
- *o = NestedContactRole(varNestedContactRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedContactRole struct {
- value *NestedContactRole
- isSet bool
-}
-
-func (v NullableNestedContactRole) Get() *NestedContactRole {
- return v.value
-}
-
-func (v *NullableNestedContactRole) Set(val *NestedContactRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedContactRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedContactRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedContactRole(val *NestedContactRole) *NullableNestedContactRole {
- return &NullableNestedContactRole{value: val, isSet: true}
-}
-
-func (v NullableNestedContactRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedContactRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_contact_role_request.go b/model_nested_contact_role_request.go
deleted file mode 100644
index 37528e73e2..0000000000
--- a/model_nested_contact_role_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedContactRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedContactRoleRequest{}
-
-// NestedContactRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedContactRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedContactRoleRequest NestedContactRoleRequest
-
-// NewNestedContactRoleRequest instantiates a new NestedContactRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedContactRoleRequest(name string, slug string) *NestedContactRoleRequest {
- this := NestedContactRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedContactRoleRequestWithDefaults instantiates a new NestedContactRoleRequest object
-// This 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 NewNestedContactRoleRequestWithDefaults() *NestedContactRoleRequest {
- this := NestedContactRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedContactRoleRequest) 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 *NestedContactRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedContactRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedContactRoleRequest) 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 *NestedContactRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedContactRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedContactRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedContactRoleRequest) 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 *NestedContactRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedContactRoleRequest := _NestedContactRoleRequest{}
-
- err = json.Unmarshal(data, &varNestedContactRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedContactRoleRequest(varNestedContactRoleRequest)
-
- 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 NullableNestedContactRoleRequest struct {
- value *NestedContactRoleRequest
- isSet bool
-}
-
-func (v NullableNestedContactRoleRequest) Get() *NestedContactRoleRequest {
- return v.value
-}
-
-func (v *NullableNestedContactRoleRequest) Set(val *NestedContactRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedContactRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedContactRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedContactRoleRequest(val *NestedContactRoleRequest) *NullableNestedContactRoleRequest {
- return &NullableNestedContactRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedContactRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedContactRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_custom_field_choice_set.go b/model_nested_custom_field_choice_set.go
deleted file mode 100644
index 97f2d68827..0000000000
--- a/model_nested_custom_field_choice_set.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCustomFieldChoiceSet{}
-
-// NestedCustomFieldChoiceSet Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCustomFieldChoiceSet struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- ChoicesCount string `json:"choices_count"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCustomFieldChoiceSet NestedCustomFieldChoiceSet
-
-// NewNestedCustomFieldChoiceSet instantiates a new NestedCustomFieldChoiceSet object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *NestedCustomFieldChoiceSet {
- this := NestedCustomFieldChoiceSet{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.ChoicesCount = choicesCount
- return &this
-}
-
-// NewNestedCustomFieldChoiceSetWithDefaults instantiates a new NestedCustomFieldChoiceSet object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewNestedCustomFieldChoiceSetWithDefaults() *NestedCustomFieldChoiceSet {
- this := NestedCustomFieldChoiceSet{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedCustomFieldChoiceSet) GetId() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Id
-}
-
-// GetIdOk returns a tuple with the Id field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSet) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedCustomFieldChoiceSet) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedCustomFieldChoiceSet) GetUrl() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Url
-}
-
-// GetUrlOk returns a tuple with the Url field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSet) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedCustomFieldChoiceSet) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedCustomFieldChoiceSet) GetDisplay() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Display
-}
-
-// GetDisplayOk returns a tuple with the Display field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSet) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedCustomFieldChoiceSet) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedCustomFieldChoiceSet) GetName() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Name
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSet) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedCustomFieldChoiceSet) SetName(v string) {
- o.Name = v
-}
-
-// GetChoicesCount returns the ChoicesCount field value
-func (o *NestedCustomFieldChoiceSet) GetChoicesCount() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.ChoicesCount
-}
-
-// GetChoicesCountOk returns a tuple with the ChoicesCount field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ChoicesCount, true
-}
-
-// SetChoicesCount sets field value
-func (o *NestedCustomFieldChoiceSet) SetChoicesCount(v string) {
- o.ChoicesCount = v
-}
-
-func (o NestedCustomFieldChoiceSet) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["choices_count"] = o.ChoicesCount
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCustomFieldChoiceSet) UnmarshalJSON(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",
- }
-
- 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)
- }
- }
-
- varNestedCustomFieldChoiceSet := _NestedCustomFieldChoiceSet{}
-
- err = json.Unmarshal(data, &varNestedCustomFieldChoiceSet)
-
- if err != nil {
- return err
- }
-
- *o = NestedCustomFieldChoiceSet(varNestedCustomFieldChoiceSet)
-
- 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, "choices_count")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCustomFieldChoiceSet struct {
- value *NestedCustomFieldChoiceSet
- isSet bool
-}
-
-func (v NullableNestedCustomFieldChoiceSet) Get() *NestedCustomFieldChoiceSet {
- return v.value
-}
-
-func (v *NullableNestedCustomFieldChoiceSet) Set(val *NestedCustomFieldChoiceSet) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCustomFieldChoiceSet) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCustomFieldChoiceSet) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCustomFieldChoiceSet(val *NestedCustomFieldChoiceSet) *NullableNestedCustomFieldChoiceSet {
- return &NullableNestedCustomFieldChoiceSet{value: val, isSet: true}
-}
-
-func (v NullableNestedCustomFieldChoiceSet) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCustomFieldChoiceSet) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_custom_field_choice_set_request.go b/model_nested_custom_field_choice_set_request.go
deleted file mode 100644
index 4975b6841b..0000000000
--- a/model_nested_custom_field_choice_set_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedCustomFieldChoiceSetRequest{}
-
-// NestedCustomFieldChoiceSetRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedCustomFieldChoiceSetRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedCustomFieldChoiceSetRequest NestedCustomFieldChoiceSetRequest
-
-// NewNestedCustomFieldChoiceSetRequest instantiates a new NestedCustomFieldChoiceSetRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedCustomFieldChoiceSetRequest(name string) *NestedCustomFieldChoiceSetRequest {
- this := NestedCustomFieldChoiceSetRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedCustomFieldChoiceSetRequestWithDefaults instantiates a new NestedCustomFieldChoiceSetRequest object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewNestedCustomFieldChoiceSetRequestWithDefaults() *NestedCustomFieldChoiceSetRequest {
- this := NestedCustomFieldChoiceSetRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedCustomFieldChoiceSetRequest) GetName() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Name
-}
-
-// GetNameOk returns a tuple with the Name field value
-// and a boolean to check if the value has been set.
-func (o *NestedCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedCustomFieldChoiceSetRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedCustomFieldChoiceSetRequest) UnmarshalJSON(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",
- }
-
- 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)
- }
- }
-
- varNestedCustomFieldChoiceSetRequest := _NestedCustomFieldChoiceSetRequest{}
-
- err = json.Unmarshal(data, &varNestedCustomFieldChoiceSetRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedCustomFieldChoiceSetRequest(varNestedCustomFieldChoiceSetRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedCustomFieldChoiceSetRequest struct {
- value *NestedCustomFieldChoiceSetRequest
- isSet bool
-}
-
-func (v NullableNestedCustomFieldChoiceSetRequest) Get() *NestedCustomFieldChoiceSetRequest {
- return v.value
-}
-
-func (v *NullableNestedCustomFieldChoiceSetRequest) Set(val *NestedCustomFieldChoiceSetRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedCustomFieldChoiceSetRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedCustomFieldChoiceSetRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedCustomFieldChoiceSetRequest(val *NestedCustomFieldChoiceSetRequest) *NullableNestedCustomFieldChoiceSetRequest {
- return &NullableNestedCustomFieldChoiceSetRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_data_file.go b/model_nested_data_file.go
deleted file mode 100644
index 439b312cdf..0000000000
--- a/model_nested_data_file.go
+++ /dev/null
@@ -1,254 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDataFile type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDataFile{}
-
-// NestedDataFile Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDataFile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- // File path relative to the data source's root
- Path string `json:"path"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDataFile NestedDataFile
-
-// NewNestedDataFile instantiates a new NestedDataFile object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDataFile(id int32, url string, display string, path string) *NestedDataFile {
- this := NestedDataFile{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Path = path
- return &this
-}
-
-// NewNestedDataFileWithDefaults instantiates a new NestedDataFile object
-// This 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 NewNestedDataFileWithDefaults() *NestedDataFile {
- this := NestedDataFile{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedDataFile) 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 *NestedDataFile) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedDataFile) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedDataFile) 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 *NestedDataFile) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedDataFile) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedDataFile) 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 *NestedDataFile) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedDataFile) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetPath returns the Path field value
-func (o *NestedDataFile) 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 *NestedDataFile) GetPathOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Path, true
-}
-
-// SetPath sets field value
-func (o *NestedDataFile) SetPath(v string) {
- o.Path = v
-}
-
-func (o NestedDataFile) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDataFile) 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 *NestedDataFile) 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",
- }
-
- 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)
- }
- }
-
- varNestedDataFile := _NestedDataFile{}
-
- err = json.Unmarshal(data, &varNestedDataFile)
-
- if err != nil {
- return err
- }
-
- *o = NestedDataFile(varNestedDataFile)
-
- 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 NullableNestedDataFile struct {
- value *NestedDataFile
- isSet bool
-}
-
-func (v NullableNestedDataFile) Get() *NestedDataFile {
- return v.value
-}
-
-func (v *NullableNestedDataFile) Set(val *NestedDataFile) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDataFile) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDataFile) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDataFile(val *NestedDataFile) *NullableNestedDataFile {
- return &NullableNestedDataFile{value: val, isSet: true}
-}
-
-func (v NullableNestedDataFile) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDataFile) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_data_source.go b/model_nested_data_source.go
deleted file mode 100644
index 157a21b3d3..0000000000
--- a/model_nested_data_source.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDataSource type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDataSource{}
-
-// NestedDataSource Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDataSource struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDataSource NestedDataSource
-
-// NewNestedDataSource instantiates a new NestedDataSource object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDataSource(id int32, url string, display string, name string) *NestedDataSource {
- this := NestedDataSource{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedDataSourceWithDefaults instantiates a new NestedDataSource object
-// This 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 NewNestedDataSourceWithDefaults() *NestedDataSource {
- this := NestedDataSource{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedDataSource) 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 *NestedDataSource) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedDataSource) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedDataSource) 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 *NestedDataSource) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedDataSource) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedDataSource) 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 *NestedDataSource) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedDataSource) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedDataSource) 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 *NestedDataSource) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedDataSource) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedDataSource) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDataSource) 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 *NestedDataSource) 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",
- }
-
- 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)
- }
- }
-
- varNestedDataSource := _NestedDataSource{}
-
- err = json.Unmarshal(data, &varNestedDataSource)
-
- if err != nil {
- return err
- }
-
- *o = NestedDataSource(varNestedDataSource)
-
- 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 NullableNestedDataSource struct {
- value *NestedDataSource
- isSet bool
-}
-
-func (v NullableNestedDataSource) Get() *NestedDataSource {
- return v.value
-}
-
-func (v *NullableNestedDataSource) Set(val *NestedDataSource) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDataSource) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDataSource) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDataSource(val *NestedDataSource) *NullableNestedDataSource {
- return &NullableNestedDataSource{value: val, isSet: true}
-}
-
-func (v NullableNestedDataSource) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDataSource) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_data_source_request.go b/model_nested_data_source_request.go
deleted file mode 100644
index 013bb86bc5..0000000000
--- a/model_nested_data_source_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDataSourceRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDataSourceRequest{}
-
-// NestedDataSourceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDataSourceRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDataSourceRequest NestedDataSourceRequest
-
-// NewNestedDataSourceRequest instantiates a new NestedDataSourceRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDataSourceRequest(name string) *NestedDataSourceRequest {
- this := NestedDataSourceRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedDataSourceRequestWithDefaults instantiates a new NestedDataSourceRequest object
-// This 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 NewNestedDataSourceRequestWithDefaults() *NestedDataSourceRequest {
- this := NestedDataSourceRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedDataSourceRequest) 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 *NestedDataSourceRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedDataSourceRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedDataSourceRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDataSourceRequest) 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 *NestedDataSourceRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedDataSourceRequest := _NestedDataSourceRequest{}
-
- err = json.Unmarshal(data, &varNestedDataSourceRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedDataSourceRequest(varNestedDataSourceRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedDataSourceRequest struct {
- value *NestedDataSourceRequest
- isSet bool
-}
-
-func (v NullableNestedDataSourceRequest) Get() *NestedDataSourceRequest {
- return v.value
-}
-
-func (v *NullableNestedDataSourceRequest) Set(val *NestedDataSourceRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDataSourceRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDataSourceRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDataSourceRequest(val *NestedDataSourceRequest) *NullableNestedDataSourceRequest {
- return &NullableNestedDataSourceRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedDataSourceRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDataSourceRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_device.go b/model_nested_device.go
index a7316e76ef..b37d25f5ed 100644
--- a/model_nested_device.go
+++ b/model_nested_device.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_device_request.go b/model_nested_device_request.go
index 2634dae5e6..3d4692d865 100644
--- a/model_nested_device_request.go
+++ b/model_nested_device_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_device_role.go b/model_nested_device_role.go
deleted file mode 100644
index dfa141f158..0000000000
--- a/model_nested_device_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDeviceRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDeviceRole{}
-
-// NestedDeviceRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDeviceRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDeviceRole NestedDeviceRole
-
-// NewNestedDeviceRole instantiates a new NestedDeviceRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDeviceRole(id int32, url string, display string, name string, slug string) *NestedDeviceRole {
- this := NestedDeviceRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedDeviceRoleWithDefaults instantiates a new NestedDeviceRole object
-// This 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 NewNestedDeviceRoleWithDefaults() *NestedDeviceRole {
- this := NestedDeviceRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedDeviceRole) 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 *NestedDeviceRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedDeviceRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedDeviceRole) 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 *NestedDeviceRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedDeviceRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedDeviceRole) 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 *NestedDeviceRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedDeviceRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedDeviceRole) 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 *NestedDeviceRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedDeviceRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedDeviceRole) 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 *NestedDeviceRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedDeviceRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedDeviceRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDeviceRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedDeviceRole) 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",
- }
-
- 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)
- }
- }
-
- varNestedDeviceRole := _NestedDeviceRole{}
-
- err = json.Unmarshal(data, &varNestedDeviceRole)
-
- if err != nil {
- return err
- }
-
- *o = NestedDeviceRole(varNestedDeviceRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedDeviceRole struct {
- value *NestedDeviceRole
- isSet bool
-}
-
-func (v NullableNestedDeviceRole) Get() *NestedDeviceRole {
- return v.value
-}
-
-func (v *NullableNestedDeviceRole) Set(val *NestedDeviceRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDeviceRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDeviceRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDeviceRole(val *NestedDeviceRole) *NullableNestedDeviceRole {
- return &NullableNestedDeviceRole{value: val, isSet: true}
-}
-
-func (v NullableNestedDeviceRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDeviceRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_device_role_request.go b/model_nested_device_role_request.go
deleted file mode 100644
index c68b846ce7..0000000000
--- a/model_nested_device_role_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDeviceRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDeviceRoleRequest{}
-
-// NestedDeviceRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDeviceRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDeviceRoleRequest NestedDeviceRoleRequest
-
-// NewNestedDeviceRoleRequest instantiates a new NestedDeviceRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDeviceRoleRequest(name string, slug string) *NestedDeviceRoleRequest {
- this := NestedDeviceRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedDeviceRoleRequestWithDefaults instantiates a new NestedDeviceRoleRequest object
-// This 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 NewNestedDeviceRoleRequestWithDefaults() *NestedDeviceRoleRequest {
- this := NestedDeviceRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedDeviceRoleRequest) 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 *NestedDeviceRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedDeviceRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedDeviceRoleRequest) 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 *NestedDeviceRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedDeviceRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDeviceRoleRequest) 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 *NestedDeviceRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedDeviceRoleRequest := _NestedDeviceRoleRequest{}
-
- err = json.Unmarshal(data, &varNestedDeviceRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedDeviceRoleRequest(varNestedDeviceRoleRequest)
-
- 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 NullableNestedDeviceRoleRequest struct {
- value *NestedDeviceRoleRequest
- isSet bool
-}
-
-func (v NullableNestedDeviceRoleRequest) Get() *NestedDeviceRoleRequest {
- return v.value
-}
-
-func (v *NullableNestedDeviceRoleRequest) Set(val *NestedDeviceRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDeviceRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDeviceRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDeviceRoleRequest(val *NestedDeviceRoleRequest) *NullableNestedDeviceRoleRequest {
- return &NullableNestedDeviceRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDeviceRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_device_type.go b/model_nested_device_type.go
deleted file mode 100644
index 1c95a7a070..0000000000
--- a/model_nested_device_type.go
+++ /dev/null
@@ -1,311 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDeviceType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDeviceType{}
-
-// NestedDeviceType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDeviceType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer NestedManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDeviceType NestedDeviceType
-
-// NewNestedDeviceType instantiates a new NestedDeviceType object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string) *NestedDeviceType {
- this := NestedDeviceType{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Manufacturer = manufacturer
- this.Model = model
- this.Slug = slug
- return &this
-}
-
-// NewNestedDeviceTypeWithDefaults instantiates a new NestedDeviceType object
-// This 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 NewNestedDeviceTypeWithDefaults() *NestedDeviceType {
- this := NestedDeviceType{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedDeviceType) 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 *NestedDeviceType) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedDeviceType) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedDeviceType) 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 *NestedDeviceType) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedDeviceType) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedDeviceType) 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 *NestedDeviceType) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedDeviceType) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetManufacturer returns the Manufacturer field value
-func (o *NestedDeviceType) GetManufacturer() NestedManufacturer {
- if o == nil {
- var ret NestedManufacturer
- 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 *NestedDeviceType) GetManufacturerOk() (*NestedManufacturer, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Manufacturer, true
-}
-
-// SetManufacturer sets field value
-func (o *NestedDeviceType) SetManufacturer(v NestedManufacturer) {
- o.Manufacturer = v
-}
-
-// GetModel returns the Model field value
-func (o *NestedDeviceType) 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 *NestedDeviceType) GetModelOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Model, true
-}
-
-// SetModel sets field value
-func (o *NestedDeviceType) SetModel(v string) {
- o.Model = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedDeviceType) 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 *NestedDeviceType) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedDeviceType) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedDeviceType) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDeviceType) 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
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedDeviceType) 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",
- }
-
- 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)
- }
- }
-
- varNestedDeviceType := _NestedDeviceType{}
-
- err = json.Unmarshal(data, &varNestedDeviceType)
-
- if err != nil {
- return err
- }
-
- *o = NestedDeviceType(varNestedDeviceType)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedDeviceType struct {
- value *NestedDeviceType
- isSet bool
-}
-
-func (v NullableNestedDeviceType) Get() *NestedDeviceType {
- return v.value
-}
-
-func (v *NullableNestedDeviceType) Set(val *NestedDeviceType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDeviceType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDeviceType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDeviceType(val *NestedDeviceType) *NullableNestedDeviceType {
- return &NullableNestedDeviceType{value: val, isSet: true}
-}
-
-func (v NullableNestedDeviceType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDeviceType) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_device_type_request.go b/model_nested_device_type_request.go
deleted file mode 100644
index 7158bbeb0f..0000000000
--- a/model_nested_device_type_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedDeviceTypeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedDeviceTypeRequest{}
-
-// NestedDeviceTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedDeviceTypeRequest struct {
- Model string `json:"model"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedDeviceTypeRequest NestedDeviceTypeRequest
-
-// NewNestedDeviceTypeRequest instantiates a new NestedDeviceTypeRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedDeviceTypeRequest(model string, slug string) *NestedDeviceTypeRequest {
- this := NestedDeviceTypeRequest{}
- this.Model = model
- this.Slug = slug
- return &this
-}
-
-// NewNestedDeviceTypeRequestWithDefaults instantiates a new NestedDeviceTypeRequest object
-// This 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 NewNestedDeviceTypeRequestWithDefaults() *NestedDeviceTypeRequest {
- this := NestedDeviceTypeRequest{}
- return &this
-}
-
-// GetModel returns the Model field value
-func (o *NestedDeviceTypeRequest) 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 *NestedDeviceTypeRequest) GetModelOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Model, true
-}
-
-// SetModel sets field value
-func (o *NestedDeviceTypeRequest) SetModel(v string) {
- o.Model = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedDeviceTypeRequest) 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 *NestedDeviceTypeRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedDeviceTypeRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedDeviceTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedDeviceTypeRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["model"] = o.Model
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedDeviceTypeRequest) 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{
- "model",
- "slug",
- }
-
- 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)
- }
- }
-
- varNestedDeviceTypeRequest := _NestedDeviceTypeRequest{}
-
- err = json.Unmarshal(data, &varNestedDeviceTypeRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedDeviceTypeRequest(varNestedDeviceTypeRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "model")
- delete(additionalProperties, "slug")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedDeviceTypeRequest struct {
- value *NestedDeviceTypeRequest
- isSet bool
-}
-
-func (v NullableNestedDeviceTypeRequest) Get() *NestedDeviceTypeRequest {
- return v.value
-}
-
-func (v *NullableNestedDeviceTypeRequest) Set(val *NestedDeviceTypeRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedDeviceTypeRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedDeviceTypeRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedDeviceTypeRequest(val *NestedDeviceTypeRequest) *NullableNestedDeviceTypeRequest {
- return &NullableNestedDeviceTypeRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedDeviceTypeRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedDeviceTypeRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_fhrp_group.go b/model_nested_fhrp_group.go
deleted file mode 100644
index 07e7302538..0000000000
--- a/model_nested_fhrp_group.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedFHRPGroup type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedFHRPGroup{}
-
-// NestedFHRPGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedFHRPGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Protocol FHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedFHRPGroup NestedFHRPGroup
-
-// NewNestedFHRPGroup instantiates a new NestedFHRPGroup object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *NestedFHRPGroup {
- this := NestedFHRPGroup{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Protocol = protocol
- this.GroupId = groupId
- return &this
-}
-
-// NewNestedFHRPGroupWithDefaults instantiates a new NestedFHRPGroup object
-// This 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 NewNestedFHRPGroupWithDefaults() *NestedFHRPGroup {
- this := NestedFHRPGroup{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedFHRPGroup) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedFHRPGroup) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedFHRPGroup) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetProtocol returns the Protocol field value
-func (o *NestedFHRPGroup) GetProtocol() FHRPGroupProtocol {
- if o == nil {
- var ret FHRPGroupProtocol
- 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 *NestedFHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Protocol, true
-}
-
-// SetProtocol sets field value
-func (o *NestedFHRPGroup) SetProtocol(v FHRPGroupProtocol) {
- o.Protocol = v
-}
-
-// GetGroupId returns the GroupId field value
-func (o *NestedFHRPGroup) 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 *NestedFHRPGroup) GetGroupIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.GroupId, true
-}
-
-// SetGroupId sets field value
-func (o *NestedFHRPGroup) SetGroupId(v int32) {
- o.GroupId = v
-}
-
-func (o NestedFHRPGroup) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedFHRPGroup) 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
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedFHRPGroup) 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",
- }
-
- 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)
- }
- }
-
- varNestedFHRPGroup := _NestedFHRPGroup{}
-
- err = json.Unmarshal(data, &varNestedFHRPGroup)
-
- if err != nil {
- return err
- }
-
- *o = NestedFHRPGroup(varNestedFHRPGroup)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedFHRPGroup struct {
- value *NestedFHRPGroup
- isSet bool
-}
-
-func (v NullableNestedFHRPGroup) Get() *NestedFHRPGroup {
- return v.value
-}
-
-func (v *NullableNestedFHRPGroup) Set(val *NestedFHRPGroup) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedFHRPGroup) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedFHRPGroup) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedFHRPGroup(val *NestedFHRPGroup) *NullableNestedFHRPGroup {
- return &NullableNestedFHRPGroup{value: val, isSet: true}
-}
-
-func (v NullableNestedFHRPGroup) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedFHRPGroup) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_fhrp_group_request.go b/model_nested_fhrp_group_request.go
deleted file mode 100644
index 527d87daa1..0000000000
--- a/model_nested_fhrp_group_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedFHRPGroupRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedFHRPGroupRequest{}
-
-// NestedFHRPGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedFHRPGroupRequest struct {
- Protocol FHRPGroupProtocol `json:"protocol"`
- GroupId int32 `json:"group_id"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedFHRPGroupRequest NestedFHRPGroupRequest
-
-// NewNestedFHRPGroupRequest instantiates a new NestedFHRPGroupRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *NestedFHRPGroupRequest {
- this := NestedFHRPGroupRequest{}
- this.Protocol = protocol
- this.GroupId = groupId
- return &this
-}
-
-// NewNestedFHRPGroupRequestWithDefaults instantiates a new NestedFHRPGroupRequest object
-// This 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 NewNestedFHRPGroupRequestWithDefaults() *NestedFHRPGroupRequest {
- this := NestedFHRPGroupRequest{}
- return &this
-}
-
-// GetProtocol returns the Protocol field value
-func (o *NestedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol {
- if o == nil {
- var ret FHRPGroupProtocol
- 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 *NestedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Protocol, true
-}
-
-// SetProtocol sets field value
-func (o *NestedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) {
- o.Protocol = v
-}
-
-// GetGroupId returns the GroupId field value
-func (o *NestedFHRPGroupRequest) 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 *NestedFHRPGroupRequest) GetGroupIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.GroupId, true
-}
-
-// SetGroupId sets field value
-func (o *NestedFHRPGroupRequest) SetGroupId(v int32) {
- o.GroupId = v
-}
-
-func (o NestedFHRPGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedFHRPGroupRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["protocol"] = o.Protocol
- toSerialize["group_id"] = o.GroupId
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedFHRPGroupRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedFHRPGroupRequest := _NestedFHRPGroupRequest{}
-
- err = json.Unmarshal(data, &varNestedFHRPGroupRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedFHRPGroupRequest(varNestedFHRPGroupRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "protocol")
- delete(additionalProperties, "group_id")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedFHRPGroupRequest struct {
- value *NestedFHRPGroupRequest
- isSet bool
-}
-
-func (v NullableNestedFHRPGroupRequest) Get() *NestedFHRPGroupRequest {
- return v.value
-}
-
-func (v *NullableNestedFHRPGroupRequest) Set(val *NestedFHRPGroupRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedFHRPGroupRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedFHRPGroupRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedFHRPGroupRequest(val *NestedFHRPGroupRequest) *NullableNestedFHRPGroupRequest {
- return &NullableNestedFHRPGroupRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedFHRPGroupRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedFHRPGroupRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rack.go b/model_nested_group.go
similarity index 64%
rename from model_nested_rack.go
rename to model_nested_group.go
index f61cb82dd2..434d1679e3 100644
--- a/model_nested_rack.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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,11 +15,11 @@ import (
"fmt"
)
-// checks if the NestedRack type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRack{}
+// checks if the NestedGroup type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &NestedGroup{}
-// NestedRack Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRack struct {
+// 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"`
@@ -27,14 +27,14 @@ type NestedRack struct {
AdditionalProperties map[string]interface{}
}
-type _NestedRack NestedRack
+type _NestedGroup NestedGroup
-// NewNestedRack instantiates a new NestedRack object
+// 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
-func NewNestedRack(id int32, url string, display string, name string) *NestedRack {
- this := NestedRack{}
+func NewNestedGroup(id int32, url string, display string, name string) *NestedGroup {
+ this := NestedGroup{}
this.Id = id
this.Url = url
this.Display = display
@@ -42,16 +42,16 @@ func NewNestedRack(id int32, url string, display string, name string) *NestedRac
return &this
}
-// NewNestedRackWithDefaults instantiates a new NestedRack object
+// 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
-func NewNestedRackWithDefaults() *NestedRack {
- this := NestedRack{}
+func NewNestedGroupWithDefaults() *NestedGroup {
+ this := NestedGroup{}
return &this
}
// GetId returns the Id field value
-func (o *NestedRack) GetId() int32 {
+func (o *NestedGroup) GetId() int32 {
if o == nil {
var ret int32
return ret
@@ -62,7 +62,7 @@ func (o *NestedRack) GetId() int32 {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
-func (o *NestedRack) GetIdOk() (*int32, bool) {
+func (o *NestedGroup) GetIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -70,12 +70,12 @@ func (o *NestedRack) GetIdOk() (*int32, bool) {
}
// SetId sets field value
-func (o *NestedRack) SetId(v int32) {
+func (o *NestedGroup) SetId(v int32) {
o.Id = v
}
// GetUrl returns the Url field value
-func (o *NestedRack) GetUrl() string {
+func (o *NestedGroup) GetUrl() string {
if o == nil {
var ret string
return ret
@@ -86,7 +86,7 @@ func (o *NestedRack) GetUrl() string {
// GetUrlOk returns a tuple with the Url field value
// and a boolean to check if the value has been set.
-func (o *NestedRack) GetUrlOk() (*string, bool) {
+func (o *NestedGroup) GetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -94,12 +94,12 @@ func (o *NestedRack) GetUrlOk() (*string, bool) {
}
// SetUrl sets field value
-func (o *NestedRack) SetUrl(v string) {
+func (o *NestedGroup) SetUrl(v string) {
o.Url = v
}
// GetDisplay returns the Display field value
-func (o *NestedRack) GetDisplay() string {
+func (o *NestedGroup) GetDisplay() string {
if o == nil {
var ret string
return ret
@@ -110,7 +110,7 @@ func (o *NestedRack) GetDisplay() string {
// GetDisplayOk returns a tuple with the Display field value
// and a boolean to check if the value has been set.
-func (o *NestedRack) GetDisplayOk() (*string, bool) {
+func (o *NestedGroup) GetDisplayOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -118,12 +118,12 @@ func (o *NestedRack) GetDisplayOk() (*string, bool) {
}
// SetDisplay sets field value
-func (o *NestedRack) SetDisplay(v string) {
+func (o *NestedGroup) SetDisplay(v string) {
o.Display = v
}
// GetName returns the Name field value
-func (o *NestedRack) GetName() string {
+func (o *NestedGroup) GetName() string {
if o == nil {
var ret string
return ret
@@ -134,7 +134,7 @@ func (o *NestedRack) GetName() string {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
-func (o *NestedRack) GetNameOk() (*string, bool) {
+func (o *NestedGroup) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -142,11 +142,11 @@ func (o *NestedRack) GetNameOk() (*string, bool) {
}
// SetName sets field value
-func (o *NestedRack) SetName(v string) {
+func (o *NestedGroup) SetName(v string) {
o.Name = v
}
-func (o NestedRack) MarshalJSON() ([]byte, error) {
+func (o NestedGroup) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -154,7 +154,7 @@ func (o NestedRack) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o NestedRack) ToMap() (map[string]interface{}, error) {
+func (o NestedGroup) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
@@ -168,7 +168,7 @@ func (o NestedRack) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedRack) UnmarshalJSON(data []byte) (err error) {
+func (o *NestedGroup) 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.
@@ -193,15 +193,15 @@ func (o *NestedRack) UnmarshalJSON(data []byte) (err error) {
}
}
- varNestedRack := _NestedRack{}
+ varNestedGroup := _NestedGroup{}
- err = json.Unmarshal(data, &varNestedRack)
+ err = json.Unmarshal(data, &varNestedGroup)
if err != nil {
return err
}
- *o = NestedRack(varNestedRack)
+ *o = NestedGroup(varNestedGroup)
additionalProperties := make(map[string]interface{})
@@ -216,38 +216,38 @@ func (o *NestedRack) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullableNestedRack struct {
- value *NestedRack
+type NullableNestedGroup struct {
+ value *NestedGroup
isSet bool
}
-func (v NullableNestedRack) Get() *NestedRack {
+func (v NullableNestedGroup) Get() *NestedGroup {
return v.value
}
-func (v *NullableNestedRack) Set(val *NestedRack) {
+func (v *NullableNestedGroup) Set(val *NestedGroup) {
v.value = val
v.isSet = true
}
-func (v NullableNestedRack) IsSet() bool {
+func (v NullableNestedGroup) IsSet() bool {
return v.isSet
}
-func (v *NullableNestedRack) Unset() {
+func (v *NullableNestedGroup) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableNestedRack(val *NestedRack) *NullableNestedRack {
- return &NullableNestedRack{value: val, isSet: true}
+func NewNullableNestedGroup(val *NestedGroup) *NullableNestedGroup {
+ return &NullableNestedGroup{value: val, isSet: true}
}
-func (v NullableNestedRack) MarshalJSON() ([]byte, error) {
+func (v NullableNestedGroup) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableNestedRack) UnmarshalJSON(src []byte) error {
+func (v *NullableNestedGroup) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_nested_ike_policy.go b/model_nested_ike_policy.go
deleted file mode 100644
index 9f2754d091..0000000000
--- a/model_nested_ike_policy.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIKEPolicy type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIKEPolicy{}
-
-// NestedIKEPolicy 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 NestedIKEPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIKEPolicy NestedIKEPolicy
-
-// NewNestedIKEPolicy instantiates a new NestedIKEPolicy object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIKEPolicy(id int32, url string, display string, name string) *NestedIKEPolicy {
- this := NestedIKEPolicy{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedIKEPolicyWithDefaults instantiates a new NestedIKEPolicy object
-// This 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 NewNestedIKEPolicyWithDefaults() *NestedIKEPolicy {
- this := NestedIKEPolicy{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedIKEPolicy) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedIKEPolicy) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedIKEPolicy) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedIKEPolicy) 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 *NestedIKEPolicy) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIKEPolicy) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIKEPolicy) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIKEPolicy) 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 *NestedIKEPolicy) 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",
- }
-
- 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)
- }
- }
-
- varNestedIKEPolicy := _NestedIKEPolicy{}
-
- err = json.Unmarshal(data, &varNestedIKEPolicy)
-
- if err != nil {
- return err
- }
-
- *o = NestedIKEPolicy(varNestedIKEPolicy)
-
- 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 NullableNestedIKEPolicy struct {
- value *NestedIKEPolicy
- isSet bool
-}
-
-func (v NullableNestedIKEPolicy) Get() *NestedIKEPolicy {
- return v.value
-}
-
-func (v *NullableNestedIKEPolicy) Set(val *NestedIKEPolicy) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIKEPolicy) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIKEPolicy) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIKEPolicy(val *NestedIKEPolicy) *NullableNestedIKEPolicy {
- return &NullableNestedIKEPolicy{value: val, isSet: true}
-}
-
-func (v NullableNestedIKEPolicy) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIKEPolicy) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_ike_policy_request.go b/model_nested_ike_policy_request.go
deleted file mode 100644
index b588f8e95b..0000000000
--- a/model_nested_ike_policy_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIKEPolicyRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIKEPolicyRequest{}
-
-// NestedIKEPolicyRequest 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 NestedIKEPolicyRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIKEPolicyRequest NestedIKEPolicyRequest
-
-// NewNestedIKEPolicyRequest instantiates a new NestedIKEPolicyRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIKEPolicyRequest(name string) *NestedIKEPolicyRequest {
- this := NestedIKEPolicyRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedIKEPolicyRequestWithDefaults instantiates a new NestedIKEPolicyRequest object
-// This 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 NewNestedIKEPolicyRequestWithDefaults() *NestedIKEPolicyRequest {
- this := NestedIKEPolicyRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedIKEPolicyRequest) 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 *NestedIKEPolicyRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIKEPolicyRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIKEPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIKEPolicyRequest) 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 *NestedIKEPolicyRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedIKEPolicyRequest := _NestedIKEPolicyRequest{}
-
- err = json.Unmarshal(data, &varNestedIKEPolicyRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedIKEPolicyRequest(varNestedIKEPolicyRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedIKEPolicyRequest struct {
- value *NestedIKEPolicyRequest
- isSet bool
-}
-
-func (v NullableNestedIKEPolicyRequest) Get() *NestedIKEPolicyRequest {
- return v.value
-}
-
-func (v *NullableNestedIKEPolicyRequest) Set(val *NestedIKEPolicyRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIKEPolicyRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIKEPolicyRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIKEPolicyRequest(val *NestedIKEPolicyRequest) *NullableNestedIKEPolicyRequest {
- return &NullableNestedIKEPolicyRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedIKEPolicyRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIKEPolicyRequest) 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 57c9010db5..fd6230adfd 100644
--- a/model_nested_interface.go
+++ b/model_nested_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go
index 33de339fd2..ddb108ba79 100644
--- a/model_nested_interface_request.go
+++ b/model_nested_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go
index 992bb751f5..af9322a663 100644
--- a/model_nested_interface_template.go
+++ b/model_nested_interface_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go
index 8757906cbd..db741a1b66 100644
--- a/model_nested_interface_template_request.go
+++ b/model_nested_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_inventory_item_role.go b/model_nested_inventory_item_role.go
deleted file mode 100644
index 6d9dfb98af..0000000000
--- a/model_nested_inventory_item_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedInventoryItemRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedInventoryItemRole{}
-
-// NestedInventoryItemRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedInventoryItemRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedInventoryItemRole NestedInventoryItemRole
-
-// NewNestedInventoryItemRole instantiates a new NestedInventoryItemRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedInventoryItemRole(id int32, url string, display string, name string, slug string) *NestedInventoryItemRole {
- this := NestedInventoryItemRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedInventoryItemRoleWithDefaults instantiates a new NestedInventoryItemRole object
-// This 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 NewNestedInventoryItemRoleWithDefaults() *NestedInventoryItemRole {
- this := NestedInventoryItemRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedInventoryItemRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedInventoryItemRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedInventoryItemRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedInventoryItemRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedInventoryItemRole) 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 *NestedInventoryItemRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedInventoryItemRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedInventoryItemRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedInventoryItemRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedInventoryItemRole) 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",
- }
-
- 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)
- }
- }
-
- varNestedInventoryItemRole := _NestedInventoryItemRole{}
-
- err = json.Unmarshal(data, &varNestedInventoryItemRole)
-
- if err != nil {
- return err
- }
-
- *o = NestedInventoryItemRole(varNestedInventoryItemRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedInventoryItemRole struct {
- value *NestedInventoryItemRole
- isSet bool
-}
-
-func (v NullableNestedInventoryItemRole) Get() *NestedInventoryItemRole {
- return v.value
-}
-
-func (v *NullableNestedInventoryItemRole) Set(val *NestedInventoryItemRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedInventoryItemRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedInventoryItemRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedInventoryItemRole(val *NestedInventoryItemRole) *NullableNestedInventoryItemRole {
- return &NullableNestedInventoryItemRole{value: val, isSet: true}
-}
-
-func (v NullableNestedInventoryItemRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedInventoryItemRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_inventory_item_role_request.go b/model_nested_inventory_item_role_request.go
deleted file mode 100644
index 1fa73c35c7..0000000000
--- a/model_nested_inventory_item_role_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedInventoryItemRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedInventoryItemRoleRequest{}
-
-// NestedInventoryItemRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedInventoryItemRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedInventoryItemRoleRequest NestedInventoryItemRoleRequest
-
-// NewNestedInventoryItemRoleRequest instantiates a new NestedInventoryItemRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedInventoryItemRoleRequest(name string, slug string) *NestedInventoryItemRoleRequest {
- this := NestedInventoryItemRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedInventoryItemRoleRequestWithDefaults instantiates a new NestedInventoryItemRoleRequest object
-// This 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 NewNestedInventoryItemRoleRequestWithDefaults() *NestedInventoryItemRoleRequest {
- this := NestedInventoryItemRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedInventoryItemRoleRequest) 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 *NestedInventoryItemRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedInventoryItemRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedInventoryItemRoleRequest) 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 *NestedInventoryItemRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedInventoryItemRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedInventoryItemRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedInventoryItemRoleRequest) 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 *NestedInventoryItemRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedInventoryItemRoleRequest := _NestedInventoryItemRoleRequest{}
-
- err = json.Unmarshal(data, &varNestedInventoryItemRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedInventoryItemRoleRequest(varNestedInventoryItemRoleRequest)
-
- 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 NullableNestedInventoryItemRoleRequest struct {
- value *NestedInventoryItemRoleRequest
- isSet bool
-}
-
-func (v NullableNestedInventoryItemRoleRequest) Get() *NestedInventoryItemRoleRequest {
- return v.value
-}
-
-func (v *NullableNestedInventoryItemRoleRequest) Set(val *NestedInventoryItemRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedInventoryItemRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedInventoryItemRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedInventoryItemRoleRequest(val *NestedInventoryItemRoleRequest) *NullableNestedInventoryItemRoleRequest {
- return &NullableNestedInventoryItemRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedInventoryItemRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedInventoryItemRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go
deleted file mode 100644
index 215837d860..0000000000
--- a/model_nested_ip_address.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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
-}
-
-// 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
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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
deleted file mode 100644
index 8bdb6a924c..0000000000
--- a/model_nested_ip_address_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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",
- }
-
- 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)
- }
- }
-
- 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_ip_sec_policy.go b/model_nested_ip_sec_policy.go
deleted file mode 100644
index 263e6a6b4e..0000000000
--- a/model_nested_ip_sec_policy.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIPSecPolicy type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIPSecPolicy{}
-
-// NestedIPSecPolicy 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 NestedIPSecPolicy struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIPSecPolicy NestedIPSecPolicy
-
-// NewNestedIPSecPolicy instantiates a new NestedIPSecPolicy object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIPSecPolicy(id int32, url string, display string, name string) *NestedIPSecPolicy {
- this := NestedIPSecPolicy{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedIPSecPolicyWithDefaults instantiates a new NestedIPSecPolicy object
-// This 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 NewNestedIPSecPolicyWithDefaults() *NestedIPSecPolicy {
- this := NestedIPSecPolicy{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedIPSecPolicy) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedIPSecPolicy) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedIPSecPolicy) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedIPSecPolicy) 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 *NestedIPSecPolicy) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIPSecPolicy) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIPSecPolicy) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIPSecPolicy) 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 *NestedIPSecPolicy) 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",
- }
-
- 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)
- }
- }
-
- varNestedIPSecPolicy := _NestedIPSecPolicy{}
-
- err = json.Unmarshal(data, &varNestedIPSecPolicy)
-
- if err != nil {
- return err
- }
-
- *o = NestedIPSecPolicy(varNestedIPSecPolicy)
-
- 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 NullableNestedIPSecPolicy struct {
- value *NestedIPSecPolicy
- isSet bool
-}
-
-func (v NullableNestedIPSecPolicy) Get() *NestedIPSecPolicy {
- return v.value
-}
-
-func (v *NullableNestedIPSecPolicy) Set(val *NestedIPSecPolicy) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIPSecPolicy) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIPSecPolicy) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIPSecPolicy(val *NestedIPSecPolicy) *NullableNestedIPSecPolicy {
- return &NullableNestedIPSecPolicy{value: val, isSet: true}
-}
-
-func (v NullableNestedIPSecPolicy) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIPSecPolicy) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_ip_sec_policy_request.go b/model_nested_ip_sec_policy_request.go
deleted file mode 100644
index 4f0dc7fdd6..0000000000
--- a/model_nested_ip_sec_policy_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIPSecPolicyRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIPSecPolicyRequest{}
-
-// NestedIPSecPolicyRequest 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 NestedIPSecPolicyRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIPSecPolicyRequest NestedIPSecPolicyRequest
-
-// NewNestedIPSecPolicyRequest instantiates a new NestedIPSecPolicyRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIPSecPolicyRequest(name string) *NestedIPSecPolicyRequest {
- this := NestedIPSecPolicyRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedIPSecPolicyRequestWithDefaults instantiates a new NestedIPSecPolicyRequest object
-// This 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 NewNestedIPSecPolicyRequestWithDefaults() *NestedIPSecPolicyRequest {
- this := NestedIPSecPolicyRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedIPSecPolicyRequest) 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 *NestedIPSecPolicyRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIPSecPolicyRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIPSecPolicyRequest) 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 *NestedIPSecPolicyRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedIPSecPolicyRequest := _NestedIPSecPolicyRequest{}
-
- err = json.Unmarshal(data, &varNestedIPSecPolicyRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedIPSecPolicyRequest(varNestedIPSecPolicyRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedIPSecPolicyRequest struct {
- value *NestedIPSecPolicyRequest
- isSet bool
-}
-
-func (v NullableNestedIPSecPolicyRequest) Get() *NestedIPSecPolicyRequest {
- return v.value
-}
-
-func (v *NullableNestedIPSecPolicyRequest) Set(val *NestedIPSecPolicyRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIPSecPolicyRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIPSecPolicyRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIPSecPolicyRequest(val *NestedIPSecPolicyRequest) *NullableNestedIPSecPolicyRequest {
- return &NullableNestedIPSecPolicyRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedIPSecPolicyRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIPSecPolicyRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_ip_sec_profile.go b/model_nested_ip_sec_profile.go
deleted file mode 100644
index b4215e9030..0000000000
--- a/model_nested_ip_sec_profile.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIPSecProfile type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIPSecProfile{}
-
-// NestedIPSecProfile 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 NestedIPSecProfile struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIPSecProfile NestedIPSecProfile
-
-// NewNestedIPSecProfile instantiates a new NestedIPSecProfile object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIPSecProfile(id int32, url string, display string, name string) *NestedIPSecProfile {
- this := NestedIPSecProfile{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedIPSecProfileWithDefaults instantiates a new NestedIPSecProfile object
-// This 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 NewNestedIPSecProfileWithDefaults() *NestedIPSecProfile {
- this := NestedIPSecProfile{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedIPSecProfile) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedIPSecProfile) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedIPSecProfile) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedIPSecProfile) 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 *NestedIPSecProfile) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIPSecProfile) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIPSecProfile) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIPSecProfile) 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 *NestedIPSecProfile) 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",
- }
-
- 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)
- }
- }
-
- varNestedIPSecProfile := _NestedIPSecProfile{}
-
- err = json.Unmarshal(data, &varNestedIPSecProfile)
-
- if err != nil {
- return err
- }
-
- *o = NestedIPSecProfile(varNestedIPSecProfile)
-
- 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 NullableNestedIPSecProfile struct {
- value *NestedIPSecProfile
- isSet bool
-}
-
-func (v NullableNestedIPSecProfile) Get() *NestedIPSecProfile {
- return v.value
-}
-
-func (v *NullableNestedIPSecProfile) Set(val *NestedIPSecProfile) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIPSecProfile) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIPSecProfile) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIPSecProfile(val *NestedIPSecProfile) *NullableNestedIPSecProfile {
- return &NullableNestedIPSecProfile{value: val, isSet: true}
-}
-
-func (v NullableNestedIPSecProfile) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIPSecProfile) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_ip_sec_profile_request.go b/model_nested_ip_sec_profile_request.go
deleted file mode 100644
index a1b2fd9411..0000000000
--- a/model_nested_ip_sec_profile_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedIPSecProfileRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedIPSecProfileRequest{}
-
-// NestedIPSecProfileRequest 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 NestedIPSecProfileRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedIPSecProfileRequest NestedIPSecProfileRequest
-
-// NewNestedIPSecProfileRequest instantiates a new NestedIPSecProfileRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedIPSecProfileRequest(name string) *NestedIPSecProfileRequest {
- this := NestedIPSecProfileRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedIPSecProfileRequestWithDefaults instantiates a new NestedIPSecProfileRequest object
-// This 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 NewNestedIPSecProfileRequestWithDefaults() *NestedIPSecProfileRequest {
- this := NestedIPSecProfileRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedIPSecProfileRequest) 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 *NestedIPSecProfileRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedIPSecProfileRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedIPSecProfileRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedIPSecProfileRequest) 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 *NestedIPSecProfileRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedIPSecProfileRequest := _NestedIPSecProfileRequest{}
-
- err = json.Unmarshal(data, &varNestedIPSecProfileRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedIPSecProfileRequest(varNestedIPSecProfileRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedIPSecProfileRequest struct {
- value *NestedIPSecProfileRequest
- isSet bool
-}
-
-func (v NullableNestedIPSecProfileRequest) Get() *NestedIPSecProfileRequest {
- return v.value
-}
-
-func (v *NullableNestedIPSecProfileRequest) Set(val *NestedIPSecProfileRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedIPSecProfileRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedIPSecProfileRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedIPSecProfileRequest(val *NestedIPSecProfileRequest) *NullableNestedIPSecProfileRequest {
- return &NullableNestedIPSecProfileRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedIPSecProfileRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedIPSecProfileRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_l2_vpn.go b/model_nested_l2_vpn.go
deleted file mode 100644
index 04ef578e3b..0000000000
--- a/model_nested_l2_vpn.go
+++ /dev/null
@@ -1,359 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedL2VPN type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedL2VPN{}
-
-// NestedL2VPN Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedL2VPN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type L2VPNTypeValue `json:"type"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedL2VPN NestedL2VPN
-
-// NewNestedL2VPN instantiates a new NestedL2VPN object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedL2VPN(id int32, url string, display string, name string, slug string, type_ L2VPNTypeValue) *NestedL2VPN {
- this := NestedL2VPN{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- this.Type = type_
- return &this
-}
-
-// NewNestedL2VPNWithDefaults instantiates a new NestedL2VPN object
-// This 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 NewNestedL2VPNWithDefaults() *NestedL2VPN {
- this := NestedL2VPN{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedL2VPN) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedL2VPN) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) 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 *NestedL2VPN) 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 *NestedL2VPN) 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 *NestedL2VPN) SetIdentifier(v int64) {
- o.Identifier.Set(&v)
-}
-
-// SetIdentifierNil sets the value for Identifier to be an explicit nil
-func (o *NestedL2VPN) SetIdentifierNil() {
- o.Identifier.Set(nil)
-}
-
-// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
-func (o *NestedL2VPN) UnsetIdentifier() {
- o.Identifier.Unset()
-}
-
-// GetName returns the Name field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedL2VPN) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedL2VPN) 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 *NestedL2VPN) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedL2VPN) SetSlug(v string) {
- o.Slug = v
-}
-
-// GetType returns the Type field value
-func (o *NestedL2VPN) GetType() L2VPNTypeValue {
- if o == nil {
- var ret L2VPNTypeValue
- 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 *NestedL2VPN) GetTypeOk() (*L2VPNTypeValue, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *NestedL2VPN) SetType(v L2VPNTypeValue) {
- o.Type = v
-}
-
-func (o NestedL2VPN) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedL2VPN) 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
- toSerialize["type"] = o.Type
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedL2VPN) 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",
- "type",
- }
-
- 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)
- }
- }
-
- varNestedL2VPN := _NestedL2VPN{}
-
- err = json.Unmarshal(data, &varNestedL2VPN)
-
- if err != nil {
- return err
- }
-
- *o = NestedL2VPN(varNestedL2VPN)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedL2VPN struct {
- value *NestedL2VPN
- isSet bool
-}
-
-func (v NullableNestedL2VPN) Get() *NestedL2VPN {
- return v.value
-}
-
-func (v *NullableNestedL2VPN) Set(val *NestedL2VPN) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedL2VPN) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedL2VPN) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedL2VPN(val *NestedL2VPN) *NullableNestedL2VPN {
- return &NullableNestedL2VPN{value: val, isSet: true}
-}
-
-func (v NullableNestedL2VPN) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedL2VPN) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_l2_vpn_request.go b/model_nested_l2_vpn_request.go
deleted file mode 100644
index 3297936711..0000000000
--- a/model_nested_l2_vpn_request.go
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedL2VPNRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedL2VPNRequest{}
-
-// NestedL2VPNRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedL2VPNRequest struct {
- Identifier NullableInt64 `json:"identifier,omitempty"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type L2VPNTypeValue `json:"type"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedL2VPNRequest NestedL2VPNRequest
-
-// NewNestedL2VPNRequest instantiates a new NestedL2VPNRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *NestedL2VPNRequest {
- this := NestedL2VPNRequest{}
- this.Name = name
- this.Slug = slug
- this.Type = type_
- return &this
-}
-
-// NewNestedL2VPNRequestWithDefaults instantiates a new NestedL2VPNRequest object
-// This 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 NewNestedL2VPNRequestWithDefaults() *NestedL2VPNRequest {
- this := NestedL2VPNRequest{}
- return &this
-}
-
-// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *NestedL2VPNRequest) 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 *NestedL2VPNRequest) 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 *NestedL2VPNRequest) 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 *NestedL2VPNRequest) SetIdentifier(v int64) {
- o.Identifier.Set(&v)
-}
-
-// SetIdentifierNil sets the value for Identifier to be an explicit nil
-func (o *NestedL2VPNRequest) SetIdentifierNil() {
- o.Identifier.Set(nil)
-}
-
-// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil
-func (o *NestedL2VPNRequest) UnsetIdentifier() {
- o.Identifier.Unset()
-}
-
-// GetName returns the Name field value
-func (o *NestedL2VPNRequest) 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 *NestedL2VPNRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedL2VPNRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedL2VPNRequest) 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 *NestedL2VPNRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedL2VPNRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-// GetType returns the Type field value
-func (o *NestedL2VPNRequest) GetType() L2VPNTypeValue {
- if o == nil {
- var ret L2VPNTypeValue
- 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 *NestedL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Type, true
-}
-
-// SetType sets field value
-func (o *NestedL2VPNRequest) SetType(v L2VPNTypeValue) {
- o.Type = v
-}
-
-func (o NestedL2VPNRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedL2VPNRequest) 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
- toSerialize["type"] = o.Type
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedL2VPNRequest) 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",
- "type",
- }
-
- 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)
- }
- }
-
- varNestedL2VPNRequest := _NestedL2VPNRequest{}
-
- err = json.Unmarshal(data, &varNestedL2VPNRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedL2VPNRequest(varNestedL2VPNRequest)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedL2VPNRequest struct {
- value *NestedL2VPNRequest
- isSet bool
-}
-
-func (v NullableNestedL2VPNRequest) Get() *NestedL2VPNRequest {
- return v.value
-}
-
-func (v *NullableNestedL2VPNRequest) Set(val *NestedL2VPNRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedL2VPNRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedL2VPNRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedL2VPNRequest(val *NestedL2VPNRequest) *NullableNestedL2VPNRequest {
- return &NullableNestedL2VPNRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedL2VPNRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedL2VPNRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_l2_vpn_termination.go b/model_nested_l2_vpn_termination.go
deleted file mode 100644
index b20554a9c3..0000000000
--- a/model_nested_l2_vpn_termination.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedL2VPNTermination type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedL2VPNTermination{}
-
-// NestedL2VPNTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedL2VPNTermination struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- L2vpn NestedL2VPN `json:"l2vpn"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedL2VPNTermination NestedL2VPNTermination
-
-// NewNestedL2VPNTermination instantiates a new NestedL2VPNTermination object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedL2VPNTermination(id int32, url string, display string, l2vpn NestedL2VPN) *NestedL2VPNTermination {
- this := NestedL2VPNTermination{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.L2vpn = l2vpn
- return &this
-}
-
-// NewNestedL2VPNTerminationWithDefaults instantiates a new NestedL2VPNTermination object
-// This 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 NewNestedL2VPNTerminationWithDefaults() *NestedL2VPNTermination {
- this := NestedL2VPNTermination{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedL2VPNTermination) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedL2VPNTermination) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedL2VPNTermination) 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 *NestedL2VPNTermination) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedL2VPNTermination) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetL2vpn returns the L2vpn field value
-func (o *NestedL2VPNTermination) GetL2vpn() NestedL2VPN {
- if o == nil {
- var ret NestedL2VPN
- 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 *NestedL2VPNTermination) GetL2vpnOk() (*NestedL2VPN, bool) {
- if o == nil {
- return nil, false
- }
- return &o.L2vpn, true
-}
-
-// SetL2vpn sets field value
-func (o *NestedL2VPNTermination) SetL2vpn(v NestedL2VPN) {
- o.L2vpn = v
-}
-
-func (o NestedL2VPNTermination) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedL2VPNTermination) 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 *NestedL2VPNTermination) 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",
- }
-
- 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)
- }
- }
-
- varNestedL2VPNTermination := _NestedL2VPNTermination{}
-
- err = json.Unmarshal(data, &varNestedL2VPNTermination)
-
- if err != nil {
- return err
- }
-
- *o = NestedL2VPNTermination(varNestedL2VPNTermination)
-
- 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 NullableNestedL2VPNTermination struct {
- value *NestedL2VPNTermination
- isSet bool
-}
-
-func (v NullableNestedL2VPNTermination) Get() *NestedL2VPNTermination {
- return v.value
-}
-
-func (v *NullableNestedL2VPNTermination) Set(val *NestedL2VPNTermination) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedL2VPNTermination) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedL2VPNTermination) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedL2VPNTermination(val *NestedL2VPNTermination) *NullableNestedL2VPNTermination {
- return &NullableNestedL2VPNTermination{value: val, isSet: true}
-}
-
-func (v NullableNestedL2VPNTermination) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedL2VPNTermination) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_l2_vpn_termination_request.go b/model_nested_l2_vpn_termination_request.go
deleted file mode 100644
index f3b9dc1a1e..0000000000
--- a/model_nested_l2_vpn_termination_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedL2VPNTerminationRequest{}
-
-// NestedL2VPNTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedL2VPNTerminationRequest struct {
- L2vpn NestedL2VPNRequest `json:"l2vpn"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedL2VPNTerminationRequest NestedL2VPNTerminationRequest
-
-// NewNestedL2VPNTerminationRequest instantiates a new NestedL2VPNTerminationRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedL2VPNTerminationRequest(l2vpn NestedL2VPNRequest) *NestedL2VPNTerminationRequest {
- this := NestedL2VPNTerminationRequest{}
- this.L2vpn = l2vpn
- return &this
-}
-
-// NewNestedL2VPNTerminationRequestWithDefaults instantiates a new NestedL2VPNTerminationRequest object
-// This 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 NewNestedL2VPNTerminationRequestWithDefaults() *NestedL2VPNTerminationRequest {
- this := NestedL2VPNTerminationRequest{}
- return &this
-}
-
-// GetL2vpn returns the L2vpn field value
-func (o *NestedL2VPNTerminationRequest) GetL2vpn() NestedL2VPNRequest {
- if o == nil {
- var ret NestedL2VPNRequest
- 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 *NestedL2VPNTerminationRequest) GetL2vpnOk() (*NestedL2VPNRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.L2vpn, true
-}
-
-// SetL2vpn sets field value
-func (o *NestedL2VPNTerminationRequest) SetL2vpn(v NestedL2VPNRequest) {
- o.L2vpn = v
-}
-
-func (o NestedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedL2VPNTerminationRequest) 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 *NestedL2VPNTerminationRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedL2VPNTerminationRequest := _NestedL2VPNTerminationRequest{}
-
- err = json.Unmarshal(data, &varNestedL2VPNTerminationRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedL2VPNTerminationRequest(varNestedL2VPNTerminationRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "l2vpn")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedL2VPNTerminationRequest struct {
- value *NestedL2VPNTerminationRequest
- isSet bool
-}
-
-func (v NullableNestedL2VPNTerminationRequest) Get() *NestedL2VPNTerminationRequest {
- return v.value
-}
-
-func (v *NullableNestedL2VPNTerminationRequest) Set(val *NestedL2VPNTerminationRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedL2VPNTerminationRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedL2VPNTerminationRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedL2VPNTerminationRequest(val *NestedL2VPNTerminationRequest) *NullableNestedL2VPNTerminationRequest {
- return &NullableNestedL2VPNTerminationRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedL2VPNTerminationRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_location.go b/model_nested_location.go
deleted file mode 100644
index c6a3db0118..0000000000
--- a/model_nested_location.go
+++ /dev/null
@@ -1,311 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- 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
-}
-
-// 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
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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
deleted file mode 100644
index cec85531bc..0000000000
--- a/model_nested_location_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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",
- }
-
- 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)
- }
- }
-
- 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_manufacturer.go b/model_nested_manufacturer.go
deleted file mode 100644
index 62d7fb51bf..0000000000
--- a/model_nested_manufacturer.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedManufacturer type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedManufacturer{}
-
-// NestedManufacturer Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedManufacturer struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedManufacturer NestedManufacturer
-
-// NewNestedManufacturer instantiates a new NestedManufacturer object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedManufacturer(id int32, url string, display string, name string, slug string) *NestedManufacturer {
- this := NestedManufacturer{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedManufacturerWithDefaults instantiates a new NestedManufacturer object
-// This 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 NewNestedManufacturerWithDefaults() *NestedManufacturer {
- this := NestedManufacturer{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedManufacturer) 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 *NestedManufacturer) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedManufacturer) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedManufacturer) 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 *NestedManufacturer) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedManufacturer) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedManufacturer) 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 *NestedManufacturer) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedManufacturer) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedManufacturer) 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 *NestedManufacturer) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedManufacturer) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedManufacturer) 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 *NestedManufacturer) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedManufacturer) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedManufacturer) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedManufacturer) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedManufacturer) 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",
- }
-
- 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)
- }
- }
-
- varNestedManufacturer := _NestedManufacturer{}
-
- err = json.Unmarshal(data, &varNestedManufacturer)
-
- if err != nil {
- return err
- }
-
- *o = NestedManufacturer(varNestedManufacturer)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedManufacturer struct {
- value *NestedManufacturer
- isSet bool
-}
-
-func (v NullableNestedManufacturer) Get() *NestedManufacturer {
- return v.value
-}
-
-func (v *NullableNestedManufacturer) Set(val *NestedManufacturer) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedManufacturer) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedManufacturer) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedManufacturer(val *NestedManufacturer) *NullableNestedManufacturer {
- return &NullableNestedManufacturer{value: val, isSet: true}
-}
-
-func (v NullableNestedManufacturer) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedManufacturer) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_manufacturer_request.go b/model_nested_manufacturer_request.go
deleted file mode 100644
index e30098e565..0000000000
--- a/model_nested_manufacturer_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedManufacturerRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedManufacturerRequest{}
-
-// NestedManufacturerRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedManufacturerRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedManufacturerRequest NestedManufacturerRequest
-
-// NewNestedManufacturerRequest instantiates a new NestedManufacturerRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedManufacturerRequest(name string, slug string) *NestedManufacturerRequest {
- this := NestedManufacturerRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedManufacturerRequestWithDefaults instantiates a new NestedManufacturerRequest object
-// This 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 NewNestedManufacturerRequestWithDefaults() *NestedManufacturerRequest {
- this := NestedManufacturerRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedManufacturerRequest) 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 *NestedManufacturerRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedManufacturerRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedManufacturerRequest) 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 *NestedManufacturerRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedManufacturerRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedManufacturerRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedManufacturerRequest) 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 *NestedManufacturerRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedManufacturerRequest := _NestedManufacturerRequest{}
-
- err = json.Unmarshal(data, &varNestedManufacturerRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedManufacturerRequest(varNestedManufacturerRequest)
-
- 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 NullableNestedManufacturerRequest struct {
- value *NestedManufacturerRequest
- isSet bool
-}
-
-func (v NullableNestedManufacturerRequest) Get() *NestedManufacturerRequest {
- return v.value
-}
-
-func (v *NullableNestedManufacturerRequest) Set(val *NestedManufacturerRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedManufacturerRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedManufacturerRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedManufacturerRequest(val *NestedManufacturerRequest) *NullableNestedManufacturerRequest {
- return &NullableNestedManufacturerRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedManufacturerRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedManufacturerRequest) 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 74fb6dd0f5..c217493c73 100644
--- a/model_nested_module_bay.go
+++ b/model_nested_module_bay.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go
index 3f584e2a07..cda6e8c0c2 100644
--- a/model_nested_module_bay_request.go
+++ b/model_nested_module_bay_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_module_type.go b/model_nested_module_type.go
deleted file mode 100644
index e666a945f6..0000000000
--- a/model_nested_module_type.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedModuleType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedModuleType{}
-
-// NestedModuleType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedModuleType struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Manufacturer NestedManufacturer `json:"manufacturer"`
- Model string `json:"model"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedModuleType NestedModuleType
-
-// NewNestedModuleType instantiates a new NestedModuleType object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedModuleType(id int32, url string, display string, manufacturer NestedManufacturer, model string) *NestedModuleType {
- this := NestedModuleType{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Manufacturer = manufacturer
- this.Model = model
- return &this
-}
-
-// NewNestedModuleTypeWithDefaults instantiates a new NestedModuleType object
-// This 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 NewNestedModuleTypeWithDefaults() *NestedModuleType {
- this := NestedModuleType{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedModuleType) 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 *NestedModuleType) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedModuleType) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedModuleType) 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 *NestedModuleType) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedModuleType) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedModuleType) 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 *NestedModuleType) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedModuleType) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetManufacturer returns the Manufacturer field value
-func (o *NestedModuleType) GetManufacturer() NestedManufacturer {
- if o == nil {
- var ret NestedManufacturer
- 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 *NestedModuleType) GetManufacturerOk() (*NestedManufacturer, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Manufacturer, true
-}
-
-// SetManufacturer sets field value
-func (o *NestedModuleType) SetManufacturer(v NestedManufacturer) {
- o.Manufacturer = v
-}
-
-// GetModel returns the Model field value
-func (o *NestedModuleType) 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 *NestedModuleType) GetModelOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Model, true
-}
-
-// SetModel sets field value
-func (o *NestedModuleType) SetModel(v string) {
- o.Model = v
-}
-
-func (o NestedModuleType) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedModuleType) 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
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedModuleType) 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",
- }
-
- 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)
- }
- }
-
- varNestedModuleType := _NestedModuleType{}
-
- err = json.Unmarshal(data, &varNestedModuleType)
-
- if err != nil {
- return err
- }
-
- *o = NestedModuleType(varNestedModuleType)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedModuleType struct {
- value *NestedModuleType
- isSet bool
-}
-
-func (v NullableNestedModuleType) Get() *NestedModuleType {
- return v.value
-}
-
-func (v *NullableNestedModuleType) Set(val *NestedModuleType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedModuleType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedModuleType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedModuleType(val *NestedModuleType) *NullableNestedModuleType {
- return &NullableNestedModuleType{value: val, isSet: true}
-}
-
-func (v NullableNestedModuleType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedModuleType) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_module_type_request.go b/model_nested_module_type_request.go
deleted file mode 100644
index 21bc4aaf12..0000000000
--- a/model_nested_module_type_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedModuleTypeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedModuleTypeRequest{}
-
-// NestedModuleTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedModuleTypeRequest struct {
- Model string `json:"model"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedModuleTypeRequest NestedModuleTypeRequest
-
-// NewNestedModuleTypeRequest instantiates a new NestedModuleTypeRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedModuleTypeRequest(model string) *NestedModuleTypeRequest {
- this := NestedModuleTypeRequest{}
- this.Model = model
- return &this
-}
-
-// NewNestedModuleTypeRequestWithDefaults instantiates a new NestedModuleTypeRequest object
-// This 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 NewNestedModuleTypeRequestWithDefaults() *NestedModuleTypeRequest {
- this := NestedModuleTypeRequest{}
- return &this
-}
-
-// GetModel returns the Model field value
-func (o *NestedModuleTypeRequest) 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 *NestedModuleTypeRequest) GetModelOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Model, true
-}
-
-// SetModel sets field value
-func (o *NestedModuleTypeRequest) SetModel(v string) {
- o.Model = v
-}
-
-func (o NestedModuleTypeRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedModuleTypeRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["model"] = o.Model
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedModuleTypeRequest) 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{
- "model",
- }
-
- 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)
- }
- }
-
- varNestedModuleTypeRequest := _NestedModuleTypeRequest{}
-
- err = json.Unmarshal(data, &varNestedModuleTypeRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedModuleTypeRequest(varNestedModuleTypeRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "model")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedModuleTypeRequest struct {
- value *NestedModuleTypeRequest
- isSet bool
-}
-
-func (v NullableNestedModuleTypeRequest) Get() *NestedModuleTypeRequest {
- return v.value
-}
-
-func (v *NullableNestedModuleTypeRequest) Set(val *NestedModuleTypeRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedModuleTypeRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedModuleTypeRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedModuleTypeRequest(val *NestedModuleTypeRequest) *NullableNestedModuleTypeRequest {
- return &NullableNestedModuleTypeRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedModuleTypeRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedModuleTypeRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_platform.go b/model_nested_platform.go
deleted file mode 100644
index 45f8e58a3c..0000000000
--- a/model_nested_platform.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPlatform type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPlatform{}
-
-// NestedPlatform Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPlatform struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPlatform NestedPlatform
-
-// NewNestedPlatform instantiates a new NestedPlatform object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPlatform(id int32, url string, display string, name string, slug string) *NestedPlatform {
- this := NestedPlatform{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedPlatformWithDefaults instantiates a new NestedPlatform object
-// This 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 NewNestedPlatformWithDefaults() *NestedPlatform {
- this := NestedPlatform{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedPlatform) 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 *NestedPlatform) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedPlatform) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedPlatform) 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 *NestedPlatform) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedPlatform) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedPlatform) 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 *NestedPlatform) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedPlatform) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedPlatform) 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 *NestedPlatform) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPlatform) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedPlatform) 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 *NestedPlatform) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedPlatform) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedPlatform) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPlatform) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedPlatform) 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",
- }
-
- 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)
- }
- }
-
- varNestedPlatform := _NestedPlatform{}
-
- err = json.Unmarshal(data, &varNestedPlatform)
-
- if err != nil {
- return err
- }
-
- *o = NestedPlatform(varNestedPlatform)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedPlatform struct {
- value *NestedPlatform
- isSet bool
-}
-
-func (v NullableNestedPlatform) Get() *NestedPlatform {
- return v.value
-}
-
-func (v *NullableNestedPlatform) Set(val *NestedPlatform) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPlatform) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPlatform) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPlatform(val *NestedPlatform) *NullableNestedPlatform {
- return &NullableNestedPlatform{value: val, isSet: true}
-}
-
-func (v NullableNestedPlatform) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPlatform) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_platform_request.go b/model_nested_platform_request.go
deleted file mode 100644
index 157691f0b2..0000000000
--- a/model_nested_platform_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPlatformRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPlatformRequest{}
-
-// NestedPlatformRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPlatformRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPlatformRequest NestedPlatformRequest
-
-// NewNestedPlatformRequest instantiates a new NestedPlatformRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPlatformRequest(name string, slug string) *NestedPlatformRequest {
- this := NestedPlatformRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedPlatformRequestWithDefaults instantiates a new NestedPlatformRequest object
-// This 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 NewNestedPlatformRequestWithDefaults() *NestedPlatformRequest {
- this := NestedPlatformRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedPlatformRequest) 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 *NestedPlatformRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPlatformRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedPlatformRequest) 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 *NestedPlatformRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedPlatformRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedPlatformRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPlatformRequest) 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 *NestedPlatformRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedPlatformRequest := _NestedPlatformRequest{}
-
- err = json.Unmarshal(data, &varNestedPlatformRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedPlatformRequest(varNestedPlatformRequest)
-
- 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 NullableNestedPlatformRequest struct {
- value *NestedPlatformRequest
- isSet bool
-}
-
-func (v NullableNestedPlatformRequest) Get() *NestedPlatformRequest {
- return v.value
-}
-
-func (v *NullableNestedPlatformRequest) Set(val *NestedPlatformRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPlatformRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPlatformRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPlatformRequest(val *NestedPlatformRequest) *NullableNestedPlatformRequest {
- return &NullableNestedPlatformRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedPlatformRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPlatformRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_panel.go b/model_nested_power_panel.go
deleted file mode 100644
index 5843b4ff65..0000000000
--- a/model_nested_power_panel.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPanel type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPanel{}
-
-// NestedPowerPanel Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPanel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPanel NestedPowerPanel
-
-// NewNestedPowerPanel instantiates a new NestedPowerPanel object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPanel(id int32, url string, display string, name string) *NestedPowerPanel {
- this := NestedPowerPanel{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedPowerPanelWithDefaults instantiates a new NestedPowerPanel object
-// This 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 NewNestedPowerPanelWithDefaults() *NestedPowerPanel {
- this := NestedPowerPanel{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedPowerPanel) 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 *NestedPowerPanel) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedPowerPanel) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedPowerPanel) 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 *NestedPowerPanel) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedPowerPanel) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedPowerPanel) 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 *NestedPowerPanel) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedPowerPanel) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPanel) 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 *NestedPowerPanel) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPanel) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedPowerPanel) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPanel) 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 *NestedPowerPanel) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPanel := _NestedPowerPanel{}
-
- err = json.Unmarshal(data, &varNestedPowerPanel)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPanel(varNestedPowerPanel)
-
- 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 NullableNestedPowerPanel struct {
- value *NestedPowerPanel
- isSet bool
-}
-
-func (v NullableNestedPowerPanel) Get() *NestedPowerPanel {
- return v.value
-}
-
-func (v *NullableNestedPowerPanel) Set(val *NestedPowerPanel) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPanel) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPanel) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPanel(val *NestedPowerPanel) *NullableNestedPowerPanel {
- return &NullableNestedPowerPanel{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPanel) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPanel) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_panel_request.go b/model_nested_power_panel_request.go
deleted file mode 100644
index 093430e49b..0000000000
--- a/model_nested_power_panel_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPanelRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPanelRequest{}
-
-// NestedPowerPanelRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPanelRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPanelRequest NestedPowerPanelRequest
-
-// NewNestedPowerPanelRequest instantiates a new NestedPowerPanelRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPanelRequest(name string) *NestedPowerPanelRequest {
- this := NestedPowerPanelRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedPowerPanelRequestWithDefaults instantiates a new NestedPowerPanelRequest object
-// This 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 NewNestedPowerPanelRequestWithDefaults() *NestedPowerPanelRequest {
- this := NestedPowerPanelRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPanelRequest) 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 *NestedPowerPanelRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPanelRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedPowerPanelRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPanelRequest) 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 *NestedPowerPanelRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPanelRequest := _NestedPowerPanelRequest{}
-
- err = json.Unmarshal(data, &varNestedPowerPanelRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPanelRequest(varNestedPowerPanelRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedPowerPanelRequest struct {
- value *NestedPowerPanelRequest
- isSet bool
-}
-
-func (v NullableNestedPowerPanelRequest) Get() *NestedPowerPanelRequest {
- return v.value
-}
-
-func (v *NullableNestedPowerPanelRequest) Set(val *NestedPowerPanelRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPanelRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPanelRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPanelRequest(val *NestedPowerPanelRequest) *NullableNestedPowerPanelRequest {
- return &NullableNestedPowerPanelRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPanelRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPanelRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_port.go b/model_nested_power_port.go
deleted file mode 100644
index 4a41d90037..0000000000
--- a/model_nested_power_port.go
+++ /dev/null
@@ -1,359 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPort type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPort{}
-
-// NestedPowerPort Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Name string `json:"name"`
- Cable NullableInt32 `json:"cable,omitempty"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPort NestedPowerPort
-
-// NewNestedPowerPort instantiates a new NestedPowerPort object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPort(id int32, url string, display string, device NestedDevice, name string, occupied bool) *NestedPowerPort {
- this := NestedPowerPort{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Device = device
- this.Name = name
- this.Occupied = occupied
- return &this
-}
-
-// NewNestedPowerPortWithDefaults instantiates a new NestedPowerPort object
-// This 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 NewNestedPowerPortWithDefaults() *NestedPowerPort {
- this := NestedPowerPort{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedPowerPort) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedPowerPort) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedPowerPort) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetDevice returns the Device field value
-func (o *NestedPowerPort) GetDevice() NestedDevice {
- if o == nil {
- var ret NestedDevice
- 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 *NestedPowerPort) GetDeviceOk() (*NestedDevice, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *NestedPowerPort) SetDevice(v NestedDevice) {
- o.Device = v
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetCable() int32 {
- if o == nil || IsNil(o.Cable.Get()) {
- var ret int32
- 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 *NestedPowerPort) GetCableOk() (*int32, 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 *NestedPowerPort) HasCable() bool {
- if o != nil && o.Cable.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetCable gets a reference to the given NullableInt32 and assigns it to the Cable field.
-func (o *NestedPowerPort) SetCable(v int32) {
- o.Cable.Set(&v)
-}
-
-// SetCableNil sets the value for Cable to be an explicit nil
-func (o *NestedPowerPort) SetCableNil() {
- o.Cable.Set(nil)
-}
-
-// UnsetCable ensures that no value is present for Cable, not even an explicit nil
-func (o *NestedPowerPort) UnsetCable() {
- o.Cable.Unset()
-}
-
-// GetOccupied returns the Occupied field value
-func (o *NestedPowerPort) 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 *NestedPowerPort) GetOccupiedOk() (*bool, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Occupied, true
-}
-
-// SetOccupied sets field value
-func (o *NestedPowerPort) SetOccupied(v bool) {
- o.Occupied = v
-}
-
-func (o NestedPowerPort) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPort) 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 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 *NestedPowerPort) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPort := _NestedPowerPort{}
-
- err = json.Unmarshal(data, &varNestedPowerPort)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPort(varNestedPowerPort)
-
- 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, "cable")
- delete(additionalProperties, "_occupied")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedPowerPort struct {
- value *NestedPowerPort
- isSet bool
-}
-
-func (v NullableNestedPowerPort) Get() *NestedPowerPort {
- return v.value
-}
-
-func (v *NullableNestedPowerPort) Set(val *NestedPowerPort) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPort) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPort) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPort(val *NestedPowerPort) *NullableNestedPowerPort {
- return &NullableNestedPowerPort{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPort) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPort) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_port_request.go b/model_nested_power_port_request.go
deleted file mode 100644
index 4ffdb5e7e2..0000000000
--- a/model_nested_power_port_request.go
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPortRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPortRequest{}
-
-// NestedPowerPortRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPortRequest struct {
- Name string `json:"name"`
- Cable NullableInt32 `json:"cable,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPortRequest NestedPowerPortRequest
-
-// NewNestedPowerPortRequest instantiates a new NestedPowerPortRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPortRequest(name string) *NestedPowerPortRequest {
- this := NestedPowerPortRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedPowerPortRequestWithDefaults instantiates a new NestedPowerPortRequest object
-// This 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 NewNestedPowerPortRequestWithDefaults() *NestedPowerPortRequest {
- this := NestedPowerPortRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPortRequest) 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 *NestedPowerPortRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPortRequest) 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 *NestedPowerPortRequest) GetCable() int32 {
- if o == nil || IsNil(o.Cable.Get()) {
- var ret int32
- 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 *NestedPowerPortRequest) GetCableOk() (*int32, 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 *NestedPowerPortRequest) HasCable() bool {
- if o != nil && o.Cable.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetCable gets a reference to the given NullableInt32 and assigns it to the Cable field.
-func (o *NestedPowerPortRequest) SetCable(v int32) {
- o.Cable.Set(&v)
-}
-
-// SetCableNil sets the value for Cable to be an explicit nil
-func (o *NestedPowerPortRequest) SetCableNil() {
- o.Cable.Set(nil)
-}
-
-// UnsetCable ensures that no value is present for Cable, not even an explicit nil
-func (o *NestedPowerPortRequest) UnsetCable() {
- o.Cable.Unset()
-}
-
-func (o NestedPowerPortRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPortRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- if o.Cable.IsSet() {
- toSerialize["cable"] = o.Cable.Get()
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedPowerPortRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPortRequest := _NestedPowerPortRequest{}
-
- err = json.Unmarshal(data, &varNestedPowerPortRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPortRequest(varNestedPowerPortRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "cable")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedPowerPortRequest struct {
- value *NestedPowerPortRequest
- isSet bool
-}
-
-func (v NullableNestedPowerPortRequest) Get() *NestedPowerPortRequest {
- return v.value
-}
-
-func (v *NullableNestedPowerPortRequest) Set(val *NestedPowerPortRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPortRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPortRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPortRequest(val *NestedPowerPortRequest) *NullableNestedPowerPortRequest {
- return &NullableNestedPowerPortRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPortRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPortRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_port_template.go b/model_nested_power_port_template.go
deleted file mode 100644
index 13e847fceb..0000000000
--- a/model_nested_power_port_template.go
+++ /dev/null
@@ -1,254 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPortTemplate type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPortTemplate{}
-
-// NestedPowerPortTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- 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"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPortTemplate NestedPowerPortTemplate
-
-// NewNestedPowerPortTemplate instantiates a new NestedPowerPortTemplate object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPortTemplate(id int32, url string, display string, name string) *NestedPowerPortTemplate {
- this := NestedPowerPortTemplate{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedPowerPortTemplateWithDefaults instantiates a new NestedPowerPortTemplate object
-// This 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 NewNestedPowerPortTemplateWithDefaults() *NestedPowerPortTemplate {
- this := NestedPowerPortTemplate{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedPowerPortTemplate) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedPowerPortTemplate) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedPowerPortTemplate) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPortTemplate) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedPowerPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPortTemplate) 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 *NestedPowerPortTemplate) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPortTemplate := _NestedPowerPortTemplate{}
-
- err = json.Unmarshal(data, &varNestedPowerPortTemplate)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPortTemplate(varNestedPowerPortTemplate)
-
- 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 NullableNestedPowerPortTemplate struct {
- value *NestedPowerPortTemplate
- isSet bool
-}
-
-func (v NullableNestedPowerPortTemplate) Get() *NestedPowerPortTemplate {
- return v.value
-}
-
-func (v *NullableNestedPowerPortTemplate) Set(val *NestedPowerPortTemplate) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPortTemplate) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPortTemplate) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPortTemplate(val *NestedPowerPortTemplate) *NullableNestedPowerPortTemplate {
- return &NullableNestedPowerPortTemplate{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPortTemplate) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPortTemplate) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_power_port_template_request.go b/model_nested_power_port_template_request.go
deleted file mode 100644
index 345a3d3b68..0000000000
--- a/model_nested_power_port_template_request.go
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedPowerPortTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedPowerPortTemplateRequest{}
-
-// NestedPowerPortTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedPowerPortTemplateRequest struct {
- // {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedPowerPortTemplateRequest NestedPowerPortTemplateRequest
-
-// NewNestedPowerPortTemplateRequest instantiates a new NestedPowerPortTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedPowerPortTemplateRequest(name string) *NestedPowerPortTemplateRequest {
- this := NestedPowerPortTemplateRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedPowerPortTemplateRequestWithDefaults instantiates a new NestedPowerPortTemplateRequest object
-// This 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 NewNestedPowerPortTemplateRequestWithDefaults() *NestedPowerPortTemplateRequest {
- this := NestedPowerPortTemplateRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedPowerPortTemplateRequest) 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 *NestedPowerPortTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedPowerPortTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedPowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedPowerPortTemplateRequest) 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 *NestedPowerPortTemplateRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedPowerPortTemplateRequest := _NestedPowerPortTemplateRequest{}
-
- err = json.Unmarshal(data, &varNestedPowerPortTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedPowerPortTemplateRequest(varNestedPowerPortTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedPowerPortTemplateRequest struct {
- value *NestedPowerPortTemplateRequest
- isSet bool
-}
-
-func (v NullableNestedPowerPortTemplateRequest) Get() *NestedPowerPortTemplateRequest {
- return v.value
-}
-
-func (v *NullableNestedPowerPortTemplateRequest) Set(val *NestedPowerPortTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedPowerPortTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedPowerPortTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedPowerPortTemplateRequest(val *NestedPowerPortTemplateRequest) *NullableNestedPowerPortTemplateRequest {
- return &NullableNestedPowerPortTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedPowerPortTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedPowerPortTemplateRequest) 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
deleted file mode 100644
index da311b4d22..0000000000
--- a/model_nested_provider_account.go
+++ /dev/null
@@ -1,290 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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
-}
-
-// 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
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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_provider_account_request.go b/model_nested_provider_account_request.go
deleted file mode 100644
index 42bd260117..0000000000
--- a/model_nested_provider_account_request.go
+++ /dev/null
@@ -1,203 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedProviderAccountRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedProviderAccountRequest{}
-
-// NestedProviderAccountRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedProviderAccountRequest struct {
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedProviderAccountRequest NestedProviderAccountRequest
-
-// NewNestedProviderAccountRequest instantiates a new NestedProviderAccountRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedProviderAccountRequest(account string) *NestedProviderAccountRequest {
- this := NestedProviderAccountRequest{}
- this.Account = account
- return &this
-}
-
-// NewNestedProviderAccountRequestWithDefaults instantiates a new NestedProviderAccountRequest object
-// This 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 NewNestedProviderAccountRequestWithDefaults() *NestedProviderAccountRequest {
- this := NestedProviderAccountRequest{}
- return &this
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-func (o *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) SetName(v string) {
- o.Name = &v
-}
-
-// GetAccount returns the Account field value
-func (o *NestedProviderAccountRequest) 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 *NestedProviderAccountRequest) GetAccountOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Account, true
-}
-
-// SetAccount sets field value
-func (o *NestedProviderAccountRequest) SetAccount(v string) {
- o.Account = v
-}
-
-func (o NestedProviderAccountRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedProviderAccountRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- 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 *NestedProviderAccountRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedProviderAccountRequest := _NestedProviderAccountRequest{}
-
- err = json.Unmarshal(data, &varNestedProviderAccountRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedProviderAccountRequest(varNestedProviderAccountRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "account")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedProviderAccountRequest struct {
- value *NestedProviderAccountRequest
- isSet bool
-}
-
-func (v NullableNestedProviderAccountRequest) Get() *NestedProviderAccountRequest {
- return v.value
-}
-
-func (v *NullableNestedProviderAccountRequest) Set(val *NestedProviderAccountRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedProviderAccountRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedProviderAccountRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedProviderAccountRequest(val *NestedProviderAccountRequest) *NullableNestedProviderAccountRequest {
- return &NullableNestedProviderAccountRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedProviderAccountRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedProviderAccountRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_provider_network.go b/model_nested_provider_network.go
deleted file mode 100644
index 7d13717677..0000000000
--- a/model_nested_provider_network.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedProviderNetwork type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedProviderNetwork{}
-
-// NestedProviderNetwork Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedProviderNetwork struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedProviderNetwork NestedProviderNetwork
-
-// NewNestedProviderNetwork instantiates a new NestedProviderNetwork object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedProviderNetwork(id int32, url string, display string, name string) *NestedProviderNetwork {
- this := NestedProviderNetwork{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedProviderNetworkWithDefaults instantiates a new NestedProviderNetwork object
-// This 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 NewNestedProviderNetworkWithDefaults() *NestedProviderNetwork {
- this := NestedProviderNetwork{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedProviderNetwork) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedProviderNetwork) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedProviderNetwork) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedProviderNetwork) 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 *NestedProviderNetwork) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedProviderNetwork) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedProviderNetwork) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedProviderNetwork) 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 *NestedProviderNetwork) 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",
- }
-
- 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)
- }
- }
-
- varNestedProviderNetwork := _NestedProviderNetwork{}
-
- err = json.Unmarshal(data, &varNestedProviderNetwork)
-
- if err != nil {
- return err
- }
-
- *o = NestedProviderNetwork(varNestedProviderNetwork)
-
- 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 NullableNestedProviderNetwork struct {
- value *NestedProviderNetwork
- isSet bool
-}
-
-func (v NullableNestedProviderNetwork) Get() *NestedProviderNetwork {
- return v.value
-}
-
-func (v *NullableNestedProviderNetwork) Set(val *NestedProviderNetwork) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedProviderNetwork) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedProviderNetwork) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedProviderNetwork(val *NestedProviderNetwork) *NullableNestedProviderNetwork {
- return &NullableNestedProviderNetwork{value: val, isSet: true}
-}
-
-func (v NullableNestedProviderNetwork) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedProviderNetwork) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_provider_network_request.go b/model_nested_provider_network_request.go
deleted file mode 100644
index a5eb136000..0000000000
--- a/model_nested_provider_network_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedProviderNetworkRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedProviderNetworkRequest{}
-
-// NestedProviderNetworkRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedProviderNetworkRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedProviderNetworkRequest NestedProviderNetworkRequest
-
-// NewNestedProviderNetworkRequest instantiates a new NestedProviderNetworkRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedProviderNetworkRequest(name string) *NestedProviderNetworkRequest {
- this := NestedProviderNetworkRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedProviderNetworkRequestWithDefaults instantiates a new NestedProviderNetworkRequest object
-// This 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 NewNestedProviderNetworkRequestWithDefaults() *NestedProviderNetworkRequest {
- this := NestedProviderNetworkRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedProviderNetworkRequest) 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 *NestedProviderNetworkRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedProviderNetworkRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedProviderNetworkRequest) 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 *NestedProviderNetworkRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedProviderNetworkRequest := _NestedProviderNetworkRequest{}
-
- err = json.Unmarshal(data, &varNestedProviderNetworkRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedProviderNetworkRequest(varNestedProviderNetworkRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedProviderNetworkRequest struct {
- value *NestedProviderNetworkRequest
- isSet bool
-}
-
-func (v NullableNestedProviderNetworkRequest) Get() *NestedProviderNetworkRequest {
- return v.value
-}
-
-func (v *NullableNestedProviderNetworkRequest) Set(val *NestedProviderNetworkRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedProviderNetworkRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedProviderNetworkRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedProviderNetworkRequest(val *NestedProviderNetworkRequest) *NullableNestedProviderNetworkRequest {
- return &NullableNestedProviderNetworkRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedProviderNetworkRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_provider_request.go b/model_nested_provider_request.go
deleted file mode 100644
index df24becad4..0000000000
--- a/model_nested_provider_request.go
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedProviderRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedProviderRequest{}
-
-// NestedProviderRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedProviderRequest struct {
- // Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedProviderRequest NestedProviderRequest
-
-// NewNestedProviderRequest instantiates a new NestedProviderRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedProviderRequest(name string, slug string) *NestedProviderRequest {
- this := NestedProviderRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedProviderRequestWithDefaults instantiates a new NestedProviderRequest object
-// This 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 NewNestedProviderRequestWithDefaults() *NestedProviderRequest {
- this := NestedProviderRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedProviderRequest) 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 *NestedProviderRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedProviderRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedProviderRequest) 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 *NestedProviderRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedProviderRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedProviderRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedProviderRequest) 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 *NestedProviderRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedProviderRequest := _NestedProviderRequest{}
-
- err = json.Unmarshal(data, &varNestedProviderRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedProviderRequest(varNestedProviderRequest)
-
- 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 NullableNestedProviderRequest struct {
- value *NestedProviderRequest
- isSet bool
-}
-
-func (v NullableNestedProviderRequest) Get() *NestedProviderRequest {
- return v.value
-}
-
-func (v *NullableNestedProviderRequest) Set(val *NestedProviderRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedProviderRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedProviderRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedProviderRequest(val *NestedProviderRequest) *NullableNestedProviderRequest {
- return &NullableNestedProviderRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedProviderRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedProviderRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rack_request.go b/model_nested_rack_request.go
deleted file mode 100644
index 08a4ef588e..0000000000
--- a/model_nested_rack_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRackRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRackRequest{}
-
-// NestedRackRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRackRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRackRequest NestedRackRequest
-
-// NewNestedRackRequest instantiates a new NestedRackRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRackRequest(name string) *NestedRackRequest {
- this := NestedRackRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedRackRequestWithDefaults instantiates a new NestedRackRequest object
-// This 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 NewNestedRackRequestWithDefaults() *NestedRackRequest {
- this := NestedRackRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedRackRequest) 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 *NestedRackRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRackRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedRackRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRackRequest) 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 *NestedRackRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedRackRequest := _NestedRackRequest{}
-
- err = json.Unmarshal(data, &varNestedRackRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedRackRequest(varNestedRackRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedRackRequest struct {
- value *NestedRackRequest
- isSet bool
-}
-
-func (v NullableNestedRackRequest) Get() *NestedRackRequest {
- return v.value
-}
-
-func (v *NullableNestedRackRequest) Set(val *NestedRackRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRackRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRackRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRackRequest(val *NestedRackRequest) *NullableNestedRackRequest {
- return &NullableNestedRackRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedRackRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRackRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rack_role.go b/model_nested_rack_role.go
deleted file mode 100644
index 870fe3e72e..0000000000
--- a/model_nested_rack_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRackRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRackRole{}
-
-// NestedRackRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRackRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRackRole NestedRackRole
-
-// NewNestedRackRole instantiates a new NestedRackRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRackRole(id int32, url string, display string, name string, slug string) *NestedRackRole {
- this := NestedRackRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRackRoleWithDefaults instantiates a new NestedRackRole object
-// This 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 NewNestedRackRoleWithDefaults() *NestedRackRole {
- this := NestedRackRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedRackRole) 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 *NestedRackRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedRackRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedRackRole) 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 *NestedRackRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedRackRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedRackRole) 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 *NestedRackRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedRackRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedRackRole) 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 *NestedRackRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRackRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRackRole) 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 *NestedRackRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRackRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRackRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRackRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedRackRole) 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",
- }
-
- 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)
- }
- }
-
- varNestedRackRole := _NestedRackRole{}
-
- err = json.Unmarshal(data, &varNestedRackRole)
-
- if err != nil {
- return err
- }
-
- *o = NestedRackRole(varNestedRackRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedRackRole struct {
- value *NestedRackRole
- isSet bool
-}
-
-func (v NullableNestedRackRole) Get() *NestedRackRole {
- return v.value
-}
-
-func (v *NullableNestedRackRole) Set(val *NestedRackRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRackRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRackRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRackRole(val *NestedRackRole) *NullableNestedRackRole {
- return &NullableNestedRackRole{value: val, isSet: true}
-}
-
-func (v NullableNestedRackRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRackRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rack_role_request.go b/model_nested_rack_role_request.go
deleted file mode 100644
index b543cfe773..0000000000
--- a/model_nested_rack_role_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRackRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRackRoleRequest{}
-
-// NestedRackRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRackRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRackRoleRequest NestedRackRoleRequest
-
-// NewNestedRackRoleRequest instantiates a new NestedRackRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRackRoleRequest(name string, slug string) *NestedRackRoleRequest {
- this := NestedRackRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRackRoleRequestWithDefaults instantiates a new NestedRackRoleRequest object
-// This 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 NewNestedRackRoleRequestWithDefaults() *NestedRackRoleRequest {
- this := NestedRackRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedRackRoleRequest) 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 *NestedRackRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRackRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRackRoleRequest) 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 *NestedRackRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRackRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRackRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRackRoleRequest) 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 *NestedRackRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedRackRoleRequest := _NestedRackRoleRequest{}
-
- err = json.Unmarshal(data, &varNestedRackRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedRackRoleRequest(varNestedRackRoleRequest)
-
- 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 NullableNestedRackRoleRequest struct {
- value *NestedRackRoleRequest
- isSet bool
-}
-
-func (v NullableNestedRackRoleRequest) Get() *NestedRackRoleRequest {
- return v.value
-}
-
-func (v *NullableNestedRackRoleRequest) Set(val *NestedRackRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRackRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRackRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRackRoleRequest(val *NestedRackRoleRequest) *NullableNestedRackRoleRequest {
- return &NullableNestedRackRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedRackRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRackRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rear_port_template.go b/model_nested_rear_port_template.go
deleted file mode 100644
index 2af69610b9..0000000000
--- a/model_nested_rear_port_template.go
+++ /dev/null
@@ -1,254 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRearPortTemplate type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRearPortTemplate{}
-
-// NestedRearPortTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRearPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- 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"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRearPortTemplate NestedRearPortTemplate
-
-// NewNestedRearPortTemplate instantiates a new NestedRearPortTemplate object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRearPortTemplate(id int32, url string, display string, name string) *NestedRearPortTemplate {
- this := NestedRearPortTemplate{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedRearPortTemplateWithDefaults instantiates a new NestedRearPortTemplate object
-// This 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 NewNestedRearPortTemplateWithDefaults() *NestedRearPortTemplate {
- this := NestedRearPortTemplate{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedRearPortTemplate) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedRearPortTemplate) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedRearPortTemplate) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedRearPortTemplate) 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 *NestedRearPortTemplate) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRearPortTemplate) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedRearPortTemplate) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRearPortTemplate) 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 *NestedRearPortTemplate) 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",
- }
-
- 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)
- }
- }
-
- varNestedRearPortTemplate := _NestedRearPortTemplate{}
-
- err = json.Unmarshal(data, &varNestedRearPortTemplate)
-
- if err != nil {
- return err
- }
-
- *o = NestedRearPortTemplate(varNestedRearPortTemplate)
-
- 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 NullableNestedRearPortTemplate struct {
- value *NestedRearPortTemplate
- isSet bool
-}
-
-func (v NullableNestedRearPortTemplate) Get() *NestedRearPortTemplate {
- return v.value
-}
-
-func (v *NullableNestedRearPortTemplate) Set(val *NestedRearPortTemplate) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRearPortTemplate) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRearPortTemplate) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRearPortTemplate(val *NestedRearPortTemplate) *NullableNestedRearPortTemplate {
- return &NullableNestedRearPortTemplate{value: val, isSet: true}
-}
-
-func (v NullableNestedRearPortTemplate) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRearPortTemplate) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rear_port_template_request.go b/model_nested_rear_port_template_request.go
deleted file mode 100644
index becb45e6ea..0000000000
--- a/model_nested_rear_port_template_request.go
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRearPortTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRearPortTemplateRequest{}
-
-// NestedRearPortTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRearPortTemplateRequest struct {
- // {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRearPortTemplateRequest NestedRearPortTemplateRequest
-
-// NewNestedRearPortTemplateRequest instantiates a new NestedRearPortTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRearPortTemplateRequest(name string) *NestedRearPortTemplateRequest {
- this := NestedRearPortTemplateRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedRearPortTemplateRequestWithDefaults instantiates a new NestedRearPortTemplateRequest object
-// This 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 NewNestedRearPortTemplateRequestWithDefaults() *NestedRearPortTemplateRequest {
- this := NestedRearPortTemplateRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedRearPortTemplateRequest) 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 *NestedRearPortTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRearPortTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedRearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRearPortTemplateRequest) 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 *NestedRearPortTemplateRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedRearPortTemplateRequest := _NestedRearPortTemplateRequest{}
-
- err = json.Unmarshal(data, &varNestedRearPortTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedRearPortTemplateRequest(varNestedRearPortTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedRearPortTemplateRequest struct {
- value *NestedRearPortTemplateRequest
- isSet bool
-}
-
-func (v NullableNestedRearPortTemplateRequest) Get() *NestedRearPortTemplateRequest {
- return v.value
-}
-
-func (v *NullableNestedRearPortTemplateRequest) Set(val *NestedRearPortTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRearPortTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRearPortTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRearPortTemplateRequest(val *NestedRearPortTemplateRequest) *NullableNestedRearPortTemplateRequest {
- return &NullableNestedRearPortTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedRearPortTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRearPortTemplateRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_region.go b/model_nested_region.go
index ae194d7bc2..4282f5dd65 100644
--- a/model_nested_region.go
+++ b/model_nested_region.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_region_request.go b/model_nested_region_request.go
index e6e2a95314..945e3f6506 100644
--- a/model_nested_region_request.go
+++ b/model_nested_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_rir.go b/model_nested_rir.go
deleted file mode 100644
index 2a77637661..0000000000
--- a/model_nested_rir.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRIR type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRIR{}
-
-// NestedRIR Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRIR struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRIR NestedRIR
-
-// NewNestedRIR instantiates a new NestedRIR object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRIR(id int32, url string, display string, name string, slug string) *NestedRIR {
- this := NestedRIR{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRIRWithDefaults instantiates a new NestedRIR object
-// This 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 NewNestedRIRWithDefaults() *NestedRIR {
- this := NestedRIR{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedRIR) 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 *NestedRIR) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedRIR) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedRIR) 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 *NestedRIR) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedRIR) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedRIR) 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 *NestedRIR) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedRIR) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedRIR) 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 *NestedRIR) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRIR) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRIR) 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 *NestedRIR) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRIR) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRIR) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRIR) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedRIR) 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",
- }
-
- 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)
- }
- }
-
- varNestedRIR := _NestedRIR{}
-
- err = json.Unmarshal(data, &varNestedRIR)
-
- if err != nil {
- return err
- }
-
- *o = NestedRIR(varNestedRIR)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedRIR struct {
- value *NestedRIR
- isSet bool
-}
-
-func (v NullableNestedRIR) Get() *NestedRIR {
- return v.value
-}
-
-func (v *NullableNestedRIR) Set(val *NestedRIR) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRIR) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRIR) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRIR(val *NestedRIR) *NullableNestedRIR {
- return &NullableNestedRIR{value: val, isSet: true}
-}
-
-func (v NullableNestedRIR) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRIR) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_rir_request.go b/model_nested_rir_request.go
deleted file mode 100644
index 5c6ac5767b..0000000000
--- a/model_nested_rir_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRIRRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRIRRequest{}
-
-// NestedRIRRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRIRRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRIRRequest NestedRIRRequest
-
-// NewNestedRIRRequest instantiates a new NestedRIRRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRIRRequest(name string, slug string) *NestedRIRRequest {
- this := NestedRIRRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRIRRequestWithDefaults instantiates a new NestedRIRRequest object
-// This 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 NewNestedRIRRequestWithDefaults() *NestedRIRRequest {
- this := NestedRIRRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedRIRRequest) 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 *NestedRIRRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRIRRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRIRRequest) 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 *NestedRIRRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRIRRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRIRRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRIRRequest) 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 *NestedRIRRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedRIRRequest := _NestedRIRRequest{}
-
- err = json.Unmarshal(data, &varNestedRIRRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedRIRRequest(varNestedRIRRequest)
-
- 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 NullableNestedRIRRequest struct {
- value *NestedRIRRequest
- isSet bool
-}
-
-func (v NullableNestedRIRRequest) Get() *NestedRIRRequest {
- return v.value
-}
-
-func (v *NullableNestedRIRRequest) Set(val *NestedRIRRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRIRRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRIRRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRIRRequest(val *NestedRIRRequest) *NullableNestedRIRRequest {
- return &NullableNestedRIRRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedRIRRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRIRRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_role.go b/model_nested_role.go
deleted file mode 100644
index 4499cd85ef..0000000000
--- a/model_nested_role.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRole type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRole{}
-
-// NestedRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRole struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRole NestedRole
-
-// NewNestedRole instantiates a new NestedRole object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRole(id int32, url string, display string, name string, slug string) *NestedRole {
- this := NestedRole{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRoleWithDefaults instantiates a new NestedRole object
-// This 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 NewNestedRoleWithDefaults() *NestedRole {
- this := NestedRole{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedRole) 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 *NestedRole) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedRole) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedRole) 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 *NestedRole) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedRole) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedRole) 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 *NestedRole) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedRole) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedRole) 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 *NestedRole) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRole) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRole) 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 *NestedRole) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRole) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRole) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRole) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedRole) 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",
- }
-
- 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)
- }
- }
-
- varNestedRole := _NestedRole{}
-
- err = json.Unmarshal(data, &varNestedRole)
-
- if err != nil {
- return err
- }
-
- *o = NestedRole(varNestedRole)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedRole struct {
- value *NestedRole
- isSet bool
-}
-
-func (v NullableNestedRole) Get() *NestedRole {
- return v.value
-}
-
-func (v *NullableNestedRole) Set(val *NestedRole) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRole) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRole) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRole(val *NestedRole) *NullableNestedRole {
- return &NullableNestedRole{value: val, isSet: true}
-}
-
-func (v NullableNestedRole) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRole) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_role_request.go b/model_nested_role_request.go
deleted file mode 100644
index d28d3d5a50..0000000000
--- a/model_nested_role_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedRoleRequest{}
-
-// NestedRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedRoleRequest NestedRoleRequest
-
-// NewNestedRoleRequest instantiates a new NestedRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedRoleRequest(name string, slug string) *NestedRoleRequest {
- this := NestedRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedRoleRequestWithDefaults instantiates a new NestedRoleRequest object
-// This 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 NewNestedRoleRequestWithDefaults() *NestedRoleRequest {
- this := NestedRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedRoleRequest) 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 *NestedRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedRoleRequest) 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 *NestedRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedRoleRequest) 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 *NestedRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedRoleRequest := _NestedRoleRequest{}
-
- err = json.Unmarshal(data, &varNestedRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedRoleRequest(varNestedRoleRequest)
-
- 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 NullableNestedRoleRequest struct {
- value *NestedRoleRequest
- isSet bool
-}
-
-func (v NullableNestedRoleRequest) Get() *NestedRoleRequest {
- return v.value
-}
-
-func (v *NullableNestedRoleRequest) Set(val *NestedRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedRoleRequest(val *NestedRoleRequest) *NullableNestedRoleRequest {
- return &NullableNestedRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_site.go b/model_nested_site.go
deleted file mode 100644
index 24c9a20f96..0000000000
--- a/model_nested_site.go
+++ /dev/null
@@ -1,283 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedSite type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedSite{}
-
-// NestedSite Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedSite struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- // Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedSite NestedSite
-
-// NewNestedSite instantiates a new NestedSite object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedSite(id int32, url string, display string, name string, slug string) *NestedSite {
- this := NestedSite{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedSiteWithDefaults instantiates a new NestedSite object
-// This 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 NewNestedSiteWithDefaults() *NestedSite {
- this := NestedSite{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedSite) 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 *NestedSite) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedSite) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedSite) 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 *NestedSite) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedSite) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedSite) 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 *NestedSite) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedSite) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedSite) 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 *NestedSite) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedSite) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedSite) 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 *NestedSite) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedSite) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedSite) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedSite) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedSite) 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",
- }
-
- 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)
- }
- }
-
- varNestedSite := _NestedSite{}
-
- err = json.Unmarshal(data, &varNestedSite)
-
- if err != nil {
- return err
- }
-
- *o = NestedSite(varNestedSite)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedSite struct {
- value *NestedSite
- isSet bool
-}
-
-func (v NullableNestedSite) Get() *NestedSite {
- return v.value
-}
-
-func (v *NullableNestedSite) Set(val *NestedSite) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedSite) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedSite) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedSite(val *NestedSite) *NullableNestedSite {
- return &NullableNestedSite{value: val, isSet: true}
-}
-
-func (v NullableNestedSite) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedSite) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_site_group.go b/model_nested_site_group.go
index 4cf749c027..1b288b1682 100644
--- a/model_nested_site_group.go
+++ b/model_nested_site_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go
index 71d44b2ee8..e0fbe632a6 100644
--- a/model_nested_site_group_request.go
+++ b/model_nested_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_site_request.go b/model_nested_site_request.go
deleted file mode 100644
index e681e1130a..0000000000
--- a/model_nested_site_request.go
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedSiteRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedSiteRequest{}
-
-// NestedSiteRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedSiteRequest struct {
- // Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedSiteRequest NestedSiteRequest
-
-// NewNestedSiteRequest instantiates a new NestedSiteRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedSiteRequest(name string, slug string) *NestedSiteRequest {
- this := NestedSiteRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedSiteRequestWithDefaults instantiates a new NestedSiteRequest object
-// This 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 NewNestedSiteRequestWithDefaults() *NestedSiteRequest {
- this := NestedSiteRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedSiteRequest) 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 *NestedSiteRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedSiteRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedSiteRequest) 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 *NestedSiteRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedSiteRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedSiteRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedSiteRequest) 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 *NestedSiteRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedSiteRequest := _NestedSiteRequest{}
-
- err = json.Unmarshal(data, &varNestedSiteRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedSiteRequest(varNestedSiteRequest)
-
- 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 NullableNestedSiteRequest struct {
- value *NestedSiteRequest
- isSet bool
-}
-
-func (v NullableNestedSiteRequest) Get() *NestedSiteRequest {
- return v.value
-}
-
-func (v *NullableNestedSiteRequest) Set(val *NestedSiteRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedSiteRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedSiteRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedSiteRequest(val *NestedSiteRequest) *NullableNestedSiteRequest {
- return &NullableNestedSiteRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedSiteRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedSiteRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tag.go b/model_nested_tag.go
index c506e43eb6..f03a0a999c 100644
--- a/model_nested_tag.go
+++ b/model_nested_tag.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go
index 7e0fd8dd59..f0d7d61b44 100644
--- a/model_nested_tag_request.go
+++ b/model_nested_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_tenant.go b/model_nested_tenant.go
deleted file mode 100644
index e8192916d6..0000000000
--- a/model_nested_tenant.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTenant type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTenant{}
-
-// NestedTenant Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedTenant struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTenant NestedTenant
-
-// NewNestedTenant instantiates a new NestedTenant object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTenant(id int32, url string, display string, name string, slug string) *NestedTenant {
- this := NestedTenant{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedTenantWithDefaults instantiates a new NestedTenant object
-// This 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 NewNestedTenantWithDefaults() *NestedTenant {
- this := NestedTenant{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedTenant) 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 *NestedTenant) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedTenant) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedTenant) 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 *NestedTenant) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedTenant) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedTenant) 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 *NestedTenant) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedTenant) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedTenant) 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 *NestedTenant) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTenant) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedTenant) 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 *NestedTenant) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedTenant) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedTenant) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTenant) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedTenant) 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",
- }
-
- 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)
- }
- }
-
- varNestedTenant := _NestedTenant{}
-
- err = json.Unmarshal(data, &varNestedTenant)
-
- if err != nil {
- return err
- }
-
- *o = NestedTenant(varNestedTenant)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedTenant struct {
- value *NestedTenant
- isSet bool
-}
-
-func (v NullableNestedTenant) Get() *NestedTenant {
- return v.value
-}
-
-func (v *NullableNestedTenant) Set(val *NestedTenant) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTenant) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTenant) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTenant(val *NestedTenant) *NullableNestedTenant {
- return &NullableNestedTenant{value: val, isSet: true}
-}
-
-func (v NullableNestedTenant) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTenant) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go
index 37fed0008b..a157ee354c 100644
--- a/model_nested_tenant_group.go
+++ b/model_nested_tenant_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go
index d2fdba41ec..c5ecbf890e 100644
--- a/model_nested_tenant_group_request.go
+++ b/model_nested_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_tenant_request.go b/model_nested_tenant_request.go
deleted file mode 100644
index 16d5d89e61..0000000000
--- a/model_nested_tenant_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTenantRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTenantRequest{}
-
-// NestedTenantRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedTenantRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTenantRequest NestedTenantRequest
-
-// NewNestedTenantRequest instantiates a new NestedTenantRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTenantRequest(name string, slug string) *NestedTenantRequest {
- this := NestedTenantRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedTenantRequestWithDefaults instantiates a new NestedTenantRequest object
-// This 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 NewNestedTenantRequestWithDefaults() *NestedTenantRequest {
- this := NestedTenantRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedTenantRequest) 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 *NestedTenantRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTenantRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedTenantRequest) 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 *NestedTenantRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedTenantRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedTenantRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTenantRequest) 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 *NestedTenantRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedTenantRequest := _NestedTenantRequest{}
-
- err = json.Unmarshal(data, &varNestedTenantRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedTenantRequest(varNestedTenantRequest)
-
- 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 NullableNestedTenantRequest struct {
- value *NestedTenantRequest
- isSet bool
-}
-
-func (v NullableNestedTenantRequest) Get() *NestedTenantRequest {
- return v.value
-}
-
-func (v *NullableNestedTenantRequest) Set(val *NestedTenantRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTenantRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTenantRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTenantRequest(val *NestedTenantRequest) *NullableNestedTenantRequest {
- return &NullableNestedTenantRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedTenantRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTenantRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tunnel.go b/model_nested_tunnel.go
deleted file mode 100644
index f47ace4d15..0000000000
--- a/model_nested_tunnel.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTunnel type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTunnel{}
-
-// NestedTunnel 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 NestedTunnel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTunnel NestedTunnel
-
-// NewNestedTunnel instantiates a new NestedTunnel object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTunnel(id int32, url string, display string, name string) *NestedTunnel {
- this := NestedTunnel{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedTunnelWithDefaults instantiates a new NestedTunnel object
-// This 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 NewNestedTunnelWithDefaults() *NestedTunnel {
- this := NestedTunnel{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedTunnel) 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 *NestedTunnel) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedTunnel) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedTunnel) 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 *NestedTunnel) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedTunnel) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedTunnel) 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 *NestedTunnel) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedTunnel) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedTunnel) 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 *NestedTunnel) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTunnel) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedTunnel) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTunnel) 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 *NestedTunnel) 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",
- }
-
- 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)
- }
- }
-
- varNestedTunnel := _NestedTunnel{}
-
- err = json.Unmarshal(data, &varNestedTunnel)
-
- if err != nil {
- return err
- }
-
- *o = NestedTunnel(varNestedTunnel)
-
- 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 NullableNestedTunnel struct {
- value *NestedTunnel
- isSet bool
-}
-
-func (v NullableNestedTunnel) Get() *NestedTunnel {
- return v.value
-}
-
-func (v *NullableNestedTunnel) Set(val *NestedTunnel) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTunnel) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTunnel) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTunnel(val *NestedTunnel) *NullableNestedTunnel {
- return &NullableNestedTunnel{value: val, isSet: true}
-}
-
-func (v NullableNestedTunnel) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTunnel) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tunnel_group.go b/model_nested_tunnel_group.go
deleted file mode 100644
index 65d8e088bf..0000000000
--- a/model_nested_tunnel_group.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTunnelGroup type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTunnelGroup{}
-
-// NestedTunnelGroup 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 NestedTunnelGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTunnelGroup NestedTunnelGroup
-
-// NewNestedTunnelGroup instantiates a new NestedTunnelGroup object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTunnelGroup(id int32, url string, display string, name string, slug string) *NestedTunnelGroup {
- this := NestedTunnelGroup{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedTunnelGroupWithDefaults instantiates a new NestedTunnelGroup object
-// This 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 NewNestedTunnelGroupWithDefaults() *NestedTunnelGroup {
- this := NestedTunnelGroup{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedTunnelGroup) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedTunnelGroup) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedTunnelGroup) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTunnelGroup) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedTunnelGroup) 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 *NestedTunnelGroup) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedTunnelGroup) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedTunnelGroup) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTunnelGroup) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedTunnelGroup) 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",
- }
-
- 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)
- }
- }
-
- varNestedTunnelGroup := _NestedTunnelGroup{}
-
- err = json.Unmarshal(data, &varNestedTunnelGroup)
-
- if err != nil {
- return err
- }
-
- *o = NestedTunnelGroup(varNestedTunnelGroup)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedTunnelGroup struct {
- value *NestedTunnelGroup
- isSet bool
-}
-
-func (v NullableNestedTunnelGroup) Get() *NestedTunnelGroup {
- return v.value
-}
-
-func (v *NullableNestedTunnelGroup) Set(val *NestedTunnelGroup) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTunnelGroup) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTunnelGroup) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTunnelGroup(val *NestedTunnelGroup) *NullableNestedTunnelGroup {
- return &NullableNestedTunnelGroup{value: val, isSet: true}
-}
-
-func (v NullableNestedTunnelGroup) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTunnelGroup) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tunnel_group_request.go b/model_nested_tunnel_group_request.go
deleted file mode 100644
index 2bfd14faa5..0000000000
--- a/model_nested_tunnel_group_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTunnelGroupRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTunnelGroupRequest{}
-
-// NestedTunnelGroupRequest 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 NestedTunnelGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTunnelGroupRequest NestedTunnelGroupRequest
-
-// NewNestedTunnelGroupRequest instantiates a new NestedTunnelGroupRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTunnelGroupRequest(name string, slug string) *NestedTunnelGroupRequest {
- this := NestedTunnelGroupRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedTunnelGroupRequestWithDefaults instantiates a new NestedTunnelGroupRequest object
-// This 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 NewNestedTunnelGroupRequestWithDefaults() *NestedTunnelGroupRequest {
- this := NestedTunnelGroupRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedTunnelGroupRequest) 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 *NestedTunnelGroupRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTunnelGroupRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedTunnelGroupRequest) 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 *NestedTunnelGroupRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedTunnelGroupRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedTunnelGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTunnelGroupRequest) 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 *NestedTunnelGroupRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedTunnelGroupRequest := _NestedTunnelGroupRequest{}
-
- err = json.Unmarshal(data, &varNestedTunnelGroupRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedTunnelGroupRequest(varNestedTunnelGroupRequest)
-
- 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 NullableNestedTunnelGroupRequest struct {
- value *NestedTunnelGroupRequest
- isSet bool
-}
-
-func (v NullableNestedTunnelGroupRequest) Get() *NestedTunnelGroupRequest {
- return v.value
-}
-
-func (v *NullableNestedTunnelGroupRequest) Set(val *NestedTunnelGroupRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTunnelGroupRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTunnelGroupRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTunnelGroupRequest(val *NestedTunnelGroupRequest) *NullableNestedTunnelGroupRequest {
- return &NullableNestedTunnelGroupRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedTunnelGroupRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTunnelGroupRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_tunnel_request.go b/model_nested_tunnel_request.go
deleted file mode 100644
index c211479f3b..0000000000
--- a/model_nested_tunnel_request.go
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedTunnelRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedTunnelRequest{}
-
-// NestedTunnelRequest 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 NestedTunnelRequest struct {
- Name string `json:"name"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedTunnelRequest NestedTunnelRequest
-
-// NewNestedTunnelRequest instantiates a new NestedTunnelRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedTunnelRequest(name string) *NestedTunnelRequest {
- this := NestedTunnelRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedTunnelRequestWithDefaults instantiates a new NestedTunnelRequest object
-// This 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 NewNestedTunnelRequestWithDefaults() *NestedTunnelRequest {
- this := NestedTunnelRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedTunnelRequest) 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 *NestedTunnelRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedTunnelRequest) SetName(v string) {
- o.Name = v
-}
-
-func (o NestedTunnelRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedTunnelRequest) 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 *NestedTunnelRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedTunnelRequest := _NestedTunnelRequest{}
-
- err = json.Unmarshal(data, &varNestedTunnelRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedTunnelRequest(varNestedTunnelRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedTunnelRequest struct {
- value *NestedTunnelRequest
- isSet bool
-}
-
-func (v NullableNestedTunnelRequest) Get() *NestedTunnelRequest {
- return v.value
-}
-
-func (v *NullableNestedTunnelRequest) Set(val *NestedTunnelRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedTunnelRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedTunnelRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedTunnelRequest(val *NestedTunnelRequest) *NullableNestedTunnelRequest {
- return &NullableNestedTunnelRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedTunnelRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedTunnelRequest) 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 63d4f33404..470de1affe 100644
--- a/model_nested_user.go
+++ b/model_nested_user.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_user_request.go b/model_nested_user_request.go
deleted file mode 100644
index 339ff8eaab..0000000000
--- a/model_nested_user_request.go
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedUserRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedUserRequest{}
-
-// NestedUserRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedUserRequest struct {
- // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedUserRequest NestedUserRequest
-
-// NewNestedUserRequest instantiates a new NestedUserRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedUserRequest(username string) *NestedUserRequest {
- this := NestedUserRequest{}
- this.Username = username
- return &this
-}
-
-// NewNestedUserRequestWithDefaults instantiates a new NestedUserRequest object
-// This 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 NewNestedUserRequestWithDefaults() *NestedUserRequest {
- this := NestedUserRequest{}
- return &this
-}
-
-// GetUsername returns the Username field value
-func (o *NestedUserRequest) 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 *NestedUserRequest) GetUsernameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Username, true
-}
-
-// SetUsername sets field value
-func (o *NestedUserRequest) SetUsername(v string) {
- o.Username = v
-}
-
-func (o NestedUserRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedUserRequest) 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 *NestedUserRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedUserRequest := _NestedUserRequest{}
-
- err = json.Unmarshal(data, &varNestedUserRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedUserRequest(varNestedUserRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "username")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedUserRequest struct {
- value *NestedUserRequest
- isSet bool
-}
-
-func (v NullableNestedUserRequest) Get() *NestedUserRequest {
- return v.value
-}
-
-func (v *NullableNestedUserRequest) Set(val *NestedUserRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedUserRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedUserRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedUserRequest(val *NestedUserRequest) *NullableNestedUserRequest {
- return &NullableNestedUserRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedUserRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedUserRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_virtual_chassis.go b/model_nested_virtual_chassis.go
deleted file mode 100644
index 96528d2937..0000000000
--- a/model_nested_virtual_chassis.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVirtualChassis type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVirtualChassis{}
-
-// NestedVirtualChassis Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedVirtualChassis struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Master NestedDevice `json:"master"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVirtualChassis NestedVirtualChassis
-
-// NewNestedVirtualChassis instantiates a new NestedVirtualChassis object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVirtualChassis(id int32, url string, display string, name string, master NestedDevice) *NestedVirtualChassis {
- this := NestedVirtualChassis{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Master = master
- return &this
-}
-
-// NewNestedVirtualChassisWithDefaults instantiates a new NestedVirtualChassis object
-// This 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 NewNestedVirtualChassisWithDefaults() *NestedVirtualChassis {
- this := NestedVirtualChassis{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedVirtualChassis) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedVirtualChassis) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedVirtualChassis) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedVirtualChassis) 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 *NestedVirtualChassis) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVirtualChassis) SetName(v string) {
- o.Name = v
-}
-
-// GetMaster returns the Master field value
-func (o *NestedVirtualChassis) GetMaster() NestedDevice {
- if o == nil {
- var ret NestedDevice
- return ret
- }
-
- return o.Master
-}
-
-// GetMasterOk returns a tuple with the Master field value
-// and a boolean to check if the value has been set.
-func (o *NestedVirtualChassis) GetMasterOk() (*NestedDevice, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Master, true
-}
-
-// SetMaster sets field value
-func (o *NestedVirtualChassis) SetMaster(v NestedDevice) {
- o.Master = v
-}
-
-func (o NestedVirtualChassis) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVirtualChassis) 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["master"] = o.Master
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedVirtualChassis) 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",
- "master",
- }
-
- 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)
- }
- }
-
- varNestedVirtualChassis := _NestedVirtualChassis{}
-
- err = json.Unmarshal(data, &varNestedVirtualChassis)
-
- if err != nil {
- return err
- }
-
- *o = NestedVirtualChassis(varNestedVirtualChassis)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedVirtualChassis struct {
- value *NestedVirtualChassis
- isSet bool
-}
-
-func (v NullableNestedVirtualChassis) Get() *NestedVirtualChassis {
- return v.value
-}
-
-func (v *NullableNestedVirtualChassis) Set(val *NestedVirtualChassis) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVirtualChassis) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVirtualChassis) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVirtualChassis(val *NestedVirtualChassis) *NullableNestedVirtualChassis {
- return &NullableNestedVirtualChassis{value: val, isSet: true}
-}
-
-func (v NullableNestedVirtualChassis) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVirtualChassis) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_virtual_chassis_request.go b/model_nested_virtual_chassis_request.go
deleted file mode 100644
index 8c7eab7532..0000000000
--- a/model_nested_virtual_chassis_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVirtualChassisRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVirtualChassisRequest{}
-
-// NestedVirtualChassisRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedVirtualChassisRequest struct {
- Name string `json:"name"`
- Master NestedDeviceRequest `json:"master"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVirtualChassisRequest NestedVirtualChassisRequest
-
-// NewNestedVirtualChassisRequest instantiates a new NestedVirtualChassisRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVirtualChassisRequest(name string, master NestedDeviceRequest) *NestedVirtualChassisRequest {
- this := NestedVirtualChassisRequest{}
- this.Name = name
- this.Master = master
- return &this
-}
-
-// NewNestedVirtualChassisRequestWithDefaults instantiates a new NestedVirtualChassisRequest object
-// This 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 NewNestedVirtualChassisRequestWithDefaults() *NestedVirtualChassisRequest {
- this := NestedVirtualChassisRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedVirtualChassisRequest) 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 *NestedVirtualChassisRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVirtualChassisRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetMaster returns the Master field value
-func (o *NestedVirtualChassisRequest) GetMaster() NestedDeviceRequest {
- if o == nil {
- var ret NestedDeviceRequest
- return ret
- }
-
- return o.Master
-}
-
-// GetMasterOk returns a tuple with the Master field value
-// and a boolean to check if the value has been set.
-func (o *NestedVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Master, true
-}
-
-// SetMaster sets field value
-func (o *NestedVirtualChassisRequest) SetMaster(v NestedDeviceRequest) {
- o.Master = v
-}
-
-func (o NestedVirtualChassisRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVirtualChassisRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- toSerialize["master"] = o.Master
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedVirtualChassisRequest) 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",
- "master",
- }
-
- 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)
- }
- }
-
- varNestedVirtualChassisRequest := _NestedVirtualChassisRequest{}
-
- err = json.Unmarshal(data, &varNestedVirtualChassisRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedVirtualChassisRequest(varNestedVirtualChassisRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "master")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedVirtualChassisRequest struct {
- value *NestedVirtualChassisRequest
- isSet bool
-}
-
-func (v NullableNestedVirtualChassisRequest) Get() *NestedVirtualChassisRequest {
- return v.value
-}
-
-func (v *NullableNestedVirtualChassisRequest) Set(val *NestedVirtualChassisRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVirtualChassisRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVirtualChassisRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVirtualChassisRequest(val *NestedVirtualChassisRequest) *NullableNestedVirtualChassisRequest {
- return &NullableNestedVirtualChassisRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedVirtualChassisRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVirtualChassisRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go
index 64734f5513..e19da59db9 100644
--- a/model_nested_virtual_machine.go
+++ b/model_nested_virtual_machine.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go
index 872c5916b2..7fb0d2b036 100644
--- a/model_nested_virtual_machine_request.go
+++ b/model_nested_virtual_machine_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_vlan.go b/model_nested_vlan.go
deleted file mode 100644
index 3a25582d79..0000000000
--- a/model_nested_vlan.go
+++ /dev/null
@@ -1,283 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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
-}
-
-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
-
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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_group.go b/model_nested_vlan_group.go
deleted file mode 100644
index d211e8f4f4..0000000000
--- a/model_nested_vlan_group.go
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVLANGroup type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVLANGroup{}
-
-// NestedVLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedVLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVLANGroup NestedVLANGroup
-
-// NewNestedVLANGroup instantiates a new NestedVLANGroup object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVLANGroup(id int32, url string, display string, name string, slug string) *NestedVLANGroup {
- this := NestedVLANGroup{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedVLANGroupWithDefaults instantiates a new NestedVLANGroup object
-// This 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 NewNestedVLANGroupWithDefaults() *NestedVLANGroup {
- this := NestedVLANGroup{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedVLANGroup) 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 *NestedVLANGroup) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedVLANGroup) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedVLANGroup) 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 *NestedVLANGroup) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedVLANGroup) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedVLANGroup) 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 *NestedVLANGroup) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedVLANGroup) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedVLANGroup) 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 *NestedVLANGroup) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVLANGroup) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedVLANGroup) 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 *NestedVLANGroup) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedVLANGroup) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedVLANGroup) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVLANGroup) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["id"] = o.Id
- toSerialize["url"] = o.Url
- toSerialize["display"] = o.Display
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedVLANGroup) 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",
- }
-
- 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)
- }
- }
-
- varNestedVLANGroup := _NestedVLANGroup{}
-
- err = json.Unmarshal(data, &varNestedVLANGroup)
-
- if err != nil {
- return err
- }
-
- *o = NestedVLANGroup(varNestedVLANGroup)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedVLANGroup struct {
- value *NestedVLANGroup
- isSet bool
-}
-
-func (v NullableNestedVLANGroup) Get() *NestedVLANGroup {
- return v.value
-}
-
-func (v *NullableNestedVLANGroup) Set(val *NestedVLANGroup) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVLANGroup) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVLANGroup) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVLANGroup(val *NestedVLANGroup) *NullableNestedVLANGroup {
- return &NullableNestedVLANGroup{value: val, isSet: true}
-}
-
-func (v NullableNestedVLANGroup) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVLANGroup) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_vlan_group_request.go b/model_nested_vlan_group_request.go
deleted file mode 100644
index 715c8c3c85..0000000000
--- a/model_nested_vlan_group_request.go
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVLANGroupRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVLANGroupRequest{}
-
-// NestedVLANGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedVLANGroupRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVLANGroupRequest NestedVLANGroupRequest
-
-// NewNestedVLANGroupRequest instantiates a new NestedVLANGroupRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVLANGroupRequest(name string, slug string) *NestedVLANGroupRequest {
- this := NestedVLANGroupRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewNestedVLANGroupRequestWithDefaults instantiates a new NestedVLANGroupRequest object
-// This 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 NewNestedVLANGroupRequestWithDefaults() *NestedVLANGroupRequest {
- this := NestedVLANGroupRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedVLANGroupRequest) 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 *NestedVLANGroupRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVLANGroupRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *NestedVLANGroupRequest) 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 *NestedVLANGroupRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *NestedVLANGroupRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-func (o NestedVLANGroupRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVLANGroupRequest) 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 *NestedVLANGroupRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedVLANGroupRequest := _NestedVLANGroupRequest{}
-
- err = json.Unmarshal(data, &varNestedVLANGroupRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedVLANGroupRequest(varNestedVLANGroupRequest)
-
- 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 NullableNestedVLANGroupRequest struct {
- value *NestedVLANGroupRequest
- isSet bool
-}
-
-func (v NullableNestedVLANGroupRequest) Get() *NestedVLANGroupRequest {
- return v.value
-}
-
-func (v *NullableNestedVLANGroupRequest) Set(val *NestedVLANGroupRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVLANGroupRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVLANGroupRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVLANGroupRequest(val *NestedVLANGroupRequest) *NullableNestedVLANGroupRequest {
- return &NullableNestedVLANGroupRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedVLANGroupRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVLANGroupRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_vlan_request.go b/model_nested_vlan_request.go
deleted file mode 100644
index 187ec231b9..0000000000
--- a/model_nested_vlan_request.go
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- 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
-}
-
-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
-
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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 6ac254121e..be16224316 100644
--- a/model_nested_vm_interface.go
+++ b/model_nested_vm_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go
index 8509ed2897..ee8ecb2a32 100644
--- a/model_nested_vm_interface_request.go
+++ b/model_nested_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_vrf.go b/model_nested_vrf.go
deleted file mode 100644
index be52990c2c..0000000000
--- a/model_nested_vrf.go
+++ /dev/null
@@ -1,302 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVRF type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVRF{}
-
-// NestedVRF Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedVRF struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- // Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVRF NestedVRF
-
-// NewNestedVRF instantiates a new NestedVRF object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVRF(id int32, url string, display string, name string) *NestedVRF {
- this := NestedVRF{}
- this.Id = id
- this.Url = url
- this.Display = display
- this.Name = name
- return &this
-}
-
-// NewNestedVRFWithDefaults instantiates a new NestedVRF object
-// This 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 NewNestedVRFWithDefaults() *NestedVRF {
- this := NestedVRF{}
- return &this
-}
-
-// GetId returns the Id field value
-func (o *NestedVRF) 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 *NestedVRF) GetIdOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Id, true
-}
-
-// SetId sets field value
-func (o *NestedVRF) SetId(v int32) {
- o.Id = v
-}
-
-// GetUrl returns the Url field value
-func (o *NestedVRF) 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 *NestedVRF) GetUrlOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Url, true
-}
-
-// SetUrl sets field value
-func (o *NestedVRF) SetUrl(v string) {
- o.Url = v
-}
-
-// GetDisplay returns the Display field value
-func (o *NestedVRF) 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 *NestedVRF) GetDisplayOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Display, true
-}
-
-// SetDisplay sets field value
-func (o *NestedVRF) SetDisplay(v string) {
- o.Display = v
-}
-
-// GetName returns the Name field value
-func (o *NestedVRF) 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 *NestedVRF) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVRF) 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 *NestedVRF) 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 *NestedVRF) 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 *NestedVRF) 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 *NestedVRF) SetRd(v string) {
- o.Rd.Set(&v)
-}
-
-// SetRdNil sets the value for Rd to be an explicit nil
-func (o *NestedVRF) SetRdNil() {
- o.Rd.Set(nil)
-}
-
-// UnsetRd ensures that no value is present for Rd, not even an explicit nil
-func (o *NestedVRF) UnsetRd() {
- o.Rd.Unset()
-}
-
-func (o NestedVRF) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVRF) 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()
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedVRF) 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",
- }
-
- 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)
- }
- }
-
- varNestedVRF := _NestedVRF{}
-
- err = json.Unmarshal(data, &varNestedVRF)
-
- if err != nil {
- return err
- }
-
- *o = NestedVRF(varNestedVRF)
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedVRF struct {
- value *NestedVRF
- isSet bool
-}
-
-func (v NullableNestedVRF) Get() *NestedVRF {
- return v.value
-}
-
-func (v *NullableNestedVRF) Set(val *NestedVRF) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVRF) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVRF) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVRF(val *NestedVRF) *NullableNestedVRF {
- return &NullableNestedVRF{value: val, isSet: true}
-}
-
-func (v NullableNestedVRF) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVRF) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_vrf_request.go b/model_nested_vrf_request.go
deleted file mode 100644
index 7cab8e9c22..0000000000
--- a/model_nested_vrf_request.go
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the NestedVRFRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedVRFRequest{}
-
-// NestedVRFRequest 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 NestedVRFRequest struct {
- Name string `json:"name"`
- // Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _NestedVRFRequest NestedVRFRequest
-
-// NewNestedVRFRequest instantiates a new NestedVRFRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewNestedVRFRequest(name string) *NestedVRFRequest {
- this := NestedVRFRequest{}
- this.Name = name
- return &this
-}
-
-// NewNestedVRFRequestWithDefaults instantiates a new NestedVRFRequest object
-// This 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 NewNestedVRFRequestWithDefaults() *NestedVRFRequest {
- this := NestedVRFRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *NestedVRFRequest) 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 *NestedVRFRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *NestedVRFRequest) 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 *NestedVRFRequest) 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 *NestedVRFRequest) 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 *NestedVRFRequest) 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 *NestedVRFRequest) SetRd(v string) {
- o.Rd.Set(&v)
-}
-
-// SetRdNil sets the value for Rd to be an explicit nil
-func (o *NestedVRFRequest) SetRdNil() {
- o.Rd.Set(nil)
-}
-
-// UnsetRd ensures that no value is present for Rd, not even an explicit nil
-func (o *NestedVRFRequest) UnsetRd() {
- o.Rd.Unset()
-}
-
-func (o NestedVRFRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o NestedVRFRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- if o.Rd.IsSet() {
- toSerialize["rd"] = o.Rd.Get()
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *NestedVRFRequest) 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",
- }
-
- 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)
- }
- }
-
- varNestedVRFRequest := _NestedVRFRequest{}
-
- err = json.Unmarshal(data, &varNestedVRFRequest)
-
- if err != nil {
- return err
- }
-
- *o = NestedVRFRequest(varNestedVRFRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "rd")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableNestedVRFRequest struct {
- value *NestedVRFRequest
- isSet bool
-}
-
-func (v NullableNestedVRFRequest) Get() *NestedVRFRequest {
- return v.value
-}
-
-func (v *NullableNestedVRFRequest) Set(val *NestedVRFRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableNestedVRFRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableNestedVRFRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableNestedVRFRequest(val *NestedVRFRequest) *NullableNestedVRFRequest {
- return &NullableNestedVRFRequest{value: val, isSet: true}
-}
-
-func (v NullableNestedVRFRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableNestedVRFRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go
deleted file mode 100644
index 847e4d7fd7..0000000000
--- a/model_nested_wireless_lan_group.go
+++ /dev/null
@@ -1,311 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- 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
-}
-
-// 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
- 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",
- }
-
- 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)
- }
- }
-
- 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")
- 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 35b9bf1432..8e8b204a17 100644
--- a/model_nested_wireless_lan_group_request.go
+++ b/model_nested_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go
index bf3549adf9..bc6328e76d 100644
--- a/model_nested_wireless_link.go
+++ b/model_nested_wireless_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go
index 48224da5fd..49e5860282 100644
--- a/model_nested_wireless_link_request.go
+++ b/model_nested_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_object_change.go b/model_object_change.go
index 4611bcdff6..24b5c95cce 100644
--- a/model_object_change.go
+++ b/model_object_change.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -25,7 +25,7 @@ type ObjectChange struct {
Url string `json:"url"`
Display string `json:"display"`
Time time.Time `json:"time"`
- User NestedUser `json:"user"`
+ User User `json:"user"`
UserName string `json:"user_name"`
RequestId string `json:"request_id"`
Action ObjectChangeAction `json:"action"`
@@ -43,7 +43,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 NestedUser, 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 User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange {
this := ObjectChange{}
this.Id = id
this.Url = url
@@ -166,9 +166,9 @@ func (o *ObjectChange) SetTime(v time.Time) {
}
// GetUser returns the User field value
-func (o *ObjectChange) GetUser() NestedUser {
+func (o *ObjectChange) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -177,7 +177,7 @@ func (o *ObjectChange) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *ObjectChange) GetUserOk() (*NestedUser, bool) {
+func (o *ObjectChange) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -185,7 +185,7 @@ func (o *ObjectChange) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *ObjectChange) SetUser(v NestedUser) {
+func (o *ObjectChange) SetUser(v User) {
o.User = v
}
diff --git a/model_object_change_action.go b/model_object_change_action.go
index dd4475e117..4e2bcdbc3c 100644
--- a/model_object_change_action.go
+++ b/model_object_change_action.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go
index de1dba8d58..ee7329967e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go
index 1ad7366640..59e9cd339d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_object_permission.go b/model_object_permission.go
index d0f592ac2e..7835c2b8d1 100644
--- a/model_object_permission.go
+++ b/model_object_permission.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,12 +27,12 @@ type ObjectPermission struct {
Description *string `json:"description,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
ObjectTypes []string `json:"object_types"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
// 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"`
+ Constraints interface{} `json:"constraints,omitempty"`
+ Groups []NestedGroup `json:"groups,omitempty"`
+ Users []NestedUser `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -245,70 +245,6 @@ func (o *ObjectPermission) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-// GetGroups returns the Groups field value if set, zero value otherwise.
-func (o *ObjectPermission) 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 *ObjectPermission) 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 *ObjectPermission) 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 *ObjectPermission) SetGroups(v []int32) {
- o.Groups = v
-}
-
-// GetUsers returns the Users field value if set, zero value otherwise.
-func (o *ObjectPermission) 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 *ObjectPermission) 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 *ObjectPermission) 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 *ObjectPermission) SetUsers(v []int32) {
- o.Users = v
-}
-
// GetActions returns the Actions field value
func (o *ObjectPermission) GetActions() []string {
if o == nil {
@@ -366,6 +302,70 @@ func (o *ObjectPermission) SetConstraints(v interface{}) {
o.Constraints = v
}
+// GetGroups returns the Groups field value if set, zero value otherwise.
+func (o *ObjectPermission) GetGroups() []NestedGroup {
+ if o == nil || IsNil(o.Groups) {
+ var ret []NestedGroup
+ 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 *ObjectPermission) GetGroupsOk() ([]NestedGroup, 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 *ObjectPermission) HasGroups() bool {
+ if o != nil && !IsNil(o.Groups) {
+ return true
+ }
+
+ return false
+}
+
+// SetGroups gets a reference to the given []NestedGroup and assigns it to the Groups field.
+func (o *ObjectPermission) SetGroups(v []NestedGroup) {
+ o.Groups = v
+}
+
+// GetUsers returns the Users field value if set, zero value otherwise.
+func (o *ObjectPermission) GetUsers() []NestedUser {
+ if o == nil || IsNil(o.Users) {
+ var ret []NestedUser
+ 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 *ObjectPermission) GetUsersOk() ([]NestedUser, 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 *ObjectPermission) HasUsers() bool {
+ if o != nil && !IsNil(o.Users) {
+ return true
+ }
+
+ return false
+}
+
+// SetUsers gets a reference to the given []NestedUser and assigns it to the Users field.
+func (o *ObjectPermission) SetUsers(v []NestedUser) {
+ o.Users = v
+}
+
func (o ObjectPermission) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -387,16 +387,16 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) {
toSerialize["enabled"] = o.Enabled
}
toSerialize["object_types"] = o.ObjectTypes
+ toSerialize["actions"] = o.Actions
+ if o.Constraints != nil {
+ toSerialize["constraints"] = o.Constraints
+ }
if !IsNil(o.Groups) {
toSerialize["groups"] = o.Groups
}
if !IsNil(o.Users) {
toSerialize["users"] = o.Users
}
- toSerialize["actions"] = o.Actions
- if o.Constraints != nil {
- toSerialize["constraints"] = o.Constraints
- }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -452,10 +452,10 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
delete(additionalProperties, "object_types")
- delete(additionalProperties, "groups")
- delete(additionalProperties, "users")
delete(additionalProperties, "actions")
delete(additionalProperties, "constraints")
+ delete(additionalProperties, "groups")
+ delete(additionalProperties, "users")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_object_permission_request.go b/model_object_permission_request.go
index 3db0d92886..05e9aa4e20 100644
--- a/model_object_permission_request.go
+++ b/model_object_permission_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,12 +24,12 @@ type ObjectPermissionRequest struct {
Description *string `json:"description,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
ObjectTypes []string `json:"object_types"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
// 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"`
AdditionalProperties map[string]interface{}
}
@@ -167,6 +167,63 @@ func (o *ObjectPermissionRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
+// GetActions returns the Actions field value
+func (o *ObjectPermissionRequest) GetActions() []string {
+ if o == nil {
+ var ret []string
+ return ret
+ }
+
+ return o.Actions
+}
+
+// GetActionsOk returns a tuple with the Actions field value
+// and a boolean to check if the value has been set.
+func (o *ObjectPermissionRequest) GetActionsOk() ([]string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Actions, true
+}
+
+// SetActions sets field value
+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 {
+ var ret interface{}
+ return ret
+ }
+ return o.Constraints
+}
+
+// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *ObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Constraints) {
+ return nil, false
+ }
+ return &o.Constraints, true
+}
+
+// HasConstraints returns a boolean if a field has been set.
+func (o *ObjectPermissionRequest) HasConstraints() bool {
+ if o != nil && !IsNil(o.Constraints) {
+ return true
+ }
+
+ return false
+}
+
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *ObjectPermissionRequest) SetConstraints(v interface{}) {
+ o.Constraints = v
+}
+
// GetGroups returns the Groups field value if set, zero value otherwise.
func (o *ObjectPermissionRequest) GetGroups() []int32 {
if o == nil || IsNil(o.Groups) {
@@ -231,63 +288,6 @@ func (o *ObjectPermissionRequest) SetUsers(v []int32) {
o.Users = v
}
-// GetActions returns the Actions field value
-func (o *ObjectPermissionRequest) GetActions() []string {
- if o == nil {
- var ret []string
- return ret
- }
-
- return o.Actions
-}
-
-// GetActionsOk returns a tuple with the Actions field value
-// and a boolean to check if the value has been set.
-func (o *ObjectPermissionRequest) GetActionsOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.Actions, true
-}
-
-// SetActions sets field value
-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 {
- var ret interface{}
- return ret
- }
- return o.Constraints
-}
-
-// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
- if o == nil || IsNil(o.Constraints) {
- return nil, false
- }
- return &o.Constraints, true
-}
-
-// HasConstraints returns a boolean if a field has been set.
-func (o *ObjectPermissionRequest) HasConstraints() bool {
- if o != nil && !IsNil(o.Constraints) {
- return true
- }
-
- return false
-}
-
-// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
-func (o *ObjectPermissionRequest) SetConstraints(v interface{}) {
- o.Constraints = v
-}
-
func (o ObjectPermissionRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -306,16 +306,16 @@ func (o ObjectPermissionRequest) ToMap() (map[string]interface{}, error) {
toSerialize["enabled"] = o.Enabled
}
toSerialize["object_types"] = o.ObjectTypes
+ toSerialize["actions"] = o.Actions
+ if o.Constraints != nil {
+ toSerialize["constraints"] = o.Constraints
+ }
if !IsNil(o.Groups) {
toSerialize["groups"] = o.Groups
}
if !IsNil(o.Users) {
toSerialize["users"] = o.Users
}
- toSerialize["actions"] = o.Actions
- if o.Constraints != nil {
- toSerialize["constraints"] = o.Constraints
- }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -365,10 +365,10 @@ func (o *ObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
delete(additionalProperties, "object_types")
- delete(additionalProperties, "groups")
- delete(additionalProperties, "users")
delete(additionalProperties, "actions")
delete(additionalProperties, "constraints")
+ delete(additionalProperties, "groups")
+ delete(additionalProperties, "users")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_content_type.go b/model_object_type.go
similarity index 68%
rename from model_content_type.go
rename to model_object_type.go
index ad19d82dd1..f08d354c94 100644
--- a/model_content_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,11 +15,11 @@ import (
"fmt"
)
-// checks if the ContentType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &ContentType{}
+// checks if the ObjectType type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ObjectType{}
-// ContentType struct for ContentType
-type ContentType struct {
+// ObjectType struct for ObjectType
+type ObjectType struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
@@ -28,14 +28,14 @@ type ContentType struct {
AdditionalProperties map[string]interface{}
}
-type _ContentType ContentType
+type _ObjectType ObjectType
-// NewContentType instantiates a new ContentType object
+// NewObjectType instantiates a new ObjectType object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewContentType(id int32, url string, display string, appLabel string, model string) *ContentType {
- this := ContentType{}
+func NewObjectType(id int32, url string, display string, appLabel string, model string) *ObjectType {
+ this := ObjectType{}
this.Id = id
this.Url = url
this.Display = display
@@ -44,16 +44,16 @@ func NewContentType(id int32, url string, display string, appLabel string, model
return &this
}
-// NewContentTypeWithDefaults instantiates a new ContentType object
+// NewObjectTypeWithDefaults instantiates a new ObjectType object
// This 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 NewContentTypeWithDefaults() *ContentType {
- this := ContentType{}
+func NewObjectTypeWithDefaults() *ObjectType {
+ this := ObjectType{}
return &this
}
// GetId returns the Id field value
-func (o *ContentType) GetId() int32 {
+func (o *ObjectType) GetId() int32 {
if o == nil {
var ret int32
return ret
@@ -64,7 +64,7 @@ func (o *ContentType) GetId() int32 {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
-func (o *ContentType) GetIdOk() (*int32, bool) {
+func (o *ObjectType) GetIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -72,12 +72,12 @@ func (o *ContentType) GetIdOk() (*int32, bool) {
}
// SetId sets field value
-func (o *ContentType) SetId(v int32) {
+func (o *ObjectType) SetId(v int32) {
o.Id = v
}
// GetUrl returns the Url field value
-func (o *ContentType) GetUrl() string {
+func (o *ObjectType) GetUrl() string {
if o == nil {
var ret string
return ret
@@ -88,7 +88,7 @@ func (o *ContentType) GetUrl() string {
// GetUrlOk returns a tuple with the Url field value
// and a boolean to check if the value has been set.
-func (o *ContentType) GetUrlOk() (*string, bool) {
+func (o *ObjectType) GetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -96,12 +96,12 @@ func (o *ContentType) GetUrlOk() (*string, bool) {
}
// SetUrl sets field value
-func (o *ContentType) SetUrl(v string) {
+func (o *ObjectType) SetUrl(v string) {
o.Url = v
}
// GetDisplay returns the Display field value
-func (o *ContentType) GetDisplay() string {
+func (o *ObjectType) GetDisplay() string {
if o == nil {
var ret string
return ret
@@ -112,7 +112,7 @@ func (o *ContentType) GetDisplay() string {
// GetDisplayOk returns a tuple with the Display field value
// and a boolean to check if the value has been set.
-func (o *ContentType) GetDisplayOk() (*string, bool) {
+func (o *ObjectType) GetDisplayOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -120,12 +120,12 @@ func (o *ContentType) GetDisplayOk() (*string, bool) {
}
// SetDisplay sets field value
-func (o *ContentType) SetDisplay(v string) {
+func (o *ObjectType) SetDisplay(v string) {
o.Display = v
}
// GetAppLabel returns the AppLabel field value
-func (o *ContentType) GetAppLabel() string {
+func (o *ObjectType) GetAppLabel() string {
if o == nil {
var ret string
return ret
@@ -136,7 +136,7 @@ func (o *ContentType) GetAppLabel() string {
// GetAppLabelOk returns a tuple with the AppLabel field value
// and a boolean to check if the value has been set.
-func (o *ContentType) GetAppLabelOk() (*string, bool) {
+func (o *ObjectType) GetAppLabelOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -144,12 +144,12 @@ func (o *ContentType) GetAppLabelOk() (*string, bool) {
}
// SetAppLabel sets field value
-func (o *ContentType) SetAppLabel(v string) {
+func (o *ObjectType) SetAppLabel(v string) {
o.AppLabel = v
}
// GetModel returns the Model field value
-func (o *ContentType) GetModel() string {
+func (o *ObjectType) GetModel() string {
if o == nil {
var ret string
return ret
@@ -160,7 +160,7 @@ func (o *ContentType) GetModel() string {
// GetModelOk returns a tuple with the Model field value
// and a boolean to check if the value has been set.
-func (o *ContentType) GetModelOk() (*string, bool) {
+func (o *ObjectType) GetModelOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -168,11 +168,11 @@ func (o *ContentType) GetModelOk() (*string, bool) {
}
// SetModel sets field value
-func (o *ContentType) SetModel(v string) {
+func (o *ObjectType) SetModel(v string) {
o.Model = v
}
-func (o ContentType) MarshalJSON() ([]byte, error) {
+func (o ObjectType) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -180,7 +180,7 @@ func (o ContentType) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o ContentType) ToMap() (map[string]interface{}, error) {
+func (o ObjectType) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
@@ -195,7 +195,7 @@ func (o ContentType) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *ContentType) UnmarshalJSON(data []byte) (err error) {
+func (o *ObjectType) 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.
@@ -221,15 +221,15 @@ func (o *ContentType) UnmarshalJSON(data []byte) (err error) {
}
}
- varContentType := _ContentType{}
+ varObjectType := _ObjectType{}
- err = json.Unmarshal(data, &varContentType)
+ err = json.Unmarshal(data, &varObjectType)
if err != nil {
return err
}
- *o = ContentType(varContentType)
+ *o = ObjectType(varObjectType)
additionalProperties := make(map[string]interface{})
@@ -245,38 +245,38 @@ func (o *ContentType) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullableContentType struct {
- value *ContentType
+type NullableObjectType struct {
+ value *ObjectType
isSet bool
}
-func (v NullableContentType) Get() *ContentType {
+func (v NullableObjectType) Get() *ObjectType {
return v.value
}
-func (v *NullableContentType) Set(val *ContentType) {
+func (v *NullableObjectType) Set(val *ObjectType) {
v.value = val
v.isSet = true
}
-func (v NullableContentType) IsSet() bool {
+func (v NullableObjectType) IsSet() bool {
return v.isSet
}
-func (v *NullableContentType) Unset() {
+func (v *NullableObjectType) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableContentType(val *ContentType) *NullableContentType {
- return &NullableContentType{value: val, isSet: true}
+func NewNullableObjectType(val *ObjectType) *NullableObjectType {
+ return &NullableObjectType{value: val, isSet: true}
}
-func (v NullableContentType) MarshalJSON() ([]byte, error) {
+func (v NullableObjectType) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableContentType) UnmarshalJSON(src []byte) error {
+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 ebcc9035f1..81e2b86033 100644
--- a/model_paginated_aggregate_list.go
+++ b/model_paginated_aggregate_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedAggregateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedAggregateList{}
// PaginatedAggregateList struct for PaginatedAggregateList
type PaginatedAggregateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Aggregate `json:"results,omitempty"`
+ Results []Aggregate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedAggregateList PaginatedAggregateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedAggregateList() *PaginatedAggregateList {
+func NewPaginatedAggregateList(count int32, results []Aggregate) *PaginatedAggregateList {
this := PaginatedAggregateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedAggregateListWithDefaults() *PaginatedAggregateList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedAggregateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedAggregateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedAggregateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedAggregateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedAggregateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedAggregateList) GetResults() []Aggregate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Aggregate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedAggregateList) GetResultsOk() ([]Aggregate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedAggregateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Aggregate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedAggregateList) SetResults(v []Aggregate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedAggregateList) MarshalJSON() ([]byte, error) {
func (o PaginatedAggregateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedAggregateList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedAggregateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedAggregateList := _PaginatedAggregateList{}
err = json.Unmarshal(data, &varPaginatedAggregateList)
diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go
index c4ff1d7627..183c0353f5 100644
--- a/model_paginated_asn_list.go
+++ b/model_paginated_asn_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedASNList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedASNList{}
// PaginatedASNList struct for PaginatedASNList
type PaginatedASNList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ASN `json:"results,omitempty"`
+ Results []ASN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedASNList PaginatedASNList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedASNList() *PaginatedASNList {
+func NewPaginatedASNList(count int32, results []ASN) *PaginatedASNList {
this := PaginatedASNList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedASNListWithDefaults() *PaginatedASNList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedASNList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedASNList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedASNList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedASNList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedASNList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedASNList) GetResults() []ASN {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ASN
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedASNList) GetResultsOk() ([]ASN, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedASNList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ASN and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedASNList) SetResults(v []ASN) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedASNList) MarshalJSON() ([]byte, error) {
func (o PaginatedASNList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedASNList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedASNList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedASNList := _PaginatedASNList{}
err = json.Unmarshal(data, &varPaginatedASNList)
diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go
index f9fbf174c2..d96366e065 100644
--- a/model_paginated_asn_range_list.go
+++ b/model_paginated_asn_range_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedASNRangeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedASNRangeList{}
// PaginatedASNRangeList struct for PaginatedASNRangeList
type PaginatedASNRangeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ASNRange `json:"results,omitempty"`
+ Results []ASNRange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedASNRangeList PaginatedASNRangeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedASNRangeList() *PaginatedASNRangeList {
+func NewPaginatedASNRangeList(count int32, results []ASNRange) *PaginatedASNRangeList {
this := PaginatedASNRangeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedASNRangeListWithDefaults() *PaginatedASNRangeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedASNRangeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedASNRangeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedASNRangeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedASNRangeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedASNRangeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedASNRangeList) GetResults() []ASNRange {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ASNRange
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedASNRangeList) GetResultsOk() ([]ASNRange, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedASNRangeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ASNRange and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedASNRangeList) SetResults(v []ASNRange) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedASNRangeList) MarshalJSON() ([]byte, error) {
func (o PaginatedASNRangeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedASNRangeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedASNRangeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedASNRangeList := _PaginatedASNRangeList{}
err = json.Unmarshal(data, &varPaginatedASNRangeList)
diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go
index 4b0d0723e4..64a4425b27 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedBookmarkList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedBookmarkList{}
// PaginatedBookmarkList struct for PaginatedBookmarkList
type PaginatedBookmarkList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Bookmark `json:"results,omitempty"`
+ Results []Bookmark `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedBookmarkList PaginatedBookmarkList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedBookmarkList() *PaginatedBookmarkList {
+func NewPaginatedBookmarkList(count int32, results []Bookmark) *PaginatedBookmarkList {
this := PaginatedBookmarkList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedBookmarkListWithDefaults() *PaginatedBookmarkList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedBookmarkList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedBookmarkList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedBookmarkList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedBookmarkList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedBookmarkList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedBookmarkList) GetResults() []Bookmark {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Bookmark
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedBookmarkList) GetResultsOk() ([]Bookmark, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedBookmarkList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Bookmark and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedBookmarkList) SetResults(v []Bookmark) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedBookmarkList) MarshalJSON() ([]byte, error) {
func (o PaginatedBookmarkList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedBookmarkList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedBookmarkList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedBookmarkList := _PaginatedBookmarkList{}
err = json.Unmarshal(data, &varPaginatedBookmarkList)
diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go
index adfd8a5699..cc214c3b23 100644
--- a/model_paginated_cable_list.go
+++ b/model_paginated_cable_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCableList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCableList{}
// PaginatedCableList struct for PaginatedCableList
type PaginatedCableList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Cable `json:"results,omitempty"`
+ Results []Cable `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCableList PaginatedCableList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCableList() *PaginatedCableList {
+func NewPaginatedCableList(count int32, results []Cable) *PaginatedCableList {
this := PaginatedCableList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCableListWithDefaults() *PaginatedCableList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCableList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCableList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCableList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCableList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCableList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCableList) GetResults() []Cable {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Cable
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCableList) GetResultsOk() ([]Cable, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCableList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Cable and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCableList) SetResults(v []Cable) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCableList) MarshalJSON() ([]byte, error) {
func (o PaginatedCableList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCableList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCableList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCableList := _PaginatedCableList{}
err = json.Unmarshal(data, &varPaginatedCableList)
diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go
index f1b5ad94c8..3a368c6b31 100644
--- a/model_paginated_cable_termination_list.go
+++ b/model_paginated_cable_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCableTerminationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCableTerminationList{}
// PaginatedCableTerminationList struct for PaginatedCableTerminationList
type PaginatedCableTerminationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CableTermination `json:"results,omitempty"`
+ Results []CableTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCableTerminationList PaginatedCableTerminationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCableTerminationList() *PaginatedCableTerminationList {
+func NewPaginatedCableTerminationList(count int32, results []CableTermination) *PaginatedCableTerminationList {
this := PaginatedCableTerminationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCableTerminationListWithDefaults() *PaginatedCableTerminationLi
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCableTerminationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCableTerminationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCableTerminationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCableTerminationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCableTerminationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCableTerminationList) GetResults() []CableTermination {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CableTermination
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCableTerminationList) GetResultsOk() ([]CableTermination, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCableTerminationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CableTermination and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCableTerminationList) SetResults(v []CableTermination) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCableTerminationList) MarshalJSON() ([]byte, error) {
func (o PaginatedCableTerminationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCableTerminationList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCableTerminationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCableTerminationList := _PaginatedCableTerminationList{}
err = json.Unmarshal(data, &varPaginatedCableTerminationList)
diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go
index e494cbaeb8..d2a32fd8a9 100644
--- a/model_paginated_circuit_list.go
+++ b/model_paginated_circuit_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCircuitList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitList{}
// PaginatedCircuitList struct for PaginatedCircuitList
type PaginatedCircuitList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Circuit `json:"results,omitempty"`
+ Results []Circuit `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCircuitList PaginatedCircuitList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCircuitList() *PaginatedCircuitList {
+func NewPaginatedCircuitList(count int32, results []Circuit) *PaginatedCircuitList {
this := PaginatedCircuitList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCircuitListWithDefaults() *PaginatedCircuitList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCircuitList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCircuitList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCircuitList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCircuitList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCircuitList) GetResults() []Circuit {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Circuit
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitList) GetResultsOk() ([]Circuit, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCircuitList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Circuit and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCircuitList) SetResults(v []Circuit) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCircuitList) MarshalJSON() ([]byte, error) {
func (o PaginatedCircuitList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCircuitList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCircuitList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCircuitList := _PaginatedCircuitList{}
err = json.Unmarshal(data, &varPaginatedCircuitList)
diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go
index b325b8df9a..71138eab95 100644
--- a/model_paginated_circuit_termination_list.go
+++ b/model_paginated_circuit_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCircuitTerminationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTerminationList{}
// PaginatedCircuitTerminationList struct for PaginatedCircuitTerminationList
type PaginatedCircuitTerminationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CircuitTermination `json:"results,omitempty"`
+ Results []CircuitTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCircuitTerminationList PaginatedCircuitTerminationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCircuitTerminationList() *PaginatedCircuitTerminationList {
+func NewPaginatedCircuitTerminationList(count int32, results []CircuitTermination) *PaginatedCircuitTerminationList {
this := PaginatedCircuitTerminationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCircuitTerminationListWithDefaults() *PaginatedCircuitTerminati
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCircuitTerminationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitTerminationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCircuitTerminationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCircuitTerminationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCircuitTerminationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCircuitTerminationList) GetResults() []CircuitTermination {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CircuitTermination
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitTerminationList) GetResultsOk() ([]CircuitTermination, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCircuitTerminationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CircuitTermination and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCircuitTerminationList) SetResults(v []CircuitTermination) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCircuitTerminationList) MarshalJSON() ([]byte, error) {
func (o PaginatedCircuitTerminationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCircuitTerminationList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedCircuitTerminationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCircuitTerminationList := _PaginatedCircuitTerminationList{}
err = json.Unmarshal(data, &varPaginatedCircuitTerminationList)
diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go
index 045275c6f6..1487938304 100644
--- a/model_paginated_circuit_type_list.go
+++ b/model_paginated_circuit_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCircuitTypeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTypeList{}
// PaginatedCircuitTypeList struct for PaginatedCircuitTypeList
type PaginatedCircuitTypeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CircuitType `json:"results,omitempty"`
+ Results []CircuitType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCircuitTypeList PaginatedCircuitTypeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCircuitTypeList() *PaginatedCircuitTypeList {
+func NewPaginatedCircuitTypeList(count int32, results []CircuitType) *PaginatedCircuitTypeList {
this := PaginatedCircuitTypeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCircuitTypeListWithDefaults() *PaginatedCircuitTypeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCircuitTypeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitTypeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCircuitTypeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCircuitTypeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCircuitTypeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCircuitTypeList) GetResults() []CircuitType {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CircuitType
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCircuitTypeList) GetResultsOk() ([]CircuitType, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCircuitTypeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CircuitType and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCircuitTypeList) SetResults(v []CircuitType) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCircuitTypeList) MarshalJSON() ([]byte, error) {
func (o PaginatedCircuitTypeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCircuitTypeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCircuitTypeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCircuitTypeList := _PaginatedCircuitTypeList{}
err = json.Unmarshal(data, &varPaginatedCircuitTypeList)
diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go
index de3f1c709d..2263a7dfb5 100644
--- a/model_paginated_cluster_group_list.go
+++ b/model_paginated_cluster_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedClusterGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterGroupList{}
// PaginatedClusterGroupList struct for PaginatedClusterGroupList
type PaginatedClusterGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ClusterGroup `json:"results,omitempty"`
+ Results []ClusterGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedClusterGroupList PaginatedClusterGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedClusterGroupList() *PaginatedClusterGroupList {
+func NewPaginatedClusterGroupList(count int32, results []ClusterGroup) *PaginatedClusterGroupList {
this := PaginatedClusterGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedClusterGroupListWithDefaults() *PaginatedClusterGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedClusterGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedClusterGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedClusterGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedClusterGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedClusterGroupList) GetResults() []ClusterGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ClusterGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterGroupList) GetResultsOk() ([]ClusterGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedClusterGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ClusterGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedClusterGroupList) SetResults(v []ClusterGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedClusterGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedClusterGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedClusterGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedClusterGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedClusterGroupList := _PaginatedClusterGroupList{}
err = json.Unmarshal(data, &varPaginatedClusterGroupList)
diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go
index b51aeb6740..da077b2c64 100644
--- a/model_paginated_cluster_list.go
+++ b/model_paginated_cluster_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedClusterList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterList{}
// PaginatedClusterList struct for PaginatedClusterList
type PaginatedClusterList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Cluster `json:"results,omitempty"`
+ Results []Cluster `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedClusterList PaginatedClusterList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedClusterList() *PaginatedClusterList {
+func NewPaginatedClusterList(count int32, results []Cluster) *PaginatedClusterList {
this := PaginatedClusterList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedClusterListWithDefaults() *PaginatedClusterList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedClusterList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedClusterList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedClusterList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedClusterList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedClusterList) GetResults() []Cluster {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Cluster
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterList) GetResultsOk() ([]Cluster, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedClusterList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Cluster and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedClusterList) SetResults(v []Cluster) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedClusterList) MarshalJSON() ([]byte, error) {
func (o PaginatedClusterList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedClusterList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedClusterList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedClusterList := _PaginatedClusterList{}
err = json.Unmarshal(data, &varPaginatedClusterList)
diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go
index c284015ecb..7243ef83d4 100644
--- a/model_paginated_cluster_type_list.go
+++ b/model_paginated_cluster_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedClusterTypeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterTypeList{}
// PaginatedClusterTypeList struct for PaginatedClusterTypeList
type PaginatedClusterTypeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ClusterType `json:"results,omitempty"`
+ Results []ClusterType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedClusterTypeList PaginatedClusterTypeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedClusterTypeList() *PaginatedClusterTypeList {
+func NewPaginatedClusterTypeList(count int32, results []ClusterType) *PaginatedClusterTypeList {
this := PaginatedClusterTypeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedClusterTypeListWithDefaults() *PaginatedClusterTypeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedClusterTypeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterTypeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedClusterTypeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedClusterTypeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedClusterTypeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedClusterTypeList) GetResults() []ClusterType {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ClusterType
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedClusterTypeList) GetResultsOk() ([]ClusterType, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedClusterTypeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ClusterType and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedClusterTypeList) SetResults(v []ClusterType) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedClusterTypeList) MarshalJSON() ([]byte, error) {
func (o PaginatedClusterTypeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedClusterTypeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedClusterTypeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedClusterTypeList := _PaginatedClusterTypeList{}
err = json.Unmarshal(data, &varPaginatedClusterTypeList)
diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go
index fcb1b57995..4db50833df 100644
--- a/model_paginated_config_context_list.go
+++ b/model_paginated_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConfigContextList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigContextList{}
// PaginatedConfigContextList struct for PaginatedConfigContextList
type PaginatedConfigContextList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConfigContext `json:"results,omitempty"`
+ Results []ConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConfigContextList PaginatedConfigContextList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConfigContextList() *PaginatedConfigContextList {
+func NewPaginatedConfigContextList(count int32, results []ConfigContext) *PaginatedConfigContextList {
this := PaginatedConfigContextList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConfigContextListWithDefaults() *PaginatedConfigContextList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConfigContextList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConfigContextList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConfigContextList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConfigContextList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConfigContextList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConfigContextList) GetResults() []ConfigContext {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConfigContext
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConfigContextList) GetResultsOk() ([]ConfigContext, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConfigContextList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConfigContext and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConfigContextList) SetResults(v []ConfigContext) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConfigContextList) MarshalJSON() ([]byte, error) {
func (o PaginatedConfigContextList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConfigContextList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedConfigContextList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConfigContextList := _PaginatedConfigContextList{}
err = json.Unmarshal(data, &varPaginatedConfigContextList)
diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go
index e1d641ad1c..36f8990fff 100644
--- a/model_paginated_config_template_list.go
+++ b/model_paginated_config_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConfigTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigTemplateList{}
// PaginatedConfigTemplateList struct for PaginatedConfigTemplateList
type PaginatedConfigTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConfigTemplate `json:"results,omitempty"`
+ Results []ConfigTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConfigTemplateList PaginatedConfigTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConfigTemplateList() *PaginatedConfigTemplateList {
+func NewPaginatedConfigTemplateList(count int32, results []ConfigTemplate) *PaginatedConfigTemplateList {
this := PaginatedConfigTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConfigTemplateListWithDefaults() *PaginatedConfigTemplateList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConfigTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConfigTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConfigTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConfigTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConfigTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConfigTemplateList) GetResults() []ConfigTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConfigTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConfigTemplateList) GetResultsOk() ([]ConfigTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConfigTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConfigTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConfigTemplateList) SetResults(v []ConfigTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConfigTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedConfigTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConfigTemplateList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedConfigTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConfigTemplateList := _PaginatedConfigTemplateList{}
err = json.Unmarshal(data, &varPaginatedConfigTemplateList)
diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go
index 0a7a57b58a..7d8bb83676 100644
--- a/model_paginated_console_port_list.go
+++ b/model_paginated_console_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConsolePortList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortList{}
// PaginatedConsolePortList struct for PaginatedConsolePortList
type PaginatedConsolePortList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConsolePort `json:"results,omitempty"`
+ Results []ConsolePort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConsolePortList PaginatedConsolePortList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConsolePortList() *PaginatedConsolePortList {
+func NewPaginatedConsolePortList(count int32, results []ConsolePort) *PaginatedConsolePortList {
this := PaginatedConsolePortList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConsolePortListWithDefaults() *PaginatedConsolePortList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConsolePortList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsolePortList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConsolePortList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConsolePortList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConsolePortList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConsolePortList) GetResults() []ConsolePort {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConsolePort
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsolePortList) GetResultsOk() ([]ConsolePort, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConsolePortList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConsolePort and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConsolePortList) SetResults(v []ConsolePort) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConsolePortList) MarshalJSON() ([]byte, error) {
func (o PaginatedConsolePortList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConsolePortList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedConsolePortList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConsolePortList := _PaginatedConsolePortList{}
err = json.Unmarshal(data, &varPaginatedConsolePortList)
diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go
index e964f5d557..b424049c9a 100644
--- a/model_paginated_console_port_template_list.go
+++ b/model_paginated_console_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConsolePortTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortTemplateList{}
// PaginatedConsolePortTemplateList struct for PaginatedConsolePortTemplateList
type PaginatedConsolePortTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConsolePortTemplate `json:"results,omitempty"`
+ Results []ConsolePortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConsolePortTemplateList PaginatedConsolePortTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConsolePortTemplateList() *PaginatedConsolePortTemplateList {
+func NewPaginatedConsolePortTemplateList(count int32, results []ConsolePortTemplate) *PaginatedConsolePortTemplateList {
this := PaginatedConsolePortTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConsolePortTemplateListWithDefaults() *PaginatedConsolePortTemp
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConsolePortTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsolePortTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConsolePortTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConsolePortTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConsolePortTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConsolePortTemplateList) GetResults() []ConsolePortTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConsolePortTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsolePortTemplateList) GetResultsOk() ([]ConsolePortTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConsolePortTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConsolePortTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConsolePortTemplateList) SetResults(v []ConsolePortTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConsolePortTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedConsolePortTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConsolePortTemplateList) ToMap() (map[string]interface{}, error
}
func (o *PaginatedConsolePortTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConsolePortTemplateList := _PaginatedConsolePortTemplateList{}
err = json.Unmarshal(data, &varPaginatedConsolePortTemplateList)
diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go
index 2122a980d4..adfb94743a 100644
--- a/model_paginated_console_server_port_list.go
+++ b/model_paginated_console_server_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConsoleServerPortList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortList{}
// PaginatedConsoleServerPortList struct for PaginatedConsoleServerPortList
type PaginatedConsoleServerPortList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConsoleServerPort `json:"results,omitempty"`
+ Results []ConsoleServerPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConsoleServerPortList PaginatedConsoleServerPortList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConsoleServerPortList() *PaginatedConsoleServerPortList {
+func NewPaginatedConsoleServerPortList(count int32, results []ConsoleServerPort) *PaginatedConsoleServerPortList {
this := PaginatedConsoleServerPortList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConsoleServerPortListWithDefaults() *PaginatedConsoleServerPort
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConsoleServerPortList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsoleServerPortList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConsoleServerPortList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConsoleServerPortList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConsoleServerPortList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConsoleServerPortList) GetResults() []ConsoleServerPort {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConsoleServerPort
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsoleServerPortList) GetResultsOk() ([]ConsoleServerPort, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConsoleServerPortList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConsoleServerPort and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConsoleServerPortList) SetResults(v []ConsoleServerPort) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConsoleServerPortList) MarshalJSON() ([]byte, error) {
func (o PaginatedConsoleServerPortList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConsoleServerPortList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedConsoleServerPortList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConsoleServerPortList := _PaginatedConsoleServerPortList{}
err = json.Unmarshal(data, &varPaginatedConsoleServerPortList)
diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go
index 905e9a19ab..51278f9f82 100644
--- a/model_paginated_console_server_port_template_list.go
+++ b/model_paginated_console_server_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedConsoleServerPortTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortTemplateList{}
// PaginatedConsoleServerPortTemplateList struct for PaginatedConsoleServerPortTemplateList
type PaginatedConsoleServerPortTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ConsoleServerPortTemplate `json:"results,omitempty"`
+ Results []ConsoleServerPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedConsoleServerPortTemplateList PaginatedConsoleServerPortTemplateL
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedConsoleServerPortTemplateList() *PaginatedConsoleServerPortTemplateList {
+func NewPaginatedConsoleServerPortTemplateList(count int32, results []ConsoleServerPortTemplate) *PaginatedConsoleServerPortTemplateList {
this := PaginatedConsoleServerPortTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedConsoleServerPortTemplateListWithDefaults() *PaginatedConsoleSe
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedConsoleServerPortTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsoleServerPortTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedConsoleServerPortTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedConsoleServerPortTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedConsoleServerPortTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedConsoleServerPortTemplateList) GetResults() []ConsoleServerPortTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ConsoleServerPortTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedConsoleServerPortTemplateList) GetResultsOk() ([]ConsoleServerPortTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedConsoleServerPortTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ConsoleServerPortTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedConsoleServerPortTemplateList) SetResults(v []ConsoleServerPortTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedConsoleServerPortTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedConsoleServerPortTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedConsoleServerPortTemplateList) ToMap() (map[string]interface{},
}
func (o *PaginatedConsoleServerPortTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedConsoleServerPortTemplateList := _PaginatedConsoleServerPortTemplateList{}
err = json.Unmarshal(data, &varPaginatedConsoleServerPortTemplateList)
diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go
index 9ead29c774..ea9e239461 100644
--- a/model_paginated_contact_assignment_list.go
+++ b/model_paginated_contact_assignment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedContactAssignmentList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedContactAssignmentList{}
// PaginatedContactAssignmentList struct for PaginatedContactAssignmentList
type PaginatedContactAssignmentList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ContactAssignment `json:"results,omitempty"`
+ Results []ContactAssignment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedContactAssignmentList PaginatedContactAssignmentList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedContactAssignmentList() *PaginatedContactAssignmentList {
+func NewPaginatedContactAssignmentList(count int32, results []ContactAssignment) *PaginatedContactAssignmentList {
this := PaginatedContactAssignmentList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedContactAssignmentListWithDefaults() *PaginatedContactAssignment
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedContactAssignmentList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactAssignmentList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedContactAssignmentList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedContactAssignmentList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedContactAssignmentList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedContactAssignmentList) GetResults() []ContactAssignment {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ContactAssignment
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactAssignmentList) GetResultsOk() ([]ContactAssignment, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedContactAssignmentList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ContactAssignment and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedContactAssignmentList) SetResults(v []ContactAssignment) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedContactAssignmentList) MarshalJSON() ([]byte, error) {
func (o PaginatedContactAssignmentList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedContactAssignmentList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedContactAssignmentList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedContactAssignmentList := _PaginatedContactAssignmentList{}
err = json.Unmarshal(data, &varPaginatedContactAssignmentList)
diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go
index f19e119231..77bd6c70f2 100644
--- a/model_paginated_contact_group_list.go
+++ b/model_paginated_contact_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedContactGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedContactGroupList{}
// PaginatedContactGroupList struct for PaginatedContactGroupList
type PaginatedContactGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ContactGroup `json:"results,omitempty"`
+ Results []ContactGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedContactGroupList PaginatedContactGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedContactGroupList() *PaginatedContactGroupList {
+func NewPaginatedContactGroupList(count int32, results []ContactGroup) *PaginatedContactGroupList {
this := PaginatedContactGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedContactGroupListWithDefaults() *PaginatedContactGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedContactGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedContactGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedContactGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedContactGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedContactGroupList) GetResults() []ContactGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ContactGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactGroupList) GetResultsOk() ([]ContactGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedContactGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ContactGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedContactGroupList) SetResults(v []ContactGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedContactGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedContactGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedContactGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedContactGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedContactGroupList := _PaginatedContactGroupList{}
err = json.Unmarshal(data, &varPaginatedContactGroupList)
diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go
index 7562a21d36..72294eba7b 100644
--- a/model_paginated_contact_list.go
+++ b/model_paginated_contact_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedContactList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedContactList{}
// PaginatedContactList struct for PaginatedContactList
type PaginatedContactList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Contact `json:"results,omitempty"`
+ Results []Contact `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedContactList PaginatedContactList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedContactList() *PaginatedContactList {
+func NewPaginatedContactList(count int32, results []Contact) *PaginatedContactList {
this := PaginatedContactList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedContactListWithDefaults() *PaginatedContactList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedContactList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedContactList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedContactList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedContactList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedContactList) GetResults() []Contact {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Contact
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactList) GetResultsOk() ([]Contact, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedContactList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Contact and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedContactList) SetResults(v []Contact) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedContactList) MarshalJSON() ([]byte, error) {
func (o PaginatedContactList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedContactList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedContactList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedContactList := _PaginatedContactList{}
err = json.Unmarshal(data, &varPaginatedContactList)
diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go
index 01e95f0633..fc486241c6 100644
--- a/model_paginated_contact_role_list.go
+++ b/model_paginated_contact_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedContactRoleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedContactRoleList{}
// PaginatedContactRoleList struct for PaginatedContactRoleList
type PaginatedContactRoleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ContactRole `json:"results,omitempty"`
+ Results []ContactRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedContactRoleList PaginatedContactRoleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedContactRoleList() *PaginatedContactRoleList {
+func NewPaginatedContactRoleList(count int32, results []ContactRole) *PaginatedContactRoleList {
this := PaginatedContactRoleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedContactRoleListWithDefaults() *PaginatedContactRoleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedContactRoleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactRoleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedContactRoleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedContactRoleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedContactRoleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedContactRoleList) GetResults() []ContactRole {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ContactRole
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedContactRoleList) GetResultsOk() ([]ContactRole, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedContactRoleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ContactRole and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedContactRoleList) SetResults(v []ContactRole) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedContactRoleList) MarshalJSON() ([]byte, error) {
func (o PaginatedContactRoleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedContactRoleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedContactRoleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedContactRoleList := _PaginatedContactRoleList{}
err = json.Unmarshal(data, &varPaginatedContactRoleList)
diff --git a/model_paginated_content_type_list.go b/model_paginated_content_type_list.go
deleted file mode 100644
index 9a2b25d29d..0000000000
--- a/model_paginated_content_type_list.go
+++ /dev/null
@@ -1,286 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the PaginatedContentTypeList type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PaginatedContentTypeList{}
-
-// PaginatedContentTypeList struct for PaginatedContentTypeList
-type PaginatedContentTypeList struct {
- Count *int32 `json:"count,omitempty"`
- Next NullableString `json:"next,omitempty"`
- Previous NullableString `json:"previous,omitempty"`
- Results []ContentType `json:"results,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _PaginatedContentTypeList PaginatedContentTypeList
-
-// NewPaginatedContentTypeList instantiates a new PaginatedContentTypeList object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewPaginatedContentTypeList() *PaginatedContentTypeList {
- this := PaginatedContentTypeList{}
- return &this
-}
-
-// NewPaginatedContentTypeListWithDefaults instantiates a new PaginatedContentTypeList object
-// This 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 NewPaginatedContentTypeListWithDefaults() *PaginatedContentTypeList {
- this := PaginatedContentTypeList{}
- return &this
-}
-
-// GetCount returns the Count field value if set, zero value otherwise.
-func (o *PaginatedContentTypeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
- var ret int32
- return ret
- }
- return *o.Count
-}
-
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PaginatedContentTypeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
- return nil, false
- }
- return o.Count, true
-}
-
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedContentTypeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
-func (o *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) SetNext(v string) {
- o.Next.Set(&v)
-}
-
-// SetNextNil sets the value for Next to be an explicit nil
-func (o *PaginatedContentTypeList) SetNextNil() {
- o.Next.Set(nil)
-}
-
-// UnsetNext ensures that no value is present for Next, not even an explicit nil
-func (o *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) 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 *PaginatedContentTypeList) SetPrevious(v string) {
- o.Previous.Set(&v)
-}
-
-// SetPreviousNil sets the value for Previous to be an explicit nil
-func (o *PaginatedContentTypeList) SetPreviousNil() {
- o.Previous.Set(nil)
-}
-
-// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
-func (o *PaginatedContentTypeList) UnsetPrevious() {
- o.Previous.Unset()
-}
-
-// GetResults returns the Results field value if set, zero value otherwise.
-func (o *PaginatedContentTypeList) GetResults() []ContentType {
- if o == nil || IsNil(o.Results) {
- var ret []ContentType
- return ret
- }
- return o.Results
-}
-
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PaginatedContentTypeList) GetResultsOk() ([]ContentType, bool) {
- if o == nil || IsNil(o.Results) {
- return nil, false
- }
- return o.Results, true
-}
-
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedContentTypeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ContentType and assigns it to the Results field.
-func (o *PaginatedContentTypeList) SetResults(v []ContentType) {
- o.Results = v
-}
-
-func (o PaginatedContentTypeList) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o PaginatedContentTypeList) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
- if o.Next.IsSet() {
- toSerialize["next"] = o.Next.Get()
- }
- if o.Previous.IsSet() {
- toSerialize["previous"] = o.Previous.Get()
- }
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *PaginatedContentTypeList) UnmarshalJSON(data []byte) (err error) {
- varPaginatedContentTypeList := _PaginatedContentTypeList{}
-
- err = json.Unmarshal(data, &varPaginatedContentTypeList)
-
- if err != nil {
- return err
- }
-
- *o = PaginatedContentTypeList(varPaginatedContentTypeList)
-
- 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 NullablePaginatedContentTypeList struct {
- value *PaginatedContentTypeList
- isSet bool
-}
-
-func (v NullablePaginatedContentTypeList) Get() *PaginatedContentTypeList {
- return v.value
-}
-
-func (v *NullablePaginatedContentTypeList) Set(val *PaginatedContentTypeList) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullablePaginatedContentTypeList) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullablePaginatedContentTypeList) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullablePaginatedContentTypeList(val *PaginatedContentTypeList) *NullablePaginatedContentTypeList {
- return &NullablePaginatedContentTypeList{value: val, isSet: true}
-}
-
-func (v NullablePaginatedContentTypeList) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullablePaginatedContentTypeList) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go
index 11856807b2..48e25bb94b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCustomFieldChoiceSetList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldChoiceSetList{}
// PaginatedCustomFieldChoiceSetList struct for PaginatedCustomFieldChoiceSetList
type PaginatedCustomFieldChoiceSetList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CustomFieldChoiceSet `json:"results,omitempty"`
+ Results []CustomFieldChoiceSet `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCustomFieldChoiceSetList PaginatedCustomFieldChoiceSetList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCustomFieldChoiceSetList() *PaginatedCustomFieldChoiceSetList {
+func NewPaginatedCustomFieldChoiceSetList(count int32, results []CustomFieldChoiceSet) *PaginatedCustomFieldChoiceSetList {
this := PaginatedCustomFieldChoiceSetList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCustomFieldChoiceSetListWithDefaults() *PaginatedCustomFieldCho
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCustomFieldChoiceSetList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomFieldChoiceSetList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCustomFieldChoiceSetList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCustomFieldChoiceSetList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCustomFieldChoiceSetList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCustomFieldChoiceSetList) GetResults() []CustomFieldChoiceSet {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CustomFieldChoiceSet
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomFieldChoiceSetList) GetResultsOk() ([]CustomFieldChoiceSet, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCustomFieldChoiceSetList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CustomFieldChoiceSet and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCustomFieldChoiceSetList) SetResults(v []CustomFieldChoiceSet) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCustomFieldChoiceSetList) MarshalJSON() ([]byte, error) {
func (o PaginatedCustomFieldChoiceSetList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCustomFieldChoiceSetList) ToMap() (map[string]interface{}, erro
}
func (o *PaginatedCustomFieldChoiceSetList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCustomFieldChoiceSetList := _PaginatedCustomFieldChoiceSetList{}
err = json.Unmarshal(data, &varPaginatedCustomFieldChoiceSetList)
diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go
index 3f5ac47aa2..1f0c58fc05 100644
--- a/model_paginated_custom_field_list.go
+++ b/model_paginated_custom_field_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCustomFieldList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldList{}
// PaginatedCustomFieldList struct for PaginatedCustomFieldList
type PaginatedCustomFieldList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CustomField `json:"results,omitempty"`
+ Results []CustomField `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCustomFieldList PaginatedCustomFieldList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCustomFieldList() *PaginatedCustomFieldList {
+func NewPaginatedCustomFieldList(count int32, results []CustomField) *PaginatedCustomFieldList {
this := PaginatedCustomFieldList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCustomFieldListWithDefaults() *PaginatedCustomFieldList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCustomFieldList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomFieldList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCustomFieldList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCustomFieldList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCustomFieldList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCustomFieldList) GetResults() []CustomField {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CustomField
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomFieldList) GetResultsOk() ([]CustomField, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCustomFieldList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CustomField and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCustomFieldList) SetResults(v []CustomField) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCustomFieldList) MarshalJSON() ([]byte, error) {
func (o PaginatedCustomFieldList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCustomFieldList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCustomFieldList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCustomFieldList := _PaginatedCustomFieldList{}
err = json.Unmarshal(data, &varPaginatedCustomFieldList)
diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go
index 3b8e722660..00815cc84c 100644
--- a/model_paginated_custom_link_list.go
+++ b/model_paginated_custom_link_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedCustomLinkList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomLinkList{}
// PaginatedCustomLinkList struct for PaginatedCustomLinkList
type PaginatedCustomLinkList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []CustomLink `json:"results,omitempty"`
+ Results []CustomLink `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedCustomLinkList PaginatedCustomLinkList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedCustomLinkList() *PaginatedCustomLinkList {
+func NewPaginatedCustomLinkList(count int32, results []CustomLink) *PaginatedCustomLinkList {
this := PaginatedCustomLinkList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedCustomLinkListWithDefaults() *PaginatedCustomLinkList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedCustomLinkList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomLinkList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedCustomLinkList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedCustomLinkList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedCustomLinkList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedCustomLinkList) GetResults() []CustomLink {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []CustomLink
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedCustomLinkList) GetResultsOk() ([]CustomLink, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedCustomLinkList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []CustomLink and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedCustomLinkList) SetResults(v []CustomLink) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedCustomLinkList) MarshalJSON() ([]byte, error) {
func (o PaginatedCustomLinkList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedCustomLinkList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedCustomLinkList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedCustomLinkList := _PaginatedCustomLinkList{}
err = json.Unmarshal(data, &varPaginatedCustomLinkList)
diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go
index d2a1693ff3..260f045b2d 100644
--- a/model_paginated_data_file_list.go
+++ b/model_paginated_data_file_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDataFileList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDataFileList{}
// PaginatedDataFileList struct for PaginatedDataFileList
type PaginatedDataFileList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DataFile `json:"results,omitempty"`
+ Results []DataFile `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDataFileList PaginatedDataFileList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDataFileList() *PaginatedDataFileList {
+func NewPaginatedDataFileList(count int32, results []DataFile) *PaginatedDataFileList {
this := PaginatedDataFileList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDataFileListWithDefaults() *PaginatedDataFileList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDataFileList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDataFileList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDataFileList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDataFileList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDataFileList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDataFileList) GetResults() []DataFile {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DataFile
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDataFileList) GetResultsOk() ([]DataFile, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDataFileList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DataFile and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDataFileList) SetResults(v []DataFile) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDataFileList) MarshalJSON() ([]byte, error) {
func (o PaginatedDataFileList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDataFileList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedDataFileList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDataFileList := _PaginatedDataFileList{}
err = json.Unmarshal(data, &varPaginatedDataFileList)
diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go
index 2c69ff9873..326295e6d9 100644
--- a/model_paginated_data_source_list.go
+++ b/model_paginated_data_source_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDataSourceList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDataSourceList{}
// PaginatedDataSourceList struct for PaginatedDataSourceList
type PaginatedDataSourceList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DataSource `json:"results,omitempty"`
+ Results []DataSource `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDataSourceList PaginatedDataSourceList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDataSourceList() *PaginatedDataSourceList {
+func NewPaginatedDataSourceList(count int32, results []DataSource) *PaginatedDataSourceList {
this := PaginatedDataSourceList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDataSourceListWithDefaults() *PaginatedDataSourceList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDataSourceList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDataSourceList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDataSourceList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDataSourceList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDataSourceList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDataSourceList) GetResults() []DataSource {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DataSource
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDataSourceList) GetResultsOk() ([]DataSource, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDataSourceList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DataSource and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDataSourceList) SetResults(v []DataSource) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDataSourceList) MarshalJSON() ([]byte, error) {
func (o PaginatedDataSourceList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDataSourceList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedDataSourceList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDataSourceList := _PaginatedDataSourceList{}
err = json.Unmarshal(data, &varPaginatedDataSourceList)
diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go
index 94d58c65c8..c83d4e2c60 100644
--- a/model_paginated_device_bay_list.go
+++ b/model_paginated_device_bay_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDeviceBayList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayList{}
// PaginatedDeviceBayList struct for PaginatedDeviceBayList
type PaginatedDeviceBayList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DeviceBay `json:"results,omitempty"`
+ Results []DeviceBay `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDeviceBayList PaginatedDeviceBayList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDeviceBayList() *PaginatedDeviceBayList {
+func NewPaginatedDeviceBayList(count int32, results []DeviceBay) *PaginatedDeviceBayList {
this := PaginatedDeviceBayList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDeviceBayListWithDefaults() *PaginatedDeviceBayList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDeviceBayList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceBayList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDeviceBayList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDeviceBayList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDeviceBayList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDeviceBayList) GetResults() []DeviceBay {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DeviceBay
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceBayList) GetResultsOk() ([]DeviceBay, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDeviceBayList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DeviceBay and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDeviceBayList) SetResults(v []DeviceBay) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDeviceBayList) MarshalJSON() ([]byte, error) {
func (o PaginatedDeviceBayList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDeviceBayList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedDeviceBayList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDeviceBayList := _PaginatedDeviceBayList{}
err = json.Unmarshal(data, &varPaginatedDeviceBayList)
diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go
index 2bf0d2705c..45928db4d5 100644
--- a/model_paginated_device_bay_template_list.go
+++ b/model_paginated_device_bay_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDeviceBayTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayTemplateList{}
// PaginatedDeviceBayTemplateList struct for PaginatedDeviceBayTemplateList
type PaginatedDeviceBayTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DeviceBayTemplate `json:"results,omitempty"`
+ Results []DeviceBayTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDeviceBayTemplateList PaginatedDeviceBayTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDeviceBayTemplateList() *PaginatedDeviceBayTemplateList {
+func NewPaginatedDeviceBayTemplateList(count int32, results []DeviceBayTemplate) *PaginatedDeviceBayTemplateList {
this := PaginatedDeviceBayTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDeviceBayTemplateListWithDefaults() *PaginatedDeviceBayTemplate
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDeviceBayTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceBayTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDeviceBayTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDeviceBayTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDeviceBayTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDeviceBayTemplateList) GetResults() []DeviceBayTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DeviceBayTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceBayTemplateList) GetResultsOk() ([]DeviceBayTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDeviceBayTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DeviceBayTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDeviceBayTemplateList) SetResults(v []DeviceBayTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDeviceBayTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedDeviceBayTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDeviceBayTemplateList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedDeviceBayTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDeviceBayTemplateList := _PaginatedDeviceBayTemplateList{}
err = json.Unmarshal(data, &varPaginatedDeviceBayTemplateList)
diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go
index f974d55cc3..15f1f91b8c 100644
--- a/model_paginated_device_role_list.go
+++ b/model_paginated_device_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDeviceRoleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceRoleList{}
// PaginatedDeviceRoleList struct for PaginatedDeviceRoleList
type PaginatedDeviceRoleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DeviceRole `json:"results,omitempty"`
+ Results []DeviceRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDeviceRoleList PaginatedDeviceRoleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDeviceRoleList() *PaginatedDeviceRoleList {
+func NewPaginatedDeviceRoleList(count int32, results []DeviceRole) *PaginatedDeviceRoleList {
this := PaginatedDeviceRoleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDeviceRoleListWithDefaults() *PaginatedDeviceRoleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDeviceRoleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceRoleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDeviceRoleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDeviceRoleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDeviceRoleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDeviceRoleList) GetResults() []DeviceRole {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DeviceRole
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceRoleList) GetResultsOk() ([]DeviceRole, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDeviceRoleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DeviceRole and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDeviceRoleList) SetResults(v []DeviceRole) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDeviceRoleList) MarshalJSON() ([]byte, error) {
func (o PaginatedDeviceRoleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDeviceRoleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedDeviceRoleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDeviceRoleList := _PaginatedDeviceRoleList{}
err = json.Unmarshal(data, &varPaginatedDeviceRoleList)
diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go
index 756c6b2248..66636b1bf8 100644
--- a/model_paginated_device_type_list.go
+++ b/model_paginated_device_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDeviceTypeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceTypeList{}
// PaginatedDeviceTypeList struct for PaginatedDeviceTypeList
type PaginatedDeviceTypeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DeviceType `json:"results,omitempty"`
+ Results []DeviceType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDeviceTypeList PaginatedDeviceTypeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDeviceTypeList() *PaginatedDeviceTypeList {
+func NewPaginatedDeviceTypeList(count int32, results []DeviceType) *PaginatedDeviceTypeList {
this := PaginatedDeviceTypeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDeviceTypeListWithDefaults() *PaginatedDeviceTypeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDeviceTypeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceTypeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDeviceTypeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDeviceTypeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDeviceTypeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDeviceTypeList) GetResults() []DeviceType {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DeviceType
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceTypeList) GetResultsOk() ([]DeviceType, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDeviceTypeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DeviceType and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDeviceTypeList) SetResults(v []DeviceType) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDeviceTypeList) MarshalJSON() ([]byte, error) {
func (o PaginatedDeviceTypeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDeviceTypeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedDeviceTypeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDeviceTypeList := _PaginatedDeviceTypeList{}
err = json.Unmarshal(data, &varPaginatedDeviceTypeList)
diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go
index b4a67a6b49..654c3dff0b 100644
--- a/model_paginated_device_with_config_context_list.go
+++ b/model_paginated_device_with_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedDeviceWithConfigContextList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceWithConfigContextList{}
// PaginatedDeviceWithConfigContextList struct for PaginatedDeviceWithConfigContextList
type PaginatedDeviceWithConfigContextList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []DeviceWithConfigContext `json:"results,omitempty"`
+ Results []DeviceWithConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedDeviceWithConfigContextList PaginatedDeviceWithConfigContextList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedDeviceWithConfigContextList() *PaginatedDeviceWithConfigContextList {
+func NewPaginatedDeviceWithConfigContextList(count int32, results []DeviceWithConfigContext) *PaginatedDeviceWithConfigContextList {
this := PaginatedDeviceWithConfigContextList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedDeviceWithConfigContextListWithDefaults() *PaginatedDeviceWithC
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedDeviceWithConfigContextList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceWithConfigContextList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedDeviceWithConfigContextList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedDeviceWithConfigContextList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedDeviceWithConfigContextList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedDeviceWithConfigContextList) GetResults() []DeviceWithConfigContext {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []DeviceWithConfigContext
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedDeviceWithConfigContextList) GetResultsOk() ([]DeviceWithConfigContext, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedDeviceWithConfigContextList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []DeviceWithConfigContext and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedDeviceWithConfigContextList) SetResults(v []DeviceWithConfigContext) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedDeviceWithConfigContextList) MarshalJSON() ([]byte, error) {
func (o PaginatedDeviceWithConfigContextList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedDeviceWithConfigContextList) ToMap() (map[string]interface{}, e
}
func (o *PaginatedDeviceWithConfigContextList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedDeviceWithConfigContextList := _PaginatedDeviceWithConfigContextList{}
err = json.Unmarshal(data, &varPaginatedDeviceWithConfigContextList)
diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go
index b289d6c1e1..0d05d05cdb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedEventRuleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedEventRuleList{}
// PaginatedEventRuleList struct for PaginatedEventRuleList
type PaginatedEventRuleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []EventRule `json:"results,omitempty"`
+ Results []EventRule `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedEventRuleList PaginatedEventRuleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedEventRuleList() *PaginatedEventRuleList {
+func NewPaginatedEventRuleList(count int32, results []EventRule) *PaginatedEventRuleList {
this := PaginatedEventRuleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedEventRuleListWithDefaults() *PaginatedEventRuleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedEventRuleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedEventRuleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedEventRuleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedEventRuleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedEventRuleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedEventRuleList) GetResults() []EventRule {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []EventRule
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedEventRuleList) GetResultsOk() ([]EventRule, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedEventRuleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []EventRule and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedEventRuleList) SetResults(v []EventRule) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedEventRuleList) MarshalJSON() ([]byte, error) {
func (o PaginatedEventRuleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedEventRuleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedEventRuleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedEventRuleList := _PaginatedEventRuleList{}
err = json.Unmarshal(data, &varPaginatedEventRuleList)
diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go
index 2538b52cd0..d1160be70a 100644
--- a/model_paginated_export_template_list.go
+++ b/model_paginated_export_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedExportTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedExportTemplateList{}
// PaginatedExportTemplateList struct for PaginatedExportTemplateList
type PaginatedExportTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ExportTemplate `json:"results,omitempty"`
+ Results []ExportTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedExportTemplateList PaginatedExportTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedExportTemplateList() *PaginatedExportTemplateList {
+func NewPaginatedExportTemplateList(count int32, results []ExportTemplate) *PaginatedExportTemplateList {
this := PaginatedExportTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedExportTemplateListWithDefaults() *PaginatedExportTemplateList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedExportTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedExportTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedExportTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedExportTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedExportTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedExportTemplateList) GetResults() []ExportTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ExportTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedExportTemplateList) GetResultsOk() ([]ExportTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedExportTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ExportTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedExportTemplateList) SetResults(v []ExportTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedExportTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedExportTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedExportTemplateList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedExportTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedExportTemplateList := _PaginatedExportTemplateList{}
err = json.Unmarshal(data, &varPaginatedExportTemplateList)
diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go
index 6e7cc96e81..45ede081cc 100644
--- a/model_paginated_fhrp_group_assignment_list.go
+++ b/model_paginated_fhrp_group_assignment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedFHRPGroupAssignmentList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupAssignmentList{}
// PaginatedFHRPGroupAssignmentList struct for PaginatedFHRPGroupAssignmentList
type PaginatedFHRPGroupAssignmentList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []FHRPGroupAssignment `json:"results,omitempty"`
+ Results []FHRPGroupAssignment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedFHRPGroupAssignmentList PaginatedFHRPGroupAssignmentList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedFHRPGroupAssignmentList() *PaginatedFHRPGroupAssignmentList {
+func NewPaginatedFHRPGroupAssignmentList(count int32, results []FHRPGroupAssignment) *PaginatedFHRPGroupAssignmentList {
this := PaginatedFHRPGroupAssignmentList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedFHRPGroupAssignmentListWithDefaults() *PaginatedFHRPGroupAssign
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedFHRPGroupAssignmentList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedFHRPGroupAssignmentList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedFHRPGroupAssignmentList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedFHRPGroupAssignmentList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedFHRPGroupAssignmentList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedFHRPGroupAssignmentList) GetResults() []FHRPGroupAssignment {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []FHRPGroupAssignment
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedFHRPGroupAssignmentList) GetResultsOk() ([]FHRPGroupAssignment, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedFHRPGroupAssignmentList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []FHRPGroupAssignment and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedFHRPGroupAssignmentList) SetResults(v []FHRPGroupAssignment) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedFHRPGroupAssignmentList) MarshalJSON() ([]byte, error) {
func (o PaginatedFHRPGroupAssignmentList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedFHRPGroupAssignmentList) ToMap() (map[string]interface{}, error
}
func (o *PaginatedFHRPGroupAssignmentList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedFHRPGroupAssignmentList := _PaginatedFHRPGroupAssignmentList{}
err = json.Unmarshal(data, &varPaginatedFHRPGroupAssignmentList)
diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go
index 31e77291d1..a0faea7598 100644
--- a/model_paginated_fhrp_group_list.go
+++ b/model_paginated_fhrp_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedFHRPGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupList{}
// PaginatedFHRPGroupList struct for PaginatedFHRPGroupList
type PaginatedFHRPGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []FHRPGroup `json:"results,omitempty"`
+ Results []FHRPGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedFHRPGroupList PaginatedFHRPGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedFHRPGroupList() *PaginatedFHRPGroupList {
+func NewPaginatedFHRPGroupList(count int32, results []FHRPGroup) *PaginatedFHRPGroupList {
this := PaginatedFHRPGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedFHRPGroupListWithDefaults() *PaginatedFHRPGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedFHRPGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedFHRPGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedFHRPGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedFHRPGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedFHRPGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedFHRPGroupList) GetResults() []FHRPGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []FHRPGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedFHRPGroupList) GetResultsOk() ([]FHRPGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedFHRPGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []FHRPGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedFHRPGroupList) SetResults(v []FHRPGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedFHRPGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedFHRPGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedFHRPGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedFHRPGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedFHRPGroupList := _PaginatedFHRPGroupList{}
err = json.Unmarshal(data, &varPaginatedFHRPGroupList)
diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go
index dc214f8fc4..4e6f4d89fb 100644
--- a/model_paginated_front_port_list.go
+++ b/model_paginated_front_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedFrontPortList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortList{}
// PaginatedFrontPortList struct for PaginatedFrontPortList
type PaginatedFrontPortList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []FrontPort `json:"results,omitempty"`
+ Results []FrontPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedFrontPortList PaginatedFrontPortList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedFrontPortList() *PaginatedFrontPortList {
+func NewPaginatedFrontPortList(count int32, results []FrontPort) *PaginatedFrontPortList {
this := PaginatedFrontPortList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedFrontPortListWithDefaults() *PaginatedFrontPortList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedFrontPortList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedFrontPortList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedFrontPortList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedFrontPortList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedFrontPortList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedFrontPortList) GetResults() []FrontPort {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []FrontPort
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedFrontPortList) GetResultsOk() ([]FrontPort, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedFrontPortList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []FrontPort and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedFrontPortList) SetResults(v []FrontPort) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedFrontPortList) MarshalJSON() ([]byte, error) {
func (o PaginatedFrontPortList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedFrontPortList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedFrontPortList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedFrontPortList := _PaginatedFrontPortList{}
err = json.Unmarshal(data, &varPaginatedFrontPortList)
diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go
index 52ffde2a06..66bfe434b8 100644
--- a/model_paginated_front_port_template_list.go
+++ b/model_paginated_front_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedFrontPortTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortTemplateList{}
// PaginatedFrontPortTemplateList struct for PaginatedFrontPortTemplateList
type PaginatedFrontPortTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []FrontPortTemplate `json:"results,omitempty"`
+ Results []FrontPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedFrontPortTemplateList PaginatedFrontPortTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedFrontPortTemplateList() *PaginatedFrontPortTemplateList {
+func NewPaginatedFrontPortTemplateList(count int32, results []FrontPortTemplate) *PaginatedFrontPortTemplateList {
this := PaginatedFrontPortTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedFrontPortTemplateListWithDefaults() *PaginatedFrontPortTemplate
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedFrontPortTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedFrontPortTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedFrontPortTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedFrontPortTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedFrontPortTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedFrontPortTemplateList) GetResults() []FrontPortTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []FrontPortTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedFrontPortTemplateList) GetResultsOk() ([]FrontPortTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedFrontPortTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []FrontPortTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedFrontPortTemplateList) SetResults(v []FrontPortTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedFrontPortTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedFrontPortTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedFrontPortTemplateList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedFrontPortTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedFrontPortTemplateList := _PaginatedFrontPortTemplateList{}
err = json.Unmarshal(data, &varPaginatedFrontPortTemplateList)
diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go
index f8e9dd4cfa..4c9d727810 100644
--- a/model_paginated_group_list.go
+++ b/model_paginated_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedGroupList{}
// PaginatedGroupList struct for PaginatedGroupList
type PaginatedGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Group `json:"results,omitempty"`
+ Results []Group `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedGroupList PaginatedGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedGroupList() *PaginatedGroupList {
+func NewPaginatedGroupList(count int32, results []Group) *PaginatedGroupList {
this := PaginatedGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedGroupListWithDefaults() *PaginatedGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedGroupList) GetResults() []Group {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Group
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedGroupList) GetResultsOk() ([]Group, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Group and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedGroupList) SetResults(v []Group) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedGroupList := _PaginatedGroupList{}
err = json.Unmarshal(data, &varPaginatedGroupList)
diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go
index a1fa10291b..f49bbcfd25 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIKEPolicyList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEPolicyList{}
// PaginatedIKEPolicyList struct for PaginatedIKEPolicyList
type PaginatedIKEPolicyList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IKEPolicy `json:"results,omitempty"`
+ Results []IKEPolicy `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIKEPolicyList PaginatedIKEPolicyList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIKEPolicyList() *PaginatedIKEPolicyList {
+func NewPaginatedIKEPolicyList(count int32, results []IKEPolicy) *PaginatedIKEPolicyList {
this := PaginatedIKEPolicyList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIKEPolicyListWithDefaults() *PaginatedIKEPolicyList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIKEPolicyList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIKEPolicyList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIKEPolicyList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIKEPolicyList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIKEPolicyList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIKEPolicyList) GetResults() []IKEPolicy {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IKEPolicy
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIKEPolicyList) GetResultsOk() ([]IKEPolicy, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIKEPolicyList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IKEPolicy and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIKEPolicyList) SetResults(v []IKEPolicy) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIKEPolicyList) MarshalJSON() ([]byte, error) {
func (o PaginatedIKEPolicyList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIKEPolicyList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIKEPolicyList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIKEPolicyList := _PaginatedIKEPolicyList{}
err = json.Unmarshal(data, &varPaginatedIKEPolicyList)
diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go
index 4afd65569d..7a9cb122bb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIKEProposalList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEProposalList{}
// PaginatedIKEProposalList struct for PaginatedIKEProposalList
type PaginatedIKEProposalList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IKEProposal `json:"results,omitempty"`
+ Results []IKEProposal `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIKEProposalList PaginatedIKEProposalList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIKEProposalList() *PaginatedIKEProposalList {
+func NewPaginatedIKEProposalList(count int32, results []IKEProposal) *PaginatedIKEProposalList {
this := PaginatedIKEProposalList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIKEProposalListWithDefaults() *PaginatedIKEProposalList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIKEProposalList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIKEProposalList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIKEProposalList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIKEProposalList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIKEProposalList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIKEProposalList) GetResults() []IKEProposal {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IKEProposal
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIKEProposalList) GetResultsOk() ([]IKEProposal, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIKEProposalList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IKEProposal and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIKEProposalList) SetResults(v []IKEProposal) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIKEProposalList) MarshalJSON() ([]byte, error) {
func (o PaginatedIKEProposalList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIKEProposalList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIKEProposalList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIKEProposalList := _PaginatedIKEProposalList{}
err = json.Unmarshal(data, &varPaginatedIKEProposalList)
diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go
index f12604a2c4..0dcc7260c8 100644
--- a/model_paginated_image_attachment_list.go
+++ b/model_paginated_image_attachment_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedImageAttachmentList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedImageAttachmentList{}
// PaginatedImageAttachmentList struct for PaginatedImageAttachmentList
type PaginatedImageAttachmentList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ImageAttachment `json:"results,omitempty"`
+ Results []ImageAttachment `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedImageAttachmentList PaginatedImageAttachmentList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedImageAttachmentList() *PaginatedImageAttachmentList {
+func NewPaginatedImageAttachmentList(count int32, results []ImageAttachment) *PaginatedImageAttachmentList {
this := PaginatedImageAttachmentList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedImageAttachmentListWithDefaults() *PaginatedImageAttachmentList
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedImageAttachmentList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedImageAttachmentList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedImageAttachmentList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedImageAttachmentList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedImageAttachmentList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedImageAttachmentList) GetResults() []ImageAttachment {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ImageAttachment
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedImageAttachmentList) GetResultsOk() ([]ImageAttachment, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedImageAttachmentList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ImageAttachment and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedImageAttachmentList) SetResults(v []ImageAttachment) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedImageAttachmentList) MarshalJSON() ([]byte, error) {
func (o PaginatedImageAttachmentList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedImageAttachmentList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedImageAttachmentList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedImageAttachmentList := _PaginatedImageAttachmentList{}
err = json.Unmarshal(data, &varPaginatedImageAttachmentList)
diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go
index 6add99a918..9ea763c865 100644
--- a/model_paginated_interface_list.go
+++ b/model_paginated_interface_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedInterfaceList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceList{}
// PaginatedInterfaceList struct for PaginatedInterfaceList
type PaginatedInterfaceList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Interface `json:"results,omitempty"`
+ Results []Interface `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedInterfaceList PaginatedInterfaceList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedInterfaceList() *PaginatedInterfaceList {
+func NewPaginatedInterfaceList(count int32, results []Interface) *PaginatedInterfaceList {
this := PaginatedInterfaceList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedInterfaceListWithDefaults() *PaginatedInterfaceList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedInterfaceList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedInterfaceList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedInterfaceList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedInterfaceList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedInterfaceList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedInterfaceList) GetResults() []Interface {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Interface
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedInterfaceList) GetResultsOk() ([]Interface, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedInterfaceList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Interface and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedInterfaceList) SetResults(v []Interface) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedInterfaceList) MarshalJSON() ([]byte, error) {
func (o PaginatedInterfaceList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedInterfaceList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedInterfaceList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedInterfaceList := _PaginatedInterfaceList{}
err = json.Unmarshal(data, &varPaginatedInterfaceList)
diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go
index b5b5f391fc..c7f17dff34 100644
--- a/model_paginated_interface_template_list.go
+++ b/model_paginated_interface_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedInterfaceTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceTemplateList{}
// PaginatedInterfaceTemplateList struct for PaginatedInterfaceTemplateList
type PaginatedInterfaceTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []InterfaceTemplate `json:"results,omitempty"`
+ Results []InterfaceTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedInterfaceTemplateList PaginatedInterfaceTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedInterfaceTemplateList() *PaginatedInterfaceTemplateList {
+func NewPaginatedInterfaceTemplateList(count int32, results []InterfaceTemplate) *PaginatedInterfaceTemplateList {
this := PaginatedInterfaceTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedInterfaceTemplateListWithDefaults() *PaginatedInterfaceTemplate
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedInterfaceTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedInterfaceTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedInterfaceTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedInterfaceTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedInterfaceTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedInterfaceTemplateList) GetResults() []InterfaceTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []InterfaceTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedInterfaceTemplateList) GetResultsOk() ([]InterfaceTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedInterfaceTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []InterfaceTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedInterfaceTemplateList) SetResults(v []InterfaceTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedInterfaceTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedInterfaceTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedInterfaceTemplateList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedInterfaceTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedInterfaceTemplateList := _PaginatedInterfaceTemplateList{}
err = json.Unmarshal(data, &varPaginatedInterfaceTemplateList)
diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go
index 9e4455dd00..8eae06c5de 100644
--- a/model_paginated_inventory_item_list.go
+++ b/model_paginated_inventory_item_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedInventoryItemList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemList{}
// PaginatedInventoryItemList struct for PaginatedInventoryItemList
type PaginatedInventoryItemList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItem `json:"results,omitempty"`
+ Results []InventoryItem `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedInventoryItemList PaginatedInventoryItemList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedInventoryItemList() *PaginatedInventoryItemList {
+func NewPaginatedInventoryItemList(count int32, results []InventoryItem) *PaginatedInventoryItemList {
this := PaginatedInventoryItemList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedInventoryItemListWithDefaults() *PaginatedInventoryItemList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedInventoryItemList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedInventoryItemList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedInventoryItemList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedInventoryItemList) GetResults() []InventoryItem {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []InventoryItem
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemList) GetResultsOk() ([]InventoryItem, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []InventoryItem and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedInventoryItemList) SetResults(v []InventoryItem) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedInventoryItemList) MarshalJSON() ([]byte, error) {
func (o PaginatedInventoryItemList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedInventoryItemList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedInventoryItemList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedInventoryItemList := _PaginatedInventoryItemList{}
err = json.Unmarshal(data, &varPaginatedInventoryItemList)
diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go
index f8277755e0..7a3dfa86ab 100644
--- a/model_paginated_inventory_item_role_list.go
+++ b/model_paginated_inventory_item_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedInventoryItemRoleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemRoleList{}
// PaginatedInventoryItemRoleList struct for PaginatedInventoryItemRoleList
type PaginatedInventoryItemRoleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItemRole `json:"results,omitempty"`
+ Results []InventoryItemRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedInventoryItemRoleList PaginatedInventoryItemRoleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedInventoryItemRoleList() *PaginatedInventoryItemRoleList {
+func NewPaginatedInventoryItemRoleList(count int32, results []InventoryItemRole) *PaginatedInventoryItemRoleList {
this := PaginatedInventoryItemRoleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedInventoryItemRoleListWithDefaults() *PaginatedInventoryItemRole
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedInventoryItemRoleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemRoleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemRoleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedInventoryItemRoleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedInventoryItemRoleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedInventoryItemRoleList) GetResults() []InventoryItemRole {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []InventoryItemRole
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemRoleList) GetResultsOk() ([]InventoryItemRole, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemRoleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []InventoryItemRole and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedInventoryItemRoleList) SetResults(v []InventoryItemRole) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedInventoryItemRoleList) MarshalJSON() ([]byte, error) {
func (o PaginatedInventoryItemRoleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedInventoryItemRoleList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedInventoryItemRoleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedInventoryItemRoleList := _PaginatedInventoryItemRoleList{}
err = json.Unmarshal(data, &varPaginatedInventoryItemRoleList)
diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go
index 0d95971f7a..8e1ebbaad3 100644
--- a/model_paginated_inventory_item_template_list.go
+++ b/model_paginated_inventory_item_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedInventoryItemTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemTemplateList{}
// PaginatedInventoryItemTemplateList struct for PaginatedInventoryItemTemplateList
type PaginatedInventoryItemTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []InventoryItemTemplate `json:"results,omitempty"`
+ Results []InventoryItemTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedInventoryItemTemplateList PaginatedInventoryItemTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedInventoryItemTemplateList() *PaginatedInventoryItemTemplateList {
+func NewPaginatedInventoryItemTemplateList(count int32, results []InventoryItemTemplate) *PaginatedInventoryItemTemplateList {
this := PaginatedInventoryItemTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedInventoryItemTemplateListWithDefaults() *PaginatedInventoryItem
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedInventoryItemTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedInventoryItemTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedInventoryItemTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedInventoryItemTemplateList) GetResults() []InventoryItemTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []InventoryItemTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedInventoryItemTemplateList) GetResultsOk() ([]InventoryItemTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedInventoryItemTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []InventoryItemTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedInventoryItemTemplateList) SetResults(v []InventoryItemTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedInventoryItemTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedInventoryItemTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedInventoryItemTemplateList) ToMap() (map[string]interface{}, err
}
func (o *PaginatedInventoryItemTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedInventoryItemTemplateList := _PaginatedInventoryItemTemplateList{}
err = json.Unmarshal(data, &varPaginatedInventoryItemTemplateList)
diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go
index cc079962d9..71c624ba55 100644
--- a/model_paginated_ip_address_list.go
+++ b/model_paginated_ip_address_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIPAddressList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIPAddressList{}
// PaginatedIPAddressList struct for PaginatedIPAddressList
type PaginatedIPAddressList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IPAddress `json:"results,omitempty"`
+ Results []IPAddress `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIPAddressList PaginatedIPAddressList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIPAddressList() *PaginatedIPAddressList {
+func NewPaginatedIPAddressList(count int32, results []IPAddress) *PaginatedIPAddressList {
this := PaginatedIPAddressList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIPAddressListWithDefaults() *PaginatedIPAddressList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIPAddressList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPAddressList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIPAddressList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIPAddressList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIPAddressList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIPAddressList) GetResults() []IPAddress {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IPAddress
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPAddressList) GetResultsOk() ([]IPAddress, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIPAddressList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IPAddress and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIPAddressList) SetResults(v []IPAddress) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIPAddressList) MarshalJSON() ([]byte, error) {
func (o PaginatedIPAddressList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIPAddressList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIPAddressList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIPAddressList := _PaginatedIPAddressList{}
err = json.Unmarshal(data, &varPaginatedIPAddressList)
diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go
index e82b639f58..64b6c2ca53 100644
--- a/model_paginated_ip_range_list.go
+++ b/model_paginated_ip_range_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIPRangeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIPRangeList{}
// PaginatedIPRangeList struct for PaginatedIPRangeList
type PaginatedIPRangeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IPRange `json:"results,omitempty"`
+ Results []IPRange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIPRangeList PaginatedIPRangeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIPRangeList() *PaginatedIPRangeList {
+func NewPaginatedIPRangeList(count int32, results []IPRange) *PaginatedIPRangeList {
this := PaginatedIPRangeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIPRangeListWithDefaults() *PaginatedIPRangeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIPRangeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPRangeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIPRangeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIPRangeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIPRangeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIPRangeList) GetResults() []IPRange {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IPRange
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPRangeList) GetResultsOk() ([]IPRange, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIPRangeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IPRange and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIPRangeList) SetResults(v []IPRange) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIPRangeList) MarshalJSON() ([]byte, error) {
func (o PaginatedIPRangeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIPRangeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIPRangeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIPRangeList := _PaginatedIPRangeList{}
err = json.Unmarshal(data, &varPaginatedIPRangeList)
diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go
index c0de5ae9a7..3904a40213 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIPSecPolicyList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecPolicyList{}
// PaginatedIPSecPolicyList struct for PaginatedIPSecPolicyList
type PaginatedIPSecPolicyList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IPSecPolicy `json:"results,omitempty"`
+ Results []IPSecPolicy `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIPSecPolicyList PaginatedIPSecPolicyList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIPSecPolicyList() *PaginatedIPSecPolicyList {
+func NewPaginatedIPSecPolicyList(count int32, results []IPSecPolicy) *PaginatedIPSecPolicyList {
this := PaginatedIPSecPolicyList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIPSecPolicyListWithDefaults() *PaginatedIPSecPolicyList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIPSecPolicyList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecPolicyList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIPSecPolicyList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIPSecPolicyList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIPSecPolicyList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIPSecPolicyList) GetResults() []IPSecPolicy {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IPSecPolicy
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecPolicyList) GetResultsOk() ([]IPSecPolicy, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIPSecPolicyList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IPSecPolicy and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIPSecPolicyList) SetResults(v []IPSecPolicy) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIPSecPolicyList) MarshalJSON() ([]byte, error) {
func (o PaginatedIPSecPolicyList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIPSecPolicyList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIPSecPolicyList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIPSecPolicyList := _PaginatedIPSecPolicyList{}
err = json.Unmarshal(data, &varPaginatedIPSecPolicyList)
diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go
index 701b1e46a6..13e5dc8cc0 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIPSecProfileList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProfileList{}
// PaginatedIPSecProfileList struct for PaginatedIPSecProfileList
type PaginatedIPSecProfileList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IPSecProfile `json:"results,omitempty"`
+ Results []IPSecProfile `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIPSecProfileList PaginatedIPSecProfileList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIPSecProfileList() *PaginatedIPSecProfileList {
+func NewPaginatedIPSecProfileList(count int32, results []IPSecProfile) *PaginatedIPSecProfileList {
this := PaginatedIPSecProfileList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIPSecProfileListWithDefaults() *PaginatedIPSecProfileList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIPSecProfileList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecProfileList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIPSecProfileList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIPSecProfileList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIPSecProfileList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIPSecProfileList) GetResults() []IPSecProfile {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IPSecProfile
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecProfileList) GetResultsOk() ([]IPSecProfile, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIPSecProfileList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IPSecProfile and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIPSecProfileList) SetResults(v []IPSecProfile) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIPSecProfileList) MarshalJSON() ([]byte, error) {
func (o PaginatedIPSecProfileList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIPSecProfileList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIPSecProfileList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIPSecProfileList := _PaginatedIPSecProfileList{}
err = json.Unmarshal(data, &varPaginatedIPSecProfileList)
diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go
index 434ece3c46..562d884cfd 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedIPSecProposalList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProposalList{}
// PaginatedIPSecProposalList struct for PaginatedIPSecProposalList
type PaginatedIPSecProposalList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []IPSecProposal `json:"results,omitempty"`
+ Results []IPSecProposal `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedIPSecProposalList PaginatedIPSecProposalList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedIPSecProposalList() *PaginatedIPSecProposalList {
+func NewPaginatedIPSecProposalList(count int32, results []IPSecProposal) *PaginatedIPSecProposalList {
this := PaginatedIPSecProposalList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedIPSecProposalListWithDefaults() *PaginatedIPSecProposalList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedIPSecProposalList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecProposalList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedIPSecProposalList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedIPSecProposalList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedIPSecProposalList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedIPSecProposalList) GetResults() []IPSecProposal {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []IPSecProposal
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedIPSecProposalList) GetResultsOk() ([]IPSecProposal, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedIPSecProposalList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []IPSecProposal and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedIPSecProposalList) SetResults(v []IPSecProposal) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedIPSecProposalList) MarshalJSON() ([]byte, error) {
func (o PaginatedIPSecProposalList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedIPSecProposalList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedIPSecProposalList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedIPSecProposalList := _PaginatedIPSecProposalList{}
err = json.Unmarshal(data, &varPaginatedIPSecProposalList)
diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go
index 013d27f346..9c5266b906 100644
--- a/model_paginated_job_list.go
+++ b/model_paginated_job_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedJobList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedJobList{}
// PaginatedJobList struct for PaginatedJobList
type PaginatedJobList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Job `json:"results,omitempty"`
+ Results []Job `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedJobList PaginatedJobList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedJobList() *PaginatedJobList {
+func NewPaginatedJobList(count int32, results []Job) *PaginatedJobList {
this := PaginatedJobList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedJobListWithDefaults() *PaginatedJobList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedJobList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedJobList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedJobList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedJobList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedJobList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedJobList) GetResults() []Job {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Job
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedJobList) GetResultsOk() ([]Job, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedJobList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Job and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedJobList) SetResults(v []Job) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedJobList) MarshalJSON() ([]byte, error) {
func (o PaginatedJobList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedJobList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedJobList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedJobList := _PaginatedJobList{}
err = json.Unmarshal(data, &varPaginatedJobList)
diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go
index b3c6f7474d..39deffe63b 100644
--- a/model_paginated_journal_entry_list.go
+++ b/model_paginated_journal_entry_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedJournalEntryList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedJournalEntryList{}
// PaginatedJournalEntryList struct for PaginatedJournalEntryList
type PaginatedJournalEntryList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []JournalEntry `json:"results,omitempty"`
+ Results []JournalEntry `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedJournalEntryList PaginatedJournalEntryList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedJournalEntryList() *PaginatedJournalEntryList {
+func NewPaginatedJournalEntryList(count int32, results []JournalEntry) *PaginatedJournalEntryList {
this := PaginatedJournalEntryList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedJournalEntryListWithDefaults() *PaginatedJournalEntryList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedJournalEntryList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedJournalEntryList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedJournalEntryList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedJournalEntryList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedJournalEntryList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedJournalEntryList) GetResults() []JournalEntry {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []JournalEntry
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedJournalEntryList) GetResultsOk() ([]JournalEntry, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedJournalEntryList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []JournalEntry and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedJournalEntryList) SetResults(v []JournalEntry) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedJournalEntryList) MarshalJSON() ([]byte, error) {
func (o PaginatedJournalEntryList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedJournalEntryList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedJournalEntryList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedJournalEntryList := _PaginatedJournalEntryList{}
err = json.Unmarshal(data, &varPaginatedJournalEntryList)
diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go
index 8ffd7faff6..130fb6318e 100644
--- a/model_paginated_l2_vpn_list.go
+++ b/model_paginated_l2_vpn_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedL2VPNList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNList{}
// PaginatedL2VPNList struct for PaginatedL2VPNList
type PaginatedL2VPNList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []L2VPN `json:"results,omitempty"`
+ Results []L2VPN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedL2VPNList PaginatedL2VPNList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedL2VPNList() *PaginatedL2VPNList {
+func NewPaginatedL2VPNList(count int32, results []L2VPN) *PaginatedL2VPNList {
this := PaginatedL2VPNList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedL2VPNListWithDefaults() *PaginatedL2VPNList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedL2VPNList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedL2VPNList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedL2VPNList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedL2VPNList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedL2VPNList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedL2VPNList) GetResults() []L2VPN {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []L2VPN
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedL2VPNList) GetResultsOk() ([]L2VPN, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedL2VPNList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []L2VPN and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedL2VPNList) SetResults(v []L2VPN) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedL2VPNList) MarshalJSON() ([]byte, error) {
func (o PaginatedL2VPNList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedL2VPNList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedL2VPNList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedL2VPNList := _PaginatedL2VPNList{}
err = json.Unmarshal(data, &varPaginatedL2VPNList)
diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go
index 03f0188a30..6fdc179aeb 100644
--- a/model_paginated_l2_vpn_termination_list.go
+++ b/model_paginated_l2_vpn_termination_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedL2VPNTerminationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNTerminationList{}
// PaginatedL2VPNTerminationList struct for PaginatedL2VPNTerminationList
type PaginatedL2VPNTerminationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []L2VPNTermination `json:"results,omitempty"`
+ Results []L2VPNTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedL2VPNTerminationList PaginatedL2VPNTerminationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedL2VPNTerminationList() *PaginatedL2VPNTerminationList {
+func NewPaginatedL2VPNTerminationList(count int32, results []L2VPNTermination) *PaginatedL2VPNTerminationList {
this := PaginatedL2VPNTerminationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedL2VPNTerminationListWithDefaults() *PaginatedL2VPNTerminationLi
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedL2VPNTerminationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedL2VPNTerminationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedL2VPNTerminationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedL2VPNTerminationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedL2VPNTerminationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedL2VPNTerminationList) GetResults() []L2VPNTermination {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []L2VPNTermination
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedL2VPNTerminationList) GetResultsOk() ([]L2VPNTermination, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedL2VPNTerminationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []L2VPNTermination and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedL2VPNTerminationList) SetResults(v []L2VPNTermination) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedL2VPNTerminationList) MarshalJSON() ([]byte, error) {
func (o PaginatedL2VPNTerminationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedL2VPNTerminationList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedL2VPNTerminationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedL2VPNTerminationList := _PaginatedL2VPNTerminationList{}
err = json.Unmarshal(data, &varPaginatedL2VPNTerminationList)
diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go
index 2248235208..303ddb6f14 100644
--- a/model_paginated_location_list.go
+++ b/model_paginated_location_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedLocationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedLocationList{}
// PaginatedLocationList struct for PaginatedLocationList
type PaginatedLocationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Location `json:"results,omitempty"`
+ Results []Location `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedLocationList PaginatedLocationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedLocationList() *PaginatedLocationList {
+func NewPaginatedLocationList(count int32, results []Location) *PaginatedLocationList {
this := PaginatedLocationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedLocationListWithDefaults() *PaginatedLocationList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedLocationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedLocationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedLocationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedLocationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedLocationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedLocationList) GetResults() []Location {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Location
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedLocationList) GetResultsOk() ([]Location, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedLocationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Location and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedLocationList) SetResults(v []Location) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedLocationList) MarshalJSON() ([]byte, error) {
func (o PaginatedLocationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedLocationList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedLocationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedLocationList := _PaginatedLocationList{}
err = json.Unmarshal(data, &varPaginatedLocationList)
diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go
index 2dd622be72..1642d70e38 100644
--- a/model_paginated_manufacturer_list.go
+++ b/model_paginated_manufacturer_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedManufacturerList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedManufacturerList{}
// PaginatedManufacturerList struct for PaginatedManufacturerList
type PaginatedManufacturerList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Manufacturer `json:"results,omitempty"`
+ Results []Manufacturer `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedManufacturerList PaginatedManufacturerList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedManufacturerList() *PaginatedManufacturerList {
+func NewPaginatedManufacturerList(count int32, results []Manufacturer) *PaginatedManufacturerList {
this := PaginatedManufacturerList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedManufacturerListWithDefaults() *PaginatedManufacturerList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedManufacturerList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedManufacturerList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedManufacturerList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedManufacturerList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedManufacturerList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedManufacturerList) GetResults() []Manufacturer {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Manufacturer
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedManufacturerList) GetResultsOk() ([]Manufacturer, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedManufacturerList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Manufacturer and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedManufacturerList) SetResults(v []Manufacturer) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedManufacturerList) MarshalJSON() ([]byte, error) {
func (o PaginatedManufacturerList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedManufacturerList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedManufacturerList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedManufacturerList := _PaginatedManufacturerList{}
err = json.Unmarshal(data, &varPaginatedManufacturerList)
diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go
index b404a6d953..70cca7b2d2 100644
--- a/model_paginated_module_bay_list.go
+++ b/model_paginated_module_bay_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedModuleBayList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayList{}
// PaginatedModuleBayList struct for PaginatedModuleBayList
type PaginatedModuleBayList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ModuleBay `json:"results,omitempty"`
+ Results []ModuleBay `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedModuleBayList PaginatedModuleBayList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedModuleBayList() *PaginatedModuleBayList {
+func NewPaginatedModuleBayList(count int32, results []ModuleBay) *PaginatedModuleBayList {
this := PaginatedModuleBayList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedModuleBayListWithDefaults() *PaginatedModuleBayList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedModuleBayList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleBayList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedModuleBayList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedModuleBayList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedModuleBayList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedModuleBayList) GetResults() []ModuleBay {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ModuleBay
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleBayList) GetResultsOk() ([]ModuleBay, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedModuleBayList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ModuleBay and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedModuleBayList) SetResults(v []ModuleBay) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedModuleBayList) MarshalJSON() ([]byte, error) {
func (o PaginatedModuleBayList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedModuleBayList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedModuleBayList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedModuleBayList := _PaginatedModuleBayList{}
err = json.Unmarshal(data, &varPaginatedModuleBayList)
diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go
index bf845f0ffb..af3faa856f 100644
--- a/model_paginated_module_bay_template_list.go
+++ b/model_paginated_module_bay_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedModuleBayTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayTemplateList{}
// PaginatedModuleBayTemplateList struct for PaginatedModuleBayTemplateList
type PaginatedModuleBayTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ModuleBayTemplate `json:"results,omitempty"`
+ Results []ModuleBayTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedModuleBayTemplateList PaginatedModuleBayTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedModuleBayTemplateList() *PaginatedModuleBayTemplateList {
+func NewPaginatedModuleBayTemplateList(count int32, results []ModuleBayTemplate) *PaginatedModuleBayTemplateList {
this := PaginatedModuleBayTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedModuleBayTemplateListWithDefaults() *PaginatedModuleBayTemplate
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedModuleBayTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleBayTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedModuleBayTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedModuleBayTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedModuleBayTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedModuleBayTemplateList) GetResults() []ModuleBayTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ModuleBayTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleBayTemplateList) GetResultsOk() ([]ModuleBayTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedModuleBayTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ModuleBayTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedModuleBayTemplateList) SetResults(v []ModuleBayTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedModuleBayTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedModuleBayTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedModuleBayTemplateList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedModuleBayTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedModuleBayTemplateList := _PaginatedModuleBayTemplateList{}
err = json.Unmarshal(data, &varPaginatedModuleBayTemplateList)
diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go
index 4853addec8..af55ae2928 100644
--- a/model_paginated_module_list.go
+++ b/model_paginated_module_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedModuleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleList{}
// PaginatedModuleList struct for PaginatedModuleList
type PaginatedModuleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Module `json:"results,omitempty"`
+ Results []Module `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedModuleList PaginatedModuleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedModuleList() *PaginatedModuleList {
+func NewPaginatedModuleList(count int32, results []Module) *PaginatedModuleList {
this := PaginatedModuleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedModuleListWithDefaults() *PaginatedModuleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedModuleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedModuleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedModuleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedModuleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedModuleList) GetResults() []Module {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Module
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleList) GetResultsOk() ([]Module, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedModuleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Module and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedModuleList) SetResults(v []Module) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedModuleList) MarshalJSON() ([]byte, error) {
func (o PaginatedModuleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedModuleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedModuleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedModuleList := _PaginatedModuleList{}
err = json.Unmarshal(data, &varPaginatedModuleList)
diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go
index 8f3a0aae29..375f3b8f4d 100644
--- a/model_paginated_module_type_list.go
+++ b/model_paginated_module_type_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedModuleTypeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleTypeList{}
// PaginatedModuleTypeList struct for PaginatedModuleTypeList
type PaginatedModuleTypeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ModuleType `json:"results,omitempty"`
+ Results []ModuleType `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedModuleTypeList PaginatedModuleTypeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedModuleTypeList() *PaginatedModuleTypeList {
+func NewPaginatedModuleTypeList(count int32, results []ModuleType) *PaginatedModuleTypeList {
this := PaginatedModuleTypeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedModuleTypeListWithDefaults() *PaginatedModuleTypeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedModuleTypeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleTypeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedModuleTypeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedModuleTypeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedModuleTypeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedModuleTypeList) GetResults() []ModuleType {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ModuleType
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedModuleTypeList) GetResultsOk() ([]ModuleType, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedModuleTypeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ModuleType and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedModuleTypeList) SetResults(v []ModuleType) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedModuleTypeList) MarshalJSON() ([]byte, error) {
func (o PaginatedModuleTypeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedModuleTypeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedModuleTypeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedModuleTypeList := _PaginatedModuleTypeList{}
err = json.Unmarshal(data, &varPaginatedModuleTypeList)
diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go
index 8b3ee77baa..c4cd994e46 100644
--- a/model_paginated_object_change_list.go
+++ b/model_paginated_object_change_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedObjectChangeList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectChangeList{}
// PaginatedObjectChangeList struct for PaginatedObjectChangeList
type PaginatedObjectChangeList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ObjectChange `json:"results,omitempty"`
+ Results []ObjectChange `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedObjectChangeList PaginatedObjectChangeList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedObjectChangeList() *PaginatedObjectChangeList {
+func NewPaginatedObjectChangeList(count int32, results []ObjectChange) *PaginatedObjectChangeList {
this := PaginatedObjectChangeList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedObjectChangeListWithDefaults() *PaginatedObjectChangeList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedObjectChangeList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedObjectChangeList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedObjectChangeList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedObjectChangeList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedObjectChangeList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedObjectChangeList) GetResults() []ObjectChange {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ObjectChange
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedObjectChangeList) GetResultsOk() ([]ObjectChange, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedObjectChangeList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ObjectChange and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedObjectChangeList) SetResults(v []ObjectChange) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedObjectChangeList) MarshalJSON() ([]byte, error) {
func (o PaginatedObjectChangeList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedObjectChangeList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedObjectChangeList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedObjectChangeList := _PaginatedObjectChangeList{}
err = json.Unmarshal(data, &varPaginatedObjectChangeList)
diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go
index b6247865dc..2484322f10 100644
--- a/model_paginated_object_permission_list.go
+++ b/model_paginated_object_permission_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedObjectPermissionList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectPermissionList{}
// PaginatedObjectPermissionList struct for PaginatedObjectPermissionList
type PaginatedObjectPermissionList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ObjectPermission `json:"results,omitempty"`
+ Results []ObjectPermission `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedObjectPermissionList PaginatedObjectPermissionList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedObjectPermissionList() *PaginatedObjectPermissionList {
+func NewPaginatedObjectPermissionList(count int32, results []ObjectPermission) *PaginatedObjectPermissionList {
this := PaginatedObjectPermissionList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedObjectPermissionListWithDefaults() *PaginatedObjectPermissionLi
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedObjectPermissionList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedObjectPermissionList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedObjectPermissionList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedObjectPermissionList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedObjectPermissionList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedObjectPermissionList) GetResults() []ObjectPermission {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ObjectPermission
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedObjectPermissionList) GetResultsOk() ([]ObjectPermission, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedObjectPermissionList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ObjectPermission and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedObjectPermissionList) SetResults(v []ObjectPermission) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedObjectPermissionList) MarshalJSON() ([]byte, error) {
func (o PaginatedObjectPermissionList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedObjectPermissionList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedObjectPermissionList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedObjectPermissionList := _PaginatedObjectPermissionList{}
err = json.Unmarshal(data, &varPaginatedObjectPermissionList)
diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go
new file mode 100644
index 0000000000..1a24ef8877
--- /dev/null
+++ b/model_paginated_object_type_list.go
@@ -0,0 +1,291 @@
+/*
+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 PaginatedObjectTypeList type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedObjectTypeList PaginatedObjectTypeList
+
+// NewPaginatedObjectTypeList instantiates a new PaginatedObjectTypeList object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPaginatedObjectTypeList(count int32, results []ObjectType) *PaginatedObjectTypeList {
+ this := PaginatedObjectTypeList{}
+ this.Count = count
+ this.Results = results
+ return &this
+}
+
+// NewPaginatedObjectTypeListWithDefaults instantiates a new PaginatedObjectTypeList object
+// This 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 NewPaginatedObjectTypeListWithDefaults() *PaginatedObjectTypeList {
+ this := PaginatedObjectTypeList{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+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()) {
+ 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 *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) 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 *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)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) 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 *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)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedObjectTypeList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value
+func (o *PaginatedObjectTypeList) GetResults() []ObjectType {
+ if o == nil {
+ var ret []ObjectType
+ 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 *PaginatedObjectTypeList) GetResultsOk() ([]ObjectType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// SetResults sets field value
+func (o *PaginatedObjectTypeList) SetResults(v []ObjectType) {
+ o.Results = v
+}
+
+func (o PaginatedObjectTypeList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) 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",
+ }
+
+ 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)
+ }
+ }
+
+ varPaginatedObjectTypeList := _PaginatedObjectTypeList{}
+
+ err = json.Unmarshal(data, &varPaginatedObjectTypeList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedObjectTypeList(varPaginatedObjectTypeList)
+
+ 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 NullablePaginatedObjectTypeList struct {
+ value *PaginatedObjectTypeList
+ isSet bool
+}
+
+func (v NullablePaginatedObjectTypeList) Get() *PaginatedObjectTypeList {
+ return v.value
+}
+
+func (v *NullablePaginatedObjectTypeList) Set(val *PaginatedObjectTypeList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedObjectTypeList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedObjectTypeList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedObjectTypeList(val *PaginatedObjectTypeList) *NullablePaginatedObjectTypeList {
+ return &NullablePaginatedObjectTypeList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedObjectTypeList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+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 5afbd5c4b8..a5637f7863 100644
--- a/model_paginated_platform_list.go
+++ b/model_paginated_platform_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPlatformList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPlatformList{}
// PaginatedPlatformList struct for PaginatedPlatformList
type PaginatedPlatformList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Platform `json:"results,omitempty"`
+ Results []Platform `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPlatformList PaginatedPlatformList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPlatformList() *PaginatedPlatformList {
+func NewPaginatedPlatformList(count int32, results []Platform) *PaginatedPlatformList {
this := PaginatedPlatformList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPlatformListWithDefaults() *PaginatedPlatformList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPlatformList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPlatformList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPlatformList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPlatformList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPlatformList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPlatformList) GetResults() []Platform {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Platform
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPlatformList) GetResultsOk() ([]Platform, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPlatformList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Platform and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPlatformList) SetResults(v []Platform) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPlatformList) MarshalJSON() ([]byte, error) {
func (o PaginatedPlatformList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPlatformList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPlatformList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPlatformList := _PaginatedPlatformList{}
err = json.Unmarshal(data, &varPaginatedPlatformList)
diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go
index 956f7d6c5a..a90726d50f 100644
--- a/model_paginated_power_feed_list.go
+++ b/model_paginated_power_feed_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerFeedList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerFeedList{}
// PaginatedPowerFeedList struct for PaginatedPowerFeedList
type PaginatedPowerFeedList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerFeed `json:"results,omitempty"`
+ Results []PowerFeed `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerFeedList PaginatedPowerFeedList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerFeedList() *PaginatedPowerFeedList {
+func NewPaginatedPowerFeedList(count int32, results []PowerFeed) *PaginatedPowerFeedList {
this := PaginatedPowerFeedList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerFeedListWithDefaults() *PaginatedPowerFeedList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerFeedList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerFeedList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerFeedList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerFeedList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerFeedList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerFeedList) GetResults() []PowerFeed {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerFeed
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerFeedList) GetResultsOk() ([]PowerFeed, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerFeedList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerFeed and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerFeedList) SetResults(v []PowerFeed) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerFeedList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerFeedList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerFeedList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPowerFeedList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerFeedList := _PaginatedPowerFeedList{}
err = json.Unmarshal(data, &varPaginatedPowerFeedList)
diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go
index a133dc56f5..42cc10417d 100644
--- a/model_paginated_power_outlet_list.go
+++ b/model_paginated_power_outlet_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerOutletList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletList{}
// PaginatedPowerOutletList struct for PaginatedPowerOutletList
type PaginatedPowerOutletList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerOutlet `json:"results,omitempty"`
+ Results []PowerOutlet `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerOutletList PaginatedPowerOutletList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerOutletList() *PaginatedPowerOutletList {
+func NewPaginatedPowerOutletList(count int32, results []PowerOutlet) *PaginatedPowerOutletList {
this := PaginatedPowerOutletList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerOutletListWithDefaults() *PaginatedPowerOutletList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerOutletList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerOutletList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerOutletList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerOutletList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerOutletList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerOutletList) GetResults() []PowerOutlet {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerOutlet
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerOutletList) GetResultsOk() ([]PowerOutlet, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerOutletList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerOutlet and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerOutletList) SetResults(v []PowerOutlet) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerOutletList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerOutletList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerOutletList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPowerOutletList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerOutletList := _PaginatedPowerOutletList{}
err = json.Unmarshal(data, &varPaginatedPowerOutletList)
diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go
index e1a5552b6f..dabff54c76 100644
--- a/model_paginated_power_outlet_template_list.go
+++ b/model_paginated_power_outlet_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerOutletTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletTemplateList{}
// PaginatedPowerOutletTemplateList struct for PaginatedPowerOutletTemplateList
type PaginatedPowerOutletTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerOutletTemplate `json:"results,omitempty"`
+ Results []PowerOutletTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerOutletTemplateList PaginatedPowerOutletTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerOutletTemplateList() *PaginatedPowerOutletTemplateList {
+func NewPaginatedPowerOutletTemplateList(count int32, results []PowerOutletTemplate) *PaginatedPowerOutletTemplateList {
this := PaginatedPowerOutletTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerOutletTemplateListWithDefaults() *PaginatedPowerOutletTemp
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerOutletTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerOutletTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerOutletTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerOutletTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerOutletTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerOutletTemplateList) GetResults() []PowerOutletTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerOutletTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerOutletTemplateList) GetResultsOk() ([]PowerOutletTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerOutletTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerOutletTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerOutletTemplateList) SetResults(v []PowerOutletTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerOutletTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerOutletTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerOutletTemplateList) ToMap() (map[string]interface{}, error
}
func (o *PaginatedPowerOutletTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerOutletTemplateList := _PaginatedPowerOutletTemplateList{}
err = json.Unmarshal(data, &varPaginatedPowerOutletTemplateList)
diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go
index abdfdcbd8c..a84ec93630 100644
--- a/model_paginated_power_panel_list.go
+++ b/model_paginated_power_panel_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerPanelList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPanelList{}
// PaginatedPowerPanelList struct for PaginatedPowerPanelList
type PaginatedPowerPanelList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerPanel `json:"results,omitempty"`
+ Results []PowerPanel `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerPanelList PaginatedPowerPanelList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerPanelList() *PaginatedPowerPanelList {
+func NewPaginatedPowerPanelList(count int32, results []PowerPanel) *PaginatedPowerPanelList {
this := PaginatedPowerPanelList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerPanelListWithDefaults() *PaginatedPowerPanelList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerPanelList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPanelList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerPanelList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerPanelList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerPanelList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerPanelList) GetResults() []PowerPanel {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerPanel
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPanelList) GetResultsOk() ([]PowerPanel, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerPanelList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerPanel and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerPanelList) SetResults(v []PowerPanel) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerPanelList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerPanelList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerPanelList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPowerPanelList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerPanelList := _PaginatedPowerPanelList{}
err = json.Unmarshal(data, &varPaginatedPowerPanelList)
diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go
index 9b6c4d5f70..a1b1474205 100644
--- a/model_paginated_power_port_list.go
+++ b/model_paginated_power_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerPortList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortList{}
// PaginatedPowerPortList struct for PaginatedPowerPortList
type PaginatedPowerPortList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerPort `json:"results,omitempty"`
+ Results []PowerPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerPortList PaginatedPowerPortList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerPortList() *PaginatedPowerPortList {
+func NewPaginatedPowerPortList(count int32, results []PowerPort) *PaginatedPowerPortList {
this := PaginatedPowerPortList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerPortListWithDefaults() *PaginatedPowerPortList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerPortList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPortList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerPortList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerPortList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerPortList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerPortList) GetResults() []PowerPort {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerPort
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPortList) GetResultsOk() ([]PowerPort, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerPortList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerPort and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerPortList) SetResults(v []PowerPort) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerPortList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerPortList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerPortList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPowerPortList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerPortList := _PaginatedPowerPortList{}
err = json.Unmarshal(data, &varPaginatedPowerPortList)
diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go
index 9c1d743ab4..d8e7091525 100644
--- a/model_paginated_power_port_template_list.go
+++ b/model_paginated_power_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPowerPortTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortTemplateList{}
// PaginatedPowerPortTemplateList struct for PaginatedPowerPortTemplateList
type PaginatedPowerPortTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []PowerPortTemplate `json:"results,omitempty"`
+ Results []PowerPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPowerPortTemplateList PaginatedPowerPortTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPowerPortTemplateList() *PaginatedPowerPortTemplateList {
+func NewPaginatedPowerPortTemplateList(count int32, results []PowerPortTemplate) *PaginatedPowerPortTemplateList {
this := PaginatedPowerPortTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPowerPortTemplateListWithDefaults() *PaginatedPowerPortTemplate
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPowerPortTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPortTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPowerPortTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPowerPortTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPowerPortTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPowerPortTemplateList) GetResults() []PowerPortTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []PowerPortTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPowerPortTemplateList) GetResultsOk() ([]PowerPortTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPowerPortTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []PowerPortTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPowerPortTemplateList) SetResults(v []PowerPortTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPowerPortTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedPowerPortTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPowerPortTemplateList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedPowerPortTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPowerPortTemplateList := _PaginatedPowerPortTemplateList{}
err = json.Unmarshal(data, &varPaginatedPowerPortTemplateList)
diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go
index 64f27ffd59..07147ed992 100644
--- a/model_paginated_prefix_list.go
+++ b/model_paginated_prefix_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedPrefixList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedPrefixList{}
// PaginatedPrefixList struct for PaginatedPrefixList
type PaginatedPrefixList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Prefix `json:"results,omitempty"`
+ Results []Prefix `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedPrefixList PaginatedPrefixList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedPrefixList() *PaginatedPrefixList {
+func NewPaginatedPrefixList(count int32, results []Prefix) *PaginatedPrefixList {
this := PaginatedPrefixList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedPrefixListWithDefaults() *PaginatedPrefixList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedPrefixList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedPrefixList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedPrefixList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedPrefixList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedPrefixList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedPrefixList) GetResults() []Prefix {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Prefix
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedPrefixList) GetResultsOk() ([]Prefix, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedPrefixList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Prefix and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedPrefixList) SetResults(v []Prefix) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedPrefixList) MarshalJSON() ([]byte, error) {
func (o PaginatedPrefixList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedPrefixList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedPrefixList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedPrefixList := _PaginatedPrefixList{}
err = json.Unmarshal(data, &varPaginatedPrefixList)
diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go
index c8fcb14329..c485850387 100644
--- a/model_paginated_provider_account_list.go
+++ b/model_paginated_provider_account_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedProviderAccountList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderAccountList{}
// PaginatedProviderAccountList struct for PaginatedProviderAccountList
type PaginatedProviderAccountList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ProviderAccount `json:"results,omitempty"`
+ Results []ProviderAccount `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedProviderAccountList PaginatedProviderAccountList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedProviderAccountList() *PaginatedProviderAccountList {
+func NewPaginatedProviderAccountList(count int32, results []ProviderAccount) *PaginatedProviderAccountList {
this := PaginatedProviderAccountList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedProviderAccountListWithDefaults() *PaginatedProviderAccountList
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedProviderAccountList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderAccountList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedProviderAccountList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedProviderAccountList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedProviderAccountList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedProviderAccountList) GetResults() []ProviderAccount {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ProviderAccount
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderAccountList) GetResultsOk() ([]ProviderAccount, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedProviderAccountList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ProviderAccount and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedProviderAccountList) SetResults(v []ProviderAccount) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedProviderAccountList) MarshalJSON() ([]byte, error) {
func (o PaginatedProviderAccountList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedProviderAccountList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedProviderAccountList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedProviderAccountList := _PaginatedProviderAccountList{}
err = json.Unmarshal(data, &varPaginatedProviderAccountList)
diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go
index 70b84d1796..5b180ac542 100644
--- a/model_paginated_provider_list.go
+++ b/model_paginated_provider_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedProviderList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderList{}
// PaginatedProviderList struct for PaginatedProviderList
type PaginatedProviderList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Provider `json:"results,omitempty"`
+ Results []Provider `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedProviderList PaginatedProviderList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedProviderList() *PaginatedProviderList {
+func NewPaginatedProviderList(count int32, results []Provider) *PaginatedProviderList {
this := PaginatedProviderList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedProviderListWithDefaults() *PaginatedProviderList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedProviderList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedProviderList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedProviderList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedProviderList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedProviderList) GetResults() []Provider {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Provider
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderList) GetResultsOk() ([]Provider, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedProviderList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Provider and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedProviderList) SetResults(v []Provider) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedProviderList) MarshalJSON() ([]byte, error) {
func (o PaginatedProviderList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedProviderList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedProviderList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedProviderList := _PaginatedProviderList{}
err = json.Unmarshal(data, &varPaginatedProviderList)
diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go
index 667ba55dd7..b97c267f7e 100644
--- a/model_paginated_provider_network_list.go
+++ b/model_paginated_provider_network_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedProviderNetworkList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderNetworkList{}
// PaginatedProviderNetworkList struct for PaginatedProviderNetworkList
type PaginatedProviderNetworkList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ProviderNetwork `json:"results,omitempty"`
+ Results []ProviderNetwork `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedProviderNetworkList PaginatedProviderNetworkList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedProviderNetworkList() *PaginatedProviderNetworkList {
+func NewPaginatedProviderNetworkList(count int32, results []ProviderNetwork) *PaginatedProviderNetworkList {
this := PaginatedProviderNetworkList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedProviderNetworkListWithDefaults() *PaginatedProviderNetworkList
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedProviderNetworkList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderNetworkList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedProviderNetworkList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedProviderNetworkList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedProviderNetworkList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedProviderNetworkList) GetResults() []ProviderNetwork {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ProviderNetwork
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedProviderNetworkList) GetResultsOk() ([]ProviderNetwork, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedProviderNetworkList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ProviderNetwork and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedProviderNetworkList) SetResults(v []ProviderNetwork) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedProviderNetworkList) MarshalJSON() ([]byte, error) {
func (o PaginatedProviderNetworkList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedProviderNetworkList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedProviderNetworkList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedProviderNetworkList := _PaginatedProviderNetworkList{}
err = json.Unmarshal(data, &varPaginatedProviderNetworkList)
diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go
index 58799c448f..f7bdd10a2a 100644
--- a/model_paginated_rack_list.go
+++ b/model_paginated_rack_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRackList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRackList{}
// PaginatedRackList struct for PaginatedRackList
type PaginatedRackList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Rack `json:"results,omitempty"`
+ Results []Rack `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRackList PaginatedRackList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRackList() *PaginatedRackList {
+func NewPaginatedRackList(count int32, results []Rack) *PaginatedRackList {
this := PaginatedRackList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRackListWithDefaults() *PaginatedRackList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRackList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRackList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRackList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRackList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRackList) GetResults() []Rack {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Rack
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackList) GetResultsOk() ([]Rack, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRackList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Rack and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRackList) SetResults(v []Rack) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRackList) MarshalJSON() ([]byte, error) {
func (o PaginatedRackList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRackList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRackList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRackList := _PaginatedRackList{}
err = json.Unmarshal(data, &varPaginatedRackList)
diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go
index 4a021267b8..20a7994644 100644
--- a/model_paginated_rack_reservation_list.go
+++ b/model_paginated_rack_reservation_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRackReservationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRackReservationList{}
// PaginatedRackReservationList struct for PaginatedRackReservationList
type PaginatedRackReservationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RackReservation `json:"results,omitempty"`
+ Results []RackReservation `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRackReservationList PaginatedRackReservationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRackReservationList() *PaginatedRackReservationList {
+func NewPaginatedRackReservationList(count int32, results []RackReservation) *PaginatedRackReservationList {
this := PaginatedRackReservationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRackReservationListWithDefaults() *PaginatedRackReservationList
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRackReservationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackReservationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRackReservationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRackReservationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRackReservationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRackReservationList) GetResults() []RackReservation {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RackReservation
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackReservationList) GetResultsOk() ([]RackReservation, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRackReservationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RackReservation and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRackReservationList) SetResults(v []RackReservation) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRackReservationList) MarshalJSON() ([]byte, error) {
func (o PaginatedRackReservationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRackReservationList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRackReservationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRackReservationList := _PaginatedRackReservationList{}
err = json.Unmarshal(data, &varPaginatedRackReservationList)
diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go
index 61cac4d50f..e15fd7e27b 100644
--- a/model_paginated_rack_role_list.go
+++ b/model_paginated_rack_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRackRoleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRackRoleList{}
// PaginatedRackRoleList struct for PaginatedRackRoleList
type PaginatedRackRoleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RackRole `json:"results,omitempty"`
+ Results []RackRole `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRackRoleList PaginatedRackRoleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRackRoleList() *PaginatedRackRoleList {
+func NewPaginatedRackRoleList(count int32, results []RackRole) *PaginatedRackRoleList {
this := PaginatedRackRoleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRackRoleListWithDefaults() *PaginatedRackRoleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRackRoleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackRoleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRackRoleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRackRoleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRackRoleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRackRoleList) GetResults() []RackRole {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RackRole
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackRoleList) GetResultsOk() ([]RackRole, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRackRoleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RackRole and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRackRoleList) SetResults(v []RackRole) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRackRoleList) MarshalJSON() ([]byte, error) {
func (o PaginatedRackRoleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRackRoleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRackRoleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRackRoleList := _PaginatedRackRoleList{}
err = json.Unmarshal(data, &varPaginatedRackRoleList)
diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go
index 428ab45a32..6aaf2e9d78 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRackUnitList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRackUnitList{}
// PaginatedRackUnitList struct for PaginatedRackUnitList
type PaginatedRackUnitList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RackUnit `json:"results,omitempty"`
+ Results []RackUnit `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRackUnitList PaginatedRackUnitList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRackUnitList() *PaginatedRackUnitList {
+func NewPaginatedRackUnitList(count int32, results []RackUnit) *PaginatedRackUnitList {
this := PaginatedRackUnitList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRackUnitListWithDefaults() *PaginatedRackUnitList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRackUnitList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackUnitList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRackUnitList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRackUnitList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRackUnitList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRackUnitList) GetResults() []RackUnit {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RackUnit
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRackUnitList) GetResultsOk() ([]RackUnit, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRackUnitList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RackUnit and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRackUnitList) SetResults(v []RackUnit) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRackUnitList) MarshalJSON() ([]byte, error) {
func (o PaginatedRackUnitList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRackUnitList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRackUnitList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRackUnitList := _PaginatedRackUnitList{}
err = json.Unmarshal(data, &varPaginatedRackUnitList)
diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go
index 9f3c807a0c..c365786aad 100644
--- a/model_paginated_rear_port_list.go
+++ b/model_paginated_rear_port_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRearPortList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortList{}
// PaginatedRearPortList struct for PaginatedRearPortList
type PaginatedRearPortList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RearPort `json:"results,omitempty"`
+ Results []RearPort `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRearPortList PaginatedRearPortList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRearPortList() *PaginatedRearPortList {
+func NewPaginatedRearPortList(count int32, results []RearPort) *PaginatedRearPortList {
this := PaginatedRearPortList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRearPortListWithDefaults() *PaginatedRearPortList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRearPortList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRearPortList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRearPortList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRearPortList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRearPortList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRearPortList) GetResults() []RearPort {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RearPort
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRearPortList) GetResultsOk() ([]RearPort, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRearPortList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RearPort and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRearPortList) SetResults(v []RearPort) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRearPortList) MarshalJSON() ([]byte, error) {
func (o PaginatedRearPortList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRearPortList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRearPortList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRearPortList := _PaginatedRearPortList{}
err = json.Unmarshal(data, &varPaginatedRearPortList)
diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go
index 4489f85d01..72c089dfbb 100644
--- a/model_paginated_rear_port_template_list.go
+++ b/model_paginated_rear_port_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRearPortTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortTemplateList{}
// PaginatedRearPortTemplateList struct for PaginatedRearPortTemplateList
type PaginatedRearPortTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RearPortTemplate `json:"results,omitempty"`
+ Results []RearPortTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRearPortTemplateList PaginatedRearPortTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRearPortTemplateList() *PaginatedRearPortTemplateList {
+func NewPaginatedRearPortTemplateList(count int32, results []RearPortTemplate) *PaginatedRearPortTemplateList {
this := PaginatedRearPortTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRearPortTemplateListWithDefaults() *PaginatedRearPortTemplateLi
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRearPortTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRearPortTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRearPortTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRearPortTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRearPortTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRearPortTemplateList) GetResults() []RearPortTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RearPortTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRearPortTemplateList) GetResultsOk() ([]RearPortTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRearPortTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RearPortTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRearPortTemplateList) SetResults(v []RearPortTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRearPortTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedRearPortTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRearPortTemplateList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRearPortTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRearPortTemplateList := _PaginatedRearPortTemplateList{}
err = json.Unmarshal(data, &varPaginatedRearPortTemplateList)
diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go
index 7b9e0b6725..3107d80079 100644
--- a/model_paginated_region_list.go
+++ b/model_paginated_region_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRegionList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRegionList{}
// PaginatedRegionList struct for PaginatedRegionList
type PaginatedRegionList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Region `json:"results,omitempty"`
+ Results []Region `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRegionList PaginatedRegionList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRegionList() *PaginatedRegionList {
+func NewPaginatedRegionList(count int32, results []Region) *PaginatedRegionList {
this := PaginatedRegionList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRegionListWithDefaults() *PaginatedRegionList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRegionList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRegionList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRegionList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRegionList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRegionList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRegionList) GetResults() []Region {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Region
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRegionList) GetResultsOk() ([]Region, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRegionList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Region and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRegionList) SetResults(v []Region) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRegionList) MarshalJSON() ([]byte, error) {
func (o PaginatedRegionList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRegionList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRegionList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRegionList := _PaginatedRegionList{}
err = json.Unmarshal(data, &varPaginatedRegionList)
diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go
index 19e81e91ee..87507a75df 100644
--- a/model_paginated_rir_list.go
+++ b/model_paginated_rir_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRIRList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRIRList{}
// PaginatedRIRList struct for PaginatedRIRList
type PaginatedRIRList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RIR `json:"results,omitempty"`
+ Results []RIR `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRIRList PaginatedRIRList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRIRList() *PaginatedRIRList {
+func NewPaginatedRIRList(count int32, results []RIR) *PaginatedRIRList {
this := PaginatedRIRList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRIRListWithDefaults() *PaginatedRIRList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRIRList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRIRList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRIRList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRIRList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRIRList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRIRList) GetResults() []RIR {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RIR
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRIRList) GetResultsOk() ([]RIR, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRIRList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RIR and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRIRList) SetResults(v []RIR) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRIRList) MarshalJSON() ([]byte, error) {
func (o PaginatedRIRList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRIRList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRIRList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRIRList := _PaginatedRIRList{}
err = json.Unmarshal(data, &varPaginatedRIRList)
diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go
index 806e01cfd2..c22ab93d15 100644
--- a/model_paginated_role_list.go
+++ b/model_paginated_role_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRoleList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRoleList{}
// PaginatedRoleList struct for PaginatedRoleList
type PaginatedRoleList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Role `json:"results,omitempty"`
+ Results []Role `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRoleList PaginatedRoleList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRoleList() *PaginatedRoleList {
+func NewPaginatedRoleList(count int32, results []Role) *PaginatedRoleList {
this := PaginatedRoleList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRoleListWithDefaults() *PaginatedRoleList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRoleList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRoleList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRoleList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRoleList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRoleList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRoleList) GetResults() []Role {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Role
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRoleList) GetResultsOk() ([]Role, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRoleList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Role and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRoleList) SetResults(v []Role) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRoleList) MarshalJSON() ([]byte, error) {
func (o PaginatedRoleList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRoleList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRoleList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRoleList := _PaginatedRoleList{}
err = json.Unmarshal(data, &varPaginatedRoleList)
diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go
index a8701872f0..b6f02c9060 100644
--- a/model_paginated_route_target_list.go
+++ b/model_paginated_route_target_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedRouteTargetList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedRouteTargetList{}
// PaginatedRouteTargetList struct for PaginatedRouteTargetList
type PaginatedRouteTargetList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []RouteTarget `json:"results,omitempty"`
+ Results []RouteTarget `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedRouteTargetList PaginatedRouteTargetList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedRouteTargetList() *PaginatedRouteTargetList {
+func NewPaginatedRouteTargetList(count int32, results []RouteTarget) *PaginatedRouteTargetList {
this := PaginatedRouteTargetList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedRouteTargetListWithDefaults() *PaginatedRouteTargetList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedRouteTargetList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedRouteTargetList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedRouteTargetList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedRouteTargetList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedRouteTargetList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedRouteTargetList) GetResults() []RouteTarget {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []RouteTarget
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedRouteTargetList) GetResultsOk() ([]RouteTarget, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedRouteTargetList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []RouteTarget and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedRouteTargetList) SetResults(v []RouteTarget) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedRouteTargetList) MarshalJSON() ([]byte, error) {
func (o PaginatedRouteTargetList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedRouteTargetList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedRouteTargetList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedRouteTargetList := _PaginatedRouteTargetList{}
err = json.Unmarshal(data, &varPaginatedRouteTargetList)
diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go
index 8e6b806a3a..485e610813 100644
--- a/model_paginated_saved_filter_list.go
+++ b/model_paginated_saved_filter_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedSavedFilterList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedSavedFilterList{}
// PaginatedSavedFilterList struct for PaginatedSavedFilterList
type PaginatedSavedFilterList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []SavedFilter `json:"results,omitempty"`
+ Results []SavedFilter `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedSavedFilterList PaginatedSavedFilterList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedSavedFilterList() *PaginatedSavedFilterList {
+func NewPaginatedSavedFilterList(count int32, results []SavedFilter) *PaginatedSavedFilterList {
this := PaginatedSavedFilterList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedSavedFilterListWithDefaults() *PaginatedSavedFilterList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedSavedFilterList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedSavedFilterList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedSavedFilterList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedSavedFilterList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedSavedFilterList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedSavedFilterList) GetResults() []SavedFilter {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []SavedFilter
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedSavedFilterList) GetResultsOk() ([]SavedFilter, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedSavedFilterList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []SavedFilter and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedSavedFilterList) SetResults(v []SavedFilter) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedSavedFilterList) MarshalJSON() ([]byte, error) {
func (o PaginatedSavedFilterList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedSavedFilterList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedSavedFilterList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedSavedFilterList := _PaginatedSavedFilterList{}
err = json.Unmarshal(data, &varPaginatedSavedFilterList)
diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go
new file mode 100644
index 0000000000..72fec520fb
--- /dev/null
+++ b/model_paginated_script_list.go
@@ -0,0 +1,291 @@
+/*
+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 PaginatedScriptList type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PaginatedScriptList PaginatedScriptList
+
+// NewPaginatedScriptList instantiates a new PaginatedScriptList object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPaginatedScriptList(count int32, results []Script) *PaginatedScriptList {
+ this := PaginatedScriptList{}
+ this.Count = count
+ this.Results = results
+ return &this
+}
+
+// NewPaginatedScriptListWithDefaults instantiates a new PaginatedScriptList object
+// This 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 NewPaginatedScriptListWithDefaults() *PaginatedScriptList {
+ this := PaginatedScriptList{}
+ return &this
+}
+
+// GetCount returns the Count field value
+func (o *PaginatedScriptList) 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 *PaginatedScriptList) GetCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Count, true
+}
+
+// SetCount sets field value
+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()) {
+ 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 *PaginatedScriptList) 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 *PaginatedScriptList) 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 *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)
+}
+
+// UnsetNext ensures that no value is present for Next, not even an explicit nil
+func (o *PaginatedScriptList) 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 *PaginatedScriptList) 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 *PaginatedScriptList) 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 *PaginatedScriptList) 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 *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)
+}
+
+// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
+func (o *PaginatedScriptList) UnsetPrevious() {
+ o.Previous.Unset()
+}
+
+// GetResults returns the Results field value
+func (o *PaginatedScriptList) GetResults() []Script {
+ if o == nil {
+ var ret []Script
+ 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 *PaginatedScriptList) GetResultsOk() ([]Script, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Results, true
+}
+
+// SetResults sets field value
+func (o *PaginatedScriptList) SetResults(v []Script) {
+ o.Results = v
+}
+
+func (o PaginatedScriptList) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PaginatedScriptList) 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 *PaginatedScriptList) 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",
+ }
+
+ 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)
+ }
+ }
+
+ varPaginatedScriptList := _PaginatedScriptList{}
+
+ err = json.Unmarshal(data, &varPaginatedScriptList)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PaginatedScriptList(varPaginatedScriptList)
+
+ 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 NullablePaginatedScriptList struct {
+ value *PaginatedScriptList
+ isSet bool
+}
+
+func (v NullablePaginatedScriptList) Get() *PaginatedScriptList {
+ return v.value
+}
+
+func (v *NullablePaginatedScriptList) Set(val *PaginatedScriptList) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePaginatedScriptList) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePaginatedScriptList) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePaginatedScriptList(val *PaginatedScriptList) *NullablePaginatedScriptList {
+ return &NullablePaginatedScriptList{value: val, isSet: true}
+}
+
+func (v NullablePaginatedScriptList) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+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 6b22958dec..08b5508bec 100644
--- a/model_paginated_service_list.go
+++ b/model_paginated_service_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedServiceList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceList{}
// PaginatedServiceList struct for PaginatedServiceList
type PaginatedServiceList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Service `json:"results,omitempty"`
+ Results []Service `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedServiceList PaginatedServiceList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedServiceList() *PaginatedServiceList {
+func NewPaginatedServiceList(count int32, results []Service) *PaginatedServiceList {
this := PaginatedServiceList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedServiceListWithDefaults() *PaginatedServiceList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedServiceList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedServiceList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedServiceList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedServiceList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedServiceList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedServiceList) GetResults() []Service {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Service
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedServiceList) GetResultsOk() ([]Service, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedServiceList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Service and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedServiceList) SetResults(v []Service) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedServiceList) MarshalJSON() ([]byte, error) {
func (o PaginatedServiceList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedServiceList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedServiceList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedServiceList := _PaginatedServiceList{}
err = json.Unmarshal(data, &varPaginatedServiceList)
diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go
index 82b734928d..e86b9abb98 100644
--- a/model_paginated_service_template_list.go
+++ b/model_paginated_service_template_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedServiceTemplateList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceTemplateList{}
// PaginatedServiceTemplateList struct for PaginatedServiceTemplateList
type PaginatedServiceTemplateList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []ServiceTemplate `json:"results,omitempty"`
+ Results []ServiceTemplate `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedServiceTemplateList PaginatedServiceTemplateList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedServiceTemplateList() *PaginatedServiceTemplateList {
+func NewPaginatedServiceTemplateList(count int32, results []ServiceTemplate) *PaginatedServiceTemplateList {
this := PaginatedServiceTemplateList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedServiceTemplateListWithDefaults() *PaginatedServiceTemplateList
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedServiceTemplateList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedServiceTemplateList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedServiceTemplateList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedServiceTemplateList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedServiceTemplateList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedServiceTemplateList) GetResults() []ServiceTemplate {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []ServiceTemplate
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedServiceTemplateList) GetResultsOk() ([]ServiceTemplate, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedServiceTemplateList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []ServiceTemplate and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedServiceTemplateList) SetResults(v []ServiceTemplate) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedServiceTemplateList) MarshalJSON() ([]byte, error) {
func (o PaginatedServiceTemplateList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedServiceTemplateList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedServiceTemplateList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedServiceTemplateList := _PaginatedServiceTemplateList{}
err = json.Unmarshal(data, &varPaginatedServiceTemplateList)
diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go
index 6c8b9f9488..ddcd397c90 100644
--- a/model_paginated_site_group_list.go
+++ b/model_paginated_site_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedSiteGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteGroupList{}
// PaginatedSiteGroupList struct for PaginatedSiteGroupList
type PaginatedSiteGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []SiteGroup `json:"results,omitempty"`
+ Results []SiteGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedSiteGroupList PaginatedSiteGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedSiteGroupList() *PaginatedSiteGroupList {
+func NewPaginatedSiteGroupList(count int32, results []SiteGroup) *PaginatedSiteGroupList {
this := PaginatedSiteGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedSiteGroupListWithDefaults() *PaginatedSiteGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedSiteGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedSiteGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedSiteGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedSiteGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedSiteGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedSiteGroupList) GetResults() []SiteGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []SiteGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedSiteGroupList) GetResultsOk() ([]SiteGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedSiteGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []SiteGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedSiteGroupList) SetResults(v []SiteGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedSiteGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedSiteGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedSiteGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedSiteGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedSiteGroupList := _PaginatedSiteGroupList{}
err = json.Unmarshal(data, &varPaginatedSiteGroupList)
diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go
index 14ae6bbfdd..a580aaedaa 100644
--- a/model_paginated_site_list.go
+++ b/model_paginated_site_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedSiteList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteList{}
// PaginatedSiteList struct for PaginatedSiteList
type PaginatedSiteList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Site `json:"results,omitempty"`
+ Results []Site `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedSiteList PaginatedSiteList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedSiteList() *PaginatedSiteList {
+func NewPaginatedSiteList(count int32, results []Site) *PaginatedSiteList {
this := PaginatedSiteList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedSiteListWithDefaults() *PaginatedSiteList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedSiteList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedSiteList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedSiteList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedSiteList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedSiteList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedSiteList) GetResults() []Site {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Site
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedSiteList) GetResultsOk() ([]Site, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedSiteList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Site and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedSiteList) SetResults(v []Site) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedSiteList) MarshalJSON() ([]byte, error) {
func (o PaginatedSiteList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedSiteList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedSiteList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedSiteList := _PaginatedSiteList{}
err = json.Unmarshal(data, &varPaginatedSiteList)
diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go
index f9dcd8ab3b..129bb69b60 100644
--- a/model_paginated_tag_list.go
+++ b/model_paginated_tag_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTagList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTagList{}
// PaginatedTagList struct for PaginatedTagList
type PaginatedTagList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Tag `json:"results,omitempty"`
+ Results []Tag `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTagList PaginatedTagList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTagList() *PaginatedTagList {
+func NewPaginatedTagList(count int32, results []Tag) *PaginatedTagList {
this := PaginatedTagList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTagListWithDefaults() *PaginatedTagList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTagList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTagList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTagList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTagList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTagList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTagList) GetResults() []Tag {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Tag
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTagList) GetResultsOk() ([]Tag, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTagList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Tag and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTagList) SetResults(v []Tag) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTagList) MarshalJSON() ([]byte, error) {
func (o PaginatedTagList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTagList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTagList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTagList := _PaginatedTagList{}
err = json.Unmarshal(data, &varPaginatedTagList)
diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go
index ddebbf21ae..5fcddc5435 100644
--- a/model_paginated_tenant_group_list.go
+++ b/model_paginated_tenant_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTenantGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantGroupList{}
// PaginatedTenantGroupList struct for PaginatedTenantGroupList
type PaginatedTenantGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []TenantGroup `json:"results,omitempty"`
+ Results []TenantGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTenantGroupList PaginatedTenantGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTenantGroupList() *PaginatedTenantGroupList {
+func NewPaginatedTenantGroupList(count int32, results []TenantGroup) *PaginatedTenantGroupList {
this := PaginatedTenantGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTenantGroupListWithDefaults() *PaginatedTenantGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTenantGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTenantGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTenantGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTenantGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTenantGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTenantGroupList) GetResults() []TenantGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []TenantGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTenantGroupList) GetResultsOk() ([]TenantGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTenantGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []TenantGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTenantGroupList) SetResults(v []TenantGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTenantGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedTenantGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTenantGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTenantGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTenantGroupList := _PaginatedTenantGroupList{}
err = json.Unmarshal(data, &varPaginatedTenantGroupList)
diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go
index 4ce5dc83c3..812dfe3864 100644
--- a/model_paginated_tenant_list.go
+++ b/model_paginated_tenant_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTenantList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantList{}
// PaginatedTenantList struct for PaginatedTenantList
type PaginatedTenantList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Tenant `json:"results,omitempty"`
+ Results []Tenant `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTenantList PaginatedTenantList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTenantList() *PaginatedTenantList {
+func NewPaginatedTenantList(count int32, results []Tenant) *PaginatedTenantList {
this := PaginatedTenantList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTenantListWithDefaults() *PaginatedTenantList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTenantList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTenantList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTenantList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTenantList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTenantList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTenantList) GetResults() []Tenant {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Tenant
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTenantList) GetResultsOk() ([]Tenant, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTenantList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Tenant and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTenantList) SetResults(v []Tenant) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTenantList) MarshalJSON() ([]byte, error) {
func (o PaginatedTenantList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTenantList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTenantList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTenantList := _PaginatedTenantList{}
err = json.Unmarshal(data, &varPaginatedTenantList)
diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go
index 5f227dbc0b..9a4bd2ab94 100644
--- a/model_paginated_token_list.go
+++ b/model_paginated_token_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTokenList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTokenList{}
// PaginatedTokenList struct for PaginatedTokenList
type PaginatedTokenList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Token `json:"results,omitempty"`
+ Results []Token `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTokenList PaginatedTokenList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTokenList() *PaginatedTokenList {
+func NewPaginatedTokenList(count int32, results []Token) *PaginatedTokenList {
this := PaginatedTokenList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTokenListWithDefaults() *PaginatedTokenList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTokenList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTokenList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTokenList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTokenList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTokenList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTokenList) GetResults() []Token {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Token
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTokenList) GetResultsOk() ([]Token, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTokenList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Token and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTokenList) SetResults(v []Token) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTokenList) MarshalJSON() ([]byte, error) {
func (o PaginatedTokenList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTokenList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTokenList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTokenList := _PaginatedTokenList{}
err = json.Unmarshal(data, &varPaginatedTokenList)
diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go
index 36c5d1c84e..df1b972fb6 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTunnelGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelGroupList{}
// PaginatedTunnelGroupList struct for PaginatedTunnelGroupList
type PaginatedTunnelGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []TunnelGroup `json:"results,omitempty"`
+ Results []TunnelGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTunnelGroupList PaginatedTunnelGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTunnelGroupList() *PaginatedTunnelGroupList {
+func NewPaginatedTunnelGroupList(count int32, results []TunnelGroup) *PaginatedTunnelGroupList {
this := PaginatedTunnelGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTunnelGroupListWithDefaults() *PaginatedTunnelGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTunnelGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTunnelGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTunnelGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTunnelGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTunnelGroupList) GetResults() []TunnelGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []TunnelGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelGroupList) GetResultsOk() ([]TunnelGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTunnelGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []TunnelGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTunnelGroupList) SetResults(v []TunnelGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTunnelGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedTunnelGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTunnelGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTunnelGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTunnelGroupList := _PaginatedTunnelGroupList{}
err = json.Unmarshal(data, &varPaginatedTunnelGroupList)
diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go
index 36078617f5..768bdd00e9 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTunnelList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelList{}
// PaginatedTunnelList struct for PaginatedTunnelList
type PaginatedTunnelList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Tunnel `json:"results,omitempty"`
+ Results []Tunnel `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTunnelList PaginatedTunnelList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTunnelList() *PaginatedTunnelList {
+func NewPaginatedTunnelList(count int32, results []Tunnel) *PaginatedTunnelList {
this := PaginatedTunnelList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTunnelListWithDefaults() *PaginatedTunnelList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTunnelList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTunnelList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTunnelList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTunnelList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTunnelList) GetResults() []Tunnel {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Tunnel
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelList) GetResultsOk() ([]Tunnel, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTunnelList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Tunnel and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTunnelList) SetResults(v []Tunnel) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTunnelList) MarshalJSON() ([]byte, error) {
func (o PaginatedTunnelList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTunnelList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedTunnelList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTunnelList := _PaginatedTunnelList{}
err = json.Unmarshal(data, &varPaginatedTunnelList)
diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go
index 44d0210019..f81a84ee00 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedTunnelTerminationList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelTerminationList{}
// PaginatedTunnelTerminationList struct for PaginatedTunnelTerminationList
type PaginatedTunnelTerminationList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []TunnelTermination `json:"results,omitempty"`
+ Results []TunnelTermination `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedTunnelTerminationList PaginatedTunnelTerminationList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedTunnelTerminationList() *PaginatedTunnelTerminationList {
+func NewPaginatedTunnelTerminationList(count int32, results []TunnelTermination) *PaginatedTunnelTerminationList {
this := PaginatedTunnelTerminationList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedTunnelTerminationListWithDefaults() *PaginatedTunnelTermination
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedTunnelTerminationList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelTerminationList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedTunnelTerminationList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedTunnelTerminationList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedTunnelTerminationList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedTunnelTerminationList) GetResults() []TunnelTermination {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []TunnelTermination
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedTunnelTerminationList) GetResultsOk() ([]TunnelTermination, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedTunnelTerminationList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []TunnelTermination and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedTunnelTerminationList) SetResults(v []TunnelTermination) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedTunnelTerminationList) MarshalJSON() ([]byte, error) {
func (o PaginatedTunnelTerminationList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedTunnelTerminationList) ToMap() (map[string]interface{}, error)
}
func (o *PaginatedTunnelTerminationList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedTunnelTerminationList := _PaginatedTunnelTerminationList{}
err = json.Unmarshal(data, &varPaginatedTunnelTerminationList)
diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go
index 7cc7ea94af..2d6a259134 100644
--- a/model_paginated_user_list.go
+++ b/model_paginated_user_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedUserList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedUserList{}
// PaginatedUserList struct for PaginatedUserList
type PaginatedUserList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []User `json:"results,omitempty"`
+ Results []User `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedUserList PaginatedUserList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedUserList() *PaginatedUserList {
+func NewPaginatedUserList(count int32, results []User) *PaginatedUserList {
this := PaginatedUserList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedUserListWithDefaults() *PaginatedUserList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedUserList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedUserList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedUserList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedUserList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedUserList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedUserList) GetResults() []User {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []User
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedUserList) GetResultsOk() ([]User, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedUserList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []User and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedUserList) SetResults(v []User) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedUserList) MarshalJSON() ([]byte, error) {
func (o PaginatedUserList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedUserList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedUserList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedUserList := _PaginatedUserList{}
err = json.Unmarshal(data, &varPaginatedUserList)
diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go
index 5bf4177f50..6971b8d292 100644
--- a/model_paginated_virtual_chassis_list.go
+++ b/model_paginated_virtual_chassis_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVirtualChassisList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualChassisList{}
// PaginatedVirtualChassisList struct for PaginatedVirtualChassisList
type PaginatedVirtualChassisList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VirtualChassis `json:"results,omitempty"`
+ Results []VirtualChassis `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVirtualChassisList PaginatedVirtualChassisList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVirtualChassisList() *PaginatedVirtualChassisList {
+func NewPaginatedVirtualChassisList(count int32, results []VirtualChassis) *PaginatedVirtualChassisList {
this := PaginatedVirtualChassisList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVirtualChassisListWithDefaults() *PaginatedVirtualChassisList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVirtualChassisList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualChassisList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVirtualChassisList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVirtualChassisList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVirtualChassisList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVirtualChassisList) GetResults() []VirtualChassis {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VirtualChassis
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualChassisList) GetResultsOk() ([]VirtualChassis, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVirtualChassisList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VirtualChassis and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVirtualChassisList) SetResults(v []VirtualChassis) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVirtualChassisList) MarshalJSON() ([]byte, error) {
func (o PaginatedVirtualChassisList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVirtualChassisList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVirtualChassisList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVirtualChassisList := _PaginatedVirtualChassisList{}
err = json.Unmarshal(data, &varPaginatedVirtualChassisList)
diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go
index b2d0ea7893..3c5f35c090 100644
--- a/model_paginated_virtual_device_context_list.go
+++ b/model_paginated_virtual_device_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVirtualDeviceContextList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDeviceContextList{}
// PaginatedVirtualDeviceContextList struct for PaginatedVirtualDeviceContextList
type PaginatedVirtualDeviceContextList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VirtualDeviceContext `json:"results,omitempty"`
+ Results []VirtualDeviceContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVirtualDeviceContextList PaginatedVirtualDeviceContextList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVirtualDeviceContextList() *PaginatedVirtualDeviceContextList {
+func NewPaginatedVirtualDeviceContextList(count int32, results []VirtualDeviceContext) *PaginatedVirtualDeviceContextList {
this := PaginatedVirtualDeviceContextList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVirtualDeviceContextListWithDefaults() *PaginatedVirtualDeviceC
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVirtualDeviceContextList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualDeviceContextList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVirtualDeviceContextList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVirtualDeviceContextList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVirtualDeviceContextList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVirtualDeviceContextList) GetResults() []VirtualDeviceContext {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VirtualDeviceContext
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualDeviceContextList) GetResultsOk() ([]VirtualDeviceContext, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVirtualDeviceContextList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VirtualDeviceContext and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVirtualDeviceContextList) SetResults(v []VirtualDeviceContext) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVirtualDeviceContextList) MarshalJSON() ([]byte, error) {
func (o PaginatedVirtualDeviceContextList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVirtualDeviceContextList) ToMap() (map[string]interface{}, erro
}
func (o *PaginatedVirtualDeviceContextList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVirtualDeviceContextList := _PaginatedVirtualDeviceContextList{}
err = json.Unmarshal(data, &varPaginatedVirtualDeviceContextList)
diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go
index a89f638d30..1a16c146d7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVirtualDiskList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDiskList{}
// PaginatedVirtualDiskList struct for PaginatedVirtualDiskList
type PaginatedVirtualDiskList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VirtualDisk `json:"results,omitempty"`
+ Results []VirtualDisk `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVirtualDiskList PaginatedVirtualDiskList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVirtualDiskList() *PaginatedVirtualDiskList {
+func NewPaginatedVirtualDiskList(count int32, results []VirtualDisk) *PaginatedVirtualDiskList {
this := PaginatedVirtualDiskList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVirtualDiskListWithDefaults() *PaginatedVirtualDiskList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVirtualDiskList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualDiskList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVirtualDiskList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVirtualDiskList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVirtualDiskList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVirtualDiskList) GetResults() []VirtualDisk {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VirtualDisk
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualDiskList) GetResultsOk() ([]VirtualDisk, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVirtualDiskList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VirtualDisk and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVirtualDiskList) SetResults(v []VirtualDisk) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVirtualDiskList) MarshalJSON() ([]byte, error) {
func (o PaginatedVirtualDiskList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVirtualDiskList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVirtualDiskList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVirtualDiskList := _PaginatedVirtualDiskList{}
err = json.Unmarshal(data, &varPaginatedVirtualDiskList)
diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go
index db81a0c608..a4ee1f21d9 100644
--- a/model_paginated_virtual_machine_with_config_context_list.go
+++ b/model_paginated_virtual_machine_with_config_context_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVirtualMachineWithConfigContextList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualMachineWithConfigContextList{}
// PaginatedVirtualMachineWithConfigContextList struct for PaginatedVirtualMachineWithConfigContextList
type PaginatedVirtualMachineWithConfigContextList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VirtualMachineWithConfigContext `json:"results,omitempty"`
+ Results []VirtualMachineWithConfigContext `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVirtualMachineWithConfigContextList PaginatedVirtualMachineWithCo
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVirtualMachineWithConfigContextList() *PaginatedVirtualMachineWithConfigContextList {
+func NewPaginatedVirtualMachineWithConfigContextList(count int32, results []VirtualMachineWithConfigContext) *PaginatedVirtualMachineWithConfigContextList {
this := PaginatedVirtualMachineWithConfigContextList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVirtualMachineWithConfigContextListWithDefaults() *PaginatedVir
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVirtualMachineWithConfigContextList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualMachineWithConfigContextList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVirtualMachineWithConfigContextList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVirtualMachineWithConfigContextList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVirtualMachineWithConfigContextList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVirtualMachineWithConfigContextList) GetResults() []VirtualMachineWithConfigContext {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VirtualMachineWithConfigContext
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVirtualMachineWithConfigContextList) GetResultsOk() ([]VirtualMachineWithConfigContext, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVirtualMachineWithConfigContextList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VirtualMachineWithConfigContext and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVirtualMachineWithConfigContextList) SetResults(v []VirtualMachineWithConfigContext) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVirtualMachineWithConfigContextList) MarshalJSON() ([]byte, err
func (o PaginatedVirtualMachineWithConfigContextList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVirtualMachineWithConfigContextList) ToMap() (map[string]interf
}
func (o *PaginatedVirtualMachineWithConfigContextList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVirtualMachineWithConfigContextList := _PaginatedVirtualMachineWithConfigContextList{}
err = json.Unmarshal(data, &varPaginatedVirtualMachineWithConfigContextList)
diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go
index 359118f13b..cd2ac49512 100644
--- a/model_paginated_vlan_group_list.go
+++ b/model_paginated_vlan_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVLANGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANGroupList{}
// PaginatedVLANGroupList struct for PaginatedVLANGroupList
type PaginatedVLANGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VLANGroup `json:"results,omitempty"`
+ Results []VLANGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVLANGroupList PaginatedVLANGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVLANGroupList() *PaginatedVLANGroupList {
+func NewPaginatedVLANGroupList(count int32, results []VLANGroup) *PaginatedVLANGroupList {
this := PaginatedVLANGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVLANGroupListWithDefaults() *PaginatedVLANGroupList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVLANGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVLANGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVLANGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVLANGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVLANGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVLANGroupList) GetResults() []VLANGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VLANGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVLANGroupList) GetResultsOk() ([]VLANGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVLANGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VLANGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVLANGroupList) SetResults(v []VLANGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVLANGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedVLANGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVLANGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVLANGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVLANGroupList := _PaginatedVLANGroupList{}
err = json.Unmarshal(data, &varPaginatedVLANGroupList)
diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go
index f55ff4eed2..28d8921ca7 100644
--- a/model_paginated_vlan_list.go
+++ b/model_paginated_vlan_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVLANList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANList{}
// PaginatedVLANList struct for PaginatedVLANList
type PaginatedVLANList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VLAN `json:"results,omitempty"`
+ Results []VLAN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVLANList PaginatedVLANList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVLANList() *PaginatedVLANList {
+func NewPaginatedVLANList(count int32, results []VLAN) *PaginatedVLANList {
this := PaginatedVLANList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVLANListWithDefaults() *PaginatedVLANList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVLANList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVLANList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVLANList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVLANList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVLANList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVLANList) GetResults() []VLAN {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VLAN
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVLANList) GetResultsOk() ([]VLAN, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVLANList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VLAN and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVLANList) SetResults(v []VLAN) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVLANList) MarshalJSON() ([]byte, error) {
func (o PaginatedVLANList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVLANList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVLANList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVLANList := _PaginatedVLANList{}
err = json.Unmarshal(data, &varPaginatedVLANList)
diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go
index b12266591a..c7d824fa8f 100644
--- a/model_paginated_vm_interface_list.go
+++ b/model_paginated_vm_interface_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVMInterfaceList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVMInterfaceList{}
// PaginatedVMInterfaceList struct for PaginatedVMInterfaceList
type PaginatedVMInterfaceList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VMInterface `json:"results,omitempty"`
+ Results []VMInterface `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVMInterfaceList PaginatedVMInterfaceList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVMInterfaceList() *PaginatedVMInterfaceList {
+func NewPaginatedVMInterfaceList(count int32, results []VMInterface) *PaginatedVMInterfaceList {
this := PaginatedVMInterfaceList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVMInterfaceListWithDefaults() *PaginatedVMInterfaceList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVMInterfaceList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVMInterfaceList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVMInterfaceList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVMInterfaceList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVMInterfaceList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVMInterfaceList) GetResults() []VMInterface {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VMInterface
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVMInterfaceList) GetResultsOk() ([]VMInterface, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVMInterfaceList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VMInterface and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVMInterfaceList) SetResults(v []VMInterface) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVMInterfaceList) MarshalJSON() ([]byte, error) {
func (o PaginatedVMInterfaceList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVMInterfaceList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVMInterfaceList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVMInterfaceList := _PaginatedVMInterfaceList{}
err = json.Unmarshal(data, &varPaginatedVMInterfaceList)
diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go
index fafd1603e6..95d2794d7f 100644
--- a/model_paginated_vrf_list.go
+++ b/model_paginated_vrf_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedVRFList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedVRFList{}
// PaginatedVRFList struct for PaginatedVRFList
type PaginatedVRFList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []VRF `json:"results,omitempty"`
+ Results []VRF `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedVRFList PaginatedVRFList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedVRFList() *PaginatedVRFList {
+func NewPaginatedVRFList(count int32, results []VRF) *PaginatedVRFList {
this := PaginatedVRFList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedVRFListWithDefaults() *PaginatedVRFList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedVRFList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedVRFList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedVRFList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedVRFList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedVRFList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedVRFList) GetResults() []VRF {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []VRF
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedVRFList) GetResultsOk() ([]VRF, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedVRFList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []VRF and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedVRFList) SetResults(v []VRF) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedVRFList) MarshalJSON() ([]byte, error) {
func (o PaginatedVRFList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedVRFList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedVRFList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedVRFList := _PaginatedVRFList{}
err = json.Unmarshal(data, &varPaginatedVRFList)
diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go
index 8364cffa6d..2428042434 100644
--- a/model_paginated_webhook_list.go
+++ b/model_paginated_webhook_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedWebhookList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedWebhookList{}
// PaginatedWebhookList struct for PaginatedWebhookList
type PaginatedWebhookList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []Webhook `json:"results,omitempty"`
+ Results []Webhook `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedWebhookList PaginatedWebhookList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedWebhookList() *PaginatedWebhookList {
+func NewPaginatedWebhookList(count int32, results []Webhook) *PaginatedWebhookList {
this := PaginatedWebhookList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedWebhookListWithDefaults() *PaginatedWebhookList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedWebhookList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedWebhookList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedWebhookList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedWebhookList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedWebhookList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedWebhookList) GetResults() []Webhook {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []Webhook
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedWebhookList) GetResultsOk() ([]Webhook, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedWebhookList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []Webhook and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedWebhookList) SetResults(v []Webhook) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedWebhookList) MarshalJSON() ([]byte, error) {
func (o PaginatedWebhookList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedWebhookList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedWebhookList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedWebhookList := _PaginatedWebhookList{}
err = json.Unmarshal(data, &varPaginatedWebhookList)
diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go
index 51d2a85b83..c311ebbe7a 100644
--- a/model_paginated_wireless_lan_group_list.go
+++ b/model_paginated_wireless_lan_group_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedWirelessLANGroupList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANGroupList{}
// PaginatedWirelessLANGroupList struct for PaginatedWirelessLANGroupList
type PaginatedWirelessLANGroupList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLANGroup `json:"results,omitempty"`
+ Results []WirelessLANGroup `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedWirelessLANGroupList PaginatedWirelessLANGroupList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedWirelessLANGroupList() *PaginatedWirelessLANGroupList {
+func NewPaginatedWirelessLANGroupList(count int32, results []WirelessLANGroup) *PaginatedWirelessLANGroupList {
this := PaginatedWirelessLANGroupList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedWirelessLANGroupListWithDefaults() *PaginatedWirelessLANGroupLi
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedWirelessLANGroupList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLANGroupList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedWirelessLANGroupList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedWirelessLANGroupList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedWirelessLANGroupList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedWirelessLANGroupList) GetResults() []WirelessLANGroup {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []WirelessLANGroup
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLANGroupList) GetResultsOk() ([]WirelessLANGroup, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedWirelessLANGroupList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []WirelessLANGroup and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedWirelessLANGroupList) SetResults(v []WirelessLANGroup) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedWirelessLANGroupList) MarshalJSON() ([]byte, error) {
func (o PaginatedWirelessLANGroupList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedWirelessLANGroupList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedWirelessLANGroupList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedWirelessLANGroupList := _PaginatedWirelessLANGroupList{}
err = json.Unmarshal(data, &varPaginatedWirelessLANGroupList)
diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go
index aa1526eaff..cc98bc1708 100644
--- a/model_paginated_wireless_lan_list.go
+++ b/model_paginated_wireless_lan_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedWirelessLANList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANList{}
// PaginatedWirelessLANList struct for PaginatedWirelessLANList
type PaginatedWirelessLANList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLAN `json:"results,omitempty"`
+ Results []WirelessLAN `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedWirelessLANList PaginatedWirelessLANList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedWirelessLANList() *PaginatedWirelessLANList {
+func NewPaginatedWirelessLANList(count int32, results []WirelessLAN) *PaginatedWirelessLANList {
this := PaginatedWirelessLANList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedWirelessLANListWithDefaults() *PaginatedWirelessLANList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedWirelessLANList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLANList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedWirelessLANList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedWirelessLANList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedWirelessLANList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedWirelessLANList) GetResults() []WirelessLAN {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []WirelessLAN
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLANList) GetResultsOk() ([]WirelessLAN, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedWirelessLANList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []WirelessLAN and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedWirelessLANList) SetResults(v []WirelessLAN) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedWirelessLANList) MarshalJSON() ([]byte, error) {
func (o PaginatedWirelessLANList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedWirelessLANList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedWirelessLANList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedWirelessLANList := _PaginatedWirelessLANList{}
err = json.Unmarshal(data, &varPaginatedWirelessLANList)
diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go
index 58b2a0c1f5..6fb1c17dfc 100644
--- a/model_paginated_wireless_link_list.go
+++ b/model_paginated_wireless_link_list.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -12,6 +12,7 @@ package netbox
import (
"encoding/json"
+ "fmt"
)
// checks if the PaginatedWirelessLinkList type satisfies the MappedNullable interface at compile time
@@ -19,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLinkList{}
// PaginatedWirelessLinkList struct for PaginatedWirelessLinkList
type PaginatedWirelessLinkList struct {
- Count *int32 `json:"count,omitempty"`
+ Count int32 `json:"count"`
Next NullableString `json:"next,omitempty"`
Previous NullableString `json:"previous,omitempty"`
- Results []WirelessLink `json:"results,omitempty"`
+ Results []WirelessLink `json:"results"`
AdditionalProperties map[string]interface{}
}
@@ -32,8 +33,10 @@ type _PaginatedWirelessLinkList PaginatedWirelessLinkList
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPaginatedWirelessLinkList() *PaginatedWirelessLinkList {
+func NewPaginatedWirelessLinkList(count int32, results []WirelessLink) *PaginatedWirelessLinkList {
this := PaginatedWirelessLinkList{}
+ this.Count = count
+ this.Results = results
return &this
}
@@ -45,36 +48,28 @@ func NewPaginatedWirelessLinkListWithDefaults() *PaginatedWirelessLinkList {
return &this
}
-// GetCount returns the Count field value if set, zero value otherwise.
+// GetCount returns the Count field value
func (o *PaginatedWirelessLinkList) GetCount() int32 {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
var ret int32
return ret
}
- return *o.Count
+
+ return o.Count
}
-// GetCountOk returns a tuple with the Count field value if set, nil otherwise
+// GetCountOk returns a tuple with the Count field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLinkList) GetCountOk() (*int32, bool) {
- if o == nil || IsNil(o.Count) {
+ if o == nil {
return nil, false
}
- return o.Count, true
+ return &o.Count, true
}
-// HasCount returns a boolean if a field has been set.
-func (o *PaginatedWirelessLinkList) HasCount() bool {
- if o != nil && !IsNil(o.Count) {
- return true
- }
-
- return false
-}
-
-// SetCount gets a reference to the given int32 and assigns it to the Count field.
+// SetCount sets field value
func (o *PaginatedWirelessLinkList) SetCount(v int32) {
- o.Count = &v
+ o.Count = v
}
// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -163,34 +158,26 @@ func (o *PaginatedWirelessLinkList) UnsetPrevious() {
o.Previous.Unset()
}
-// GetResults returns the Results field value if set, zero value otherwise.
+// GetResults returns the Results field value
func (o *PaginatedWirelessLinkList) GetResults() []WirelessLink {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
var ret []WirelessLink
return ret
}
+
return o.Results
}
-// GetResultsOk returns a tuple with the Results field value if set, nil otherwise
+// GetResultsOk returns a tuple with the Results field value
// and a boolean to check if the value has been set.
func (o *PaginatedWirelessLinkList) GetResultsOk() ([]WirelessLink, bool) {
- if o == nil || IsNil(o.Results) {
+ if o == nil {
return nil, false
}
return o.Results, true
}
-// HasResults returns a boolean if a field has been set.
-func (o *PaginatedWirelessLinkList) HasResults() bool {
- if o != nil && !IsNil(o.Results) {
- return true
- }
-
- return false
-}
-
-// SetResults gets a reference to the given []WirelessLink and assigns it to the Results field.
+// SetResults sets field value
func (o *PaginatedWirelessLinkList) SetResults(v []WirelessLink) {
o.Results = v
}
@@ -205,18 +192,14 @@ func (o PaginatedWirelessLinkList) MarshalJSON() ([]byte, error) {
func (o PaginatedWirelessLinkList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.Count) {
- toSerialize["count"] = o.Count
- }
+ toSerialize["count"] = o.Count
if o.Next.IsSet() {
toSerialize["next"] = o.Next.Get()
}
if o.Previous.IsSet() {
toSerialize["previous"] = o.Previous.Get()
}
- if !IsNil(o.Results) {
- toSerialize["results"] = o.Results
- }
+ toSerialize["results"] = o.Results
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -226,6 +209,28 @@ func (o PaginatedWirelessLinkList) ToMap() (map[string]interface{}, error) {
}
func (o *PaginatedWirelessLinkList) 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",
+ }
+
+ 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)
+ }
+ }
+
varPaginatedWirelessLinkList := _PaginatedWirelessLinkList{}
err = json.Unmarshal(data, &varPaginatedWirelessLinkList)
diff --git a/model_parent_child_status.go b/model_parent_child_status.go
index 01d6dcec9c..06c4e1b126 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,21 +15,19 @@ import (
"fmt"
)
-// 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
+// ParentChildStatus the model 'ParentChildStatus'
type ParentChildStatus string
// List of Parent_child_status
const (
- PARENTCHILDSTATUS_PARENT ParentChildStatus = "parent"
PARENTCHILDSTATUS_CHILD ParentChildStatus = "child"
- PARENTCHILDSTATUS_EMPTY ParentChildStatus = ""
+ PARENTCHILDSTATUS_PARENT ParentChildStatus = "parent"
)
// All allowed values of ParentChildStatus enum
var AllowedParentChildStatusEnumValues = []ParentChildStatus{
- "parent",
"child",
- "",
+ "parent",
}
func (v *ParentChildStatus) UnmarshalJSON(src []byte) error {
diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go
new file mode 100644
index 0000000000..cb1bfa7039
--- /dev/null
+++ b/model_parent_child_status_1.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// ParentChildStatus1 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
+type ParentChildStatus1 string
+
+// List of Parent_child_status_1
+const (
+ PARENTCHILDSTATUS1_PARENT ParentChildStatus1 = "parent"
+ PARENTCHILDSTATUS1_CHILD ParentChildStatus1 = "child"
+ PARENTCHILDSTATUS1_EMPTY ParentChildStatus1 = ""
+)
+
+// All allowed values of ParentChildStatus1 enum
+var AllowedParentChildStatus1EnumValues = []ParentChildStatus1{
+ "parent",
+ "child",
+ "",
+}
+
+func (v *ParentChildStatus1) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := ParentChildStatus1(value)
+ for _, existing := range AllowedParentChildStatus1EnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid ParentChildStatus1", value)
+}
+
+// NewParentChildStatus1FromValue returns a pointer to a valid ParentChildStatus1
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewParentChildStatus1FromValue(v string) (*ParentChildStatus1, error) {
+ ev := ParentChildStatus1(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for ParentChildStatus1: valid values are %v", v, AllowedParentChildStatus1EnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v ParentChildStatus1) IsValid() bool {
+ for _, existing := range AllowedParentChildStatus1EnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Parent_child_status_1 value
+func (v ParentChildStatus1) Ptr() *ParentChildStatus1 {
+ return &v
+}
+
+type NullableParentChildStatus1 struct {
+ value *ParentChildStatus1
+ isSet bool
+}
+
+func (v NullableParentChildStatus1) Get() *ParentChildStatus1 {
+ return v.value
+}
+
+func (v *NullableParentChildStatus1) Set(val *ParentChildStatus1) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableParentChildStatus1) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableParentChildStatus1) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableParentChildStatus1(val *ParentChildStatus1) *NullableParentChildStatus1 {
+ return &NullableParentChildStatus1{value: val, isSet: true}
+}
+
+func (v NullableParentChildStatus1) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableParentChildStatus1) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_asn_range_request.go b/model_patched_asn_range_request.go
similarity index 63%
rename from model_patched_writable_asn_range_request.go
rename to model_patched_asn_range_request.go
index 7b7ace24d0..1b27ab6437 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,44 +14,44 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableASNRangeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableASNRangeRequest{}
+// checks if the PatchedASNRangeRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedASNRangeRequest{}
-// PatchedWritableASNRangeRequest Adds support for custom fields and tags.
-type PatchedWritableASNRangeRequest struct {
+// PatchedASNRangeRequest Adds support for custom fields and tags.
+type PatchedASNRangeRequest struct {
Name *string `json:"name,omitempty"`
Slug *string `json:"slug,omitempty"`
- Rir *int32 `json:"rir,omitempty"`
+ Rir *RIRRequest `json:"rir,omitempty"`
Start *int64 `json:"start,omitempty"`
End *int64 `json:"end,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `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{}
}
-type _PatchedWritableASNRangeRequest PatchedWritableASNRangeRequest
+type _PatchedASNRangeRequest PatchedASNRangeRequest
-// NewPatchedWritableASNRangeRequest instantiates a new PatchedWritableASNRangeRequest object
+// NewPatchedASNRangeRequest instantiates a new PatchedASNRangeRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableASNRangeRequest() *PatchedWritableASNRangeRequest {
- this := PatchedWritableASNRangeRequest{}
+func NewPatchedASNRangeRequest() *PatchedASNRangeRequest {
+ this := PatchedASNRangeRequest{}
return &this
}
-// NewPatchedWritableASNRangeRequestWithDefaults instantiates a new PatchedWritableASNRangeRequest object
+// NewPatchedASNRangeRequestWithDefaults instantiates a new PatchedASNRangeRequest object
// This 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 NewPatchedWritableASNRangeRequestWithDefaults() *PatchedWritableASNRangeRequest {
- this := PatchedWritableASNRangeRequest{}
+func NewPatchedASNRangeRequestWithDefaults() *PatchedASNRangeRequest {
+ this := PatchedASNRangeRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetName() string {
+func (o *PatchedASNRangeRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -61,7 +61,7 @@ func (o *PatchedWritableASNRangeRequest) 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 *PatchedWritableASNRangeRequest) GetNameOk() (*string, bool) {
+func (o *PatchedASNRangeRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -69,7 +69,7 @@ func (o *PatchedWritableASNRangeRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasName() bool {
+func (o *PatchedASNRangeRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -78,12 +78,12 @@ func (o *PatchedWritableASNRangeRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableASNRangeRequest) SetName(v string) {
+func (o *PatchedASNRangeRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetSlug() string {
+func (o *PatchedASNRangeRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
@@ -93,7 +93,7 @@ func (o *PatchedWritableASNRangeRequest) GetSlug() string {
// 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 *PatchedWritableASNRangeRequest) GetSlugOk() (*string, bool) {
+func (o *PatchedASNRangeRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
@@ -101,7 +101,7 @@ func (o *PatchedWritableASNRangeRequest) GetSlugOk() (*string, bool) {
}
// HasSlug returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasSlug() bool {
+func (o *PatchedASNRangeRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
@@ -110,14 +110,14 @@ func (o *PatchedWritableASNRangeRequest) HasSlug() bool {
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
-func (o *PatchedWritableASNRangeRequest) SetSlug(v string) {
+func (o *PatchedASNRangeRequest) SetSlug(v string) {
o.Slug = &v
}
// GetRir returns the Rir field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetRir() int32 {
+func (o *PatchedASNRangeRequest) GetRir() RIRRequest {
if o == nil || IsNil(o.Rir) {
- var ret int32
+ var ret RIRRequest
return ret
}
return *o.Rir
@@ -125,7 +125,7 @@ func (o *PatchedWritableASNRangeRequest) GetRir() int32 {
// 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 *PatchedWritableASNRangeRequest) GetRirOk() (*int32, bool) {
+func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil || IsNil(o.Rir) {
return nil, false
}
@@ -133,7 +133,7 @@ func (o *PatchedWritableASNRangeRequest) GetRirOk() (*int32, bool) {
}
// HasRir returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasRir() bool {
+func (o *PatchedASNRangeRequest) HasRir() bool {
if o != nil && !IsNil(o.Rir) {
return true
}
@@ -141,13 +141,13 @@ func (o *PatchedWritableASNRangeRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given int32 and assigns it to the Rir field.
-func (o *PatchedWritableASNRangeRequest) SetRir(v int32) {
+// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field.
+func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) {
o.Rir = &v
}
// GetStart returns the Start field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetStart() int64 {
+func (o *PatchedASNRangeRequest) GetStart() int64 {
if o == nil || IsNil(o.Start) {
var ret int64
return ret
@@ -157,7 +157,7 @@ func (o *PatchedWritableASNRangeRequest) GetStart() int64 {
// GetStartOk returns a tuple with the Start field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableASNRangeRequest) GetStartOk() (*int64, bool) {
+func (o *PatchedASNRangeRequest) GetStartOk() (*int64, bool) {
if o == nil || IsNil(o.Start) {
return nil, false
}
@@ -165,7 +165,7 @@ func (o *PatchedWritableASNRangeRequest) GetStartOk() (*int64, bool) {
}
// HasStart returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasStart() bool {
+func (o *PatchedASNRangeRequest) HasStart() bool {
if o != nil && !IsNil(o.Start) {
return true
}
@@ -174,12 +174,12 @@ func (o *PatchedWritableASNRangeRequest) HasStart() bool {
}
// SetStart gets a reference to the given int64 and assigns it to the Start field.
-func (o *PatchedWritableASNRangeRequest) SetStart(v int64) {
+func (o *PatchedASNRangeRequest) SetStart(v int64) {
o.Start = &v
}
// GetEnd returns the End field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetEnd() int64 {
+func (o *PatchedASNRangeRequest) GetEnd() int64 {
if o == nil || IsNil(o.End) {
var ret int64
return ret
@@ -189,7 +189,7 @@ func (o *PatchedWritableASNRangeRequest) GetEnd() int64 {
// GetEndOk returns a tuple with the End field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableASNRangeRequest) GetEndOk() (*int64, bool) {
+func (o *PatchedASNRangeRequest) GetEndOk() (*int64, bool) {
if o == nil || IsNil(o.End) {
return nil, false
}
@@ -197,7 +197,7 @@ func (o *PatchedWritableASNRangeRequest) GetEndOk() (*int64, bool) {
}
// HasEnd returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasEnd() bool {
+func (o *PatchedASNRangeRequest) HasEnd() bool {
if o != nil && !IsNil(o.End) {
return true
}
@@ -206,14 +206,14 @@ func (o *PatchedWritableASNRangeRequest) HasEnd() bool {
}
// SetEnd gets a reference to the given int64 and assigns it to the End field.
-func (o *PatchedWritableASNRangeRequest) SetEnd(v int64) {
+func (o *PatchedASNRangeRequest) 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 *PatchedWritableASNRangeRequest) GetTenant() int32 {
+func (o *PatchedASNRangeRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -222,7 +222,7 @@ func (o *PatchedWritableASNRangeRequest) GetTenant() int32 {
// 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 *PatchedWritableASNRangeRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -230,7 +230,7 @@ func (o *PatchedWritableASNRangeRequest) GetTenantOk() (*int32, bool) {
}
// HasTenant returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasTenant() bool {
+func (o *PatchedASNRangeRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
@@ -238,23 +238,23 @@ func (o *PatchedWritableASNRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableASNRangeRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *PatchedWritableASNRangeRequest) SetTenantNil() {
+func (o *PatchedASNRangeRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *PatchedWritableASNRangeRequest) UnsetTenant() {
+func (o *PatchedASNRangeRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetDescription() string {
+func (o *PatchedASNRangeRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -264,7 +264,7 @@ func (o *PatchedWritableASNRangeRequest) 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 *PatchedWritableASNRangeRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedASNRangeRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -272,7 +272,7 @@ func (o *PatchedWritableASNRangeRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasDescription() bool {
+func (o *PatchedASNRangeRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -281,12 +281,12 @@ func (o *PatchedWritableASNRangeRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableASNRangeRequest) SetDescription(v string) {
+func (o *PatchedASNRangeRequest) SetDescription(v string) {
o.Description = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetTags() []NestedTagRequest {
+func (o *PatchedASNRangeRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -296,7 +296,7 @@ func (o *PatchedWritableASNRangeRequest) 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 *PatchedWritableASNRangeRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedASNRangeRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -304,7 +304,7 @@ func (o *PatchedWritableASNRangeRequest) GetTagsOk() ([]NestedTagRequest, bool)
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasTags() bool {
+func (o *PatchedASNRangeRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -313,12 +313,12 @@ func (o *PatchedWritableASNRangeRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableASNRangeRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedASNRangeRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableASNRangeRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedASNRangeRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -328,7 +328,7 @@ func (o *PatchedWritableASNRangeRequest) 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 *PatchedWritableASNRangeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedASNRangeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -336,7 +336,7 @@ func (o *PatchedWritableASNRangeRequest) GetCustomFieldsOk() (map[string]interfa
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableASNRangeRequest) HasCustomFields() bool {
+func (o *PatchedASNRangeRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -345,11 +345,11 @@ func (o *PatchedWritableASNRangeRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableASNRangeRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedASNRangeRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableASNRangeRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedASNRangeRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -357,7 +357,7 @@ func (o PatchedWritableASNRangeRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableASNRangeRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedASNRangeRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -394,16 +394,16 @@ func (o PatchedWritableASNRangeRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableASNRangeRequest := _PatchedWritableASNRangeRequest{}
+func (o *PatchedASNRangeRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedASNRangeRequest := _PatchedASNRangeRequest{}
- err = json.Unmarshal(data, &varPatchedWritableASNRangeRequest)
+ err = json.Unmarshal(data, &varPatchedASNRangeRequest)
if err != nil {
return err
}
- *o = PatchedWritableASNRangeRequest(varPatchedWritableASNRangeRequest)
+ *o = PatchedASNRangeRequest(varPatchedASNRangeRequest)
additionalProperties := make(map[string]interface{})
@@ -423,38 +423,38 @@ func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritableASNRangeRequest struct {
- value *PatchedWritableASNRangeRequest
+type NullablePatchedASNRangeRequest struct {
+ value *PatchedASNRangeRequest
isSet bool
}
-func (v NullablePatchedWritableASNRangeRequest) Get() *PatchedWritableASNRangeRequest {
+func (v NullablePatchedASNRangeRequest) Get() *PatchedASNRangeRequest {
return v.value
}
-func (v *NullablePatchedWritableASNRangeRequest) Set(val *PatchedWritableASNRangeRequest) {
+func (v *NullablePatchedASNRangeRequest) Set(val *PatchedASNRangeRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableASNRangeRequest) IsSet() bool {
+func (v NullablePatchedASNRangeRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableASNRangeRequest) Unset() {
+func (v *NullablePatchedASNRangeRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableASNRangeRequest(val *PatchedWritableASNRangeRequest) *NullablePatchedWritableASNRangeRequest {
- return &NullablePatchedWritableASNRangeRequest{value: val, isSet: true}
+func NewNullablePatchedASNRangeRequest(val *PatchedASNRangeRequest) *NullablePatchedASNRangeRequest {
+ return &NullablePatchedASNRangeRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableASNRangeRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedASNRangeRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableASNRangeRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedASNRangeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_asn_request.go b/model_patched_asn_request.go
similarity index 61%
rename from model_patched_writable_asn_request.go
rename to model_patched_asn_request.go
index 85fee44f5a..141b3513fa 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,16 +14,15 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableASNRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableASNRequest{}
+// checks if the PatchedASNRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedASNRequest{}
-// PatchedWritableASNRequest Adds support for custom fields and tags.
-type PatchedWritableASNRequest struct {
+// PatchedASNRequest Adds support for custom fields and tags.
+type PatchedASNRequest struct {
// 16- or 32-bit autonomous system number
- Asn *int64 `json:"asn,omitempty"`
- // Regional Internet Registry responsible for this AS number space
- Rir *int32 `json:"rir,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
@@ -31,27 +30,27 @@ type PatchedWritableASNRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableASNRequest PatchedWritableASNRequest
+type _PatchedASNRequest PatchedASNRequest
-// NewPatchedWritableASNRequest instantiates a new PatchedWritableASNRequest object
+// NewPatchedASNRequest instantiates a new PatchedASNRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableASNRequest() *PatchedWritableASNRequest {
- this := PatchedWritableASNRequest{}
+func NewPatchedASNRequest() *PatchedASNRequest {
+ this := PatchedASNRequest{}
return &this
}
-// NewPatchedWritableASNRequestWithDefaults instantiates a new PatchedWritableASNRequest object
+// NewPatchedASNRequestWithDefaults instantiates a new PatchedASNRequest object
// This 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 NewPatchedWritableASNRequestWithDefaults() *PatchedWritableASNRequest {
- this := PatchedWritableASNRequest{}
+func NewPatchedASNRequestWithDefaults() *PatchedASNRequest {
+ this := PatchedASNRequest{}
return &this
}
// GetAsn returns the Asn field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetAsn() int64 {
+func (o *PatchedASNRequest) GetAsn() int64 {
if o == nil || IsNil(o.Asn) {
var ret int64
return ret
@@ -61,7 +60,7 @@ func (o *PatchedWritableASNRequest) GetAsn() int64 {
// GetAsnOk returns a tuple with the Asn field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableASNRequest) GetAsnOk() (*int64, bool) {
+func (o *PatchedASNRequest) GetAsnOk() (*int64, bool) {
if o == nil || IsNil(o.Asn) {
return nil, false
}
@@ -69,7 +68,7 @@ func (o *PatchedWritableASNRequest) GetAsnOk() (*int64, bool) {
}
// HasAsn returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasAsn() bool {
+func (o *PatchedASNRequest) HasAsn() bool {
if o != nil && !IsNil(o.Asn) {
return true
}
@@ -78,46 +77,57 @@ func (o *PatchedWritableASNRequest) HasAsn() bool {
}
// SetAsn gets a reference to the given int64 and assigns it to the Asn field.
-func (o *PatchedWritableASNRequest) SetAsn(v int64) {
+func (o *PatchedASNRequest) SetAsn(v int64) {
o.Asn = &v
}
-// GetRir returns the Rir field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetRir() int32 {
- if o == nil || IsNil(o.Rir) {
- var ret int32
+// 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 {
+ if o == nil || IsNil(o.Rir.Get()) {
+ var ret RIRRequest
return ret
}
- return *o.Rir
+ return *o.Rir.Get()
}
// 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 *PatchedWritableASNRequest) GetRirOk() (*int32, bool) {
- if o == nil || IsNil(o.Rir) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) {
+ if o == nil {
return nil, false
}
- return o.Rir, true
+ return o.Rir.Get(), o.Rir.IsSet()
}
// HasRir returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasRir() bool {
- if o != nil && !IsNil(o.Rir) {
+func (o *PatchedASNRequest) HasRir() bool {
+ if o != nil && o.Rir.IsSet() {
return true
}
return false
}
-// SetRir gets a reference to the given int32 and assigns it to the Rir field.
-func (o *PatchedWritableASNRequest) SetRir(v int32) {
- o.Rir = &v
+// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field.
+func (o *PatchedASNRequest) SetRir(v RIRRequest) {
+ o.Rir.Set(&v)
+}
+
+// SetRirNil sets the value for Rir to be an explicit nil
+func (o *PatchedASNRequest) SetRirNil() {
+ o.Rir.Set(nil)
+}
+
+// UnsetRir ensures that no value is present for Rir, not even an explicit nil
+func (o *PatchedASNRequest) UnsetRir() {
+ o.Rir.Unset()
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableASNRequest) GetTenant() int32 {
+func (o *PatchedASNRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -126,7 +136,7 @@ func (o *PatchedWritableASNRequest) GetTenant() int32 {
// 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 *PatchedWritableASNRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -134,7 +144,7 @@ func (o *PatchedWritableASNRequest) GetTenantOk() (*int32, bool) {
}
// HasTenant returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasTenant() bool {
+func (o *PatchedASNRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
@@ -142,23 +152,23 @@ func (o *PatchedWritableASNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableASNRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedASNRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *PatchedWritableASNRequest) SetTenantNil() {
+func (o *PatchedASNRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *PatchedWritableASNRequest) UnsetTenant() {
+func (o *PatchedASNRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetDescription() string {
+func (o *PatchedASNRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -168,7 +178,7 @@ func (o *PatchedWritableASNRequest) 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 *PatchedWritableASNRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedASNRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -176,7 +186,7 @@ func (o *PatchedWritableASNRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasDescription() bool {
+func (o *PatchedASNRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -185,12 +195,12 @@ func (o *PatchedWritableASNRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableASNRequest) SetDescription(v string) {
+func (o *PatchedASNRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetComments() string {
+func (o *PatchedASNRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -200,7 +210,7 @@ func (o *PatchedWritableASNRequest) GetComments() string {
// 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 *PatchedWritableASNRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedASNRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -208,7 +218,7 @@ func (o *PatchedWritableASNRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasComments() bool {
+func (o *PatchedASNRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -217,12 +227,12 @@ func (o *PatchedWritableASNRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableASNRequest) SetComments(v string) {
+func (o *PatchedASNRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetTags() []NestedTagRequest {
+func (o *PatchedASNRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -232,7 +242,7 @@ func (o *PatchedWritableASNRequest) 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 *PatchedWritableASNRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedASNRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -240,7 +250,7 @@ func (o *PatchedWritableASNRequest) GetTagsOk() ([]NestedTagRequest, bool) {
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasTags() bool {
+func (o *PatchedASNRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -249,12 +259,12 @@ func (o *PatchedWritableASNRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableASNRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedASNRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableASNRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedASNRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -264,7 +274,7 @@ func (o *PatchedWritableASNRequest) 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 *PatchedWritableASNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedASNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -272,7 +282,7 @@ func (o *PatchedWritableASNRequest) GetCustomFieldsOk() (map[string]interface{},
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableASNRequest) HasCustomFields() bool {
+func (o *PatchedASNRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -281,11 +291,11 @@ func (o *PatchedWritableASNRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableASNRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedASNRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableASNRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedASNRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -293,13 +303,13 @@ func (o PatchedWritableASNRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableASNRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedASNRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Asn) {
toSerialize["asn"] = o.Asn
}
- if !IsNil(o.Rir) {
- toSerialize["rir"] = o.Rir
+ if o.Rir.IsSet() {
+ toSerialize["rir"] = o.Rir.Get()
}
if o.Tenant.IsSet() {
toSerialize["tenant"] = o.Tenant.Get()
@@ -324,16 +334,16 @@ func (o PatchedWritableASNRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableASNRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableASNRequest := _PatchedWritableASNRequest{}
+func (o *PatchedASNRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedASNRequest := _PatchedASNRequest{}
- err = json.Unmarshal(data, &varPatchedWritableASNRequest)
+ err = json.Unmarshal(data, &varPatchedASNRequest)
if err != nil {
return err
}
- *o = PatchedWritableASNRequest(varPatchedWritableASNRequest)
+ *o = PatchedASNRequest(varPatchedASNRequest)
additionalProperties := make(map[string]interface{})
@@ -351,38 +361,38 @@ func (o *PatchedWritableASNRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullablePatchedWritableASNRequest struct {
- value *PatchedWritableASNRequest
+type NullablePatchedASNRequest struct {
+ value *PatchedASNRequest
isSet bool
}
-func (v NullablePatchedWritableASNRequest) Get() *PatchedWritableASNRequest {
+func (v NullablePatchedASNRequest) Get() *PatchedASNRequest {
return v.value
}
-func (v *NullablePatchedWritableASNRequest) Set(val *PatchedWritableASNRequest) {
+func (v *NullablePatchedASNRequest) Set(val *PatchedASNRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableASNRequest) IsSet() bool {
+func (v NullablePatchedASNRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableASNRequest) Unset() {
+func (v *NullablePatchedASNRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableASNRequest(val *PatchedWritableASNRequest) *NullablePatchedWritableASNRequest {
- return &NullablePatchedWritableASNRequest{value: val, isSet: true}
+func NewNullablePatchedASNRequest(val *PatchedASNRequest) *NullablePatchedASNRequest {
+ return &NullablePatchedASNRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableASNRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedASNRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableASNRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedASNRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_bookmark_request.go b/model_patched_bookmark_request.go
similarity index 52%
rename from model_patched_writable_bookmark_request.go
rename to model_patched_bookmark_request.go
index 23eedbad18..77f3b9cf41 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,38 +14,38 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableBookmarkRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableBookmarkRequest{}
+// checks if the PatchedBookmarkRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedBookmarkRequest{}
-// PatchedWritableBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableBookmarkRequest struct {
- ObjectType *string `json:"object_type,omitempty"`
- ObjectId *int64 `json:"object_id,omitempty"`
- User *int32 `json:"user,omitempty"`
+// 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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableBookmarkRequest PatchedWritableBookmarkRequest
+type _PatchedBookmarkRequest PatchedBookmarkRequest
-// NewPatchedWritableBookmarkRequest instantiates a new PatchedWritableBookmarkRequest object
+// NewPatchedBookmarkRequest instantiates a new PatchedBookmarkRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableBookmarkRequest() *PatchedWritableBookmarkRequest {
- this := PatchedWritableBookmarkRequest{}
+func NewPatchedBookmarkRequest() *PatchedBookmarkRequest {
+ this := PatchedBookmarkRequest{}
return &this
}
-// NewPatchedWritableBookmarkRequestWithDefaults instantiates a new PatchedWritableBookmarkRequest object
+// NewPatchedBookmarkRequestWithDefaults instantiates a new PatchedBookmarkRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
-func NewPatchedWritableBookmarkRequestWithDefaults() *PatchedWritableBookmarkRequest {
- this := PatchedWritableBookmarkRequest{}
+func NewPatchedBookmarkRequestWithDefaults() *PatchedBookmarkRequest {
+ this := PatchedBookmarkRequest{}
return &this
}
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
-func (o *PatchedWritableBookmarkRequest) GetObjectType() string {
+func (o *PatchedBookmarkRequest) GetObjectType() string {
if o == nil || IsNil(o.ObjectType) {
var ret string
return ret
@@ -55,7 +55,7 @@ func (o *PatchedWritableBookmarkRequest) GetObjectType() string {
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableBookmarkRequest) GetObjectTypeOk() (*string, bool) {
+func (o *PatchedBookmarkRequest) GetObjectTypeOk() (*string, bool) {
if o == nil || IsNil(o.ObjectType) {
return nil, false
}
@@ -63,7 +63,7 @@ func (o *PatchedWritableBookmarkRequest) GetObjectTypeOk() (*string, bool) {
}
// HasObjectType returns a boolean if a field has been set.
-func (o *PatchedWritableBookmarkRequest) HasObjectType() bool {
+func (o *PatchedBookmarkRequest) HasObjectType() bool {
if o != nil && !IsNil(o.ObjectType) {
return true
}
@@ -72,12 +72,12 @@ func (o *PatchedWritableBookmarkRequest) HasObjectType() bool {
}
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
-func (o *PatchedWritableBookmarkRequest) SetObjectType(v string) {
+func (o *PatchedBookmarkRequest) SetObjectType(v string) {
o.ObjectType = &v
}
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
-func (o *PatchedWritableBookmarkRequest) GetObjectId() int64 {
+func (o *PatchedBookmarkRequest) GetObjectId() int64 {
if o == nil || IsNil(o.ObjectId) {
var ret int64
return ret
@@ -87,7 +87,7 @@ func (o *PatchedWritableBookmarkRequest) GetObjectId() int64 {
// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableBookmarkRequest) GetObjectIdOk() (*int64, bool) {
+func (o *PatchedBookmarkRequest) GetObjectIdOk() (*int64, bool) {
if o == nil || IsNil(o.ObjectId) {
return nil, false
}
@@ -95,7 +95,7 @@ func (o *PatchedWritableBookmarkRequest) GetObjectIdOk() (*int64, bool) {
}
// HasObjectId returns a boolean if a field has been set.
-func (o *PatchedWritableBookmarkRequest) HasObjectId() bool {
+func (o *PatchedBookmarkRequest) HasObjectId() bool {
if o != nil && !IsNil(o.ObjectId) {
return true
}
@@ -104,14 +104,14 @@ func (o *PatchedWritableBookmarkRequest) HasObjectId() bool {
}
// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field.
-func (o *PatchedWritableBookmarkRequest) SetObjectId(v int64) {
+func (o *PatchedBookmarkRequest) SetObjectId(v int64) {
o.ObjectId = &v
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedWritableBookmarkRequest) GetUser() int32 {
+func (o *PatchedBookmarkRequest) GetUser() UserRequest {
if o == nil || IsNil(o.User) {
- var ret int32
+ var ret UserRequest
return ret
}
return *o.User
@@ -119,7 +119,7 @@ func (o *PatchedWritableBookmarkRequest) GetUser() int32 {
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableBookmarkRequest) GetUserOk() (*int32, bool) {
+func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -127,7 +127,7 @@ func (o *PatchedWritableBookmarkRequest) GetUserOk() (*int32, bool) {
}
// HasUser returns a boolean if a field has been set.
-func (o *PatchedWritableBookmarkRequest) HasUser() bool {
+func (o *PatchedBookmarkRequest) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
@@ -135,12 +135,12 @@ func (o *PatchedWritableBookmarkRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given int32 and assigns it to the User field.
-func (o *PatchedWritableBookmarkRequest) SetUser(v int32) {
+// SetUser gets a reference to the given UserRequest and assigns it to the User field.
+func (o *PatchedBookmarkRequest) SetUser(v UserRequest) {
o.User = &v
}
-func (o PatchedWritableBookmarkRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedBookmarkRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -148,7 +148,7 @@ func (o PatchedWritableBookmarkRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableBookmarkRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedBookmarkRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ObjectType) {
toSerialize["object_type"] = o.ObjectType
@@ -167,16 +167,16 @@ func (o PatchedWritableBookmarkRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableBookmarkRequest := _PatchedWritableBookmarkRequest{}
+func (o *PatchedBookmarkRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedBookmarkRequest := _PatchedBookmarkRequest{}
- err = json.Unmarshal(data, &varPatchedWritableBookmarkRequest)
+ err = json.Unmarshal(data, &varPatchedBookmarkRequest)
if err != nil {
return err
}
- *o = PatchedWritableBookmarkRequest(varPatchedWritableBookmarkRequest)
+ *o = PatchedBookmarkRequest(varPatchedBookmarkRequest)
additionalProperties := make(map[string]interface{})
@@ -190,38 +190,38 @@ func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritableBookmarkRequest struct {
- value *PatchedWritableBookmarkRequest
+type NullablePatchedBookmarkRequest struct {
+ value *PatchedBookmarkRequest
isSet bool
}
-func (v NullablePatchedWritableBookmarkRequest) Get() *PatchedWritableBookmarkRequest {
+func (v NullablePatchedBookmarkRequest) Get() *PatchedBookmarkRequest {
return v.value
}
-func (v *NullablePatchedWritableBookmarkRequest) Set(val *PatchedWritableBookmarkRequest) {
+func (v *NullablePatchedBookmarkRequest) Set(val *PatchedBookmarkRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableBookmarkRequest) IsSet() bool {
+func (v NullablePatchedBookmarkRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableBookmarkRequest) Unset() {
+func (v *NullablePatchedBookmarkRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableBookmarkRequest(val *PatchedWritableBookmarkRequest) *NullablePatchedWritableBookmarkRequest {
- return &NullablePatchedWritableBookmarkRequest{value: val, isSet: true}
+func NewNullablePatchedBookmarkRequest(val *PatchedBookmarkRequest) *NullablePatchedBookmarkRequest {
+ return &NullablePatchedBookmarkRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableBookmarkRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedBookmarkRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableBookmarkRequest) UnmarshalJSON(src []byte) error {
+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 815bb8f6ec..f7377564b0 100644
--- a/model_patched_cable_termination_request.go
+++ b/model_patched_cable_termination_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &PatchedCableTerminationRequest{}
// PatchedCableTerminationRequest Adds support for custom fields and tags.
type PatchedCableTerminationRequest struct {
Cable *int32 `json:"cable,omitempty"`
- CableEnd *End `json:"cable_end,omitempty"`
+ CableEnd *End1 `json:"cable_end,omitempty"`
TerminationType *string `json:"termination_type,omitempty"`
TerminationId *int64 `json:"termination_id,omitempty"`
AdditionalProperties map[string]interface{}
@@ -78,9 +78,9 @@ func (o *PatchedCableTerminationRequest) SetCable(v int32) {
}
// GetCableEnd returns the CableEnd field value if set, zero value otherwise.
-func (o *PatchedCableTerminationRequest) GetCableEnd() End {
+func (o *PatchedCableTerminationRequest) GetCableEnd() End1 {
if o == nil || IsNil(o.CableEnd) {
- var ret End
+ var ret End1
return ret
}
return *o.CableEnd
@@ -88,7 +88,7 @@ func (o *PatchedCableTerminationRequest) GetCableEnd() End {
// GetCableEndOk returns a tuple with the CableEnd field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End, bool) {
+func (o *PatchedCableTerminationRequest) GetCableEndOk() (*End1, bool) {
if o == nil || IsNil(o.CableEnd) {
return nil, false
}
@@ -104,8 +104,8 @@ func (o *PatchedCableTerminationRequest) HasCableEnd() bool {
return false
}
-// SetCableEnd gets a reference to the given End and assigns it to the CableEnd field.
-func (o *PatchedCableTerminationRequest) SetCableEnd(v End) {
+// SetCableEnd gets a reference to the given End1 and assigns it to the CableEnd field.
+func (o *PatchedCableTerminationRequest) SetCableEnd(v End1) {
o.CableEnd = &v
}
diff --git a/model_patched_writable_circuit_termination_request.go b/model_patched_circuit_termination_request.go
similarity index 62%
rename from model_patched_writable_circuit_termination_request.go
rename to model_patched_circuit_termination_request.go
index 84a1825d51..5367122df5 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,15 +14,15 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableCircuitTerminationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableCircuitTerminationRequest{}
+// checks if the PatchedCircuitTerminationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedCircuitTerminationRequest{}
-// PatchedWritableCircuitTerminationRequest Adds support for custom fields and tags.
-type PatchedWritableCircuitTerminationRequest struct {
- Circuit *int32 `json:"circuit,omitempty"`
- TermSide *Termination `json:"term_side,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- ProviderNetwork NullableInt32 `json:"provider_network,omitempty"`
+// 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"`
// Physical circuit speed
PortSpeed NullableInt32 `json:"port_speed,omitempty"`
// Upstream speed, if different from port speed
@@ -39,29 +39,29 @@ type PatchedWritableCircuitTerminationRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableCircuitTerminationRequest PatchedWritableCircuitTerminationRequest
+type _PatchedCircuitTerminationRequest PatchedCircuitTerminationRequest
-// NewPatchedWritableCircuitTerminationRequest instantiates a new PatchedWritableCircuitTerminationRequest object
+// NewPatchedCircuitTerminationRequest instantiates a new PatchedCircuitTerminationRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableCircuitTerminationRequest() *PatchedWritableCircuitTerminationRequest {
- this := PatchedWritableCircuitTerminationRequest{}
+func NewPatchedCircuitTerminationRequest() *PatchedCircuitTerminationRequest {
+ this := PatchedCircuitTerminationRequest{}
return &this
}
-// NewPatchedWritableCircuitTerminationRequestWithDefaults instantiates a new PatchedWritableCircuitTerminationRequest object
+// NewPatchedCircuitTerminationRequestWithDefaults instantiates a new PatchedCircuitTerminationRequest object
// This 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 NewPatchedWritableCircuitTerminationRequestWithDefaults() *PatchedWritableCircuitTerminationRequest {
- this := PatchedWritableCircuitTerminationRequest{}
+func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminationRequest {
+ this := PatchedCircuitTerminationRequest{}
return &this
}
// GetCircuit returns the Circuit field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetCircuit() int32 {
+func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest {
if o == nil || IsNil(o.Circuit) {
- var ret int32
+ var ret CircuitRequest
return ret
}
return *o.Circuit
@@ -69,7 +69,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetCircuit() int32 {
// 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 *PatchedWritableCircuitTerminationRequest) GetCircuitOk() (*int32, bool) {
+func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) {
if o == nil || IsNil(o.Circuit) {
return nil, false
}
@@ -77,7 +77,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetCircuitOk() (*int32, bool)
}
// HasCircuit returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasCircuit() bool {
+func (o *PatchedCircuitTerminationRequest) HasCircuit() bool {
if o != nil && !IsNil(o.Circuit) {
return true
}
@@ -85,15 +85,15 @@ func (o *PatchedWritableCircuitTerminationRequest) HasCircuit() bool {
return false
}
-// SetCircuit gets a reference to the given int32 and assigns it to the Circuit field.
-func (o *PatchedWritableCircuitTerminationRequest) SetCircuit(v int32) {
+// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field.
+func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) {
o.Circuit = &v
}
// GetTermSide returns the TermSide field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() Termination {
+func (o *PatchedCircuitTerminationRequest) GetTermSide() Termination1 {
if o == nil || IsNil(o.TermSide) {
- var ret Termination
+ var ret Termination1
return ret
}
return *o.TermSide
@@ -101,7 +101,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetTermSide() Termination {
// 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 *PatchedWritableCircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
+func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*Termination1, bool) {
if o == nil || IsNil(o.TermSide) {
return nil, false
}
@@ -109,7 +109,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetTermSideOk() (*Termination
}
// HasTermSide returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasTermSide() bool {
+func (o *PatchedCircuitTerminationRequest) HasTermSide() bool {
if o != nil && !IsNil(o.TermSide) {
return true
}
@@ -117,15 +117,15 @@ func (o *PatchedWritableCircuitTerminationRequest) HasTermSide() bool {
return false
}
-// SetTermSide gets a reference to the given Termination and assigns it to the TermSide field.
-func (o *PatchedWritableCircuitTerminationRequest) SetTermSide(v Termination) {
+// SetTermSide gets a reference to the given Termination1 and assigns it to the TermSide field.
+func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) {
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 *PatchedWritableCircuitTerminationRequest) GetSite() int32 {
+func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -134,7 +134,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetSite() int32 {
// 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 *PatchedWritableCircuitTerminationRequest) GetSiteOk() (*int32, bool) {
+func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -142,7 +142,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetSiteOk() (*int32, bool) {
}
// HasSite returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasSite() bool {
+func (o *PatchedCircuitTerminationRequest) HasSite() bool {
if o != nil && o.Site.IsSet() {
return true
}
@@ -150,25 +150,25 @@ func (o *PatchedWritableCircuitTerminationRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *PatchedWritableCircuitTerminationRequest) SetSite(v int32) {
+// 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)
}
// SetSiteNil sets the value for Site to be an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) SetSiteNil() {
+func (o *PatchedCircuitTerminationRequest) SetSiteNil() {
o.Site.Set(nil)
}
// UnsetSite ensures that no value is present for Site, not even an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) UnsetSite() {
+func (o *PatchedCircuitTerminationRequest) UnsetSite() {
o.Site.Unset()
}
// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetwork() int32 {
+func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest {
if o == nil || IsNil(o.ProviderNetwork.Get()) {
- var ret int32
+ var ret ProviderNetworkRequest
return ret
}
return *o.ProviderNetwork.Get()
@@ -177,7 +177,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetwork() int32 {
// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetworkOk() (*int32, bool) {
+func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) {
if o == nil {
return nil, false
}
@@ -185,7 +185,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetProviderNetworkOk() (*int3
}
// HasProviderNetwork returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasProviderNetwork() bool {
+func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool {
if o != nil && o.ProviderNetwork.IsSet() {
return true
}
@@ -193,23 +193,23 @@ func (o *PatchedWritableCircuitTerminationRequest) HasProviderNetwork() bool {
return false
}
-// SetProviderNetwork gets a reference to the given NullableInt32 and assigns it to the ProviderNetwork field.
-func (o *PatchedWritableCircuitTerminationRequest) SetProviderNetwork(v int32) {
+// 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)
}
// SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) SetProviderNetworkNil() {
+func (o *PatchedCircuitTerminationRequest) SetProviderNetworkNil() {
o.ProviderNetwork.Set(nil)
}
// UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) UnsetProviderNetwork() {
+func (o *PatchedCircuitTerminationRequest) UnsetProviderNetwork() {
o.ProviderNetwork.Unset()
}
// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCircuitTerminationRequest) GetPortSpeed() int32 {
+func (o *PatchedCircuitTerminationRequest) GetPortSpeed() int32 {
if o == nil || IsNil(o.PortSpeed.Get()) {
var ret int32
return ret
@@ -220,7 +220,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetPortSpeed() int32 {
// 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 *PatchedWritableCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool) {
+func (o *PatchedCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -228,7 +228,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetPortSpeedOk() (*int32, boo
}
// HasPortSpeed returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasPortSpeed() bool {
+func (o *PatchedCircuitTerminationRequest) HasPortSpeed() bool {
if o != nil && o.PortSpeed.IsSet() {
return true
}
@@ -237,22 +237,22 @@ func (o *PatchedWritableCircuitTerminationRequest) HasPortSpeed() bool {
}
// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field.
-func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeed(v int32) {
+func (o *PatchedCircuitTerminationRequest) SetPortSpeed(v int32) {
o.PortSpeed.Set(&v)
}
// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeedNil() {
+func (o *PatchedCircuitTerminationRequest) SetPortSpeedNil() {
o.PortSpeed.Set(nil)
}
// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) UnsetPortSpeed() {
+func (o *PatchedCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeed() int32 {
+func (o *PatchedCircuitTerminationRequest) GetUpstreamSpeed() int32 {
if o == nil || IsNil(o.UpstreamSpeed.Get()) {
var ret int32
return ret
@@ -263,7 +263,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeed() int32 {
// 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 *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool) {
+func (o *PatchedCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -271,7 +271,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32,
}
// HasUpstreamSpeed returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasUpstreamSpeed() bool {
+func (o *PatchedCircuitTerminationRequest) HasUpstreamSpeed() bool {
if o != nil && o.UpstreamSpeed.IsSet() {
return true
}
@@ -280,22 +280,22 @@ func (o *PatchedWritableCircuitTerminationRequest) HasUpstreamSpeed() bool {
}
// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field.
-func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeed(v int32) {
+func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeed(v int32) {
o.UpstreamSpeed.Set(&v)
}
// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeedNil() {
+func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeedNil() {
o.UpstreamSpeed.Set(nil)
}
// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
-func (o *PatchedWritableCircuitTerminationRequest) UnsetUpstreamSpeed() {
+func (o *PatchedCircuitTerminationRequest) UnsetUpstreamSpeed() {
o.UpstreamSpeed.Unset()
}
// GetXconnectId returns the XconnectId field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetXconnectId() string {
+func (o *PatchedCircuitTerminationRequest) GetXconnectId() string {
if o == nil || IsNil(o.XconnectId) {
var ret string
return ret
@@ -305,7 +305,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetXconnectId() string {
// 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 *PatchedWritableCircuitTerminationRequest) GetXconnectIdOk() (*string, bool) {
+func (o *PatchedCircuitTerminationRequest) GetXconnectIdOk() (*string, bool) {
if o == nil || IsNil(o.XconnectId) {
return nil, false
}
@@ -313,7 +313,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetXconnectIdOk() (*string, b
}
// HasXconnectId returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasXconnectId() bool {
+func (o *PatchedCircuitTerminationRequest) HasXconnectId() bool {
if o != nil && !IsNil(o.XconnectId) {
return true
}
@@ -322,12 +322,12 @@ func (o *PatchedWritableCircuitTerminationRequest) HasXconnectId() bool {
}
// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field.
-func (o *PatchedWritableCircuitTerminationRequest) SetXconnectId(v string) {
+func (o *PatchedCircuitTerminationRequest) SetXconnectId(v string) {
o.XconnectId = &v
}
// GetPpInfo returns the PpInfo field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetPpInfo() string {
+func (o *PatchedCircuitTerminationRequest) GetPpInfo() string {
if o == nil || IsNil(o.PpInfo) {
var ret string
return ret
@@ -337,7 +337,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetPpInfo() string {
// GetPpInfoOk returns a tuple with the PpInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCircuitTerminationRequest) GetPpInfoOk() (*string, bool) {
+func (o *PatchedCircuitTerminationRequest) GetPpInfoOk() (*string, bool) {
if o == nil || IsNil(o.PpInfo) {
return nil, false
}
@@ -345,7 +345,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetPpInfoOk() (*string, bool)
}
// HasPpInfo returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasPpInfo() bool {
+func (o *PatchedCircuitTerminationRequest) HasPpInfo() bool {
if o != nil && !IsNil(o.PpInfo) {
return true
}
@@ -354,12 +354,12 @@ func (o *PatchedWritableCircuitTerminationRequest) HasPpInfo() bool {
}
// SetPpInfo gets a reference to the given string and assigns it to the PpInfo field.
-func (o *PatchedWritableCircuitTerminationRequest) SetPpInfo(v string) {
+func (o *PatchedCircuitTerminationRequest) SetPpInfo(v string) {
o.PpInfo = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetDescription() string {
+func (o *PatchedCircuitTerminationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -369,7 +369,7 @@ func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedCircuitTerminationRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -377,7 +377,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetDescriptionOk() (*string,
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasDescription() bool {
+func (o *PatchedCircuitTerminationRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -386,12 +386,12 @@ func (o *PatchedWritableCircuitTerminationRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableCircuitTerminationRequest) SetDescription(v string) {
+func (o *PatchedCircuitTerminationRequest) SetDescription(v string) {
o.Description = &v
}
// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetMarkConnected() bool {
+func (o *PatchedCircuitTerminationRequest) GetMarkConnected() bool {
if o == nil || IsNil(o.MarkConnected) {
var ret bool
return ret
@@ -401,7 +401,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetMarkConnected() bool {
// 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 *PatchedWritableCircuitTerminationRequest) GetMarkConnectedOk() (*bool, bool) {
+func (o *PatchedCircuitTerminationRequest) GetMarkConnectedOk() (*bool, bool) {
if o == nil || IsNil(o.MarkConnected) {
return nil, false
}
@@ -409,7 +409,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetMarkConnectedOk() (*bool,
}
// HasMarkConnected returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasMarkConnected() bool {
+func (o *PatchedCircuitTerminationRequest) HasMarkConnected() bool {
if o != nil && !IsNil(o.MarkConnected) {
return true
}
@@ -418,12 +418,12 @@ func (o *PatchedWritableCircuitTerminationRequest) HasMarkConnected() bool {
}
// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field.
-func (o *PatchedWritableCircuitTerminationRequest) SetMarkConnected(v bool) {
+func (o *PatchedCircuitTerminationRequest) SetMarkConnected(v bool) {
o.MarkConnected = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetTags() []NestedTagRequest {
+func (o *PatchedCircuitTerminationRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -433,7 +433,7 @@ func (o *PatchedWritableCircuitTerminationRequest) 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 *PatchedWritableCircuitTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedCircuitTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -441,7 +441,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetTagsOk() ([]NestedTagReque
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasTags() bool {
+func (o *PatchedCircuitTerminationRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -450,12 +450,12 @@ func (o *PatchedWritableCircuitTerminationRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableCircuitTerminationRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedCircuitTerminationRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitTerminationRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedCircuitTerminationRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -465,7 +465,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetCustomFields() map[string]
// 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 *PatchedWritableCircuitTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedCircuitTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -473,7 +473,7 @@ func (o *PatchedWritableCircuitTerminationRequest) GetCustomFieldsOk() (map[stri
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableCircuitTerminationRequest) HasCustomFields() bool {
+func (o *PatchedCircuitTerminationRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -482,11 +482,11 @@ func (o *PatchedWritableCircuitTerminationRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -494,7 +494,7 @@ func (o PatchedWritableCircuitTerminationRequest) MarshalJSON() ([]byte, error)
return json.Marshal(toSerialize)
}
-func (o PatchedWritableCircuitTerminationRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedCircuitTerminationRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Circuit) {
toSerialize["circuit"] = o.Circuit
@@ -540,16 +540,16 @@ func (o PatchedWritableCircuitTerminationRequest) ToMap() (map[string]interface{
return toSerialize, nil
}
-func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableCircuitTerminationRequest := _PatchedWritableCircuitTerminationRequest{}
+func (o *PatchedCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedCircuitTerminationRequest := _PatchedCircuitTerminationRequest{}
- err = json.Unmarshal(data, &varPatchedWritableCircuitTerminationRequest)
+ err = json.Unmarshal(data, &varPatchedCircuitTerminationRequest)
if err != nil {
return err
}
- *o = PatchedWritableCircuitTerminationRequest(varPatchedWritableCircuitTerminationRequest)
+ *o = PatchedCircuitTerminationRequest(varPatchedCircuitTerminationRequest)
additionalProperties := make(map[string]interface{})
@@ -572,38 +572,38 @@ func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(data []byte) (e
return err
}
-type NullablePatchedWritableCircuitTerminationRequest struct {
- value *PatchedWritableCircuitTerminationRequest
+type NullablePatchedCircuitTerminationRequest struct {
+ value *PatchedCircuitTerminationRequest
isSet bool
}
-func (v NullablePatchedWritableCircuitTerminationRequest) Get() *PatchedWritableCircuitTerminationRequest {
+func (v NullablePatchedCircuitTerminationRequest) Get() *PatchedCircuitTerminationRequest {
return v.value
}
-func (v *NullablePatchedWritableCircuitTerminationRequest) Set(val *PatchedWritableCircuitTerminationRequest) {
+func (v *NullablePatchedCircuitTerminationRequest) Set(val *PatchedCircuitTerminationRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableCircuitTerminationRequest) IsSet() bool {
+func (v NullablePatchedCircuitTerminationRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableCircuitTerminationRequest) Unset() {
+func (v *NullablePatchedCircuitTerminationRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableCircuitTerminationRequest(val *PatchedWritableCircuitTerminationRequest) *NullablePatchedWritableCircuitTerminationRequest {
- return &NullablePatchedWritableCircuitTerminationRequest{value: val, isSet: true}
+func NewNullablePatchedCircuitTerminationRequest(val *PatchedCircuitTerminationRequest) *NullablePatchedCircuitTerminationRequest {
+ return &NullablePatchedCircuitTerminationRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableCircuitTerminationRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedCircuitTerminationRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go
index 3773d64abb..cfb64cab6f 100644
--- a/model_patched_circuit_type_request.go
+++ b/model_patched_circuit_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go
index 216d364e28..10b1fdbac5 100644
--- a/model_patched_cluster_group_request.go
+++ b/model_patched_cluster_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go
index 80892806e6..bcb47d3cdb 100644
--- a/model_patched_cluster_type_request.go
+++ b/model_patched_cluster_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_config_context_request.go b/model_patched_config_context_request.go
similarity index 61%
rename from model_patched_writable_config_context_request.go
rename to model_patched_config_context_request.go
index e4e5728dde..f8665cfe67 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,55 +14,54 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableConfigContextRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableConfigContextRequest{}
-
-// PatchedWritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableConfigContextRequest struct {
- Name *string `json:"name,omitempty"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []int32 `json:"regions,omitempty"`
- SiteGroups []int32 `json:"site_groups,omitempty"`
- Sites []int32 `json:"sites,omitempty"`
- Locations []int32 `json:"locations,omitempty"`
- DeviceTypes []int32 `json:"device_types,omitempty"`
- Roles []int32 `json:"roles,omitempty"`
- Platforms []int32 `json:"platforms,omitempty"`
- ClusterTypes []int32 `json:"cluster_types,omitempty"`
- ClusterGroups []int32 `json:"cluster_groups,omitempty"`
- Clusters []int32 `json:"clusters,omitempty"`
- TenantGroups []int32 `json:"tenant_groups,omitempty"`
- Tenants []int32 `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- Data interface{} `json:"data,omitempty"`
+// checks if the PatchedConfigContextRequest type satisfies the MappedNullable interface at compile time
+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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableConfigContextRequest PatchedWritableConfigContextRequest
+type _PatchedConfigContextRequest PatchedConfigContextRequest
-// NewPatchedWritableConfigContextRequest instantiates a new PatchedWritableConfigContextRequest object
+// NewPatchedConfigContextRequest instantiates a new PatchedConfigContextRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableConfigContextRequest() *PatchedWritableConfigContextRequest {
- this := PatchedWritableConfigContextRequest{}
+func NewPatchedConfigContextRequest() *PatchedConfigContextRequest {
+ this := PatchedConfigContextRequest{}
return &this
}
-// NewPatchedWritableConfigContextRequestWithDefaults instantiates a new PatchedWritableConfigContextRequest object
+// NewPatchedConfigContextRequestWithDefaults instantiates a new PatchedConfigContextRequest object
// This 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 NewPatchedWritableConfigContextRequestWithDefaults() *PatchedWritableConfigContextRequest {
- this := PatchedWritableConfigContextRequest{}
+func NewPatchedConfigContextRequestWithDefaults() *PatchedConfigContextRequest {
+ this := PatchedConfigContextRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetName() string {
+func (o *PatchedConfigContextRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -72,7 +71,7 @@ func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) GetNameOk() (*string, bool) {
+func (o *PatchedConfigContextRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -80,7 +79,7 @@ func (o *PatchedWritableConfigContextRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasName() bool {
+func (o *PatchedConfigContextRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -89,12 +88,12 @@ func (o *PatchedWritableConfigContextRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableConfigContextRequest) SetName(v string) {
+func (o *PatchedConfigContextRequest) SetName(v string) {
o.Name = &v
}
// GetWeight returns the Weight field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetWeight() int32 {
+func (o *PatchedConfigContextRequest) GetWeight() int32 {
if o == nil || IsNil(o.Weight) {
var ret int32
return ret
@@ -104,7 +103,7 @@ func (o *PatchedWritableConfigContextRequest) GetWeight() int32 {
// 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 *PatchedWritableConfigContextRequest) GetWeightOk() (*int32, bool) {
+func (o *PatchedConfigContextRequest) GetWeightOk() (*int32, bool) {
if o == nil || IsNil(o.Weight) {
return nil, false
}
@@ -112,7 +111,7 @@ func (o *PatchedWritableConfigContextRequest) GetWeightOk() (*int32, bool) {
}
// HasWeight returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasWeight() bool {
+func (o *PatchedConfigContextRequest) HasWeight() bool {
if o != nil && !IsNil(o.Weight) {
return true
}
@@ -121,12 +120,12 @@ func (o *PatchedWritableConfigContextRequest) HasWeight() bool {
}
// SetWeight gets a reference to the given int32 and assigns it to the Weight field.
-func (o *PatchedWritableConfigContextRequest) SetWeight(v int32) {
+func (o *PatchedConfigContextRequest) SetWeight(v int32) {
o.Weight = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetDescription() string {
+func (o *PatchedConfigContextRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -136,7 +135,7 @@ func (o *PatchedWritableConfigContextRequest) 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 *PatchedWritableConfigContextRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedConfigContextRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -144,7 +143,7 @@ func (o *PatchedWritableConfigContextRequest) GetDescriptionOk() (*string, bool)
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasDescription() bool {
+func (o *PatchedConfigContextRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -153,12 +152,12 @@ func (o *PatchedWritableConfigContextRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableConfigContextRequest) SetDescription(v string) {
+func (o *PatchedConfigContextRequest) SetDescription(v string) {
o.Description = &v
}
// GetIsActive returns the IsActive field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetIsActive() bool {
+func (o *PatchedConfigContextRequest) GetIsActive() bool {
if o == nil || IsNil(o.IsActive) {
var ret bool
return ret
@@ -168,7 +167,7 @@ func (o *PatchedWritableConfigContextRequest) GetIsActive() bool {
// 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 *PatchedWritableConfigContextRequest) GetIsActiveOk() (*bool, bool) {
+func (o *PatchedConfigContextRequest) GetIsActiveOk() (*bool, bool) {
if o == nil || IsNil(o.IsActive) {
return nil, false
}
@@ -176,7 +175,7 @@ func (o *PatchedWritableConfigContextRequest) GetIsActiveOk() (*bool, bool) {
}
// HasIsActive returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasIsActive() bool {
+func (o *PatchedConfigContextRequest) HasIsActive() bool {
if o != nil && !IsNil(o.IsActive) {
return true
}
@@ -185,12 +184,12 @@ func (o *PatchedWritableConfigContextRequest) HasIsActive() bool {
}
// SetIsActive gets a reference to the given bool and assigns it to the IsActive field.
-func (o *PatchedWritableConfigContextRequest) SetIsActive(v bool) {
+func (o *PatchedConfigContextRequest) SetIsActive(v bool) {
o.IsActive = &v
}
// GetRegions returns the Regions field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetRegions() []int32 {
+func (o *PatchedConfigContextRequest) GetRegions() []int32 {
if o == nil || IsNil(o.Regions) {
var ret []int32
return ret
@@ -200,7 +199,7 @@ func (o *PatchedWritableConfigContextRequest) GetRegions() []int32 {
// GetRegionsOk returns a tuple with the Regions field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetRegionsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetRegionsOk() ([]int32, bool) {
if o == nil || IsNil(o.Regions) {
return nil, false
}
@@ -208,7 +207,7 @@ func (o *PatchedWritableConfigContextRequest) GetRegionsOk() ([]int32, bool) {
}
// HasRegions returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasRegions() bool {
+func (o *PatchedConfigContextRequest) HasRegions() bool {
if o != nil && !IsNil(o.Regions) {
return true
}
@@ -217,12 +216,12 @@ func (o *PatchedWritableConfigContextRequest) HasRegions() bool {
}
// SetRegions gets a reference to the given []int32 and assigns it to the Regions field.
-func (o *PatchedWritableConfigContextRequest) SetRegions(v []int32) {
+func (o *PatchedConfigContextRequest) SetRegions(v []int32) {
o.Regions = v
}
// GetSiteGroups returns the SiteGroups field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetSiteGroups() []int32 {
+func (o *PatchedConfigContextRequest) GetSiteGroups() []int32 {
if o == nil || IsNil(o.SiteGroups) {
var ret []int32
return ret
@@ -232,7 +231,7 @@ func (o *PatchedWritableConfigContextRequest) GetSiteGroups() []int32 {
// GetSiteGroupsOk returns a tuple with the SiteGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetSiteGroupsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetSiteGroupsOk() ([]int32, bool) {
if o == nil || IsNil(o.SiteGroups) {
return nil, false
}
@@ -240,7 +239,7 @@ func (o *PatchedWritableConfigContextRequest) GetSiteGroupsOk() ([]int32, bool)
}
// HasSiteGroups returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasSiteGroups() bool {
+func (o *PatchedConfigContextRequest) HasSiteGroups() bool {
if o != nil && !IsNil(o.SiteGroups) {
return true
}
@@ -249,12 +248,12 @@ func (o *PatchedWritableConfigContextRequest) HasSiteGroups() bool {
}
// SetSiteGroups gets a reference to the given []int32 and assigns it to the SiteGroups field.
-func (o *PatchedWritableConfigContextRequest) SetSiteGroups(v []int32) {
+func (o *PatchedConfigContextRequest) SetSiteGroups(v []int32) {
o.SiteGroups = v
}
// GetSites returns the Sites field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetSites() []int32 {
+func (o *PatchedConfigContextRequest) GetSites() []int32 {
if o == nil || IsNil(o.Sites) {
var ret []int32
return ret
@@ -264,7 +263,7 @@ func (o *PatchedWritableConfigContextRequest) GetSites() []int32 {
// GetSitesOk returns a tuple with the Sites field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetSitesOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetSitesOk() ([]int32, bool) {
if o == nil || IsNil(o.Sites) {
return nil, false
}
@@ -272,7 +271,7 @@ func (o *PatchedWritableConfigContextRequest) GetSitesOk() ([]int32, bool) {
}
// HasSites returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasSites() bool {
+func (o *PatchedConfigContextRequest) HasSites() bool {
if o != nil && !IsNil(o.Sites) {
return true
}
@@ -281,12 +280,12 @@ func (o *PatchedWritableConfigContextRequest) HasSites() bool {
}
// SetSites gets a reference to the given []int32 and assigns it to the Sites field.
-func (o *PatchedWritableConfigContextRequest) SetSites(v []int32) {
+func (o *PatchedConfigContextRequest) SetSites(v []int32) {
o.Sites = v
}
// GetLocations returns the Locations field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetLocations() []int32 {
+func (o *PatchedConfigContextRequest) GetLocations() []int32 {
if o == nil || IsNil(o.Locations) {
var ret []int32
return ret
@@ -296,7 +295,7 @@ func (o *PatchedWritableConfigContextRequest) GetLocations() []int32 {
// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetLocationsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetLocationsOk() ([]int32, bool) {
if o == nil || IsNil(o.Locations) {
return nil, false
}
@@ -304,7 +303,7 @@ func (o *PatchedWritableConfigContextRequest) GetLocationsOk() ([]int32, bool) {
}
// HasLocations returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasLocations() bool {
+func (o *PatchedConfigContextRequest) HasLocations() bool {
if o != nil && !IsNil(o.Locations) {
return true
}
@@ -313,12 +312,12 @@ func (o *PatchedWritableConfigContextRequest) HasLocations() bool {
}
// SetLocations gets a reference to the given []int32 and assigns it to the Locations field.
-func (o *PatchedWritableConfigContextRequest) SetLocations(v []int32) {
+func (o *PatchedConfigContextRequest) SetLocations(v []int32) {
o.Locations = v
}
// GetDeviceTypes returns the DeviceTypes field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetDeviceTypes() []int32 {
+func (o *PatchedConfigContextRequest) GetDeviceTypes() []int32 {
if o == nil || IsNil(o.DeviceTypes) {
var ret []int32
return ret
@@ -328,7 +327,7 @@ func (o *PatchedWritableConfigContextRequest) GetDeviceTypes() []int32 {
// GetDeviceTypesOk returns a tuple with the DeviceTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetDeviceTypesOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetDeviceTypesOk() ([]int32, bool) {
if o == nil || IsNil(o.DeviceTypes) {
return nil, false
}
@@ -336,7 +335,7 @@ func (o *PatchedWritableConfigContextRequest) GetDeviceTypesOk() ([]int32, bool)
}
// HasDeviceTypes returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasDeviceTypes() bool {
+func (o *PatchedConfigContextRequest) HasDeviceTypes() bool {
if o != nil && !IsNil(o.DeviceTypes) {
return true
}
@@ -345,12 +344,12 @@ func (o *PatchedWritableConfigContextRequest) HasDeviceTypes() bool {
}
// SetDeviceTypes gets a reference to the given []int32 and assigns it to the DeviceTypes field.
-func (o *PatchedWritableConfigContextRequest) SetDeviceTypes(v []int32) {
+func (o *PatchedConfigContextRequest) SetDeviceTypes(v []int32) {
o.DeviceTypes = v
}
// GetRoles returns the Roles field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetRoles() []int32 {
+func (o *PatchedConfigContextRequest) GetRoles() []int32 {
if o == nil || IsNil(o.Roles) {
var ret []int32
return ret
@@ -360,7 +359,7 @@ func (o *PatchedWritableConfigContextRequest) GetRoles() []int32 {
// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetRolesOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetRolesOk() ([]int32, bool) {
if o == nil || IsNil(o.Roles) {
return nil, false
}
@@ -368,7 +367,7 @@ func (o *PatchedWritableConfigContextRequest) GetRolesOk() ([]int32, bool) {
}
// HasRoles returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasRoles() bool {
+func (o *PatchedConfigContextRequest) HasRoles() bool {
if o != nil && !IsNil(o.Roles) {
return true
}
@@ -377,12 +376,12 @@ func (o *PatchedWritableConfigContextRequest) HasRoles() bool {
}
// SetRoles gets a reference to the given []int32 and assigns it to the Roles field.
-func (o *PatchedWritableConfigContextRequest) SetRoles(v []int32) {
+func (o *PatchedConfigContextRequest) SetRoles(v []int32) {
o.Roles = v
}
// GetPlatforms returns the Platforms field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetPlatforms() []int32 {
+func (o *PatchedConfigContextRequest) GetPlatforms() []int32 {
if o == nil || IsNil(o.Platforms) {
var ret []int32
return ret
@@ -392,7 +391,7 @@ func (o *PatchedWritableConfigContextRequest) GetPlatforms() []int32 {
// GetPlatformsOk returns a tuple with the Platforms field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetPlatformsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetPlatformsOk() ([]int32, bool) {
if o == nil || IsNil(o.Platforms) {
return nil, false
}
@@ -400,7 +399,7 @@ func (o *PatchedWritableConfigContextRequest) GetPlatformsOk() ([]int32, bool) {
}
// HasPlatforms returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasPlatforms() bool {
+func (o *PatchedConfigContextRequest) HasPlatforms() bool {
if o != nil && !IsNil(o.Platforms) {
return true
}
@@ -409,12 +408,12 @@ func (o *PatchedWritableConfigContextRequest) HasPlatforms() bool {
}
// SetPlatforms gets a reference to the given []int32 and assigns it to the Platforms field.
-func (o *PatchedWritableConfigContextRequest) SetPlatforms(v []int32) {
+func (o *PatchedConfigContextRequest) SetPlatforms(v []int32) {
o.Platforms = v
}
// GetClusterTypes returns the ClusterTypes field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetClusterTypes() []int32 {
+func (o *PatchedConfigContextRequest) GetClusterTypes() []int32 {
if o == nil || IsNil(o.ClusterTypes) {
var ret []int32
return ret
@@ -424,7 +423,7 @@ func (o *PatchedWritableConfigContextRequest) GetClusterTypes() []int32 {
// GetClusterTypesOk returns a tuple with the ClusterTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetClusterTypesOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetClusterTypesOk() ([]int32, bool) {
if o == nil || IsNil(o.ClusterTypes) {
return nil, false
}
@@ -432,7 +431,7 @@ func (o *PatchedWritableConfigContextRequest) GetClusterTypesOk() ([]int32, bool
}
// HasClusterTypes returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasClusterTypes() bool {
+func (o *PatchedConfigContextRequest) HasClusterTypes() bool {
if o != nil && !IsNil(o.ClusterTypes) {
return true
}
@@ -441,12 +440,12 @@ func (o *PatchedWritableConfigContextRequest) HasClusterTypes() bool {
}
// SetClusterTypes gets a reference to the given []int32 and assigns it to the ClusterTypes field.
-func (o *PatchedWritableConfigContextRequest) SetClusterTypes(v []int32) {
+func (o *PatchedConfigContextRequest) SetClusterTypes(v []int32) {
o.ClusterTypes = v
}
// GetClusterGroups returns the ClusterGroups field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetClusterGroups() []int32 {
+func (o *PatchedConfigContextRequest) GetClusterGroups() []int32 {
if o == nil || IsNil(o.ClusterGroups) {
var ret []int32
return ret
@@ -456,7 +455,7 @@ func (o *PatchedWritableConfigContextRequest) GetClusterGroups() []int32 {
// GetClusterGroupsOk returns a tuple with the ClusterGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetClusterGroupsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetClusterGroupsOk() ([]int32, bool) {
if o == nil || IsNil(o.ClusterGroups) {
return nil, false
}
@@ -464,7 +463,7 @@ func (o *PatchedWritableConfigContextRequest) GetClusterGroupsOk() ([]int32, boo
}
// HasClusterGroups returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasClusterGroups() bool {
+func (o *PatchedConfigContextRequest) HasClusterGroups() bool {
if o != nil && !IsNil(o.ClusterGroups) {
return true
}
@@ -473,12 +472,12 @@ func (o *PatchedWritableConfigContextRequest) HasClusterGroups() bool {
}
// SetClusterGroups gets a reference to the given []int32 and assigns it to the ClusterGroups field.
-func (o *PatchedWritableConfigContextRequest) SetClusterGroups(v []int32) {
+func (o *PatchedConfigContextRequest) SetClusterGroups(v []int32) {
o.ClusterGroups = v
}
// GetClusters returns the Clusters field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetClusters() []int32 {
+func (o *PatchedConfigContextRequest) GetClusters() []int32 {
if o == nil || IsNil(o.Clusters) {
var ret []int32
return ret
@@ -488,7 +487,7 @@ func (o *PatchedWritableConfigContextRequest) GetClusters() []int32 {
// GetClustersOk returns a tuple with the Clusters field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetClustersOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetClustersOk() ([]int32, bool) {
if o == nil || IsNil(o.Clusters) {
return nil, false
}
@@ -496,7 +495,7 @@ func (o *PatchedWritableConfigContextRequest) GetClustersOk() ([]int32, bool) {
}
// HasClusters returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasClusters() bool {
+func (o *PatchedConfigContextRequest) HasClusters() bool {
if o != nil && !IsNil(o.Clusters) {
return true
}
@@ -505,12 +504,12 @@ func (o *PatchedWritableConfigContextRequest) HasClusters() bool {
}
// SetClusters gets a reference to the given []int32 and assigns it to the Clusters field.
-func (o *PatchedWritableConfigContextRequest) SetClusters(v []int32) {
+func (o *PatchedConfigContextRequest) SetClusters(v []int32) {
o.Clusters = v
}
// GetTenantGroups returns the TenantGroups field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetTenantGroups() []int32 {
+func (o *PatchedConfigContextRequest) GetTenantGroups() []int32 {
if o == nil || IsNil(o.TenantGroups) {
var ret []int32
return ret
@@ -520,7 +519,7 @@ func (o *PatchedWritableConfigContextRequest) GetTenantGroups() []int32 {
// GetTenantGroupsOk returns a tuple with the TenantGroups field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetTenantGroupsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetTenantGroupsOk() ([]int32, bool) {
if o == nil || IsNil(o.TenantGroups) {
return nil, false
}
@@ -528,7 +527,7 @@ func (o *PatchedWritableConfigContextRequest) GetTenantGroupsOk() ([]int32, bool
}
// HasTenantGroups returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasTenantGroups() bool {
+func (o *PatchedConfigContextRequest) HasTenantGroups() bool {
if o != nil && !IsNil(o.TenantGroups) {
return true
}
@@ -537,12 +536,12 @@ func (o *PatchedWritableConfigContextRequest) HasTenantGroups() bool {
}
// SetTenantGroups gets a reference to the given []int32 and assigns it to the TenantGroups field.
-func (o *PatchedWritableConfigContextRequest) SetTenantGroups(v []int32) {
+func (o *PatchedConfigContextRequest) SetTenantGroups(v []int32) {
o.TenantGroups = v
}
// GetTenants returns the Tenants field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetTenants() []int32 {
+func (o *PatchedConfigContextRequest) GetTenants() []int32 {
if o == nil || IsNil(o.Tenants) {
var ret []int32
return ret
@@ -552,7 +551,7 @@ func (o *PatchedWritableConfigContextRequest) GetTenants() []int32 {
// GetTenantsOk returns a tuple with the Tenants field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigContextRequest) GetTenantsOk() ([]int32, bool) {
+func (o *PatchedConfigContextRequest) GetTenantsOk() ([]int32, bool) {
if o == nil || IsNil(o.Tenants) {
return nil, false
}
@@ -560,7 +559,7 @@ func (o *PatchedWritableConfigContextRequest) GetTenantsOk() ([]int32, bool) {
}
// HasTenants returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasTenants() bool {
+func (o *PatchedConfigContextRequest) HasTenants() bool {
if o != nil && !IsNil(o.Tenants) {
return true
}
@@ -569,12 +568,12 @@ func (o *PatchedWritableConfigContextRequest) HasTenants() bool {
}
// SetTenants gets a reference to the given []int32 and assigns it to the Tenants field.
-func (o *PatchedWritableConfigContextRequest) SetTenants(v []int32) {
+func (o *PatchedConfigContextRequest) SetTenants(v []int32) {
o.Tenants = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableConfigContextRequest) GetTags() []string {
+func (o *PatchedConfigContextRequest) GetTags() []string {
if o == nil || IsNil(o.Tags) {
var ret []string
return ret
@@ -584,7 +583,7 @@ func (o *PatchedWritableConfigContextRequest) GetTags() []string {
// 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 *PatchedWritableConfigContextRequest) GetTagsOk() ([]string, bool) {
+func (o *PatchedConfigContextRequest) GetTagsOk() ([]string, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -592,7 +591,7 @@ func (o *PatchedWritableConfigContextRequest) GetTagsOk() ([]string, bool) {
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasTags() bool {
+func (o *PatchedConfigContextRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -601,55 +600,44 @@ func (o *PatchedWritableConfigContextRequest) HasTags() bool {
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
-func (o *PatchedWritableConfigContextRequest) SetTags(v []string) {
+func (o *PatchedConfigContextRequest) SetTags(v []string) {
o.Tags = v
}
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConfigContextRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
+// GetDataSource returns the DataSource field value if set, zero value otherwise.
+func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest {
+ if o == nil || IsNil(o.DataSource) {
+ var ret DataSourceRequest
return ret
}
- return *o.DataSource.Get()
+ 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.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConfigContextRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
+func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) {
+ if o == nil || IsNil(o.DataSource) {
return nil, false
}
- return o.DataSource.Get(), o.DataSource.IsSet()
+ return o.DataSource, true
}
// HasDataSource returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
+func (o *PatchedConfigContextRequest) HasDataSource() bool {
+ if o != nil && !IsNil(o.DataSource) {
return true
}
return false
}
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *PatchedWritableConfigContextRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
-}
-
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *PatchedWritableConfigContextRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *PatchedWritableConfigContextRequest) UnsetDataSource() {
- o.DataSource.Unset()
+// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field.
+func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) {
+ o.DataSource = &v
}
// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConfigContextRequest) GetData() interface{} {
+func (o *PatchedConfigContextRequest) GetData() interface{} {
if o == nil {
var ret interface{}
return ret
@@ -660,7 +648,7 @@ func (o *PatchedWritableConfigContextRequest) GetData() interface{} {
// 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 *PatchedWritableConfigContextRequest) GetDataOk() (*interface{}, bool) {
+func (o *PatchedConfigContextRequest) GetDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.Data) {
return nil, false
}
@@ -668,7 +656,7 @@ func (o *PatchedWritableConfigContextRequest) GetDataOk() (*interface{}, bool) {
}
// HasData returns a boolean if a field has been set.
-func (o *PatchedWritableConfigContextRequest) HasData() bool {
+func (o *PatchedConfigContextRequest) HasData() bool {
if o != nil && !IsNil(o.Data) {
return true
}
@@ -677,11 +665,11 @@ func (o *PatchedWritableConfigContextRequest) HasData() bool {
}
// SetData gets a reference to the given interface{} and assigns it to the Data field.
-func (o *PatchedWritableConfigContextRequest) SetData(v interface{}) {
+func (o *PatchedConfigContextRequest) SetData(v interface{}) {
o.Data = v
}
-func (o PatchedWritableConfigContextRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedConfigContextRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -689,7 +677,7 @@ func (o PatchedWritableConfigContextRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedConfigContextRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -742,8 +730,8 @@ func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, er
if !IsNil(o.Tags) {
toSerialize["tags"] = o.Tags
}
- if o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
+ if !IsNil(o.DataSource) {
+ toSerialize["data_source"] = o.DataSource
}
if o.Data != nil {
toSerialize["data"] = o.Data
@@ -756,16 +744,16 @@ func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableConfigContextRequest := _PatchedWritableConfigContextRequest{}
+func (o *PatchedConfigContextRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedConfigContextRequest := _PatchedConfigContextRequest{}
- err = json.Unmarshal(data, &varPatchedWritableConfigContextRequest)
+ err = json.Unmarshal(data, &varPatchedConfigContextRequest)
if err != nil {
return err
}
- *o = PatchedWritableConfigContextRequest(varPatchedWritableConfigContextRequest)
+ *o = PatchedConfigContextRequest(varPatchedConfigContextRequest)
additionalProperties := make(map[string]interface{})
@@ -795,38 +783,38 @@ func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(data []byte) (err er
return err
}
-type NullablePatchedWritableConfigContextRequest struct {
- value *PatchedWritableConfigContextRequest
+type NullablePatchedConfigContextRequest struct {
+ value *PatchedConfigContextRequest
isSet bool
}
-func (v NullablePatchedWritableConfigContextRequest) Get() *PatchedWritableConfigContextRequest {
+func (v NullablePatchedConfigContextRequest) Get() *PatchedConfigContextRequest {
return v.value
}
-func (v *NullablePatchedWritableConfigContextRequest) Set(val *PatchedWritableConfigContextRequest) {
+func (v *NullablePatchedConfigContextRequest) Set(val *PatchedConfigContextRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableConfigContextRequest) IsSet() bool {
+func (v NullablePatchedConfigContextRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableConfigContextRequest) Unset() {
+func (v *NullablePatchedConfigContextRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableConfigContextRequest(val *PatchedWritableConfigContextRequest) *NullablePatchedWritableConfigContextRequest {
- return &NullablePatchedWritableConfigContextRequest{value: val, isSet: true}
+func NewNullablePatchedConfigContextRequest(val *PatchedConfigContextRequest) *NullablePatchedConfigContextRequest {
+ return &NullablePatchedConfigContextRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableConfigContextRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedConfigContextRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableConfigContextRequest) UnmarshalJSON(src []byte) error {
+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
new file mode 100644
index 0000000000..f4db50b416
--- /dev/null
+++ b/model_patched_config_template_request.go
@@ -0,0 +1,341 @@
+/*
+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 PatchedConfigTemplateRequest type satisfies the MappedNullable interface at compile time
+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"`
+ 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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _PatchedConfigTemplateRequest PatchedConfigTemplateRequest
+
+// NewPatchedConfigTemplateRequest instantiates a new PatchedConfigTemplateRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewPatchedConfigTemplateRequest() *PatchedConfigTemplateRequest {
+ this := PatchedConfigTemplateRequest{}
+ return &this
+}
+
+// NewPatchedConfigTemplateRequestWithDefaults instantiates a new PatchedConfigTemplateRequest object
+// This 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 NewPatchedConfigTemplateRequestWithDefaults() *PatchedConfigTemplateRequest {
+ this := PatchedConfigTemplateRequest{}
+ return &this
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetName(v string) {
+ o.Name = &v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
+ o.EnvironmentParams = v
+}
+
+// GetTemplateCode returns the TemplateCode field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetTemplateCode() string {
+ if o == nil || IsNil(o.TemplateCode) {
+ var ret string
+ return ret
+ }
+ return *o.TemplateCode
+}
+
+// GetTemplateCodeOk returns a tuple with the TemplateCode field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *PatchedConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) {
+ if o == nil || IsNil(o.TemplateCode) {
+ return nil, false
+ }
+ return o.TemplateCode, true
+}
+
+// HasTemplateCode returns a boolean if a field has been set.
+func (o *PatchedConfigTemplateRequest) HasTemplateCode() bool {
+ if o != nil && !IsNil(o.TemplateCode) {
+ return true
+ }
+
+ return false
+}
+
+// SetTemplateCode gets a reference to the given string and assigns it to the TemplateCode field.
+func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) {
+ o.TemplateCode = &v
+}
+
+// GetDataSource returns the DataSource field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest {
+ if o == nil || IsNil(o.DataSource) {
+ var ret DataSourceRequest
+ 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 *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, 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 *PatchedConfigTemplateRequest) HasDataSource() bool {
+ if o != nil && !IsNil(o.DataSource) {
+ return true
+ }
+
+ return false
+}
+
+// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field.
+func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) {
+ o.DataSource = &v
+}
+
+// GetTags returns the Tags field value if set, zero value otherwise.
+func (o *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) 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 *PatchedConfigTemplateRequest) SetTags(v []NestedTagRequest) {
+ o.Tags = v
+}
+
+func (o PatchedConfigTemplateRequest) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o PatchedConfigTemplateRequest) 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 o.EnvironmentParams != nil {
+ toSerialize["environment_params"] = o.EnvironmentParams
+ }
+ if !IsNil(o.TemplateCode) {
+ 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
+ }
+
+ return toSerialize, nil
+}
+
+func (o *PatchedConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedConfigTemplateRequest := _PatchedConfigTemplateRequest{}
+
+ err = json.Unmarshal(data, &varPatchedConfigTemplateRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = PatchedConfigTemplateRequest(varPatchedConfigTemplateRequest)
+
+ additionalProperties := make(map[string]interface{})
+
+ 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
+ }
+
+ return err
+}
+
+type NullablePatchedConfigTemplateRequest struct {
+ value *PatchedConfigTemplateRequest
+ isSet bool
+}
+
+func (v NullablePatchedConfigTemplateRequest) Get() *PatchedConfigTemplateRequest {
+ return v.value
+}
+
+func (v *NullablePatchedConfigTemplateRequest) Set(val *PatchedConfigTemplateRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullablePatchedConfigTemplateRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullablePatchedConfigTemplateRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullablePatchedConfigTemplateRequest(val *PatchedConfigTemplateRequest) *NullablePatchedConfigTemplateRequest {
+ return &NullablePatchedConfigTemplateRequest{value: val, isSet: true}
+}
+
+func (v NullablePatchedConfigTemplateRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullablePatchedConfigTemplateRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_patched_writable_contact_request.go b/model_patched_contact_request.go
similarity index 62%
rename from model_patched_writable_contact_request.go
rename to model_patched_contact_request.go
index dcb83bcb90..d5baee7b44 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,48 +14,48 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableContactRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableContactRequest{}
-
-// PatchedWritableContactRequest Adds support for custom fields and tags.
-type PatchedWritableContactRequest struct {
- Group NullableInt32 `json:"group,omitempty"`
- Name *string `json:"name,omitempty"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+// checks if the PatchedContactRequest type satisfies the MappedNullable interface at compile time
+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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableContactRequest PatchedWritableContactRequest
+type _PatchedContactRequest PatchedContactRequest
-// NewPatchedWritableContactRequest instantiates a new PatchedWritableContactRequest object
+// NewPatchedContactRequest instantiates a new PatchedContactRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableContactRequest() *PatchedWritableContactRequest {
- this := PatchedWritableContactRequest{}
+func NewPatchedContactRequest() *PatchedContactRequest {
+ this := PatchedContactRequest{}
return &this
}
-// NewPatchedWritableContactRequestWithDefaults instantiates a new PatchedWritableContactRequest object
+// NewPatchedContactRequestWithDefaults instantiates a new PatchedContactRequest object
// This 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 NewPatchedWritableContactRequestWithDefaults() *PatchedWritableContactRequest {
- this := PatchedWritableContactRequest{}
+func NewPatchedContactRequestWithDefaults() *PatchedContactRequest {
+ this := PatchedContactRequest{}
return &this
}
// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableContactRequest) GetGroup() int32 {
+func (o *PatchedContactRequest) GetGroup() ContactGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret ContactGroupRequest
return ret
}
return *o.Group.Get()
@@ -64,7 +64,7 @@ func (o *PatchedWritableContactRequest) GetGroup() int32 {
// 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 *PatchedWritableContactRequest) GetGroupOk() (*int32, bool) {
+func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -72,7 +72,7 @@ func (o *PatchedWritableContactRequest) GetGroupOk() (*int32, bool) {
}
// HasGroup returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasGroup() bool {
+func (o *PatchedContactRequest) HasGroup() bool {
if o != nil && o.Group.IsSet() {
return true
}
@@ -80,23 +80,23 @@ func (o *PatchedWritableContactRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableContactRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field.
+func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) {
o.Group.Set(&v)
}
// SetGroupNil sets the value for Group to be an explicit nil
-func (o *PatchedWritableContactRequest) SetGroupNil() {
+func (o *PatchedContactRequest) SetGroupNil() {
o.Group.Set(nil)
}
// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *PatchedWritableContactRequest) UnsetGroup() {
+func (o *PatchedContactRequest) UnsetGroup() {
o.Group.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetName() string {
+func (o *PatchedContactRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -106,7 +106,7 @@ func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) GetNameOk() (*string, bool) {
+func (o *PatchedContactRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -114,7 +114,7 @@ func (o *PatchedWritableContactRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasName() bool {
+func (o *PatchedContactRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -123,12 +123,12 @@ func (o *PatchedWritableContactRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableContactRequest) SetName(v string) {
+func (o *PatchedContactRequest) SetName(v string) {
o.Name = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetTitle() string {
+func (o *PatchedContactRequest) GetTitle() string {
if o == nil || IsNil(o.Title) {
var ret string
return ret
@@ -138,7 +138,7 @@ func (o *PatchedWritableContactRequest) GetTitle() string {
// 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 *PatchedWritableContactRequest) GetTitleOk() (*string, bool) {
+func (o *PatchedContactRequest) GetTitleOk() (*string, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
@@ -146,7 +146,7 @@ func (o *PatchedWritableContactRequest) GetTitleOk() (*string, bool) {
}
// HasTitle returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasTitle() bool {
+func (o *PatchedContactRequest) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
@@ -155,12 +155,12 @@ func (o *PatchedWritableContactRequest) HasTitle() bool {
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
-func (o *PatchedWritableContactRequest) SetTitle(v string) {
+func (o *PatchedContactRequest) SetTitle(v string) {
o.Title = &v
}
// GetPhone returns the Phone field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetPhone() string {
+func (o *PatchedContactRequest) GetPhone() string {
if o == nil || IsNil(o.Phone) {
var ret string
return ret
@@ -170,7 +170,7 @@ func (o *PatchedWritableContactRequest) GetPhone() string {
// 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 *PatchedWritableContactRequest) GetPhoneOk() (*string, bool) {
+func (o *PatchedContactRequest) GetPhoneOk() (*string, bool) {
if o == nil || IsNil(o.Phone) {
return nil, false
}
@@ -178,7 +178,7 @@ func (o *PatchedWritableContactRequest) GetPhoneOk() (*string, bool) {
}
// HasPhone returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasPhone() bool {
+func (o *PatchedContactRequest) HasPhone() bool {
if o != nil && !IsNil(o.Phone) {
return true
}
@@ -187,12 +187,12 @@ func (o *PatchedWritableContactRequest) HasPhone() bool {
}
// SetPhone gets a reference to the given string and assigns it to the Phone field.
-func (o *PatchedWritableContactRequest) SetPhone(v string) {
+func (o *PatchedContactRequest) SetPhone(v string) {
o.Phone = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetEmail() string {
+func (o *PatchedContactRequest) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
@@ -202,7 +202,7 @@ func (o *PatchedWritableContactRequest) GetEmail() string {
// 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 *PatchedWritableContactRequest) GetEmailOk() (*string, bool) {
+func (o *PatchedContactRequest) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
@@ -210,7 +210,7 @@ func (o *PatchedWritableContactRequest) GetEmailOk() (*string, bool) {
}
// HasEmail returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasEmail() bool {
+func (o *PatchedContactRequest) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
@@ -219,12 +219,12 @@ func (o *PatchedWritableContactRequest) HasEmail() bool {
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
-func (o *PatchedWritableContactRequest) SetEmail(v string) {
+func (o *PatchedContactRequest) SetEmail(v string) {
o.Email = &v
}
// GetAddress returns the Address field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetAddress() string {
+func (o *PatchedContactRequest) GetAddress() string {
if o == nil || IsNil(o.Address) {
var ret string
return ret
@@ -234,7 +234,7 @@ func (o *PatchedWritableContactRequest) GetAddress() string {
// 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 *PatchedWritableContactRequest) GetAddressOk() (*string, bool) {
+func (o *PatchedContactRequest) GetAddressOk() (*string, bool) {
if o == nil || IsNil(o.Address) {
return nil, false
}
@@ -242,7 +242,7 @@ func (o *PatchedWritableContactRequest) GetAddressOk() (*string, bool) {
}
// HasAddress returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasAddress() bool {
+func (o *PatchedContactRequest) HasAddress() bool {
if o != nil && !IsNil(o.Address) {
return true
}
@@ -251,12 +251,12 @@ func (o *PatchedWritableContactRequest) HasAddress() bool {
}
// SetAddress gets a reference to the given string and assigns it to the Address field.
-func (o *PatchedWritableContactRequest) SetAddress(v string) {
+func (o *PatchedContactRequest) SetAddress(v string) {
o.Address = &v
}
// GetLink returns the Link field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetLink() string {
+func (o *PatchedContactRequest) GetLink() string {
if o == nil || IsNil(o.Link) {
var ret string
return ret
@@ -266,7 +266,7 @@ func (o *PatchedWritableContactRequest) GetLink() string {
// 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 *PatchedWritableContactRequest) GetLinkOk() (*string, bool) {
+func (o *PatchedContactRequest) GetLinkOk() (*string, bool) {
if o == nil || IsNil(o.Link) {
return nil, false
}
@@ -274,7 +274,7 @@ func (o *PatchedWritableContactRequest) GetLinkOk() (*string, bool) {
}
// HasLink returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasLink() bool {
+func (o *PatchedContactRequest) HasLink() bool {
if o != nil && !IsNil(o.Link) {
return true
}
@@ -283,12 +283,12 @@ func (o *PatchedWritableContactRequest) HasLink() bool {
}
// SetLink gets a reference to the given string and assigns it to the Link field.
-func (o *PatchedWritableContactRequest) SetLink(v string) {
+func (o *PatchedContactRequest) SetLink(v string) {
o.Link = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetDescription() string {
+func (o *PatchedContactRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -298,7 +298,7 @@ func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedContactRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -306,7 +306,7 @@ func (o *PatchedWritableContactRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasDescription() bool {
+func (o *PatchedContactRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -315,12 +315,12 @@ func (o *PatchedWritableContactRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableContactRequest) SetDescription(v string) {
+func (o *PatchedContactRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetComments() string {
+func (o *PatchedContactRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -330,7 +330,7 @@ func (o *PatchedWritableContactRequest) GetComments() string {
// 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 *PatchedWritableContactRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedContactRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -338,7 +338,7 @@ func (o *PatchedWritableContactRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasComments() bool {
+func (o *PatchedContactRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -347,12 +347,12 @@ func (o *PatchedWritableContactRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableContactRequest) SetComments(v string) {
+func (o *PatchedContactRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetTags() []NestedTagRequest {
+func (o *PatchedContactRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -362,7 +362,7 @@ func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedContactRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -370,7 +370,7 @@ func (o *PatchedWritableContactRequest) GetTagsOk() ([]NestedTagRequest, bool) {
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasTags() bool {
+func (o *PatchedContactRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -379,12 +379,12 @@ func (o *PatchedWritableContactRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableContactRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedContactRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableContactRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedContactRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -394,7 +394,7 @@ func (o *PatchedWritableContactRequest) 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 *PatchedWritableContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -402,7 +402,7 @@ func (o *PatchedWritableContactRequest) GetCustomFieldsOk() (map[string]interfac
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableContactRequest) HasCustomFields() bool {
+func (o *PatchedContactRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -411,11 +411,11 @@ func (o *PatchedWritableContactRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableContactRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedContactRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableContactRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedContactRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -423,7 +423,7 @@ func (o PatchedWritableContactRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableContactRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedContactRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Group.IsSet() {
toSerialize["group"] = o.Group.Get()
@@ -466,16 +466,16 @@ func (o PatchedWritableContactRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableContactRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableContactRequest := _PatchedWritableContactRequest{}
+func (o *PatchedContactRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedContactRequest := _PatchedContactRequest{}
- err = json.Unmarshal(data, &varPatchedWritableContactRequest)
+ err = json.Unmarshal(data, &varPatchedContactRequest)
if err != nil {
return err
}
- *o = PatchedWritableContactRequest(varPatchedWritableContactRequest)
+ *o = PatchedContactRequest(varPatchedContactRequest)
additionalProperties := make(map[string]interface{})
@@ -497,38 +497,38 @@ func (o *PatchedWritableContactRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullablePatchedWritableContactRequest struct {
- value *PatchedWritableContactRequest
+type NullablePatchedContactRequest struct {
+ value *PatchedContactRequest
isSet bool
}
-func (v NullablePatchedWritableContactRequest) Get() *PatchedWritableContactRequest {
+func (v NullablePatchedContactRequest) Get() *PatchedContactRequest {
return v.value
}
-func (v *NullablePatchedWritableContactRequest) Set(val *PatchedWritableContactRequest) {
+func (v *NullablePatchedContactRequest) Set(val *PatchedContactRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableContactRequest) IsSet() bool {
+func (v NullablePatchedContactRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableContactRequest) Unset() {
+func (v *NullablePatchedContactRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableContactRequest(val *PatchedWritableContactRequest) *NullablePatchedWritableContactRequest {
- return &NullablePatchedWritableContactRequest{value: val, isSet: true}
+func NewNullablePatchedContactRequest(val *PatchedContactRequest) *NullablePatchedContactRequest {
+ return &NullablePatchedContactRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableContactRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedContactRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableContactRequest) UnmarshalJSON(src []byte) error {
+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 d3326e0adb..70f7689543 100644
--- a/model_patched_contact_role_request.go
+++ b/model_patched_contact_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go
index fa33946fff..19833836fe 100644
--- a/model_patched_custom_link_request.go
+++ b/model_patched_custom_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedCustomLinkRequest{}
// PatchedCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedCustomLinkRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
+ ObjectTypes []string `json:"object_types,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
@@ -54,36 +54,36 @@ func NewPatchedCustomLinkRequestWithDefaults() *PatchedCustomLinkRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedCustomLinkRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
+// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
+func (o *PatchedCustomLinkRequest) GetObjectTypes() []string {
+ if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedCustomLinkRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
+func (o *PatchedCustomLinkRequest) GetObjectTypesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedCustomLinkRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
+// HasObjectTypes returns a boolean if a field has been set.
+func (o *PatchedCustomLinkRequest) HasObjectTypes() bool {
+ if o != nil && !IsNil(o.ObjectTypes) {
return true
}
return false
}
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedCustomLinkRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
+func (o *PatchedCustomLinkRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -352,8 +352,8 @@ func (o PatchedCustomLinkRequest) MarshalJSON() ([]byte, error) {
func (o PatchedCustomLinkRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
+ if !IsNil(o.ObjectTypes) {
+ toSerialize["object_types"] = o.ObjectTypes
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -401,7 +401,7 @@ func (o *PatchedCustomLinkRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "enabled")
delete(additionalProperties, "link_text")
diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go
index 6c89e30085..eeef729d4a 100644
--- a/model_patched_dashboard_request.go
+++ b/model_patched_dashboard_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_device_bay_request.go b/model_patched_device_bay_request.go
similarity index 61%
rename from model_patched_writable_device_bay_request.go
rename to model_patched_device_bay_request.go
index e8de1ad153..a9acadd794 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,45 +14,45 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableDeviceBayRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableDeviceBayRequest{}
+// checks if the PatchedDeviceBayRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedDeviceBayRequest{}
-// PatchedWritableDeviceBayRequest Adds support for custom fields and tags.
-type PatchedWritableDeviceBayRequest struct {
- Device *int32 `json:"device,omitempty"`
- Name *string `json:"name,omitempty"`
+// PatchedDeviceBayRequest Adds support for custom fields and tags.
+type PatchedDeviceBayRequest struct {
+ Device *DeviceRequest `json:"device,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Description *string `json:"description,omitempty"`
- InstalledDevice NullableInt32 `json:"installed_device,omitempty"`
+ InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableDeviceBayRequest PatchedWritableDeviceBayRequest
+type _PatchedDeviceBayRequest PatchedDeviceBayRequest
-// NewPatchedWritableDeviceBayRequest instantiates a new PatchedWritableDeviceBayRequest object
+// NewPatchedDeviceBayRequest instantiates a new PatchedDeviceBayRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableDeviceBayRequest() *PatchedWritableDeviceBayRequest {
- this := PatchedWritableDeviceBayRequest{}
+func NewPatchedDeviceBayRequest() *PatchedDeviceBayRequest {
+ this := PatchedDeviceBayRequest{}
return &this
}
-// NewPatchedWritableDeviceBayRequestWithDefaults instantiates a new PatchedWritableDeviceBayRequest object
+// NewPatchedDeviceBayRequestWithDefaults instantiates a new PatchedDeviceBayRequest object
// This 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 NewPatchedWritableDeviceBayRequestWithDefaults() *PatchedWritableDeviceBayRequest {
- this := PatchedWritableDeviceBayRequest{}
+func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest {
+ this := PatchedDeviceBayRequest{}
return &this
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetDevice() int32 {
+func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -60,7 +60,7 @@ func (o *PatchedWritableDeviceBayRequest) GetDevice() int32 {
// 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 *PatchedWritableDeviceBayRequest) GetDeviceOk() (*int32, bool) {
+func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -68,7 +68,7 @@ func (o *PatchedWritableDeviceBayRequest) GetDeviceOk() (*int32, bool) {
}
// HasDevice returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasDevice() bool {
+func (o *PatchedDeviceBayRequest) HasDevice() bool {
if o != nil && !IsNil(o.Device) {
return true
}
@@ -76,13 +76,13 @@ func (o *PatchedWritableDeviceBayRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritableDeviceBayRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) {
o.Device = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetName() string {
+func (o *PatchedDeviceBayRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -92,7 +92,7 @@ func (o *PatchedWritableDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) GetNameOk() (*string, bool) {
+func (o *PatchedDeviceBayRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *PatchedWritableDeviceBayRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasName() bool {
+func (o *PatchedDeviceBayRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -109,12 +109,12 @@ func (o *PatchedWritableDeviceBayRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableDeviceBayRequest) SetName(v string) {
+func (o *PatchedDeviceBayRequest) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetLabel() string {
+func (o *PatchedDeviceBayRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -124,7 +124,7 @@ func (o *PatchedWritableDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedDeviceBayRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -132,7 +132,7 @@ func (o *PatchedWritableDeviceBayRequest) GetLabelOk() (*string, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasLabel() bool {
+func (o *PatchedDeviceBayRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -141,12 +141,12 @@ func (o *PatchedWritableDeviceBayRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableDeviceBayRequest) SetLabel(v string) {
+func (o *PatchedDeviceBayRequest) SetLabel(v string) {
o.Label = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetDescription() string {
+func (o *PatchedDeviceBayRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -156,7 +156,7 @@ func (o *PatchedWritableDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedDeviceBayRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -164,7 +164,7 @@ func (o *PatchedWritableDeviceBayRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasDescription() bool {
+func (o *PatchedDeviceBayRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -173,14 +173,14 @@ func (o *PatchedWritableDeviceBayRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableDeviceBayRequest) SetDescription(v string) {
+func (o *PatchedDeviceBayRequest) SetDescription(v string) {
o.Description = &v
}
// GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceBayRequest) GetInstalledDevice() int32 {
+func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest {
if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.InstalledDevice.Get()
@@ -189,7 +189,7 @@ func (o *PatchedWritableDeviceBayRequest) GetInstalledDevice() int32 {
// 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 *PatchedWritableDeviceBayRequest) GetInstalledDeviceOk() (*int32, bool) {
+func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -197,7 +197,7 @@ func (o *PatchedWritableDeviceBayRequest) GetInstalledDeviceOk() (*int32, bool)
}
// HasInstalledDevice returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasInstalledDevice() bool {
+func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool {
if o != nil && o.InstalledDevice.IsSet() {
return true
}
@@ -205,23 +205,23 @@ func (o *PatchedWritableDeviceBayRequest) HasInstalledDevice() bool {
return false
}
-// SetInstalledDevice gets a reference to the given NullableInt32 and assigns it to the InstalledDevice field.
-func (o *PatchedWritableDeviceBayRequest) SetInstalledDevice(v int32) {
+// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field.
+func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) {
o.InstalledDevice.Set(&v)
}
// SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
-func (o *PatchedWritableDeviceBayRequest) SetInstalledDeviceNil() {
+func (o *PatchedDeviceBayRequest) SetInstalledDeviceNil() {
o.InstalledDevice.Set(nil)
}
// UnsetInstalledDevice ensures that no value is present for InstalledDevice, not even an explicit nil
-func (o *PatchedWritableDeviceBayRequest) UnsetInstalledDevice() {
+func (o *PatchedDeviceBayRequest) UnsetInstalledDevice() {
o.InstalledDevice.Unset()
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetTags() []NestedTagRequest {
+func (o *PatchedDeviceBayRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -231,7 +231,7 @@ func (o *PatchedWritableDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedDeviceBayRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -239,7 +239,7 @@ func (o *PatchedWritableDeviceBayRequest) GetTagsOk() ([]NestedTagRequest, bool)
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasTags() bool {
+func (o *PatchedDeviceBayRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -248,12 +248,12 @@ func (o *PatchedWritableDeviceBayRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableDeviceBayRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedDeviceBayRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedDeviceBayRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -263,7 +263,7 @@ func (o *PatchedWritableDeviceBayRequest) 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 *PatchedWritableDeviceBayRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedDeviceBayRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -271,7 +271,7 @@ func (o *PatchedWritableDeviceBayRequest) GetCustomFieldsOk() (map[string]interf
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayRequest) HasCustomFields() bool {
+func (o *PatchedDeviceBayRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -280,11 +280,11 @@ func (o *PatchedWritableDeviceBayRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableDeviceBayRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedDeviceBayRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableDeviceBayRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedDeviceBayRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -292,7 +292,7 @@ func (o PatchedWritableDeviceBayRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableDeviceBayRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedDeviceBayRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Device) {
toSerialize["device"] = o.Device
@@ -323,16 +323,16 @@ func (o PatchedWritableDeviceBayRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableDeviceBayRequest := _PatchedWritableDeviceBayRequest{}
+func (o *PatchedDeviceBayRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedDeviceBayRequest := _PatchedDeviceBayRequest{}
- err = json.Unmarshal(data, &varPatchedWritableDeviceBayRequest)
+ err = json.Unmarshal(data, &varPatchedDeviceBayRequest)
if err != nil {
return err
}
- *o = PatchedWritableDeviceBayRequest(varPatchedWritableDeviceBayRequest)
+ *o = PatchedDeviceBayRequest(varPatchedDeviceBayRequest)
additionalProperties := make(map[string]interface{})
@@ -350,38 +350,38 @@ func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritableDeviceBayRequest struct {
- value *PatchedWritableDeviceBayRequest
+type NullablePatchedDeviceBayRequest struct {
+ value *PatchedDeviceBayRequest
isSet bool
}
-func (v NullablePatchedWritableDeviceBayRequest) Get() *PatchedWritableDeviceBayRequest {
+func (v NullablePatchedDeviceBayRequest) Get() *PatchedDeviceBayRequest {
return v.value
}
-func (v *NullablePatchedWritableDeviceBayRequest) Set(val *PatchedWritableDeviceBayRequest) {
+func (v *NullablePatchedDeviceBayRequest) Set(val *PatchedDeviceBayRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableDeviceBayRequest) IsSet() bool {
+func (v NullablePatchedDeviceBayRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableDeviceBayRequest) Unset() {
+func (v *NullablePatchedDeviceBayRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableDeviceBayRequest(val *PatchedWritableDeviceBayRequest) *NullablePatchedWritableDeviceBayRequest {
- return &NullablePatchedWritableDeviceBayRequest{value: val, isSet: true}
+func NewNullablePatchedDeviceBayRequest(val *PatchedDeviceBayRequest) *NullablePatchedDeviceBayRequest {
+ return &NullablePatchedDeviceBayRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableDeviceBayRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedDeviceBayRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableDeviceBayRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedDeviceBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_device_bay_template_request.go b/model_patched_device_bay_template_request.go
similarity index 54%
rename from model_patched_writable_device_bay_template_request.go
rename to model_patched_device_bay_template_request.go
index ebcb145351..0bb253897b 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableDeviceBayTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableDeviceBayTemplateRequest{}
+// checks if the PatchedDeviceBayTemplateRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedDeviceBayTemplateRequest{}
-// PatchedWritableDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableDeviceBayTemplateRequest struct {
- DeviceType *int32 `json:"device_type,omitempty"`
+// 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"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
@@ -28,29 +28,29 @@ type PatchedWritableDeviceBayTemplateRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableDeviceBayTemplateRequest PatchedWritableDeviceBayTemplateRequest
+type _PatchedDeviceBayTemplateRequest PatchedDeviceBayTemplateRequest
-// NewPatchedWritableDeviceBayTemplateRequest instantiates a new PatchedWritableDeviceBayTemplateRequest object
+// NewPatchedDeviceBayTemplateRequest instantiates a new PatchedDeviceBayTemplateRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableDeviceBayTemplateRequest() *PatchedWritableDeviceBayTemplateRequest {
- this := PatchedWritableDeviceBayTemplateRequest{}
+func NewPatchedDeviceBayTemplateRequest() *PatchedDeviceBayTemplateRequest {
+ this := PatchedDeviceBayTemplateRequest{}
return &this
}
-// NewPatchedWritableDeviceBayTemplateRequestWithDefaults instantiates a new PatchedWritableDeviceBayTemplateRequest object
+// NewPatchedDeviceBayTemplateRequestWithDefaults instantiates a new PatchedDeviceBayTemplateRequest object
// This 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 NewPatchedWritableDeviceBayTemplateRequestWithDefaults() *PatchedWritableDeviceBayTemplateRequest {
- this := PatchedWritableDeviceBayTemplateRequest{}
+func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateRequest {
+ this := PatchedDeviceBayTemplateRequest{}
return &this
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayTemplateRequest) GetDeviceType() int32 {
+func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType
@@ -58,7 +58,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) GetDeviceType() int32 {
// 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 *PatchedWritableDeviceBayTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
+func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -66,7 +66,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) GetDeviceTypeOk() (*int32, boo
}
// HasDeviceType returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayTemplateRequest) HasDeviceType() bool {
+func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool {
if o != nil && !IsNil(o.DeviceType) {
return true
}
@@ -74,13 +74,13 @@ func (o *PatchedWritableDeviceBayTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given int32 and assigns it to the DeviceType field.
-func (o *PatchedWritableDeviceBayTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayTemplateRequest) GetName() string {
+func (o *PatchedDeviceBayTemplateRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -90,7 +90,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) GetNameOk() (*string, bool) {
+func (o *PatchedDeviceBayTemplateRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -98,7 +98,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayTemplateRequest) HasName() bool {
+func (o *PatchedDeviceBayTemplateRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -107,12 +107,12 @@ func (o *PatchedWritableDeviceBayTemplateRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableDeviceBayTemplateRequest) SetName(v string) {
+func (o *PatchedDeviceBayTemplateRequest) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayTemplateRequest) GetLabel() string {
+func (o *PatchedDeviceBayTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -122,7 +122,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedDeviceBayTemplateRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -130,7 +130,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) GetLabelOk() (*string, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayTemplateRequest) HasLabel() bool {
+func (o *PatchedDeviceBayTemplateRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -139,12 +139,12 @@ func (o *PatchedWritableDeviceBayTemplateRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableDeviceBayTemplateRequest) SetLabel(v string) {
+func (o *PatchedDeviceBayTemplateRequest) SetLabel(v string) {
o.Label = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceBayTemplateRequest) GetDescription() string {
+func (o *PatchedDeviceBayTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -154,7 +154,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) 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 *PatchedWritableDeviceBayTemplateRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedDeviceBayTemplateRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -162,7 +162,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) GetDescriptionOk() (*string, b
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceBayTemplateRequest) HasDescription() bool {
+func (o *PatchedDeviceBayTemplateRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -171,11 +171,11 @@ func (o *PatchedWritableDeviceBayTemplateRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableDeviceBayTemplateRequest) SetDescription(v string) {
+func (o *PatchedDeviceBayTemplateRequest) SetDescription(v string) {
o.Description = &v
}
-func (o PatchedWritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -183,7 +183,7 @@ func (o PatchedWritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedDeviceBayTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DeviceType) {
toSerialize["device_type"] = o.DeviceType
@@ -205,16 +205,16 @@ func (o PatchedWritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableDeviceBayTemplateRequest := _PatchedWritableDeviceBayTemplateRequest{}
+func (o *PatchedDeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedDeviceBayTemplateRequest := _PatchedDeviceBayTemplateRequest{}
- err = json.Unmarshal(data, &varPatchedWritableDeviceBayTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedDeviceBayTemplateRequest)
if err != nil {
return err
}
- *o = PatchedWritableDeviceBayTemplateRequest(varPatchedWritableDeviceBayTemplateRequest)
+ *o = PatchedDeviceBayTemplateRequest(varPatchedDeviceBayTemplateRequest)
additionalProperties := make(map[string]interface{})
@@ -229,38 +229,38 @@ func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(data []byte) (er
return err
}
-type NullablePatchedWritableDeviceBayTemplateRequest struct {
- value *PatchedWritableDeviceBayTemplateRequest
+type NullablePatchedDeviceBayTemplateRequest struct {
+ value *PatchedDeviceBayTemplateRequest
isSet bool
}
-func (v NullablePatchedWritableDeviceBayTemplateRequest) Get() *PatchedWritableDeviceBayTemplateRequest {
+func (v NullablePatchedDeviceBayTemplateRequest) Get() *PatchedDeviceBayTemplateRequest {
return v.value
}
-func (v *NullablePatchedWritableDeviceBayTemplateRequest) Set(val *PatchedWritableDeviceBayTemplateRequest) {
+func (v *NullablePatchedDeviceBayTemplateRequest) Set(val *PatchedDeviceBayTemplateRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableDeviceBayTemplateRequest) IsSet() bool {
+func (v NullablePatchedDeviceBayTemplateRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableDeviceBayTemplateRequest) Unset() {
+func (v *NullablePatchedDeviceBayTemplateRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableDeviceBayTemplateRequest(val *PatchedWritableDeviceBayTemplateRequest) *NullablePatchedWritableDeviceBayTemplateRequest {
- return &NullablePatchedWritableDeviceBayTemplateRequest{value: val, isSet: true}
+func NewNullablePatchedDeviceBayTemplateRequest(val *PatchedDeviceBayTemplateRequest) *NullablePatchedDeviceBayTemplateRequest {
+ return &NullablePatchedDeviceBayTemplateRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedDeviceBayTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_device_role_request.go b/model_patched_device_role_request.go
similarity index 61%
rename from model_patched_writable_device_role_request.go
rename to model_patched_device_role_request.go
index dbedd61225..f2ef464b9e 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,44 +14,44 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableDeviceRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableDeviceRoleRequest{}
+// checks if the PatchedDeviceRoleRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedDeviceRoleRequest{}
-// PatchedWritableDeviceRoleRequest Adds support for custom fields and tags.
-type PatchedWritableDeviceRoleRequest struct {
+// 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"`
// Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ VmRole *bool `json:"vm_role,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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{}
}
-type _PatchedWritableDeviceRoleRequest PatchedWritableDeviceRoleRequest
+type _PatchedDeviceRoleRequest PatchedDeviceRoleRequest
-// NewPatchedWritableDeviceRoleRequest instantiates a new PatchedWritableDeviceRoleRequest object
+// 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
-func NewPatchedWritableDeviceRoleRequest() *PatchedWritableDeviceRoleRequest {
- this := PatchedWritableDeviceRoleRequest{}
+func NewPatchedDeviceRoleRequest() *PatchedDeviceRoleRequest {
+ this := PatchedDeviceRoleRequest{}
return &this
}
-// NewPatchedWritableDeviceRoleRequestWithDefaults instantiates a new PatchedWritableDeviceRoleRequest object
+// 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
-func NewPatchedWritableDeviceRoleRequestWithDefaults() *PatchedWritableDeviceRoleRequest {
- this := PatchedWritableDeviceRoleRequest{}
+func NewPatchedDeviceRoleRequestWithDefaults() *PatchedDeviceRoleRequest {
+ this := PatchedDeviceRoleRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetName() string {
+func (o *PatchedDeviceRoleRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -61,7 +61,7 @@ func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) GetNameOk() (*string, bool) {
+func (o *PatchedDeviceRoleRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -69,7 +69,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasName() bool {
+func (o *PatchedDeviceRoleRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -78,12 +78,12 @@ func (o *PatchedWritableDeviceRoleRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableDeviceRoleRequest) SetName(v string) {
+func (o *PatchedDeviceRoleRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetSlug() string {
+func (o *PatchedDeviceRoleRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
@@ -93,7 +93,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetSlug() string {
// 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 *PatchedWritableDeviceRoleRequest) GetSlugOk() (*string, bool) {
+func (o *PatchedDeviceRoleRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
@@ -101,7 +101,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetSlugOk() (*string, bool) {
}
// HasSlug returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasSlug() bool {
+func (o *PatchedDeviceRoleRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
@@ -110,12 +110,12 @@ func (o *PatchedWritableDeviceRoleRequest) HasSlug() bool {
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
-func (o *PatchedWritableDeviceRoleRequest) SetSlug(v string) {
+func (o *PatchedDeviceRoleRequest) SetSlug(v string) {
o.Slug = &v
}
// GetColor returns the Color field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetColor() string {
+func (o *PatchedDeviceRoleRequest) GetColor() string {
if o == nil || IsNil(o.Color) {
var ret string
return ret
@@ -125,7 +125,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetColor() string {
// 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 *PatchedWritableDeviceRoleRequest) GetColorOk() (*string, bool) {
+func (o *PatchedDeviceRoleRequest) GetColorOk() (*string, bool) {
if o == nil || IsNil(o.Color) {
return nil, false
}
@@ -133,7 +133,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetColorOk() (*string, bool) {
}
// HasColor returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasColor() bool {
+func (o *PatchedDeviceRoleRequest) HasColor() bool {
if o != nil && !IsNil(o.Color) {
return true
}
@@ -142,12 +142,12 @@ func (o *PatchedWritableDeviceRoleRequest) HasColor() bool {
}
// SetColor gets a reference to the given string and assigns it to the Color field.
-func (o *PatchedWritableDeviceRoleRequest) SetColor(v string) {
+func (o *PatchedDeviceRoleRequest) SetColor(v string) {
o.Color = &v
}
// GetVmRole returns the VmRole field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetVmRole() bool {
+func (o *PatchedDeviceRoleRequest) GetVmRole() bool {
if o == nil || IsNil(o.VmRole) {
var ret bool
return ret
@@ -157,7 +157,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetVmRole() bool {
// 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 *PatchedWritableDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
+func (o *PatchedDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
if o == nil || IsNil(o.VmRole) {
return nil, false
}
@@ -165,7 +165,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetVmRoleOk() (*bool, bool) {
}
// HasVmRole returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasVmRole() bool {
+func (o *PatchedDeviceRoleRequest) HasVmRole() bool {
if o != nil && !IsNil(o.VmRole) {
return true
}
@@ -174,14 +174,14 @@ func (o *PatchedWritableDeviceRoleRequest) HasVmRole() bool {
}
// SetVmRole gets a reference to the given bool and assigns it to the VmRole field.
-func (o *PatchedWritableDeviceRoleRequest) SetVmRole(v bool) {
+func (o *PatchedDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) GetConfigTemplate() int32 {
+func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -190,7 +190,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplate() int32 {
// 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 *PatchedWritableDeviceRoleRequest) GetConfigTemplateOk() (*int32, bool) {
+func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -198,7 +198,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetConfigTemplateOk() (*int32, bool)
}
// HasConfigTemplate returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasConfigTemplate() bool {
+func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool {
if o != nil && o.ConfigTemplate.IsSet() {
return true
}
@@ -206,23 +206,23 @@ func (o *PatchedWritableDeviceRoleRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplateNil() {
+func (o *PatchedDeviceRoleRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
}
// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-func (o *PatchedWritableDeviceRoleRequest) UnsetConfigTemplate() {
+func (o *PatchedDeviceRoleRequest) UnsetConfigTemplate() {
o.ConfigTemplate.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetDescription() string {
+func (o *PatchedDeviceRoleRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -232,7 +232,7 @@ func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedDeviceRoleRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -240,7 +240,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasDescription() bool {
+func (o *PatchedDeviceRoleRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -249,12 +249,12 @@ func (o *PatchedWritableDeviceRoleRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableDeviceRoleRequest) SetDescription(v string) {
+func (o *PatchedDeviceRoleRequest) SetDescription(v string) {
o.Description = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetTags() []NestedTagRequest {
+func (o *PatchedDeviceRoleRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -264,7 +264,7 @@ func (o *PatchedWritableDeviceRoleRequest) 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 *PatchedWritableDeviceRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedDeviceRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -272,7 +272,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetTagsOk() ([]NestedTagRequest, bool
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasTags() bool {
+func (o *PatchedDeviceRoleRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -281,12 +281,12 @@ func (o *PatchedWritableDeviceRoleRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableDeviceRoleRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedDeviceRoleRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceRoleRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedDeviceRoleRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -296,7 +296,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetCustomFields() map[string]interfac
// 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 *PatchedWritableDeviceRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedDeviceRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -304,7 +304,7 @@ func (o *PatchedWritableDeviceRoleRequest) GetCustomFieldsOk() (map[string]inter
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableDeviceRoleRequest) HasCustomFields() bool {
+func (o *PatchedDeviceRoleRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -313,11 +313,11 @@ func (o *PatchedWritableDeviceRoleRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -325,7 +325,7 @@ func (o PatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedDeviceRoleRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -359,16 +359,16 @@ func (o PatchedWritableDeviceRoleRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableDeviceRoleRequest := _PatchedWritableDeviceRoleRequest{}
+func (o *PatchedDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedDeviceRoleRequest := _PatchedDeviceRoleRequest{}
- err = json.Unmarshal(data, &varPatchedWritableDeviceRoleRequest)
+ err = json.Unmarshal(data, &varPatchedDeviceRoleRequest)
if err != nil {
return err
}
- *o = PatchedWritableDeviceRoleRequest(varPatchedWritableDeviceRoleRequest)
+ *o = PatchedDeviceRoleRequest(varPatchedDeviceRoleRequest)
additionalProperties := make(map[string]interface{})
@@ -387,38 +387,38 @@ func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(data []byte) (err error
return err
}
-type NullablePatchedWritableDeviceRoleRequest struct {
- value *PatchedWritableDeviceRoleRequest
+type NullablePatchedDeviceRoleRequest struct {
+ value *PatchedDeviceRoleRequest
isSet bool
}
-func (v NullablePatchedWritableDeviceRoleRequest) Get() *PatchedWritableDeviceRoleRequest {
+func (v NullablePatchedDeviceRoleRequest) Get() *PatchedDeviceRoleRequest {
return v.value
}
-func (v *NullablePatchedWritableDeviceRoleRequest) Set(val *PatchedWritableDeviceRoleRequest) {
+func (v *NullablePatchedDeviceRoleRequest) Set(val *PatchedDeviceRoleRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableDeviceRoleRequest) IsSet() bool {
+func (v NullablePatchedDeviceRoleRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableDeviceRoleRequest) Unset() {
+func (v *NullablePatchedDeviceRoleRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableDeviceRoleRequest(val *PatchedWritableDeviceRoleRequest) *NullablePatchedWritableDeviceRoleRequest {
- return &NullablePatchedWritableDeviceRoleRequest{value: val, isSet: true}
+func NewNullablePatchedDeviceRoleRequest(val *PatchedDeviceRoleRequest) *NullablePatchedDeviceRoleRequest {
+ return &NullablePatchedDeviceRoleRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedDeviceRoleRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableDeviceRoleRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedDeviceRoleRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_export_template_request.go b/model_patched_export_template_request.go
similarity index 51%
rename from model_patched_writable_export_template_request.go
rename to model_patched_export_template_request.go
index feaf0a9492..db7c07934f 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,14 +14,14 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableExportTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableExportTemplateRequest{}
+// checks if the PatchedExportTemplateRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedExportTemplateRequest{}
-// PatchedWritableExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableExportTemplateRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
+// 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"`
// 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,65 +29,64 @@ type PatchedWritableExportTemplateRequest struct {
// Extension to append to the rendered filename
FileExtension *string `json:"file_extension,omitempty"`
// Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
+ AsAttachment *bool `json:"as_attachment,omitempty"`
+ DataSource *DataSourceRequest `json:"data_source,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableExportTemplateRequest PatchedWritableExportTemplateRequest
+type _PatchedExportTemplateRequest PatchedExportTemplateRequest
-// NewPatchedWritableExportTemplateRequest instantiates a new PatchedWritableExportTemplateRequest object
+// 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
-func NewPatchedWritableExportTemplateRequest() *PatchedWritableExportTemplateRequest {
- this := PatchedWritableExportTemplateRequest{}
+func NewPatchedExportTemplateRequest() *PatchedExportTemplateRequest {
+ this := PatchedExportTemplateRequest{}
return &this
}
-// NewPatchedWritableExportTemplateRequestWithDefaults instantiates a new PatchedWritableExportTemplateRequest object
+// 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
-func NewPatchedWritableExportTemplateRequestWithDefaults() *PatchedWritableExportTemplateRequest {
- this := PatchedWritableExportTemplateRequest{}
+func NewPatchedExportTemplateRequestWithDefaults() *PatchedExportTemplateRequest {
+ this := PatchedExportTemplateRequest{}
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
+// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
+func (o *PatchedExportTemplateRequest) GetObjectTypes() []string {
+ if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableExportTemplateRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
+func (o *PatchedExportTemplateRequest) GetObjectTypesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
+// HasObjectTypes returns a boolean if a field has been set.
+func (o *PatchedExportTemplateRequest) HasObjectTypes() bool {
+ if o != nil && !IsNil(o.ObjectTypes) {
return true
}
return false
}
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedWritableExportTemplateRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
+func (o *PatchedExportTemplateRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetName() string {
+func (o *PatchedExportTemplateRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -97,7 +96,7 @@ func (o *PatchedWritableExportTemplateRequest) 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 *PatchedWritableExportTemplateRequest) GetNameOk() (*string, bool) {
+func (o *PatchedExportTemplateRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -105,7 +104,7 @@ func (o *PatchedWritableExportTemplateRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasName() bool {
+func (o *PatchedExportTemplateRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -114,12 +113,12 @@ func (o *PatchedWritableExportTemplateRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableExportTemplateRequest) SetName(v string) {
+func (o *PatchedExportTemplateRequest) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetDescription() string {
+func (o *PatchedExportTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -129,7 +128,7 @@ func (o *PatchedWritableExportTemplateRequest) 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 *PatchedWritableExportTemplateRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedExportTemplateRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -137,7 +136,7 @@ func (o *PatchedWritableExportTemplateRequest) GetDescriptionOk() (*string, bool
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasDescription() bool {
+func (o *PatchedExportTemplateRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -146,12 +145,12 @@ func (o *PatchedWritableExportTemplateRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableExportTemplateRequest) SetDescription(v string) {
+func (o *PatchedExportTemplateRequest) SetDescription(v string) {
o.Description = &v
}
// GetTemplateCode returns the TemplateCode field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetTemplateCode() string {
+func (o *PatchedExportTemplateRequest) GetTemplateCode() string {
if o == nil || IsNil(o.TemplateCode) {
var ret string
return ret
@@ -161,7 +160,7 @@ func (o *PatchedWritableExportTemplateRequest) GetTemplateCode() string {
// GetTemplateCodeOk returns a tuple with the TemplateCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableExportTemplateRequest) GetTemplateCodeOk() (*string, bool) {
+func (o *PatchedExportTemplateRequest) GetTemplateCodeOk() (*string, bool) {
if o == nil || IsNil(o.TemplateCode) {
return nil, false
}
@@ -169,7 +168,7 @@ func (o *PatchedWritableExportTemplateRequest) GetTemplateCodeOk() (*string, boo
}
// HasTemplateCode returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasTemplateCode() bool {
+func (o *PatchedExportTemplateRequest) HasTemplateCode() bool {
if o != nil && !IsNil(o.TemplateCode) {
return true
}
@@ -178,12 +177,12 @@ func (o *PatchedWritableExportTemplateRequest) HasTemplateCode() bool {
}
// SetTemplateCode gets a reference to the given string and assigns it to the TemplateCode field.
-func (o *PatchedWritableExportTemplateRequest) SetTemplateCode(v string) {
+func (o *PatchedExportTemplateRequest) SetTemplateCode(v string) {
o.TemplateCode = &v
}
// GetMimeType returns the MimeType field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetMimeType() string {
+func (o *PatchedExportTemplateRequest) GetMimeType() string {
if o == nil || IsNil(o.MimeType) {
var ret string
return ret
@@ -193,7 +192,7 @@ func (o *PatchedWritableExportTemplateRequest) GetMimeType() string {
// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableExportTemplateRequest) GetMimeTypeOk() (*string, bool) {
+func (o *PatchedExportTemplateRequest) GetMimeTypeOk() (*string, bool) {
if o == nil || IsNil(o.MimeType) {
return nil, false
}
@@ -201,7 +200,7 @@ func (o *PatchedWritableExportTemplateRequest) GetMimeTypeOk() (*string, bool) {
}
// HasMimeType returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasMimeType() bool {
+func (o *PatchedExportTemplateRequest) HasMimeType() bool {
if o != nil && !IsNil(o.MimeType) {
return true
}
@@ -210,12 +209,12 @@ func (o *PatchedWritableExportTemplateRequest) HasMimeType() bool {
}
// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
-func (o *PatchedWritableExportTemplateRequest) SetMimeType(v string) {
+func (o *PatchedExportTemplateRequest) SetMimeType(v string) {
o.MimeType = &v
}
// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetFileExtension() string {
+func (o *PatchedExportTemplateRequest) GetFileExtension() string {
if o == nil || IsNil(o.FileExtension) {
var ret string
return ret
@@ -225,7 +224,7 @@ func (o *PatchedWritableExportTemplateRequest) GetFileExtension() string {
// GetFileExtensionOk returns a tuple with the FileExtension field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableExportTemplateRequest) GetFileExtensionOk() (*string, bool) {
+func (o *PatchedExportTemplateRequest) GetFileExtensionOk() (*string, bool) {
if o == nil || IsNil(o.FileExtension) {
return nil, false
}
@@ -233,7 +232,7 @@ func (o *PatchedWritableExportTemplateRequest) GetFileExtensionOk() (*string, bo
}
// HasFileExtension returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasFileExtension() bool {
+func (o *PatchedExportTemplateRequest) HasFileExtension() bool {
if o != nil && !IsNil(o.FileExtension) {
return true
}
@@ -242,12 +241,12 @@ func (o *PatchedWritableExportTemplateRequest) HasFileExtension() bool {
}
// SetFileExtension gets a reference to the given string and assigns it to the FileExtension field.
-func (o *PatchedWritableExportTemplateRequest) SetFileExtension(v string) {
+func (o *PatchedExportTemplateRequest) SetFileExtension(v string) {
o.FileExtension = &v
}
// GetAsAttachment returns the AsAttachment field value if set, zero value otherwise.
-func (o *PatchedWritableExportTemplateRequest) GetAsAttachment() bool {
+func (o *PatchedExportTemplateRequest) GetAsAttachment() bool {
if o == nil || IsNil(o.AsAttachment) {
var ret bool
return ret
@@ -257,7 +256,7 @@ func (o *PatchedWritableExportTemplateRequest) GetAsAttachment() bool {
// GetAsAttachmentOk returns a tuple with the AsAttachment field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableExportTemplateRequest) GetAsAttachmentOk() (*bool, bool) {
+func (o *PatchedExportTemplateRequest) GetAsAttachmentOk() (*bool, bool) {
if o == nil || IsNil(o.AsAttachment) {
return nil, false
}
@@ -265,7 +264,7 @@ func (o *PatchedWritableExportTemplateRequest) GetAsAttachmentOk() (*bool, bool)
}
// HasAsAttachment returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasAsAttachment() bool {
+func (o *PatchedExportTemplateRequest) HasAsAttachment() bool {
if o != nil && !IsNil(o.AsAttachment) {
return true
}
@@ -274,54 +273,43 @@ func (o *PatchedWritableExportTemplateRequest) HasAsAttachment() bool {
}
// SetAsAttachment gets a reference to the given bool and assigns it to the AsAttachment field.
-func (o *PatchedWritableExportTemplateRequest) SetAsAttachment(v bool) {
+func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) {
o.AsAttachment = &v
}
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableExportTemplateRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
+// GetDataSource returns the DataSource field value if set, zero value otherwise.
+func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest {
+ if o == nil || IsNil(o.DataSource) {
+ var ret DataSourceRequest
return ret
}
- return *o.DataSource.Get()
+ 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.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableExportTemplateRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
+func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) {
+ if o == nil || IsNil(o.DataSource) {
return nil, false
}
- return o.DataSource.Get(), o.DataSource.IsSet()
+ return o.DataSource, true
}
// HasDataSource returns a boolean if a field has been set.
-func (o *PatchedWritableExportTemplateRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
+func (o *PatchedExportTemplateRequest) HasDataSource() bool {
+ if o != nil && !IsNil(o.DataSource) {
return true
}
return false
}
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *PatchedWritableExportTemplateRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
+// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field.
+func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) {
+ o.DataSource = &v
}
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *PatchedWritableExportTemplateRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *PatchedWritableExportTemplateRequest) UnsetDataSource() {
- o.DataSource.Unset()
-}
-
-func (o PatchedWritableExportTemplateRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedExportTemplateRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -329,10 +317,10 @@ func (o PatchedWritableExportTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableExportTemplateRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedExportTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
+ if !IsNil(o.ObjectTypes) {
+ toSerialize["object_types"] = o.ObjectTypes
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -352,8 +340,8 @@ func (o PatchedWritableExportTemplateRequest) ToMap() (map[string]interface{}, e
if !IsNil(o.AsAttachment) {
toSerialize["as_attachment"] = o.AsAttachment
}
- if o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
+ if !IsNil(o.DataSource) {
+ toSerialize["data_source"] = o.DataSource
}
for key, value := range o.AdditionalProperties {
@@ -363,21 +351,21 @@ func (o PatchedWritableExportTemplateRequest) ToMap() (map[string]interface{}, e
return toSerialize, nil
}
-func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableExportTemplateRequest := _PatchedWritableExportTemplateRequest{}
+func (o *PatchedExportTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedExportTemplateRequest := _PatchedExportTemplateRequest{}
- err = json.Unmarshal(data, &varPatchedWritableExportTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedExportTemplateRequest)
if err != nil {
return err
}
- *o = PatchedWritableExportTemplateRequest(varPatchedWritableExportTemplateRequest)
+ *o = PatchedExportTemplateRequest(varPatchedExportTemplateRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "description")
delete(additionalProperties, "template_code")
@@ -391,38 +379,38 @@ func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(data []byte) (err e
return err
}
-type NullablePatchedWritableExportTemplateRequest struct {
- value *PatchedWritableExportTemplateRequest
+type NullablePatchedExportTemplateRequest struct {
+ value *PatchedExportTemplateRequest
isSet bool
}
-func (v NullablePatchedWritableExportTemplateRequest) Get() *PatchedWritableExportTemplateRequest {
+func (v NullablePatchedExportTemplateRequest) Get() *PatchedExportTemplateRequest {
return v.value
}
-func (v *NullablePatchedWritableExportTemplateRequest) Set(val *PatchedWritableExportTemplateRequest) {
+func (v *NullablePatchedExportTemplateRequest) Set(val *PatchedExportTemplateRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableExportTemplateRequest) IsSet() bool {
+func (v NullablePatchedExportTemplateRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableExportTemplateRequest) Unset() {
+func (v *NullablePatchedExportTemplateRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableExportTemplateRequest(val *PatchedWritableExportTemplateRequest) *NullablePatchedWritableExportTemplateRequest {
- return &NullablePatchedWritableExportTemplateRequest{value: val, isSet: true}
+func NewNullablePatchedExportTemplateRequest(val *PatchedExportTemplateRequest) *NullablePatchedExportTemplateRequest {
+ return &NullablePatchedExportTemplateRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableExportTemplateRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedExportTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableExportTemplateRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedExportTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go
similarity index 52%
rename from model_patched_writable_fhrp_group_assignment_request.go
rename to model_patched_fhrp_group_assignment_request.go
index 71944b3ae3..de95655e2e 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,41 +14,41 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableFHRPGroupAssignmentRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableFHRPGroupAssignmentRequest{}
+// checks if the PatchedFHRPGroupAssignmentRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{}
-// PatchedWritableFHRPGroupAssignmentRequest Adds support for custom fields and tags.
-type PatchedWritableFHRPGroupAssignmentRequest struct {
- Group *int32 `json:"group,omitempty"`
- InterfaceType *string `json:"interface_type,omitempty"`
- InterfaceId *int64 `json:"interface_id,omitempty"`
- Priority *int32 `json:"priority,omitempty"`
+// 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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableFHRPGroupAssignmentRequest PatchedWritableFHRPGroupAssignmentRequest
+type _PatchedFHRPGroupAssignmentRequest PatchedFHRPGroupAssignmentRequest
-// NewPatchedWritableFHRPGroupAssignmentRequest instantiates a new PatchedWritableFHRPGroupAssignmentRequest object
+// NewPatchedFHRPGroupAssignmentRequest instantiates a new PatchedFHRPGroupAssignmentRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableFHRPGroupAssignmentRequest() *PatchedWritableFHRPGroupAssignmentRequest {
- this := PatchedWritableFHRPGroupAssignmentRequest{}
+func NewPatchedFHRPGroupAssignmentRequest() *PatchedFHRPGroupAssignmentRequest {
+ this := PatchedFHRPGroupAssignmentRequest{}
return &this
}
-// NewPatchedWritableFHRPGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableFHRPGroupAssignmentRequest object
+// NewPatchedFHRPGroupAssignmentRequestWithDefaults instantiates a new PatchedFHRPGroupAssignmentRequest object
// This 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 NewPatchedWritableFHRPGroupAssignmentRequestWithDefaults() *PatchedWritableFHRPGroupAssignmentRequest {
- this := PatchedWritableFHRPGroupAssignmentRequest{}
+func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignmentRequest {
+ this := PatchedFHRPGroupAssignmentRequest{}
return &this
}
// GetGroup returns the Group field value if set, zero value otherwise.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetGroup() int32 {
+func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest {
if o == nil || IsNil(o.Group) {
- var ret int32
+ var ret FHRPGroupRequest
return ret
}
return *o.Group
@@ -56,7 +56,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetGroup() int32 {
// 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 *PatchedWritableFHRPGroupAssignmentRequest) GetGroupOk() (*int32, bool) {
+func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) {
if o == nil || IsNil(o.Group) {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetGroupOk() (*int32, bool)
}
// HasGroup returns a boolean if a field has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) HasGroup() bool {
+func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool {
if o != nil && !IsNil(o.Group) {
return true
}
@@ -72,13 +72,13 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given int32 and assigns it to the Group field.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field.
+func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) {
o.Group = &v
}
// GetInterfaceType returns the InterfaceType field value if set, zero value otherwise.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceType() string {
+func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceType() string {
if o == nil || IsNil(o.InterfaceType) {
var ret string
return ret
@@ -88,7 +88,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceType() string {
// GetInterfaceTypeOk returns a tuple with the InterfaceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool) {
+func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool) {
if o == nil || IsNil(o.InterfaceType) {
return nil, false
}
@@ -96,7 +96,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*strin
}
// HasInterfaceType returns a boolean if a field has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceType() bool {
+func (o *PatchedFHRPGroupAssignmentRequest) HasInterfaceType() bool {
if o != nil && !IsNil(o.InterfaceType) {
return true
}
@@ -105,12 +105,12 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceType() bool {
}
// SetInterfaceType gets a reference to the given string and assigns it to the InterfaceType field.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) SetInterfaceType(v string) {
+func (o *PatchedFHRPGroupAssignmentRequest) SetInterfaceType(v string) {
o.InterfaceType = &v
}
// GetInterfaceId returns the InterfaceId field value if set, zero value otherwise.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceId() int64 {
+func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceId() int64 {
if o == nil || IsNil(o.InterfaceId) {
var ret int64
return ret
@@ -120,7 +120,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceId() int64 {
// GetInterfaceIdOk returns a tuple with the InterfaceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool) {
+func (o *PatchedFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool) {
if o == nil || IsNil(o.InterfaceId) {
return nil, false
}
@@ -128,7 +128,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64,
}
// HasInterfaceId returns a boolean if a field has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceId() bool {
+func (o *PatchedFHRPGroupAssignmentRequest) HasInterfaceId() bool {
if o != nil && !IsNil(o.InterfaceId) {
return true
}
@@ -137,12 +137,12 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) HasInterfaceId() bool {
}
// SetInterfaceId gets a reference to the given int64 and assigns it to the InterfaceId field.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) SetInterfaceId(v int64) {
+func (o *PatchedFHRPGroupAssignmentRequest) SetInterfaceId(v int64) {
o.InterfaceId = &v
}
// GetPriority returns the Priority field value if set, zero value otherwise.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) GetPriority() int32 {
+func (o *PatchedFHRPGroupAssignmentRequest) GetPriority() int32 {
if o == nil || IsNil(o.Priority) {
var ret int32
return ret
@@ -152,7 +152,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetPriority() int32 {
// 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 *PatchedWritableFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, bool) {
+func (o *PatchedFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, bool) {
if o == nil || IsNil(o.Priority) {
return nil, false
}
@@ -160,7 +160,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, boo
}
// HasPriority returns a boolean if a field has been set.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) HasPriority() bool {
+func (o *PatchedFHRPGroupAssignmentRequest) HasPriority() bool {
if o != nil && !IsNil(o.Priority) {
return true
}
@@ -169,11 +169,11 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) HasPriority() bool {
}
// SetPriority gets a reference to the given int32 and assigns it to the Priority field.
-func (o *PatchedWritableFHRPGroupAssignmentRequest) SetPriority(v int32) {
+func (o *PatchedFHRPGroupAssignmentRequest) SetPriority(v int32) {
o.Priority = &v
}
-func (o PatchedWritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -181,7 +181,7 @@ func (o PatchedWritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error)
return json.Marshal(toSerialize)
}
-func (o PatchedWritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedFHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Group) {
toSerialize["group"] = o.Group
@@ -203,16 +203,16 @@ func (o PatchedWritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface
return toSerialize, nil
}
-func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableFHRPGroupAssignmentRequest := _PatchedWritableFHRPGroupAssignmentRequest{}
+func (o *PatchedFHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedFHRPGroupAssignmentRequest := _PatchedFHRPGroupAssignmentRequest{}
- err = json.Unmarshal(data, &varPatchedWritableFHRPGroupAssignmentRequest)
+ err = json.Unmarshal(data, &varPatchedFHRPGroupAssignmentRequest)
if err != nil {
return err
}
- *o = PatchedWritableFHRPGroupAssignmentRequest(varPatchedWritableFHRPGroupAssignmentRequest)
+ *o = PatchedFHRPGroupAssignmentRequest(varPatchedFHRPGroupAssignmentRequest)
additionalProperties := make(map[string]interface{})
@@ -227,38 +227,38 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (
return err
}
-type NullablePatchedWritableFHRPGroupAssignmentRequest struct {
- value *PatchedWritableFHRPGroupAssignmentRequest
+type NullablePatchedFHRPGroupAssignmentRequest struct {
+ value *PatchedFHRPGroupAssignmentRequest
isSet bool
}
-func (v NullablePatchedWritableFHRPGroupAssignmentRequest) Get() *PatchedWritableFHRPGroupAssignmentRequest {
+func (v NullablePatchedFHRPGroupAssignmentRequest) Get() *PatchedFHRPGroupAssignmentRequest {
return v.value
}
-func (v *NullablePatchedWritableFHRPGroupAssignmentRequest) Set(val *PatchedWritableFHRPGroupAssignmentRequest) {
+func (v *NullablePatchedFHRPGroupAssignmentRequest) Set(val *PatchedFHRPGroupAssignmentRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableFHRPGroupAssignmentRequest) IsSet() bool {
+func (v NullablePatchedFHRPGroupAssignmentRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableFHRPGroupAssignmentRequest) Unset() {
+func (v *NullablePatchedFHRPGroupAssignmentRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableFHRPGroupAssignmentRequest(val *PatchedWritableFHRPGroupAssignmentRequest) *NullablePatchedWritableFHRPGroupAssignmentRequest {
- return &NullablePatchedWritableFHRPGroupAssignmentRequest{value: val, isSet: true}
+func NewNullablePatchedFHRPGroupAssignmentRequest(val *PatchedFHRPGroupAssignmentRequest) *NullablePatchedFHRPGroupAssignmentRequest {
+ return &NullablePatchedFHRPGroupAssignmentRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go
index b75974f2af..1d2151449b 100644
--- a/model_patched_fhrp_group_request.go
+++ b/model_patched_fhrp_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_group_request.go b/model_patched_group_request.go
index 97eecccf2d..5d42e7f8d0 100644
--- a/model_patched_group_request.go
+++ b/model_patched_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,6 +20,8 @@ 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"`
AdditionalProperties map[string]interface{}
}
@@ -74,6 +76,70 @@ func (o *PatchedGroupRequest) SetName(v string) {
o.Name = &v
}
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *PatchedGroupRequest) 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 *PatchedGroupRequest) 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 *PatchedGroupRequest) 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 *PatchedGroupRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+// GetPermissions returns the Permissions field value if set, zero value otherwise.
+func (o *PatchedGroupRequest) 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 *PatchedGroupRequest) 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 *PatchedGroupRequest) 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 *PatchedGroupRequest) SetPermissions(v []int32) {
+ o.Permissions = v
+}
+
func (o PatchedGroupRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -87,6 +153,12 @@ func (o PatchedGroupRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
+ if !IsNil(o.Description) {
+ toSerialize["description"] = o.Description
+ }
+ if !IsNil(o.Permissions) {
+ toSerialize["permissions"] = o.Permissions
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -110,6 +182,8 @@ func (o *PatchedGroupRequest) UnmarshalJSON(data []byte) (err error) {
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "permissions")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go
index d10dd14268..0544fcc6fb 100644
--- a/model_patched_image_attachment_request.go
+++ b/model_patched_image_attachment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &PatchedImageAttachmentRequest{}
// PatchedImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedImageAttachmentRequest struct {
- ContentType *string `json:"content_type,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
ObjectId *int64 `json:"object_id,omitempty"`
Name *string `json:"name,omitempty"`
Image **os.File `json:"image,omitempty"`
@@ -48,36 +48,36 @@ func NewPatchedImageAttachmentRequestWithDefaults() *PatchedImageAttachmentReque
return &this
}
-// GetContentType returns the ContentType field value if set, zero value otherwise.
-func (o *PatchedImageAttachmentRequest) GetContentType() string {
- if o == nil || IsNil(o.ContentType) {
+// GetObjectType returns the ObjectType field value if set, zero value otherwise.
+func (o *PatchedImageAttachmentRequest) GetObjectType() string {
+ if o == nil || IsNil(o.ObjectType) {
var ret string
return ret
}
- return *o.ContentType
+ return *o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise
+// 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 *PatchedImageAttachmentRequest) GetContentTypeOk() (*string, bool) {
- if o == nil || IsNil(o.ContentType) {
+func (o *PatchedImageAttachmentRequest) GetObjectTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.ObjectType) {
return nil, false
}
- return o.ContentType, true
+ return o.ObjectType, true
}
-// HasContentType returns a boolean if a field has been set.
-func (o *PatchedImageAttachmentRequest) HasContentType() bool {
- if o != nil && !IsNil(o.ContentType) {
+// HasObjectType returns a boolean if a field has been set.
+func (o *PatchedImageAttachmentRequest) HasObjectType() bool {
+ if o != nil && !IsNil(o.ObjectType) {
return true
}
return false
}
-// SetContentType gets a reference to the given string and assigns it to the ContentType field.
-func (o *PatchedImageAttachmentRequest) SetContentType(v string) {
- o.ContentType = &v
+// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
+func (o *PatchedImageAttachmentRequest) SetObjectType(v string) {
+ o.ObjectType = &v
}
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
@@ -250,8 +250,8 @@ func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) {
func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentType) {
- toSerialize["content_type"] = o.ContentType
+ if !IsNil(o.ObjectType) {
+ toSerialize["object_type"] = o.ObjectType
}
if !IsNil(o.ObjectId) {
toSerialize["object_id"] = o.ObjectId
@@ -290,7 +290,7 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "name")
delete(additionalProperties, "image")
diff --git a/model_patched_writable_inventory_item_request.go b/model_patched_inventory_item_request.go
similarity index 65%
rename from model_patched_writable_inventory_item_request.go
rename to model_patched_inventory_item_request.go
index 69fe88c916..399e6ab592 100644
--- a/model_patched_writable_inventory_item_request.go
+++ b/model_patched_inventory_item_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,18 +14,18 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableInventoryItemRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableInventoryItemRequest{}
+// checks if the PatchedInventoryItemRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedInventoryItemRequest{}
-// PatchedWritableInventoryItemRequest Adds support for custom fields and tags.
-type PatchedWritableInventoryItemRequest struct {
- Device *int32 `json:"device,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name *string `json:"name,omitempty"`
+// 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"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRoleRequest `json:"role,omitempty"`
+ Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Serial *string `json:"serial,omitempty"`
@@ -41,29 +41,29 @@ type PatchedWritableInventoryItemRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableInventoryItemRequest PatchedWritableInventoryItemRequest
+type _PatchedInventoryItemRequest PatchedInventoryItemRequest
-// NewPatchedWritableInventoryItemRequest instantiates a new PatchedWritableInventoryItemRequest object
+// NewPatchedInventoryItemRequest instantiates a new PatchedInventoryItemRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableInventoryItemRequest() *PatchedWritableInventoryItemRequest {
- this := PatchedWritableInventoryItemRequest{}
+func NewPatchedInventoryItemRequest() *PatchedInventoryItemRequest {
+ this := PatchedInventoryItemRequest{}
return &this
}
-// NewPatchedWritableInventoryItemRequestWithDefaults instantiates a new PatchedWritableInventoryItemRequest object
+// NewPatchedInventoryItemRequestWithDefaults instantiates a new PatchedInventoryItemRequest object
// This 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 NewPatchedWritableInventoryItemRequestWithDefaults() *PatchedWritableInventoryItemRequest {
- this := PatchedWritableInventoryItemRequest{}
+func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest {
+ this := PatchedInventoryItemRequest{}
return &this
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetDevice() int32 {
+func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -71,7 +71,7 @@ func (o *PatchedWritableInventoryItemRequest) GetDevice() int32 {
// 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 *PatchedWritableInventoryItemRequest) GetDeviceOk() (*int32, bool) {
+func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -79,7 +79,7 @@ func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*int32, bool) {
}
// HasDevice returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasDevice() bool {
+func (o *PatchedInventoryItemRequest) HasDevice() bool {
if o != nil && !IsNil(o.Device) {
return true
}
@@ -87,13 +87,13 @@ func (o *PatchedWritableInventoryItemRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritableInventoryItemRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) {
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 *PatchedWritableInventoryItemRequest) GetParent() int32 {
+func (o *PatchedInventoryItemRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
var ret int32
return ret
@@ -104,7 +104,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetParentOk() (*int32, bool) {
+func (o *PatchedInventoryItemRequest) GetParentOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -112,7 +112,7 @@ func (o *PatchedWritableInventoryItemRequest) GetParentOk() (*int32, bool) {
}
// HasParent returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasParent() bool {
+func (o *PatchedInventoryItemRequest) HasParent() bool {
if o != nil && o.Parent.IsSet() {
return true
}
@@ -121,22 +121,22 @@ func (o *PatchedWritableInventoryItemRequest) HasParent() bool {
}
// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field.
-func (o *PatchedWritableInventoryItemRequest) SetParent(v int32) {
+func (o *PatchedInventoryItemRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
// SetParentNil sets the value for Parent to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetParentNil() {
+func (o *PatchedInventoryItemRequest) SetParentNil() {
o.Parent.Set(nil)
}
// UnsetParent ensures that no value is present for Parent, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetParent() {
+func (o *PatchedInventoryItemRequest) UnsetParent() {
o.Parent.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetName() string {
+func (o *PatchedInventoryItemRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -146,7 +146,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetNameOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -154,7 +154,7 @@ func (o *PatchedWritableInventoryItemRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasName() bool {
+func (o *PatchedInventoryItemRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -163,12 +163,12 @@ func (o *PatchedWritableInventoryItemRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableInventoryItemRequest) SetName(v string) {
+func (o *PatchedInventoryItemRequest) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetLabel() string {
+func (o *PatchedInventoryItemRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -178,7 +178,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -186,7 +186,7 @@ func (o *PatchedWritableInventoryItemRequest) GetLabelOk() (*string, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasLabel() bool {
+func (o *PatchedInventoryItemRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -195,14 +195,14 @@ func (o *PatchedWritableInventoryItemRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableInventoryItemRequest) SetLabel(v string) {
+func (o *PatchedInventoryItemRequest) SetLabel(v string) {
o.Label = &v
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInventoryItemRequest) GetRole() int32 {
+func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret InventoryItemRoleRequest
return ret
}
return *o.Role.Get()
@@ -211,7 +211,7 @@ func (o *PatchedWritableInventoryItemRequest) GetRole() int32 {
// 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 *PatchedWritableInventoryItemRequest) GetRoleOk() (*int32, bool) {
+func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -219,7 +219,7 @@ func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*int32, bool) {
}
// HasRole returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasRole() bool {
+func (o *PatchedInventoryItemRequest) HasRole() bool {
if o != nil && o.Role.IsSet() {
return true
}
@@ -227,25 +227,25 @@ func (o *PatchedWritableInventoryItemRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableInventoryItemRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field.
+func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) {
o.Role.Set(&v)
}
// SetRoleNil sets the value for Role to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetRoleNil() {
+func (o *PatchedInventoryItemRequest) SetRoleNil() {
o.Role.Set(nil)
}
// UnsetRole ensures that no value is present for Role, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetRole() {
+func (o *PatchedInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetManufacturer() int32 {
+func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer.Get()
@@ -254,7 +254,7 @@ func (o *PatchedWritableInventoryItemRequest) GetManufacturer() int32 {
// 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 *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*int32, bool) {
+func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -262,7 +262,7 @@ func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*int32, bool)
}
// HasManufacturer returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool {
+func (o *PatchedInventoryItemRequest) HasManufacturer() bool {
if o != nil && o.Manufacturer.IsSet() {
return true
}
@@ -270,23 +270,23 @@ func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableInt32 and assigns it to the Manufacturer field.
-func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v int32) {
+// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field.
+func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer.Set(&v)
}
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetManufacturerNil() {
+func (o *PatchedInventoryItemRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
}
// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetManufacturer() {
+func (o *PatchedInventoryItemRequest) UnsetManufacturer() {
o.Manufacturer.Unset()
}
// GetPartId returns the PartId field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetPartId() string {
+func (o *PatchedInventoryItemRequest) GetPartId() string {
if o == nil || IsNil(o.PartId) {
var ret string
return ret
@@ -296,7 +296,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetPartIdOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetPartIdOk() (*string, bool) {
if o == nil || IsNil(o.PartId) {
return nil, false
}
@@ -304,7 +304,7 @@ func (o *PatchedWritableInventoryItemRequest) GetPartIdOk() (*string, bool) {
}
// HasPartId returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasPartId() bool {
+func (o *PatchedInventoryItemRequest) HasPartId() bool {
if o != nil && !IsNil(o.PartId) {
return true
}
@@ -313,12 +313,12 @@ func (o *PatchedWritableInventoryItemRequest) HasPartId() bool {
}
// SetPartId gets a reference to the given string and assigns it to the PartId field.
-func (o *PatchedWritableInventoryItemRequest) SetPartId(v string) {
+func (o *PatchedInventoryItemRequest) SetPartId(v string) {
o.PartId = &v
}
// GetSerial returns the Serial field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetSerial() string {
+func (o *PatchedInventoryItemRequest) GetSerial() string {
if o == nil || IsNil(o.Serial) {
var ret string
return ret
@@ -328,7 +328,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetSerialOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetSerialOk() (*string, bool) {
if o == nil || IsNil(o.Serial) {
return nil, false
}
@@ -336,7 +336,7 @@ func (o *PatchedWritableInventoryItemRequest) GetSerialOk() (*string, bool) {
}
// HasSerial returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasSerial() bool {
+func (o *PatchedInventoryItemRequest) HasSerial() bool {
if o != nil && !IsNil(o.Serial) {
return true
}
@@ -345,12 +345,12 @@ func (o *PatchedWritableInventoryItemRequest) HasSerial() bool {
}
// SetSerial gets a reference to the given string and assigns it to the Serial field.
-func (o *PatchedWritableInventoryItemRequest) SetSerial(v string) {
+func (o *PatchedInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetAssetTag() string {
+func (o *PatchedInventoryItemRequest) GetAssetTag() string {
if o == nil || IsNil(o.AssetTag.Get()) {
var ret string
return ret
@@ -361,7 +361,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetAssetTagOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetAssetTagOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -369,7 +369,7 @@ func (o *PatchedWritableInventoryItemRequest) GetAssetTagOk() (*string, bool) {
}
// HasAssetTag returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool {
+func (o *PatchedInventoryItemRequest) HasAssetTag() bool {
if o != nil && o.AssetTag.IsSet() {
return true
}
@@ -378,22 +378,22 @@ func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool {
}
// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field.
-func (o *PatchedWritableInventoryItemRequest) SetAssetTag(v string) {
+func (o *PatchedInventoryItemRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetAssetTagNil() {
+func (o *PatchedInventoryItemRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
}
// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetAssetTag() {
+func (o *PatchedInventoryItemRequest) UnsetAssetTag() {
o.AssetTag.Unset()
}
// GetDiscovered returns the Discovered field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetDiscovered() bool {
+func (o *PatchedInventoryItemRequest) GetDiscovered() bool {
if o == nil || IsNil(o.Discovered) {
var ret bool
return ret
@@ -403,7 +403,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool) {
+func (o *PatchedInventoryItemRequest) GetDiscoveredOk() (*bool, bool) {
if o == nil || IsNil(o.Discovered) {
return nil, false
}
@@ -411,7 +411,7 @@ func (o *PatchedWritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool) {
}
// HasDiscovered returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasDiscovered() bool {
+func (o *PatchedInventoryItemRequest) HasDiscovered() bool {
if o != nil && !IsNil(o.Discovered) {
return true
}
@@ -420,12 +420,12 @@ func (o *PatchedWritableInventoryItemRequest) HasDiscovered() bool {
}
// SetDiscovered gets a reference to the given bool and assigns it to the Discovered field.
-func (o *PatchedWritableInventoryItemRequest) SetDiscovered(v bool) {
+func (o *PatchedInventoryItemRequest) SetDiscovered(v bool) {
o.Discovered = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetDescription() string {
+func (o *PatchedInventoryItemRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -435,7 +435,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -443,7 +443,7 @@ func (o *PatchedWritableInventoryItemRequest) GetDescriptionOk() (*string, bool)
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasDescription() bool {
+func (o *PatchedInventoryItemRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -452,12 +452,12 @@ func (o *PatchedWritableInventoryItemRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableInventoryItemRequest) SetDescription(v string) {
+func (o *PatchedInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetComponentType() string {
+func (o *PatchedInventoryItemRequest) GetComponentType() string {
if o == nil || IsNil(o.ComponentType.Get()) {
var ret string
return ret
@@ -468,7 +468,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetComponentTypeOk() (*string, bool) {
+func (o *PatchedInventoryItemRequest) GetComponentTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -476,7 +476,7 @@ func (o *PatchedWritableInventoryItemRequest) GetComponentTypeOk() (*string, boo
}
// HasComponentType returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool {
+func (o *PatchedInventoryItemRequest) HasComponentType() bool {
if o != nil && o.ComponentType.IsSet() {
return true
}
@@ -485,22 +485,22 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool {
}
// SetComponentType gets a reference to the given NullableString and assigns it to the ComponentType field.
-func (o *PatchedWritableInventoryItemRequest) SetComponentType(v string) {
+func (o *PatchedInventoryItemRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetComponentTypeNil() {
+func (o *PatchedInventoryItemRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
}
// UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetComponentType() {
+func (o *PatchedInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetComponentId() int64 {
+func (o *PatchedInventoryItemRequest) GetComponentId() int64 {
if o == nil || IsNil(o.ComponentId.Get()) {
var ret int64
return ret
@@ -511,7 +511,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetComponentIdOk() (*int64, bool) {
+func (o *PatchedInventoryItemRequest) GetComponentIdOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -519,7 +519,7 @@ func (o *PatchedWritableInventoryItemRequest) GetComponentIdOk() (*int64, bool)
}
// HasComponentId returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool {
+func (o *PatchedInventoryItemRequest) HasComponentId() bool {
if o != nil && o.ComponentId.IsSet() {
return true
}
@@ -528,22 +528,22 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool {
}
// SetComponentId gets a reference to the given NullableInt64 and assigns it to the ComponentId field.
-func (o *PatchedWritableInventoryItemRequest) SetComponentId(v int64) {
+func (o *PatchedInventoryItemRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
-func (o *PatchedWritableInventoryItemRequest) SetComponentIdNil() {
+func (o *PatchedInventoryItemRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
}
// UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
-func (o *PatchedWritableInventoryItemRequest) UnsetComponentId() {
+func (o *PatchedInventoryItemRequest) UnsetComponentId() {
o.ComponentId.Unset()
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetTags() []NestedTagRequest {
+func (o *PatchedInventoryItemRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -553,7 +553,7 @@ func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -561,7 +561,7 @@ func (o *PatchedWritableInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, b
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasTags() bool {
+func (o *PatchedInventoryItemRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -570,12 +570,12 @@ func (o *PatchedWritableInventoryItemRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableInventoryItemRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedInventoryItemRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedInventoryItemRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -585,7 +585,7 @@ func (o *PatchedWritableInventoryItemRequest) GetCustomFields() map[string]inter
// 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 *PatchedWritableInventoryItemRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedInventoryItemRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -593,7 +593,7 @@ func (o *PatchedWritableInventoryItemRequest) GetCustomFieldsOk() (map[string]in
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemRequest) HasCustomFields() bool {
+func (o *PatchedInventoryItemRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -602,11 +602,11 @@ func (o *PatchedWritableInventoryItemRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableInventoryItemRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedInventoryItemRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedInventoryItemRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -614,7 +614,7 @@ func (o PatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableInventoryItemRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedInventoryItemRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Device) {
toSerialize["device"] = o.Device
@@ -669,16 +669,16 @@ func (o PatchedWritableInventoryItemRequest) ToMap() (map[string]interface{}, er
return toSerialize, nil
}
-func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableInventoryItemRequest := _PatchedWritableInventoryItemRequest{}
+func (o *PatchedInventoryItemRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedInventoryItemRequest := _PatchedInventoryItemRequest{}
- err = json.Unmarshal(data, &varPatchedWritableInventoryItemRequest)
+ err = json.Unmarshal(data, &varPatchedInventoryItemRequest)
if err != nil {
return err
}
- *o = PatchedWritableInventoryItemRequest(varPatchedWritableInventoryItemRequest)
+ *o = PatchedInventoryItemRequest(varPatchedInventoryItemRequest)
additionalProperties := make(map[string]interface{})
@@ -704,38 +704,38 @@ func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(data []byte) (err er
return err
}
-type NullablePatchedWritableInventoryItemRequest struct {
- value *PatchedWritableInventoryItemRequest
+type NullablePatchedInventoryItemRequest struct {
+ value *PatchedInventoryItemRequest
isSet bool
}
-func (v NullablePatchedWritableInventoryItemRequest) Get() *PatchedWritableInventoryItemRequest {
+func (v NullablePatchedInventoryItemRequest) Get() *PatchedInventoryItemRequest {
return v.value
}
-func (v *NullablePatchedWritableInventoryItemRequest) Set(val *PatchedWritableInventoryItemRequest) {
+func (v *NullablePatchedInventoryItemRequest) Set(val *PatchedInventoryItemRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableInventoryItemRequest) IsSet() bool {
+func (v NullablePatchedInventoryItemRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableInventoryItemRequest) Unset() {
+func (v *NullablePatchedInventoryItemRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableInventoryItemRequest(val *PatchedWritableInventoryItemRequest) *NullablePatchedWritableInventoryItemRequest {
- return &NullablePatchedWritableInventoryItemRequest{value: val, isSet: true}
+func NewNullablePatchedInventoryItemRequest(val *PatchedInventoryItemRequest) *NullablePatchedInventoryItemRequest {
+ return &NullablePatchedInventoryItemRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedInventoryItemRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableInventoryItemRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedInventoryItemRequest) 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 5eeeecbda2..f3abd36d01 100644
--- a/model_patched_inventory_item_role_request.go
+++ b/model_patched_inventory_item_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go
similarity index 60%
rename from model_patched_writable_inventory_item_template_request.go
rename to model_patched_inventory_item_template_request.go
index 8e9b6cb1e3..070c2170d4 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,19 +14,19 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableInventoryItemTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableInventoryItemTemplateRequest{}
+// checks if the PatchedInventoryItemTemplateRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedInventoryItemTemplateRequest{}
-// PatchedWritableInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableInventoryItemTemplateRequest struct {
- DeviceType *int32 `json:"device_type,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
+// 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"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
- Label *string `json:"label,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Role NullableInventoryItemRoleRequest `json:"role,omitempty"`
+ Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"`
// Manufacturer-assigned part identifier
PartId *string `json:"part_id,omitempty"`
Description *string `json:"description,omitempty"`
@@ -35,29 +35,29 @@ type PatchedWritableInventoryItemTemplateRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableInventoryItemTemplateRequest PatchedWritableInventoryItemTemplateRequest
+type _PatchedInventoryItemTemplateRequest PatchedInventoryItemTemplateRequest
-// NewPatchedWritableInventoryItemTemplateRequest instantiates a new PatchedWritableInventoryItemTemplateRequest object
+// NewPatchedInventoryItemTemplateRequest instantiates a new PatchedInventoryItemTemplateRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableInventoryItemTemplateRequest() *PatchedWritableInventoryItemTemplateRequest {
- this := PatchedWritableInventoryItemTemplateRequest{}
+func NewPatchedInventoryItemTemplateRequest() *PatchedInventoryItemTemplateRequest {
+ this := PatchedInventoryItemTemplateRequest{}
return &this
}
-// NewPatchedWritableInventoryItemTemplateRequestWithDefaults instantiates a new PatchedWritableInventoryItemTemplateRequest object
+// NewPatchedInventoryItemTemplateRequestWithDefaults instantiates a new PatchedInventoryItemTemplateRequest object
// This 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 NewPatchedWritableInventoryItemTemplateRequestWithDefaults() *PatchedWritableInventoryItemTemplateRequest {
- this := PatchedWritableInventoryItemTemplateRequest{}
+func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemTemplateRequest {
+ this := PatchedInventoryItemTemplateRequest{}
return &this
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemTemplateRequest) GetDeviceType() int32 {
+func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType
@@ -65,7 +65,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetDeviceType() int32 {
// 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 *PatchedWritableInventoryItemTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -73,7 +73,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetDeviceTypeOk() (*int32,
}
// HasDeviceType returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasDeviceType() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool {
if o != nil && !IsNil(o.DeviceType) {
return true
}
@@ -81,13 +81,13 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given int32 and assigns it to the DeviceType field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
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 *PatchedWritableInventoryItemTemplateRequest) GetParent() int32 {
+func (o *PatchedInventoryItemTemplateRequest) GetParent() int32 {
if o == nil || IsNil(o.Parent.Get()) {
var ret int32
return ret
@@ -98,7 +98,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetParentOk() (*int32, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetParentOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -106,7 +106,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetParentOk() (*int32, boo
}
// HasParent returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasParent() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasParent() bool {
if o != nil && o.Parent.IsSet() {
return true
}
@@ -115,22 +115,22 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasParent() bool {
}
// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetParent(v int32) {
+func (o *PatchedInventoryItemTemplateRequest) SetParent(v int32) {
o.Parent.Set(&v)
}
// SetParentNil sets the value for Parent to be an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) SetParentNil() {
+func (o *PatchedInventoryItemTemplateRequest) SetParentNil() {
o.Parent.Set(nil)
}
// UnsetParent ensures that no value is present for Parent, not even an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) UnsetParent() {
+func (o *PatchedInventoryItemTemplateRequest) UnsetParent() {
o.Parent.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemTemplateRequest) GetName() string {
+func (o *PatchedInventoryItemTemplateRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -140,7 +140,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetNameOk() (*string, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -148,7 +148,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetNameOk() (*string, bool
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasName() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -157,12 +157,12 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetName(v string) {
+func (o *PatchedInventoryItemTemplateRequest) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemTemplateRequest) GetLabel() string {
+func (o *PatchedInventoryItemTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -172,7 +172,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -180,7 +180,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetLabelOk() (*string, boo
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasLabel() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -189,14 +189,14 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetLabel(v string) {
+func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) {
o.Label = &v
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableInventoryItemTemplateRequest) GetRole() int32 {
+func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret InventoryItemRoleRequest
return ret
}
return *o.Role.Get()
@@ -205,7 +205,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetRole() int32 {
// 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 *PatchedWritableInventoryItemTemplateRequest) GetRoleOk() (*int32, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -213,7 +213,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetRoleOk() (*int32, bool)
}
// HasRole returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasRole() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasRole() bool {
if o != nil && o.Role.IsSet() {
return true
}
@@ -221,25 +221,25 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field.
+func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) {
o.Role.Set(&v)
}
// SetRoleNil sets the value for Role to be an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) SetRoleNil() {
+func (o *PatchedInventoryItemTemplateRequest) SetRoleNil() {
o.Role.Set(nil)
}
// UnsetRole ensures that no value is present for Role, not even an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) UnsetRole() {
+func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetManufacturer() int32 {
+func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer.Get()
@@ -248,7 +248,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetManufacturer() int32 {
// 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 *PatchedWritableInventoryItemTemplateRequest) GetManufacturerOk() (*int32, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -256,7 +256,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetManufacturerOk() (*int3
}
// HasManufacturer returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasManufacturer() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool {
if o != nil && o.Manufacturer.IsSet() {
return true
}
@@ -264,23 +264,23 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableInt32 and assigns it to the Manufacturer field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetManufacturer(v int32) {
+// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field.
+func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer.Set(&v)
}
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) SetManufacturerNil() {
+func (o *PatchedInventoryItemTemplateRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
}
// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) UnsetManufacturer() {
+func (o *PatchedInventoryItemTemplateRequest) UnsetManufacturer() {
o.Manufacturer.Unset()
}
// GetPartId returns the PartId field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemTemplateRequest) GetPartId() string {
+func (o *PatchedInventoryItemTemplateRequest) GetPartId() string {
if o == nil || IsNil(o.PartId) {
var ret string
return ret
@@ -290,7 +290,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetPartIdOk() (*string, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetPartIdOk() (*string, bool) {
if o == nil || IsNil(o.PartId) {
return nil, false
}
@@ -298,7 +298,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetPartIdOk() (*string, bo
}
// HasPartId returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasPartId() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasPartId() bool {
if o != nil && !IsNil(o.PartId) {
return true
}
@@ -307,12 +307,12 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasPartId() bool {
}
// SetPartId gets a reference to the given string and assigns it to the PartId field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetPartId(v string) {
+func (o *PatchedInventoryItemTemplateRequest) SetPartId(v string) {
o.PartId = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableInventoryItemTemplateRequest) GetDescription() string {
+func (o *PatchedInventoryItemTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -322,7 +322,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -330,7 +330,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetDescriptionOk() (*strin
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasDescription() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -339,12 +339,12 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetDescription(v string) {
+func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetComponentType() string {
+func (o *PatchedInventoryItemTemplateRequest) GetComponentType() string {
if o == nil || IsNil(o.ComponentType.Get()) {
var ret string
return ret
@@ -355,7 +355,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetComponentTypeOk() (*string, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetComponentTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -363,7 +363,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentTypeOk() (*str
}
// HasComponentType returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentType() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasComponentType() bool {
if o != nil && o.ComponentType.IsSet() {
return true
}
@@ -372,22 +372,22 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentType() bool {
}
// SetComponentType gets a reference to the given NullableString and assigns it to the ComponentType field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentType(v string) {
+func (o *PatchedInventoryItemTemplateRequest) SetComponentType(v string) {
o.ComponentType.Set(&v)
}
// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentTypeNil() {
+func (o *PatchedInventoryItemTemplateRequest) SetComponentTypeNil() {
o.ComponentType.Set(nil)
}
// UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) UnsetComponentType() {
+func (o *PatchedInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetComponentId() int64 {
+func (o *PatchedInventoryItemTemplateRequest) GetComponentId() int64 {
if o == nil || IsNil(o.ComponentId.Get()) {
var ret int64
return ret
@@ -398,7 +398,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) 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 *PatchedWritableInventoryItemTemplateRequest) GetComponentIdOk() (*int64, bool) {
+func (o *PatchedInventoryItemTemplateRequest) GetComponentIdOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -406,7 +406,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) GetComponentIdOk() (*int64
}
// HasComponentId returns a boolean if a field has been set.
-func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentId() bool {
+func (o *PatchedInventoryItemTemplateRequest) HasComponentId() bool {
if o != nil && o.ComponentId.IsSet() {
return true
}
@@ -415,21 +415,21 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentId() bool {
}
// SetComponentId gets a reference to the given NullableInt64 and assigns it to the ComponentId field.
-func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentId(v int64) {
+func (o *PatchedInventoryItemTemplateRequest) SetComponentId(v int64) {
o.ComponentId.Set(&v)
}
// SetComponentIdNil sets the value for ComponentId to be an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentIdNil() {
+func (o *PatchedInventoryItemTemplateRequest) SetComponentIdNil() {
o.ComponentId.Set(nil)
}
// UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
-func (o *PatchedWritableInventoryItemTemplateRequest) UnsetComponentId() {
+func (o *PatchedInventoryItemTemplateRequest) UnsetComponentId() {
o.ComponentId.Unset()
}
-func (o PatchedWritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -437,7 +437,7 @@ func (o PatchedWritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, erro
return json.Marshal(toSerialize)
}
-func (o PatchedWritableInventoryItemTemplateRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedInventoryItemTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DeviceType) {
toSerialize["device_type"] = o.DeviceType
@@ -477,16 +477,16 @@ func (o PatchedWritableInventoryItemTemplateRequest) ToMap() (map[string]interfa
return toSerialize, nil
}
-func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableInventoryItemTemplateRequest := _PatchedWritableInventoryItemTemplateRequest{}
+func (o *PatchedInventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedInventoryItemTemplateRequest := _PatchedInventoryItemTemplateRequest{}
- err = json.Unmarshal(data, &varPatchedWritableInventoryItemTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedInventoryItemTemplateRequest)
if err != nil {
return err
}
- *o = PatchedWritableInventoryItemTemplateRequest(varPatchedWritableInventoryItemTemplateRequest)
+ *o = PatchedInventoryItemTemplateRequest(varPatchedInventoryItemTemplateRequest)
additionalProperties := make(map[string]interface{})
@@ -507,38 +507,38 @@ func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(data []byte)
return err
}
-type NullablePatchedWritableInventoryItemTemplateRequest struct {
- value *PatchedWritableInventoryItemTemplateRequest
+type NullablePatchedInventoryItemTemplateRequest struct {
+ value *PatchedInventoryItemTemplateRequest
isSet bool
}
-func (v NullablePatchedWritableInventoryItemTemplateRequest) Get() *PatchedWritableInventoryItemTemplateRequest {
+func (v NullablePatchedInventoryItemTemplateRequest) Get() *PatchedInventoryItemTemplateRequest {
return v.value
}
-func (v *NullablePatchedWritableInventoryItemTemplateRequest) Set(val *PatchedWritableInventoryItemTemplateRequest) {
+func (v *NullablePatchedInventoryItemTemplateRequest) Set(val *PatchedInventoryItemTemplateRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableInventoryItemTemplateRequest) IsSet() bool {
+func (v NullablePatchedInventoryItemTemplateRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableInventoryItemTemplateRequest) Unset() {
+func (v *NullablePatchedInventoryItemTemplateRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableInventoryItemTemplateRequest(val *PatchedWritableInventoryItemTemplateRequest) *NullablePatchedWritableInventoryItemTemplateRequest {
- return &NullablePatchedWritableInventoryItemTemplateRequest{value: val, isSet: true}
+func NewNullablePatchedInventoryItemTemplateRequest(val *PatchedInventoryItemTemplateRequest) *NullablePatchedInventoryItemTemplateRequest {
+ return &NullablePatchedInventoryItemTemplateRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedInventoryItemTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go
similarity index 58%
rename from model_patched_writable_l2_vpn_termination_request.go
rename to model_patched_l2_vpn_termination_request.go
index 617ed5dd55..73cb0720e5 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableL2VPNTerminationRequest{}
+// checks if the PatchedL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedL2VPNTerminationRequest{}
-// PatchedWritableL2VPNTerminationRequest Adds support for custom fields and tags.
-type PatchedWritableL2VPNTerminationRequest struct {
- L2vpn *int32 `json:"l2vpn,omitempty"`
+// 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"`
@@ -27,29 +27,29 @@ type PatchedWritableL2VPNTerminationRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableL2VPNTerminationRequest PatchedWritableL2VPNTerminationRequest
+type _PatchedL2VPNTerminationRequest PatchedL2VPNTerminationRequest
-// NewPatchedWritableL2VPNTerminationRequest instantiates a new PatchedWritableL2VPNTerminationRequest object
+// NewPatchedL2VPNTerminationRequest instantiates a new PatchedL2VPNTerminationRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableL2VPNTerminationRequest() *PatchedWritableL2VPNTerminationRequest {
- this := PatchedWritableL2VPNTerminationRequest{}
+func NewPatchedL2VPNTerminationRequest() *PatchedL2VPNTerminationRequest {
+ this := PatchedL2VPNTerminationRequest{}
return &this
}
-// NewPatchedWritableL2VPNTerminationRequestWithDefaults instantiates a new PatchedWritableL2VPNTerminationRequest object
+// NewPatchedL2VPNTerminationRequestWithDefaults instantiates a new PatchedL2VPNTerminationRequest object
// This 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 NewPatchedWritableL2VPNTerminationRequestWithDefaults() *PatchedWritableL2VPNTerminationRequest {
- this := PatchedWritableL2VPNTerminationRequest{}
+func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationRequest {
+ this := PatchedL2VPNTerminationRequest{}
return &this
}
// GetL2vpn returns the L2vpn field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNTerminationRequest) GetL2vpn() int32 {
+func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest {
if o == nil || IsNil(o.L2vpn) {
- var ret int32
+ var ret L2VPNRequest
return ret
}
return *o.L2vpn
@@ -57,7 +57,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetL2vpn() int32 {
// 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 *PatchedWritableL2VPNTerminationRequest) GetL2vpnOk() (*int32, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) {
if o == nil || IsNil(o.L2vpn) {
return nil, false
}
@@ -65,7 +65,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetL2vpnOk() (*int32, bool) {
}
// HasL2vpn returns a boolean if a field has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) HasL2vpn() bool {
+func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool {
if o != nil && !IsNil(o.L2vpn) {
return true
}
@@ -73,13 +73,13 @@ func (o *PatchedWritableL2VPNTerminationRequest) HasL2vpn() bool {
return false
}
-// SetL2vpn gets a reference to the given int32 and assigns it to the L2vpn field.
-func (o *PatchedWritableL2VPNTerminationRequest) SetL2vpn(v int32) {
+// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field.
+func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) {
o.L2vpn = &v
}
// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectType() string {
+func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectType() string {
if o == nil || IsNil(o.AssignedObjectType) {
var ret string
return ret
@@ -89,7 +89,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectType() string
// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) {
if o == nil || IsNil(o.AssignedObjectType) {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectTypeOk() (*str
}
// HasAssignedObjectType returns a boolean if a field has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectType() bool {
+func (o *PatchedL2VPNTerminationRequest) HasAssignedObjectType() bool {
if o != nil && !IsNil(o.AssignedObjectType) {
return true
}
@@ -106,12 +106,12 @@ func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectType() bool {
}
// SetAssignedObjectType gets a reference to the given string and assigns it to the AssignedObjectType field.
-func (o *PatchedWritableL2VPNTerminationRequest) SetAssignedObjectType(v string) {
+func (o *PatchedL2VPNTerminationRequest) SetAssignedObjectType(v string) {
o.AssignedObjectType = &v
}
// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectId() int64 {
+func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectId() int64 {
if o == nil || IsNil(o.AssignedObjectId) {
var ret int64
return ret
@@ -121,7 +121,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectId() int64 {
// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) {
if o == nil || IsNil(o.AssignedObjectId) {
return nil, false
}
@@ -129,7 +129,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64
}
// HasAssignedObjectId returns a boolean if a field has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectId() bool {
+func (o *PatchedL2VPNTerminationRequest) HasAssignedObjectId() bool {
if o != nil && !IsNil(o.AssignedObjectId) {
return true
}
@@ -138,12 +138,12 @@ func (o *PatchedWritableL2VPNTerminationRequest) HasAssignedObjectId() bool {
}
// SetAssignedObjectId gets a reference to the given int64 and assigns it to the AssignedObjectId field.
-func (o *PatchedWritableL2VPNTerminationRequest) SetAssignedObjectId(v int64) {
+func (o *PatchedL2VPNTerminationRequest) SetAssignedObjectId(v int64) {
o.AssignedObjectId = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNTerminationRequest) GetTags() []NestedTagRequest {
+func (o *PatchedL2VPNTerminationRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -153,7 +153,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) 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 *PatchedWritableL2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -161,7 +161,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) HasTags() bool {
+func (o *PatchedL2VPNTerminationRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -170,12 +170,12 @@ func (o *PatchedWritableL2VPNTerminationRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableL2VPNTerminationRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedL2VPNTerminationRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableL2VPNTerminationRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedL2VPNTerminationRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -185,7 +185,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetCustomFields() map[string]in
// 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 *PatchedWritableL2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedL2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -193,7 +193,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) GetCustomFieldsOk() (map[string
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableL2VPNTerminationRequest) HasCustomFields() bool {
+func (o *PatchedL2VPNTerminationRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -202,11 +202,11 @@ func (o *PatchedWritableL2VPNTerminationRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableL2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedL2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -214,7 +214,7 @@ func (o PatchedWritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.L2vpn) {
toSerialize["l2vpn"] = o.L2vpn
@@ -239,16 +239,16 @@ func (o PatchedWritableL2VPNTerminationRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableL2VPNTerminationRequest := _PatchedWritableL2VPNTerminationRequest{}
+func (o *PatchedL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedL2VPNTerminationRequest := _PatchedL2VPNTerminationRequest{}
- err = json.Unmarshal(data, &varPatchedWritableL2VPNTerminationRequest)
+ err = json.Unmarshal(data, &varPatchedL2VPNTerminationRequest)
if err != nil {
return err
}
- *o = PatchedWritableL2VPNTerminationRequest(varPatchedWritableL2VPNTerminationRequest)
+ *o = PatchedL2VPNTerminationRequest(varPatchedL2VPNTerminationRequest)
additionalProperties := make(map[string]interface{})
@@ -264,38 +264,38 @@ func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err
return err
}
-type NullablePatchedWritableL2VPNTerminationRequest struct {
- value *PatchedWritableL2VPNTerminationRequest
+type NullablePatchedL2VPNTerminationRequest struct {
+ value *PatchedL2VPNTerminationRequest
isSet bool
}
-func (v NullablePatchedWritableL2VPNTerminationRequest) Get() *PatchedWritableL2VPNTerminationRequest {
+func (v NullablePatchedL2VPNTerminationRequest) Get() *PatchedL2VPNTerminationRequest {
return v.value
}
-func (v *NullablePatchedWritableL2VPNTerminationRequest) Set(val *PatchedWritableL2VPNTerminationRequest) {
+func (v *NullablePatchedL2VPNTerminationRequest) Set(val *PatchedL2VPNTerminationRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableL2VPNTerminationRequest) IsSet() bool {
+func (v NullablePatchedL2VPNTerminationRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableL2VPNTerminationRequest) Unset() {
+func (v *NullablePatchedL2VPNTerminationRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableL2VPNTerminationRequest(val *PatchedWritableL2VPNTerminationRequest) *NullablePatchedWritableL2VPNTerminationRequest {
- return &NullablePatchedWritableL2VPNTerminationRequest{value: val, isSet: true}
+func NewNullablePatchedL2VPNTerminationRequest(val *PatchedL2VPNTerminationRequest) *NullablePatchedL2VPNTerminationRequest {
+ return &NullablePatchedL2VPNTerminationRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableL2VPNTerminationRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedL2VPNTerminationRequest) 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 f796f42b52..7a325529e9 100644
--- a/model_patched_manufacturer_request.go
+++ b/model_patched_manufacturer_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_module_bay_request.go b/model_patched_module_bay_request.go
similarity index 59%
rename from model_patched_writable_module_bay_request.go
rename to model_patched_module_bay_request.go
index b8810340a9..8a6147e440 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,14 +14,14 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableModuleBayRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableModuleBayRequest{}
+// checks if the PatchedModuleBayRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedModuleBayRequest{}
-// PatchedWritableModuleBayRequest Adds support for custom fields and tags.
-type PatchedWritableModuleBayRequest struct {
- Device *int32 `json:"device,omitempty"`
- Name *string `json:"name,omitempty"`
- InstalledModule *int32 `json:"installed_module,omitempty"`
+// 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"`
// Physical label
Label *string `json:"label,omitempty"`
// Identifier to reference when renaming installed components
@@ -32,29 +32,29 @@ type PatchedWritableModuleBayRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableModuleBayRequest PatchedWritableModuleBayRequest
+type _PatchedModuleBayRequest PatchedModuleBayRequest
-// NewPatchedWritableModuleBayRequest instantiates a new PatchedWritableModuleBayRequest object
+// NewPatchedModuleBayRequest instantiates a new PatchedModuleBayRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableModuleBayRequest() *PatchedWritableModuleBayRequest {
- this := PatchedWritableModuleBayRequest{}
+func NewPatchedModuleBayRequest() *PatchedModuleBayRequest {
+ this := PatchedModuleBayRequest{}
return &this
}
-// NewPatchedWritableModuleBayRequestWithDefaults instantiates a new PatchedWritableModuleBayRequest object
+// NewPatchedModuleBayRequestWithDefaults instantiates a new PatchedModuleBayRequest object
// This 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 NewPatchedWritableModuleBayRequestWithDefaults() *PatchedWritableModuleBayRequest {
- this := PatchedWritableModuleBayRequest{}
+func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest {
+ this := PatchedModuleBayRequest{}
return &this
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetDevice() int32 {
+func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -62,7 +62,7 @@ func (o *PatchedWritableModuleBayRequest) GetDevice() int32 {
// 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 *PatchedWritableModuleBayRequest) GetDeviceOk() (*int32, bool) {
+func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -70,7 +70,7 @@ func (o *PatchedWritableModuleBayRequest) GetDeviceOk() (*int32, bool) {
}
// HasDevice returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasDevice() bool {
+func (o *PatchedModuleBayRequest) HasDevice() bool {
if o != nil && !IsNil(o.Device) {
return true
}
@@ -78,13 +78,13 @@ func (o *PatchedWritableModuleBayRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritableModuleBayRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) {
o.Device = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetName() string {
+func (o *PatchedModuleBayRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -94,7 +94,7 @@ func (o *PatchedWritableModuleBayRequest) 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 *PatchedWritableModuleBayRequest) GetNameOk() (*string, bool) {
+func (o *PatchedModuleBayRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *PatchedWritableModuleBayRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasName() bool {
+func (o *PatchedModuleBayRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -111,44 +111,55 @@ func (o *PatchedWritableModuleBayRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableModuleBayRequest) SetName(v string) {
+func (o *PatchedModuleBayRequest) SetName(v string) {
o.Name = &v
}
-// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetInstalledModule() int32 {
- if o == nil || IsNil(o.InstalledModule) {
- var ret int32
+// 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 {
+ if o == nil || IsNil(o.InstalledModule.Get()) {
+ var ret ModuleRequest
return ret
}
- return *o.InstalledModule
+ 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.
-func (o *PatchedWritableModuleBayRequest) GetInstalledModuleOk() (*int32, bool) {
- if o == nil || IsNil(o.InstalledModule) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) {
+ if o == nil {
return nil, false
}
- return o.InstalledModule, true
+ return o.InstalledModule.Get(), o.InstalledModule.IsSet()
}
// HasInstalledModule returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasInstalledModule() bool {
- if o != nil && !IsNil(o.InstalledModule) {
+func (o *PatchedModuleBayRequest) HasInstalledModule() bool {
+ if o != nil && o.InstalledModule.IsSet() {
return true
}
return false
}
-// SetInstalledModule gets a reference to the given int32 and assigns it to the InstalledModule field.
-func (o *PatchedWritableModuleBayRequest) SetInstalledModule(v int32) {
- o.InstalledModule = &v
+// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field.
+func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) {
+ o.InstalledModule.Set(&v)
+}
+
+// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil
+func (o *PatchedModuleBayRequest) SetInstalledModuleNil() {
+ o.InstalledModule.Set(nil)
+}
+
+// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil
+func (o *PatchedModuleBayRequest) UnsetInstalledModule() {
+ o.InstalledModule.Unset()
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetLabel() string {
+func (o *PatchedModuleBayRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -158,7 +169,7 @@ func (o *PatchedWritableModuleBayRequest) 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 *PatchedWritableModuleBayRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedModuleBayRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -166,7 +177,7 @@ func (o *PatchedWritableModuleBayRequest) GetLabelOk() (*string, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasLabel() bool {
+func (o *PatchedModuleBayRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -175,12 +186,12 @@ func (o *PatchedWritableModuleBayRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableModuleBayRequest) SetLabel(v string) {
+func (o *PatchedModuleBayRequest) SetLabel(v string) {
o.Label = &v
}
// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetPosition() string {
+func (o *PatchedModuleBayRequest) GetPosition() string {
if o == nil || IsNil(o.Position) {
var ret string
return ret
@@ -190,7 +201,7 @@ func (o *PatchedWritableModuleBayRequest) GetPosition() string {
// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableModuleBayRequest) GetPositionOk() (*string, bool) {
+func (o *PatchedModuleBayRequest) GetPositionOk() (*string, bool) {
if o == nil || IsNil(o.Position) {
return nil, false
}
@@ -198,7 +209,7 @@ func (o *PatchedWritableModuleBayRequest) GetPositionOk() (*string, bool) {
}
// HasPosition returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasPosition() bool {
+func (o *PatchedModuleBayRequest) HasPosition() bool {
if o != nil && !IsNil(o.Position) {
return true
}
@@ -207,12 +218,12 @@ func (o *PatchedWritableModuleBayRequest) HasPosition() bool {
}
// SetPosition gets a reference to the given string and assigns it to the Position field.
-func (o *PatchedWritableModuleBayRequest) SetPosition(v string) {
+func (o *PatchedModuleBayRequest) SetPosition(v string) {
o.Position = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetDescription() string {
+func (o *PatchedModuleBayRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -222,7 +233,7 @@ func (o *PatchedWritableModuleBayRequest) 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 *PatchedWritableModuleBayRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedModuleBayRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -230,7 +241,7 @@ func (o *PatchedWritableModuleBayRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasDescription() bool {
+func (o *PatchedModuleBayRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -239,12 +250,12 @@ func (o *PatchedWritableModuleBayRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableModuleBayRequest) SetDescription(v string) {
+func (o *PatchedModuleBayRequest) SetDescription(v string) {
o.Description = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetTags() []NestedTagRequest {
+func (o *PatchedModuleBayRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -254,7 +265,7 @@ func (o *PatchedWritableModuleBayRequest) 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 *PatchedWritableModuleBayRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedModuleBayRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -262,7 +273,7 @@ func (o *PatchedWritableModuleBayRequest) GetTagsOk() ([]NestedTagRequest, bool)
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasTags() bool {
+func (o *PatchedModuleBayRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -271,12 +282,12 @@ func (o *PatchedWritableModuleBayRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableModuleBayRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedModuleBayRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedModuleBayRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -286,7 +297,7 @@ func (o *PatchedWritableModuleBayRequest) 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 *PatchedWritableModuleBayRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedModuleBayRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -294,7 +305,7 @@ func (o *PatchedWritableModuleBayRequest) GetCustomFieldsOk() (map[string]interf
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayRequest) HasCustomFields() bool {
+func (o *PatchedModuleBayRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -303,11 +314,11 @@ func (o *PatchedWritableModuleBayRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableModuleBayRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedModuleBayRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableModuleBayRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedModuleBayRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -315,7 +326,7 @@ func (o PatchedWritableModuleBayRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableModuleBayRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Device) {
toSerialize["device"] = o.Device
@@ -323,8 +334,8 @@ func (o PatchedWritableModuleBayRequest) ToMap() (map[string]interface{}, error)
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
- if !IsNil(o.InstalledModule) {
- toSerialize["installed_module"] = o.InstalledModule
+ if o.InstalledModule.IsSet() {
+ toSerialize["installed_module"] = o.InstalledModule.Get()
}
if !IsNil(o.Label) {
toSerialize["label"] = o.Label
@@ -349,16 +360,16 @@ func (o PatchedWritableModuleBayRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableModuleBayRequest := _PatchedWritableModuleBayRequest{}
+func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedModuleBayRequest := _PatchedModuleBayRequest{}
- err = json.Unmarshal(data, &varPatchedWritableModuleBayRequest)
+ err = json.Unmarshal(data, &varPatchedModuleBayRequest)
if err != nil {
return err
}
- *o = PatchedWritableModuleBayRequest(varPatchedWritableModuleBayRequest)
+ *o = PatchedModuleBayRequest(varPatchedModuleBayRequest)
additionalProperties := make(map[string]interface{})
@@ -377,38 +388,38 @@ func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritableModuleBayRequest struct {
- value *PatchedWritableModuleBayRequest
+type NullablePatchedModuleBayRequest struct {
+ value *PatchedModuleBayRequest
isSet bool
}
-func (v NullablePatchedWritableModuleBayRequest) Get() *PatchedWritableModuleBayRequest {
+func (v NullablePatchedModuleBayRequest) Get() *PatchedModuleBayRequest {
return v.value
}
-func (v *NullablePatchedWritableModuleBayRequest) Set(val *PatchedWritableModuleBayRequest) {
+func (v *NullablePatchedModuleBayRequest) Set(val *PatchedModuleBayRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableModuleBayRequest) IsSet() bool {
+func (v NullablePatchedModuleBayRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableModuleBayRequest) Unset() {
+func (v *NullablePatchedModuleBayRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableModuleBayRequest(val *PatchedWritableModuleBayRequest) *NullablePatchedWritableModuleBayRequest {
- return &NullablePatchedWritableModuleBayRequest{value: val, isSet: true}
+func NewNullablePatchedModuleBayRequest(val *PatchedModuleBayRequest) *NullablePatchedModuleBayRequest {
+ return &NullablePatchedModuleBayRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableModuleBayRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedModuleBayRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableModuleBayRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedModuleBayRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_module_bay_template_request.go b/model_patched_module_bay_template_request.go
similarity index 56%
rename from model_patched_writable_module_bay_template_request.go
rename to model_patched_module_bay_template_request.go
index e6434a4d3b..baeb07d2cb 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableModuleBayTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableModuleBayTemplateRequest{}
+// checks if the PatchedModuleBayTemplateRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedModuleBayTemplateRequest{}
-// PatchedWritableModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableModuleBayTemplateRequest struct {
- DeviceType *int32 `json:"device_type,omitempty"`
+// 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"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
Name *string `json:"name,omitempty"`
// Physical label
@@ -30,29 +30,29 @@ type PatchedWritableModuleBayTemplateRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableModuleBayTemplateRequest PatchedWritableModuleBayTemplateRequest
+type _PatchedModuleBayTemplateRequest PatchedModuleBayTemplateRequest
-// NewPatchedWritableModuleBayTemplateRequest instantiates a new PatchedWritableModuleBayTemplateRequest object
+// 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
-func NewPatchedWritableModuleBayTemplateRequest() *PatchedWritableModuleBayTemplateRequest {
- this := PatchedWritableModuleBayTemplateRequest{}
+func NewPatchedModuleBayTemplateRequest() *PatchedModuleBayTemplateRequest {
+ this := PatchedModuleBayTemplateRequest{}
return &this
}
-// NewPatchedWritableModuleBayTemplateRequestWithDefaults instantiates a new PatchedWritableModuleBayTemplateRequest object
+// 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
-func NewPatchedWritableModuleBayTemplateRequestWithDefaults() *PatchedWritableModuleBayTemplateRequest {
- this := PatchedWritableModuleBayTemplateRequest{}
+func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateRequest {
+ this := PatchedModuleBayTemplateRequest{}
return &this
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayTemplateRequest) GetDeviceType() int32 {
+func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType
@@ -60,7 +60,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetDeviceType() int32 {
// 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 *PatchedWritableModuleBayTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -68,7 +68,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetDeviceTypeOk() (*int32, boo
}
// HasDeviceType returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) HasDeviceType() bool {
+func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool {
if o != nil && !IsNil(o.DeviceType) {
return true
}
@@ -76,13 +76,13 @@ func (o *PatchedWritableModuleBayTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given int32 and assigns it to the DeviceType field.
-func (o *PatchedWritableModuleBayTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayTemplateRequest) GetName() string {
+func (o *PatchedModuleBayTemplateRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -92,7 +92,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) 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 *PatchedWritableModuleBayTemplateRequest) GetNameOk() (*string, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) HasName() bool {
+func (o *PatchedModuleBayTemplateRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -109,12 +109,12 @@ func (o *PatchedWritableModuleBayTemplateRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableModuleBayTemplateRequest) SetName(v string) {
+func (o *PatchedModuleBayTemplateRequest) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayTemplateRequest) GetLabel() string {
+func (o *PatchedModuleBayTemplateRequest) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
@@ -124,7 +124,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) 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 *PatchedWritableModuleBayTemplateRequest) GetLabelOk() (*string, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -132,7 +132,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetLabelOk() (*string, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) HasLabel() bool {
+func (o *PatchedModuleBayTemplateRequest) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -141,12 +141,12 @@ func (o *PatchedWritableModuleBayTemplateRequest) HasLabel() bool {
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
-func (o *PatchedWritableModuleBayTemplateRequest) SetLabel(v string) {
+func (o *PatchedModuleBayTemplateRequest) SetLabel(v string) {
o.Label = &v
}
// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayTemplateRequest) GetPosition() string {
+func (o *PatchedModuleBayTemplateRequest) GetPosition() string {
if o == nil || IsNil(o.Position) {
var ret string
return ret
@@ -156,7 +156,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetPosition() string {
// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) GetPositionOk() (*string, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetPositionOk() (*string, bool) {
if o == nil || IsNil(o.Position) {
return nil, false
}
@@ -164,7 +164,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetPositionOk() (*string, bool
}
// HasPosition returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) HasPosition() bool {
+func (o *PatchedModuleBayTemplateRequest) HasPosition() bool {
if o != nil && !IsNil(o.Position) {
return true
}
@@ -173,12 +173,12 @@ func (o *PatchedWritableModuleBayTemplateRequest) HasPosition() bool {
}
// SetPosition gets a reference to the given string and assigns it to the Position field.
-func (o *PatchedWritableModuleBayTemplateRequest) SetPosition(v string) {
+func (o *PatchedModuleBayTemplateRequest) SetPosition(v string) {
o.Position = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableModuleBayTemplateRequest) GetDescription() string {
+func (o *PatchedModuleBayTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -188,7 +188,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) 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 *PatchedWritableModuleBayTemplateRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedModuleBayTemplateRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -196,7 +196,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) GetDescriptionOk() (*string, b
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableModuleBayTemplateRequest) HasDescription() bool {
+func (o *PatchedModuleBayTemplateRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -205,11 +205,11 @@ func (o *PatchedWritableModuleBayTemplateRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableModuleBayTemplateRequest) SetDescription(v string) {
+func (o *PatchedModuleBayTemplateRequest) SetDescription(v string) {
o.Description = &v
}
-func (o PatchedWritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -217,7 +217,7 @@ func (o PatchedWritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DeviceType) {
toSerialize["device_type"] = o.DeviceType
@@ -242,16 +242,16 @@ func (o PatchedWritableModuleBayTemplateRequest) ToMap() (map[string]interface{}
return toSerialize, nil
}
-func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableModuleBayTemplateRequest := _PatchedWritableModuleBayTemplateRequest{}
+func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedModuleBayTemplateRequest := _PatchedModuleBayTemplateRequest{}
- err = json.Unmarshal(data, &varPatchedWritableModuleBayTemplateRequest)
+ err = json.Unmarshal(data, &varPatchedModuleBayTemplateRequest)
if err != nil {
return err
}
- *o = PatchedWritableModuleBayTemplateRequest(varPatchedWritableModuleBayTemplateRequest)
+ *o = PatchedModuleBayTemplateRequest(varPatchedModuleBayTemplateRequest)
additionalProperties := make(map[string]interface{})
@@ -267,38 +267,38 @@ func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(data []byte) (er
return err
}
-type NullablePatchedWritableModuleBayTemplateRequest struct {
- value *PatchedWritableModuleBayTemplateRequest
+type NullablePatchedModuleBayTemplateRequest struct {
+ value *PatchedModuleBayTemplateRequest
isSet bool
}
-func (v NullablePatchedWritableModuleBayTemplateRequest) Get() *PatchedWritableModuleBayTemplateRequest {
+func (v NullablePatchedModuleBayTemplateRequest) Get() *PatchedModuleBayTemplateRequest {
return v.value
}
-func (v *NullablePatchedWritableModuleBayTemplateRequest) Set(val *PatchedWritableModuleBayTemplateRequest) {
+func (v *NullablePatchedModuleBayTemplateRequest) Set(val *PatchedModuleBayTemplateRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableModuleBayTemplateRequest) IsSet() bool {
+func (v NullablePatchedModuleBayTemplateRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableModuleBayTemplateRequest) Unset() {
+func (v *NullablePatchedModuleBayTemplateRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableModuleBayTemplateRequest(val *PatchedWritableModuleBayTemplateRequest) *NullablePatchedWritableModuleBayTemplateRequest {
- return &NullablePatchedWritableModuleBayTemplateRequest{value: val, isSet: true}
+func NewNullablePatchedModuleBayTemplateRequest(val *PatchedModuleBayTemplateRequest) *NullablePatchedModuleBayTemplateRequest {
+ return &NullablePatchedModuleBayTemplateRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableModuleBayTemplateRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedModuleBayTemplateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_object_permission_request.go b/model_patched_object_permission_request.go
similarity index 62%
rename from model_patched_writable_object_permission_request.go
rename to model_patched_object_permission_request.go
index 744c80b660..39a1c0ffd2 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,45 +14,45 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableObjectPermissionRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableObjectPermissionRequest{}
+// checks if the PatchedObjectPermissionRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedObjectPermissionRequest{}
-// PatchedWritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableObjectPermissionRequest struct {
+// 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"`
ObjectTypes []string `json:"object_types,omitempty"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
// The list of actions granted by this permission
Actions []string `json:"actions,omitempty"`
// Queryset filter matching the applicable objects of the selected type(s)
Constraints interface{} `json:"constraints,omitempty"`
+ Groups []int32 `json:"groups,omitempty"`
+ Users []int32 `json:"users,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableObjectPermissionRequest PatchedWritableObjectPermissionRequest
+type _PatchedObjectPermissionRequest PatchedObjectPermissionRequest
-// NewPatchedWritableObjectPermissionRequest instantiates a new PatchedWritableObjectPermissionRequest object
+// NewPatchedObjectPermissionRequest instantiates a new PatchedObjectPermissionRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableObjectPermissionRequest() *PatchedWritableObjectPermissionRequest {
- this := PatchedWritableObjectPermissionRequest{}
+func NewPatchedObjectPermissionRequest() *PatchedObjectPermissionRequest {
+ this := PatchedObjectPermissionRequest{}
return &this
}
-// NewPatchedWritableObjectPermissionRequestWithDefaults instantiates a new PatchedWritableObjectPermissionRequest object
+// NewPatchedObjectPermissionRequestWithDefaults instantiates a new PatchedObjectPermissionRequest object
// This 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 NewPatchedWritableObjectPermissionRequestWithDefaults() *PatchedWritableObjectPermissionRequest {
- this := PatchedWritableObjectPermissionRequest{}
+func NewPatchedObjectPermissionRequestWithDefaults() *PatchedObjectPermissionRequest {
+ this := PatchedObjectPermissionRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetName() string {
+func (o *PatchedObjectPermissionRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -62,7 +62,7 @@ func (o *PatchedWritableObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) GetNameOk() (*string, bool) {
+func (o *PatchedObjectPermissionRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -70,7 +70,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasName() bool {
+func (o *PatchedObjectPermissionRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -79,12 +79,12 @@ func (o *PatchedWritableObjectPermissionRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableObjectPermissionRequest) SetName(v string) {
+func (o *PatchedObjectPermissionRequest) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetDescription() string {
+func (o *PatchedObjectPermissionRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -94,7 +94,7 @@ func (o *PatchedWritableObjectPermissionRequest) 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 *PatchedWritableObjectPermissionRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedObjectPermissionRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetDescriptionOk() (*string, bo
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasDescription() bool {
+func (o *PatchedObjectPermissionRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -111,12 +111,12 @@ func (o *PatchedWritableObjectPermissionRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableObjectPermissionRequest) SetDescription(v string) {
+func (o *PatchedObjectPermissionRequest) SetDescription(v string) {
o.Description = &v
}
// GetEnabled returns the Enabled field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetEnabled() bool {
+func (o *PatchedObjectPermissionRequest) GetEnabled() bool {
if o == nil || IsNil(o.Enabled) {
var ret bool
return ret
@@ -126,7 +126,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetEnabled() bool {
// 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 *PatchedWritableObjectPermissionRequest) GetEnabledOk() (*bool, bool) {
+func (o *PatchedObjectPermissionRequest) GetEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.Enabled) {
return nil, false
}
@@ -134,7 +134,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetEnabledOk() (*bool, bool) {
}
// HasEnabled returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasEnabled() bool {
+func (o *PatchedObjectPermissionRequest) HasEnabled() bool {
if o != nil && !IsNil(o.Enabled) {
return true
}
@@ -143,12 +143,12 @@ func (o *PatchedWritableObjectPermissionRequest) HasEnabled() bool {
}
// SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
-func (o *PatchedWritableObjectPermissionRequest) SetEnabled(v bool) {
+func (o *PatchedObjectPermissionRequest) SetEnabled(v bool) {
o.Enabled = &v
}
// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetObjectTypes() []string {
+func (o *PatchedObjectPermissionRequest) GetObjectTypes() []string {
if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
@@ -158,7 +158,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetObjectTypes() []string {
// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableObjectPermissionRequest) GetObjectTypesOk() ([]string, bool) {
+func (o *PatchedObjectPermissionRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
@@ -166,7 +166,7 @@ func (o *PatchedWritableObjectPermissionRequest) GetObjectTypesOk() ([]string, b
}
// HasObjectTypes returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasObjectTypes() bool {
+func (o *PatchedObjectPermissionRequest) HasObjectTypes() bool {
if o != nil && !IsNil(o.ObjectTypes) {
return true
}
@@ -175,140 +175,140 @@ func (o *PatchedWritableObjectPermissionRequest) HasObjectTypes() bool {
}
// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
-func (o *PatchedWritableObjectPermissionRequest) SetObjectTypes(v []string) {
+func (o *PatchedObjectPermissionRequest) SetObjectTypes(v []string) {
o.ObjectTypes = v
}
-// GetGroups returns the Groups field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetGroups() []int32 {
- if o == nil || IsNil(o.Groups) {
- var ret []int32
+// GetActions returns the Actions field value if set, zero value otherwise.
+func (o *PatchedObjectPermissionRequest) GetActions() []string {
+ if o == nil || IsNil(o.Actions) {
+ var ret []string
return ret
}
- return o.Groups
+ return o.Actions
}
-// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise
+// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableObjectPermissionRequest) GetGroupsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Groups) {
+func (o *PatchedObjectPermissionRequest) GetActionsOk() ([]string, bool) {
+ if o == nil || IsNil(o.Actions) {
return nil, false
}
- return o.Groups, true
+ return o.Actions, true
}
-// HasGroups returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasGroups() bool {
- if o != nil && !IsNil(o.Groups) {
+// HasActions returns a boolean if a field has been set.
+func (o *PatchedObjectPermissionRequest) HasActions() bool {
+ if o != nil && !IsNil(o.Actions) {
return true
}
return false
}
-// SetGroups gets a reference to the given []int32 and assigns it to the Groups field.
-func (o *PatchedWritableObjectPermissionRequest) SetGroups(v []int32) {
- o.Groups = v
+// SetActions gets a reference to the given []string and assigns it to the Actions field.
+func (o *PatchedObjectPermissionRequest) SetActions(v []string) {
+ o.Actions = v
}
-// GetUsers returns the Users field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetUsers() []int32 {
- if o == nil || IsNil(o.Users) {
- var ret []int32
+// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedObjectPermissionRequest) GetConstraints() interface{} {
+ if o == nil {
+ var ret interface{}
return ret
}
- return o.Users
+ return o.Constraints
}
-// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
+// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableObjectPermissionRequest) GetUsersOk() ([]int32, bool) {
- if o == nil || IsNil(o.Users) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
+ if o == nil || IsNil(o.Constraints) {
return nil, false
}
- return o.Users, true
+ return &o.Constraints, true
}
-// HasUsers returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasUsers() bool {
- if o != nil && !IsNil(o.Users) {
+// HasConstraints returns a boolean if a field has been set.
+func (o *PatchedObjectPermissionRequest) HasConstraints() bool {
+ if o != nil && !IsNil(o.Constraints) {
return true
}
return false
}
-// SetUsers gets a reference to the given []int32 and assigns it to the Users field.
-func (o *PatchedWritableObjectPermissionRequest) SetUsers(v []int32) {
- o.Users = v
+// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
+func (o *PatchedObjectPermissionRequest) SetConstraints(v interface{}) {
+ o.Constraints = v
}
-// GetActions returns the Actions field value if set, zero value otherwise.
-func (o *PatchedWritableObjectPermissionRequest) GetActions() []string {
- if o == nil || IsNil(o.Actions) {
- var ret []string
+// GetGroups returns the Groups field value if set, zero value otherwise.
+func (o *PatchedObjectPermissionRequest) GetGroups() []int32 {
+ if o == nil || IsNil(o.Groups) {
+ var ret []int32
return ret
}
- return o.Actions
+ return o.Groups
}
-// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
+// 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 *PatchedWritableObjectPermissionRequest) GetActionsOk() ([]string, bool) {
- if o == nil || IsNil(o.Actions) {
+func (o *PatchedObjectPermissionRequest) GetGroupsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Groups) {
return nil, false
}
- return o.Actions, true
+ return o.Groups, true
}
-// HasActions returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasActions() bool {
- if o != nil && !IsNil(o.Actions) {
+// HasGroups returns a boolean if a field has been set.
+func (o *PatchedObjectPermissionRequest) HasGroups() bool {
+ if o != nil && !IsNil(o.Groups) {
return true
}
return false
}
-// SetActions gets a reference to the given []string and assigns it to the Actions field.
-func (o *PatchedWritableObjectPermissionRequest) SetActions(v []string) {
- o.Actions = v
+// SetGroups gets a reference to the given []int32 and assigns it to the Groups field.
+func (o *PatchedObjectPermissionRequest) SetGroups(v []int32) {
+ o.Groups = v
}
-// GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableObjectPermissionRequest) GetConstraints() interface{} {
- if o == nil {
- var ret interface{}
+// GetUsers returns the Users field value if set, zero value otherwise.
+func (o *PatchedObjectPermissionRequest) GetUsers() []int32 {
+ if o == nil || IsNil(o.Users) {
+ var ret []int32
return ret
}
- return o.Constraints
+ return o.Users
}
-// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
+// GetUsersOk returns a tuple with the Users field value if set, nil otherwise
// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
- if o == nil || IsNil(o.Constraints) {
+func (o *PatchedObjectPermissionRequest) GetUsersOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Users) {
return nil, false
}
- return &o.Constraints, true
+ return o.Users, true
}
-// HasConstraints returns a boolean if a field has been set.
-func (o *PatchedWritableObjectPermissionRequest) HasConstraints() bool {
- if o != nil && !IsNil(o.Constraints) {
+// HasUsers returns a boolean if a field has been set.
+func (o *PatchedObjectPermissionRequest) HasUsers() bool {
+ if o != nil && !IsNil(o.Users) {
return true
}
return false
}
-// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
-func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v interface{}) {
- o.Constraints = v
+// SetUsers gets a reference to the given []int32 and assigns it to the Users field.
+func (o *PatchedObjectPermissionRequest) SetUsers(v []int32) {
+ o.Users = v
}
-func (o PatchedWritableObjectPermissionRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedObjectPermissionRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -316,7 +316,7 @@ func (o PatchedWritableObjectPermissionRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableObjectPermissionRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedObjectPermissionRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -330,18 +330,18 @@ func (o PatchedWritableObjectPermissionRequest) ToMap() (map[string]interface{},
if !IsNil(o.ObjectTypes) {
toSerialize["object_types"] = o.ObjectTypes
}
- if !IsNil(o.Groups) {
- toSerialize["groups"] = o.Groups
- }
- if !IsNil(o.Users) {
- toSerialize["users"] = o.Users
- }
if !IsNil(o.Actions) {
toSerialize["actions"] = o.Actions
}
if o.Constraints != nil {
toSerialize["constraints"] = o.Constraints
}
+ 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
@@ -350,16 +350,16 @@ func (o PatchedWritableObjectPermissionRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableObjectPermissionRequest := _PatchedWritableObjectPermissionRequest{}
+func (o *PatchedObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedObjectPermissionRequest := _PatchedObjectPermissionRequest{}
- err = json.Unmarshal(data, &varPatchedWritableObjectPermissionRequest)
+ err = json.Unmarshal(data, &varPatchedObjectPermissionRequest)
if err != nil {
return err
}
- *o = PatchedWritableObjectPermissionRequest(varPatchedWritableObjectPermissionRequest)
+ *o = PatchedObjectPermissionRequest(varPatchedObjectPermissionRequest)
additionalProperties := make(map[string]interface{})
@@ -368,48 +368,48 @@ func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(data []byte) (err
delete(additionalProperties, "description")
delete(additionalProperties, "enabled")
delete(additionalProperties, "object_types")
- delete(additionalProperties, "groups")
- delete(additionalProperties, "users")
delete(additionalProperties, "actions")
delete(additionalProperties, "constraints")
+ delete(additionalProperties, "groups")
+ delete(additionalProperties, "users")
o.AdditionalProperties = additionalProperties
}
return err
}
-type NullablePatchedWritableObjectPermissionRequest struct {
- value *PatchedWritableObjectPermissionRequest
+type NullablePatchedObjectPermissionRequest struct {
+ value *PatchedObjectPermissionRequest
isSet bool
}
-func (v NullablePatchedWritableObjectPermissionRequest) Get() *PatchedWritableObjectPermissionRequest {
+func (v NullablePatchedObjectPermissionRequest) Get() *PatchedObjectPermissionRequest {
return v.value
}
-func (v *NullablePatchedWritableObjectPermissionRequest) Set(val *PatchedWritableObjectPermissionRequest) {
+func (v *NullablePatchedObjectPermissionRequest) Set(val *PatchedObjectPermissionRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableObjectPermissionRequest) IsSet() bool {
+func (v NullablePatchedObjectPermissionRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableObjectPermissionRequest) Unset() {
+func (v *NullablePatchedObjectPermissionRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableObjectPermissionRequest(val *PatchedWritableObjectPermissionRequest) *NullablePatchedWritableObjectPermissionRequest {
- return &NullablePatchedWritableObjectPermissionRequest{value: val, isSet: true}
+func NewNullablePatchedObjectPermissionRequest(val *PatchedObjectPermissionRequest) *NullablePatchedObjectPermissionRequest {
+ return &NullablePatchedObjectPermissionRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableObjectPermissionRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedObjectPermissionRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableObjectPermissionRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedObjectPermissionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_platform_request.go b/model_patched_platform_request.go
similarity index 59%
rename from model_patched_writable_platform_request.go
rename to model_patched_platform_request.go
index 7b322e9305..2b69b6bb30 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,43 +14,42 @@ import (
"encoding/json"
)
-// checks if the PatchedWritablePlatformRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritablePlatformRequest{}
-
-// PatchedWritablePlatformRequest Adds support for custom fields and tags.
-type PatchedWritablePlatformRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty"`
- // Optionally limit this platform to devices of a certain manufacturer
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+// checks if the PatchedPlatformRequest type satisfies the MappedNullable interface at compile time
+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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritablePlatformRequest PatchedWritablePlatformRequest
+type _PatchedPlatformRequest PatchedPlatformRequest
-// NewPatchedWritablePlatformRequest instantiates a new PatchedWritablePlatformRequest object
+// NewPatchedPlatformRequest instantiates a new PatchedPlatformRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritablePlatformRequest() *PatchedWritablePlatformRequest {
- this := PatchedWritablePlatformRequest{}
+func NewPatchedPlatformRequest() *PatchedPlatformRequest {
+ this := PatchedPlatformRequest{}
return &this
}
-// NewPatchedWritablePlatformRequestWithDefaults instantiates a new PatchedWritablePlatformRequest object
+// NewPatchedPlatformRequestWithDefaults instantiates a new PatchedPlatformRequest object
// This 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 NewPatchedWritablePlatformRequestWithDefaults() *PatchedWritablePlatformRequest {
- this := PatchedWritablePlatformRequest{}
+func NewPatchedPlatformRequestWithDefaults() *PatchedPlatformRequest {
+ this := PatchedPlatformRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritablePlatformRequest) GetName() string {
+func (o *PatchedPlatformRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -60,7 +59,7 @@ func (o *PatchedWritablePlatformRequest) 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 *PatchedWritablePlatformRequest) GetNameOk() (*string, bool) {
+func (o *PatchedPlatformRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -68,7 +67,7 @@ func (o *PatchedWritablePlatformRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasName() bool {
+func (o *PatchedPlatformRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -77,12 +76,12 @@ func (o *PatchedWritablePlatformRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritablePlatformRequest) SetName(v string) {
+func (o *PatchedPlatformRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedWritablePlatformRequest) GetSlug() string {
+func (o *PatchedPlatformRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
@@ -92,7 +91,7 @@ func (o *PatchedWritablePlatformRequest) GetSlug() string {
// 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 *PatchedWritablePlatformRequest) GetSlugOk() (*string, bool) {
+func (o *PatchedPlatformRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
@@ -100,7 +99,7 @@ func (o *PatchedWritablePlatformRequest) GetSlugOk() (*string, bool) {
}
// HasSlug returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasSlug() bool {
+func (o *PatchedPlatformRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
@@ -109,14 +108,14 @@ func (o *PatchedWritablePlatformRequest) HasSlug() bool {
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
-func (o *PatchedWritablePlatformRequest) SetSlug(v string) {
+func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) GetManufacturer() int32 {
+func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer.Get()
@@ -125,7 +124,7 @@ func (o *PatchedWritablePlatformRequest) GetManufacturer() int32 {
// 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 *PatchedWritablePlatformRequest) GetManufacturerOk() (*int32, bool) {
+func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -133,7 +132,7 @@ func (o *PatchedWritablePlatformRequest) GetManufacturerOk() (*int32, bool) {
}
// HasManufacturer returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasManufacturer() bool {
+func (o *PatchedPlatformRequest) HasManufacturer() bool {
if o != nil && o.Manufacturer.IsSet() {
return true
}
@@ -141,25 +140,25 @@ func (o *PatchedWritablePlatformRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given NullableInt32 and assigns it to the Manufacturer field.
-func (o *PatchedWritablePlatformRequest) SetManufacturer(v int32) {
+// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field.
+func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer.Set(&v)
}
// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *PatchedWritablePlatformRequest) SetManufacturerNil() {
+func (o *PatchedPlatformRequest) SetManufacturerNil() {
o.Manufacturer.Set(nil)
}
// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-func (o *PatchedWritablePlatformRequest) UnsetManufacturer() {
+func (o *PatchedPlatformRequest) 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 *PatchedWritablePlatformRequest) GetConfigTemplate() int32 {
+func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -168,7 +167,7 @@ func (o *PatchedWritablePlatformRequest) GetConfigTemplate() int32 {
// 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 *PatchedWritablePlatformRequest) GetConfigTemplateOk() (*int32, bool) {
+func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -176,7 +175,7 @@ func (o *PatchedWritablePlatformRequest) GetConfigTemplateOk() (*int32, bool) {
}
// HasConfigTemplate returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasConfigTemplate() bool {
+func (o *PatchedPlatformRequest) HasConfigTemplate() bool {
if o != nil && o.ConfigTemplate.IsSet() {
return true
}
@@ -184,23 +183,23 @@ func (o *PatchedWritablePlatformRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *PatchedWritablePlatformRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *PatchedWritablePlatformRequest) SetConfigTemplateNil() {
+func (o *PatchedPlatformRequest) SetConfigTemplateNil() {
o.ConfigTemplate.Set(nil)
}
// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-func (o *PatchedWritablePlatformRequest) UnsetConfigTemplate() {
+func (o *PatchedPlatformRequest) UnsetConfigTemplate() {
o.ConfigTemplate.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritablePlatformRequest) GetDescription() string {
+func (o *PatchedPlatformRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -210,7 +209,7 @@ func (o *PatchedWritablePlatformRequest) 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 *PatchedWritablePlatformRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedPlatformRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -218,7 +217,7 @@ func (o *PatchedWritablePlatformRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasDescription() bool {
+func (o *PatchedPlatformRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -227,12 +226,12 @@ func (o *PatchedWritablePlatformRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritablePlatformRequest) SetDescription(v string) {
+func (o *PatchedPlatformRequest) SetDescription(v string) {
o.Description = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritablePlatformRequest) GetTags() []NestedTagRequest {
+func (o *PatchedPlatformRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -242,7 +241,7 @@ func (o *PatchedWritablePlatformRequest) 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 *PatchedWritablePlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedPlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -250,7 +249,7 @@ func (o *PatchedWritablePlatformRequest) GetTagsOk() ([]NestedTagRequest, bool)
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasTags() bool {
+func (o *PatchedPlatformRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -259,12 +258,12 @@ func (o *PatchedWritablePlatformRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritablePlatformRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedPlatformRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritablePlatformRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedPlatformRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -274,7 +273,7 @@ func (o *PatchedWritablePlatformRequest) 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 *PatchedWritablePlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedPlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -282,7 +281,7 @@ func (o *PatchedWritablePlatformRequest) GetCustomFieldsOk() (map[string]interfa
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritablePlatformRequest) HasCustomFields() bool {
+func (o *PatchedPlatformRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -291,11 +290,11 @@ func (o *PatchedWritablePlatformRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritablePlatformRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedPlatformRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritablePlatformRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedPlatformRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -303,7 +302,7 @@ func (o PatchedWritablePlatformRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritablePlatformRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedPlatformRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -334,16 +333,16 @@ func (o PatchedWritablePlatformRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritablePlatformRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritablePlatformRequest := _PatchedWritablePlatformRequest{}
+func (o *PatchedPlatformRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedPlatformRequest := _PatchedPlatformRequest{}
- err = json.Unmarshal(data, &varPatchedWritablePlatformRequest)
+ err = json.Unmarshal(data, &varPatchedPlatformRequest)
if err != nil {
return err
}
- *o = PatchedWritablePlatformRequest(varPatchedWritablePlatformRequest)
+ *o = PatchedPlatformRequest(varPatchedPlatformRequest)
additionalProperties := make(map[string]interface{})
@@ -361,38 +360,38 @@ func (o *PatchedWritablePlatformRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritablePlatformRequest struct {
- value *PatchedWritablePlatformRequest
+type NullablePatchedPlatformRequest struct {
+ value *PatchedPlatformRequest
isSet bool
}
-func (v NullablePatchedWritablePlatformRequest) Get() *PatchedWritablePlatformRequest {
+func (v NullablePatchedPlatformRequest) Get() *PatchedPlatformRequest {
return v.value
}
-func (v *NullablePatchedWritablePlatformRequest) Set(val *PatchedWritablePlatformRequest) {
+func (v *NullablePatchedPlatformRequest) Set(val *PatchedPlatformRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritablePlatformRequest) IsSet() bool {
+func (v NullablePatchedPlatformRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritablePlatformRequest) Unset() {
+func (v *NullablePatchedPlatformRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritablePlatformRequest(val *PatchedWritablePlatformRequest) *NullablePatchedWritablePlatformRequest {
- return &NullablePatchedWritablePlatformRequest{value: val, isSet: true}
+func NewNullablePatchedPlatformRequest(val *PatchedPlatformRequest) *NullablePatchedPlatformRequest {
+ return &NullablePatchedPlatformRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritablePlatformRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedPlatformRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritablePlatformRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedPlatformRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_power_panel_request.go b/model_patched_power_panel_request.go
similarity index 58%
rename from model_patched_writable_power_panel_request.go
rename to model_patched_power_panel_request.go
index 0835070656..855e8aea4e 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,44 +14,44 @@ import (
"encoding/json"
)
-// checks if the PatchedWritablePowerPanelRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritablePowerPanelRequest{}
-
-// PatchedWritablePowerPanelRequest Adds support for custom fields and tags.
-type PatchedWritablePowerPanelRequest struct {
- Site *int32 `json:"site,omitempty"`
- Location NullableInt32 `json:"location,omitempty"`
- Name *string `json:"name,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+// checks if the PatchedPowerPanelRequest type satisfies the MappedNullable interface at compile time
+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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritablePowerPanelRequest PatchedWritablePowerPanelRequest
+type _PatchedPowerPanelRequest PatchedPowerPanelRequest
-// NewPatchedWritablePowerPanelRequest instantiates a new PatchedWritablePowerPanelRequest object
+// NewPatchedPowerPanelRequest instantiates a new PatchedPowerPanelRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritablePowerPanelRequest() *PatchedWritablePowerPanelRequest {
- this := PatchedWritablePowerPanelRequest{}
+func NewPatchedPowerPanelRequest() *PatchedPowerPanelRequest {
+ this := PatchedPowerPanelRequest{}
return &this
}
-// NewPatchedWritablePowerPanelRequestWithDefaults instantiates a new PatchedWritablePowerPanelRequest object
+// NewPatchedPowerPanelRequestWithDefaults instantiates a new PatchedPowerPanelRequest object
// This 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 NewPatchedWritablePowerPanelRequestWithDefaults() *PatchedWritablePowerPanelRequest {
- this := PatchedWritablePowerPanelRequest{}
+func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest {
+ this := PatchedPowerPanelRequest{}
return &this
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetSite() int32 {
+func (o *PatchedPowerPanelRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site
@@ -59,7 +59,7 @@ func (o *PatchedWritablePowerPanelRequest) GetSite() int32 {
// 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 *PatchedWritablePowerPanelRequest) GetSiteOk() (*int32, bool) {
+func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPanelRequest) GetSiteOk() (*int32, bool) {
}
// HasSite returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasSite() bool {
+func (o *PatchedPowerPanelRequest) HasSite() bool {
if o != nil && !IsNil(o.Site) {
return true
}
@@ -75,15 +75,15 @@ func (o *PatchedWritablePowerPanelRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given int32 and assigns it to the Site field.
-func (o *PatchedWritablePowerPanelRequest) SetSite(v int32) {
+// SetSite gets a reference to the given SiteRequest and assigns it to the Site field.
+func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) {
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 *PatchedWritablePowerPanelRequest) GetLocation() int32 {
+func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret int32
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -92,7 +92,7 @@ func (o *PatchedWritablePowerPanelRequest) GetLocation() int32 {
// 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 *PatchedWritablePowerPanelRequest) GetLocationOk() (*int32, bool) {
+func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPanelRequest) GetLocationOk() (*int32, bool) {
}
// HasLocation returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasLocation() bool {
+func (o *PatchedPowerPanelRequest) HasLocation() bool {
if o != nil && o.Location.IsSet() {
return true
}
@@ -108,23 +108,23 @@ func (o *PatchedWritablePowerPanelRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *PatchedWritablePowerPanelRequest) SetLocation(v int32) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
// SetLocationNil sets the value for Location to be an explicit nil
-func (o *PatchedWritablePowerPanelRequest) SetLocationNil() {
+func (o *PatchedPowerPanelRequest) SetLocationNil() {
o.Location.Set(nil)
}
// UnsetLocation ensures that no value is present for Location, not even an explicit nil
-func (o *PatchedWritablePowerPanelRequest) UnsetLocation() {
+func (o *PatchedPowerPanelRequest) UnsetLocation() {
o.Location.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetName() string {
+func (o *PatchedPowerPanelRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -134,7 +134,7 @@ func (o *PatchedWritablePowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) GetNameOk() (*string, bool) {
+func (o *PatchedPowerPanelRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -142,7 +142,7 @@ func (o *PatchedWritablePowerPanelRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasName() bool {
+func (o *PatchedPowerPanelRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -151,12 +151,12 @@ func (o *PatchedWritablePowerPanelRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritablePowerPanelRequest) SetName(v string) {
+func (o *PatchedPowerPanelRequest) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetDescription() string {
+func (o *PatchedPowerPanelRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -166,7 +166,7 @@ func (o *PatchedWritablePowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedPowerPanelRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -174,7 +174,7 @@ func (o *PatchedWritablePowerPanelRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasDescription() bool {
+func (o *PatchedPowerPanelRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -183,12 +183,12 @@ func (o *PatchedWritablePowerPanelRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritablePowerPanelRequest) SetDescription(v string) {
+func (o *PatchedPowerPanelRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetComments() string {
+func (o *PatchedPowerPanelRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -198,7 +198,7 @@ func (o *PatchedWritablePowerPanelRequest) GetComments() string {
// 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 *PatchedWritablePowerPanelRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedPowerPanelRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -206,7 +206,7 @@ func (o *PatchedWritablePowerPanelRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasComments() bool {
+func (o *PatchedPowerPanelRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -215,12 +215,12 @@ func (o *PatchedWritablePowerPanelRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritablePowerPanelRequest) SetComments(v string) {
+func (o *PatchedPowerPanelRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetTags() []NestedTagRequest {
+func (o *PatchedPowerPanelRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -230,7 +230,7 @@ func (o *PatchedWritablePowerPanelRequest) 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 *PatchedWritablePowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedPowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -238,7 +238,7 @@ func (o *PatchedWritablePowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasTags() bool {
+func (o *PatchedPowerPanelRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -247,12 +247,12 @@ func (o *PatchedWritablePowerPanelRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritablePowerPanelRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedPowerPanelRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPanelRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedPowerPanelRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -262,7 +262,7 @@ func (o *PatchedWritablePowerPanelRequest) GetCustomFields() map[string]interfac
// 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 *PatchedWritablePowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedPowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -270,7 +270,7 @@ func (o *PatchedWritablePowerPanelRequest) GetCustomFieldsOk() (map[string]inter
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritablePowerPanelRequest) HasCustomFields() bool {
+func (o *PatchedPowerPanelRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -279,11 +279,11 @@ func (o *PatchedWritablePowerPanelRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritablePowerPanelRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedPowerPanelRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritablePowerPanelRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedPowerPanelRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -291,7 +291,7 @@ func (o PatchedWritablePowerPanelRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritablePowerPanelRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedPowerPanelRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Site) {
toSerialize["site"] = o.Site
@@ -322,16 +322,16 @@ func (o PatchedWritablePowerPanelRequest) ToMap() (map[string]interface{}, error
return toSerialize, nil
}
-func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritablePowerPanelRequest := _PatchedWritablePowerPanelRequest{}
+func (o *PatchedPowerPanelRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedPowerPanelRequest := _PatchedPowerPanelRequest{}
- err = json.Unmarshal(data, &varPatchedWritablePowerPanelRequest)
+ err = json.Unmarshal(data, &varPatchedPowerPanelRequest)
if err != nil {
return err
}
- *o = PatchedWritablePowerPanelRequest(varPatchedWritablePowerPanelRequest)
+ *o = PatchedPowerPanelRequest(varPatchedPowerPanelRequest)
additionalProperties := make(map[string]interface{})
@@ -349,38 +349,38 @@ func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(data []byte) (err error
return err
}
-type NullablePatchedWritablePowerPanelRequest struct {
- value *PatchedWritablePowerPanelRequest
+type NullablePatchedPowerPanelRequest struct {
+ value *PatchedPowerPanelRequest
isSet bool
}
-func (v NullablePatchedWritablePowerPanelRequest) Get() *PatchedWritablePowerPanelRequest {
+func (v NullablePatchedPowerPanelRequest) Get() *PatchedPowerPanelRequest {
return v.value
}
-func (v *NullablePatchedWritablePowerPanelRequest) Set(val *PatchedWritablePowerPanelRequest) {
+func (v *NullablePatchedPowerPanelRequest) Set(val *PatchedPowerPanelRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritablePowerPanelRequest) IsSet() bool {
+func (v NullablePatchedPowerPanelRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritablePowerPanelRequest) Unset() {
+func (v *NullablePatchedPowerPanelRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritablePowerPanelRequest(val *PatchedWritablePowerPanelRequest) *NullablePatchedWritablePowerPanelRequest {
- return &NullablePatchedWritablePowerPanelRequest{value: val, isSet: true}
+func NewNullablePatchedPowerPanelRequest(val *PatchedPowerPanelRequest) *NullablePatchedPowerPanelRequest {
+ return &NullablePatchedPowerPanelRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritablePowerPanelRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedPowerPanelRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritablePowerPanelRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedPowerPanelRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_provider_account_request.go b/model_patched_provider_account_request.go
similarity index 60%
rename from model_patched_writable_provider_account_request.go
rename to model_patched_provider_account_request.go
index 1b1008028e..e413eac6c9 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableProviderAccountRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableProviderAccountRequest{}
+// checks if the PatchedProviderAccountRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedProviderAccountRequest{}
-// PatchedWritableProviderAccountRequest Adds support for custom fields and tags.
-type PatchedWritableProviderAccountRequest struct {
- Provider *int32 `json:"provider,omitempty"`
+// 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"`
@@ -29,29 +29,33 @@ type PatchedWritableProviderAccountRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableProviderAccountRequest PatchedWritableProviderAccountRequest
+type _PatchedProviderAccountRequest PatchedProviderAccountRequest
-// NewPatchedWritableProviderAccountRequest instantiates a new PatchedWritableProviderAccountRequest object
+// NewPatchedProviderAccountRequest instantiates a new PatchedProviderAccountRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableProviderAccountRequest() *PatchedWritableProviderAccountRequest {
- this := PatchedWritableProviderAccountRequest{}
+func NewPatchedProviderAccountRequest() *PatchedProviderAccountRequest {
+ this := PatchedProviderAccountRequest{}
+ var name string = ""
+ this.Name = &name
return &this
}
-// NewPatchedWritableProviderAccountRequestWithDefaults instantiates a new PatchedWritableProviderAccountRequest object
+// NewPatchedProviderAccountRequestWithDefaults instantiates a new PatchedProviderAccountRequest object
// This 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 NewPatchedWritableProviderAccountRequestWithDefaults() *PatchedWritableProviderAccountRequest {
- this := PatchedWritableProviderAccountRequest{}
+func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountRequest {
+ this := PatchedProviderAccountRequest{}
+ var name string = ""
+ this.Name = &name
return &this
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetProvider() int32 {
+func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest {
if o == nil || IsNil(o.Provider) {
- var ret int32
+ var ret ProviderRequest
return ret
}
return *o.Provider
@@ -59,7 +63,7 @@ func (o *PatchedWritableProviderAccountRequest) GetProvider() int32 {
// 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 *PatchedWritableProviderAccountRequest) GetProviderOk() (*int32, bool) {
+func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -67,7 +71,7 @@ func (o *PatchedWritableProviderAccountRequest) GetProviderOk() (*int32, bool) {
}
// HasProvider returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasProvider() bool {
+func (o *PatchedProviderAccountRequest) HasProvider() bool {
if o != nil && !IsNil(o.Provider) {
return true
}
@@ -75,13 +79,13 @@ func (o *PatchedWritableProviderAccountRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given int32 and assigns it to the Provider field.
-func (o *PatchedWritableProviderAccountRequest) SetProvider(v int32) {
+// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field.
+func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) {
o.Provider = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetName() string {
+func (o *PatchedProviderAccountRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -91,7 +95,7 @@ func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) GetNameOk() (*string, bool) {
+func (o *PatchedProviderAccountRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -99,7 +103,7 @@ func (o *PatchedWritableProviderAccountRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasName() bool {
+func (o *PatchedProviderAccountRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -108,12 +112,12 @@ func (o *PatchedWritableProviderAccountRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableProviderAccountRequest) SetName(v string) {
+func (o *PatchedProviderAccountRequest) SetName(v string) {
o.Name = &v
}
// GetAccount returns the Account field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetAccount() string {
+func (o *PatchedProviderAccountRequest) GetAccount() string {
if o == nil || IsNil(o.Account) {
var ret string
return ret
@@ -123,7 +127,7 @@ func (o *PatchedWritableProviderAccountRequest) GetAccount() string {
// GetAccountOk returns a tuple with the Account field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableProviderAccountRequest) GetAccountOk() (*string, bool) {
+func (o *PatchedProviderAccountRequest) GetAccountOk() (*string, bool) {
if o == nil || IsNil(o.Account) {
return nil, false
}
@@ -131,7 +135,7 @@ func (o *PatchedWritableProviderAccountRequest) GetAccountOk() (*string, bool) {
}
// HasAccount returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasAccount() bool {
+func (o *PatchedProviderAccountRequest) HasAccount() bool {
if o != nil && !IsNil(o.Account) {
return true
}
@@ -140,12 +144,12 @@ func (o *PatchedWritableProviderAccountRequest) HasAccount() bool {
}
// SetAccount gets a reference to the given string and assigns it to the Account field.
-func (o *PatchedWritableProviderAccountRequest) SetAccount(v string) {
+func (o *PatchedProviderAccountRequest) SetAccount(v string) {
o.Account = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetDescription() string {
+func (o *PatchedProviderAccountRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -155,7 +159,7 @@ func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedProviderAccountRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -163,7 +167,7 @@ func (o *PatchedWritableProviderAccountRequest) GetDescriptionOk() (*string, boo
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasDescription() bool {
+func (o *PatchedProviderAccountRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -172,12 +176,12 @@ func (o *PatchedWritableProviderAccountRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableProviderAccountRequest) SetDescription(v string) {
+func (o *PatchedProviderAccountRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetComments() string {
+func (o *PatchedProviderAccountRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -187,7 +191,7 @@ func (o *PatchedWritableProviderAccountRequest) GetComments() string {
// 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 *PatchedWritableProviderAccountRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedProviderAccountRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -195,7 +199,7 @@ func (o *PatchedWritableProviderAccountRequest) GetCommentsOk() (*string, bool)
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasComments() bool {
+func (o *PatchedProviderAccountRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -204,12 +208,12 @@ func (o *PatchedWritableProviderAccountRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableProviderAccountRequest) SetComments(v string) {
+func (o *PatchedProviderAccountRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetTags() []NestedTagRequest {
+func (o *PatchedProviderAccountRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -219,7 +223,7 @@ func (o *PatchedWritableProviderAccountRequest) 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 *PatchedWritableProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -227,7 +231,7 @@ func (o *PatchedWritableProviderAccountRequest) GetTagsOk() ([]NestedTagRequest,
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasTags() bool {
+func (o *PatchedProviderAccountRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -236,12 +240,12 @@ func (o *PatchedWritableProviderAccountRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableProviderAccountRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedProviderAccountRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableProviderAccountRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedProviderAccountRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -251,7 +255,7 @@ func (o *PatchedWritableProviderAccountRequest) GetCustomFields() map[string]int
// 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 *PatchedWritableProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -259,7 +263,7 @@ func (o *PatchedWritableProviderAccountRequest) GetCustomFieldsOk() (map[string]
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableProviderAccountRequest) HasCustomFields() bool {
+func (o *PatchedProviderAccountRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -268,11 +272,11 @@ func (o *PatchedWritableProviderAccountRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableProviderAccountRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedProviderAccountRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableProviderAccountRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedProviderAccountRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -280,7 +284,7 @@ func (o PatchedWritableProviderAccountRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableProviderAccountRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedProviderAccountRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Provider) {
toSerialize["provider"] = o.Provider
@@ -311,16 +315,16 @@ func (o PatchedWritableProviderAccountRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableProviderAccountRequest := _PatchedWritableProviderAccountRequest{}
+func (o *PatchedProviderAccountRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedProviderAccountRequest := _PatchedProviderAccountRequest{}
- err = json.Unmarshal(data, &varPatchedWritableProviderAccountRequest)
+ err = json.Unmarshal(data, &varPatchedProviderAccountRequest)
if err != nil {
return err
}
- *o = PatchedWritableProviderAccountRequest(varPatchedWritableProviderAccountRequest)
+ *o = PatchedProviderAccountRequest(varPatchedProviderAccountRequest)
additionalProperties := make(map[string]interface{})
@@ -338,38 +342,38 @@ func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(data []byte) (err
return err
}
-type NullablePatchedWritableProviderAccountRequest struct {
- value *PatchedWritableProviderAccountRequest
+type NullablePatchedProviderAccountRequest struct {
+ value *PatchedProviderAccountRequest
isSet bool
}
-func (v NullablePatchedWritableProviderAccountRequest) Get() *PatchedWritableProviderAccountRequest {
+func (v NullablePatchedProviderAccountRequest) Get() *PatchedProviderAccountRequest {
return v.value
}
-func (v *NullablePatchedWritableProviderAccountRequest) Set(val *PatchedWritableProviderAccountRequest) {
+func (v *NullablePatchedProviderAccountRequest) Set(val *PatchedProviderAccountRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableProviderAccountRequest) IsSet() bool {
+func (v NullablePatchedProviderAccountRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableProviderAccountRequest) Unset() {
+func (v *NullablePatchedProviderAccountRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableProviderAccountRequest(val *PatchedWritableProviderAccountRequest) *NullablePatchedWritableProviderAccountRequest {
- return &NullablePatchedWritableProviderAccountRequest{value: val, isSet: true}
+func NewNullablePatchedProviderAccountRequest(val *PatchedProviderAccountRequest) *NullablePatchedProviderAccountRequest {
+ return &NullablePatchedProviderAccountRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableProviderAccountRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedProviderAccountRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableProviderAccountRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedProviderAccountRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_provider_network_request.go b/model_patched_provider_network_request.go
similarity index 60%
rename from model_patched_writable_provider_network_request.go
rename to model_patched_provider_network_request.go
index 3932a8c80d..f25971cb96 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableProviderNetworkRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableProviderNetworkRequest{}
+// checks if the PatchedProviderNetworkRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedProviderNetworkRequest{}
-// PatchedWritableProviderNetworkRequest Adds support for custom fields and tags.
-type PatchedWritableProviderNetworkRequest struct {
- Provider *int32 `json:"provider,omitempty"`
+// 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"`
@@ -29,29 +29,29 @@ type PatchedWritableProviderNetworkRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableProviderNetworkRequest PatchedWritableProviderNetworkRequest
+type _PatchedProviderNetworkRequest PatchedProviderNetworkRequest
-// NewPatchedWritableProviderNetworkRequest instantiates a new PatchedWritableProviderNetworkRequest object
+// NewPatchedProviderNetworkRequest instantiates a new PatchedProviderNetworkRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableProviderNetworkRequest() *PatchedWritableProviderNetworkRequest {
- this := PatchedWritableProviderNetworkRequest{}
+func NewPatchedProviderNetworkRequest() *PatchedProviderNetworkRequest {
+ this := PatchedProviderNetworkRequest{}
return &this
}
-// NewPatchedWritableProviderNetworkRequestWithDefaults instantiates a new PatchedWritableProviderNetworkRequest object
+// NewPatchedProviderNetworkRequestWithDefaults instantiates a new PatchedProviderNetworkRequest object
// This 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 NewPatchedWritableProviderNetworkRequestWithDefaults() *PatchedWritableProviderNetworkRequest {
- this := PatchedWritableProviderNetworkRequest{}
+func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkRequest {
+ this := PatchedProviderNetworkRequest{}
return &this
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetProvider() int32 {
+func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest {
if o == nil || IsNil(o.Provider) {
- var ret int32
+ var ret ProviderRequest
return ret
}
return *o.Provider
@@ -59,7 +59,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetProvider() int32 {
// 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 *PatchedWritableProviderNetworkRequest) GetProviderOk() (*int32, bool) {
+func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -67,7 +67,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetProviderOk() (*int32, bool) {
}
// HasProvider returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasProvider() bool {
+func (o *PatchedProviderNetworkRequest) HasProvider() bool {
if o != nil && !IsNil(o.Provider) {
return true
}
@@ -75,13 +75,13 @@ func (o *PatchedWritableProviderNetworkRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given int32 and assigns it to the Provider field.
-func (o *PatchedWritableProviderNetworkRequest) SetProvider(v int32) {
+// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field.
+func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) {
o.Provider = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetName() string {
+func (o *PatchedProviderNetworkRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -91,7 +91,7 @@ func (o *PatchedWritableProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) GetNameOk() (*string, bool) {
+func (o *PatchedProviderNetworkRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -99,7 +99,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasName() bool {
+func (o *PatchedProviderNetworkRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -108,12 +108,12 @@ func (o *PatchedWritableProviderNetworkRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableProviderNetworkRequest) SetName(v string) {
+func (o *PatchedProviderNetworkRequest) SetName(v string) {
o.Name = &v
}
// GetServiceId returns the ServiceId field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetServiceId() string {
+func (o *PatchedProviderNetworkRequest) GetServiceId() string {
if o == nil || IsNil(o.ServiceId) {
var ret string
return ret
@@ -123,7 +123,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetServiceId() string {
// 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 *PatchedWritableProviderNetworkRequest) GetServiceIdOk() (*string, bool) {
+func (o *PatchedProviderNetworkRequest) GetServiceIdOk() (*string, bool) {
if o == nil || IsNil(o.ServiceId) {
return nil, false
}
@@ -131,7 +131,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetServiceIdOk() (*string, bool)
}
// HasServiceId returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasServiceId() bool {
+func (o *PatchedProviderNetworkRequest) HasServiceId() bool {
if o != nil && !IsNil(o.ServiceId) {
return true
}
@@ -140,12 +140,12 @@ func (o *PatchedWritableProviderNetworkRequest) HasServiceId() bool {
}
// SetServiceId gets a reference to the given string and assigns it to the ServiceId field.
-func (o *PatchedWritableProviderNetworkRequest) SetServiceId(v string) {
+func (o *PatchedProviderNetworkRequest) SetServiceId(v string) {
o.ServiceId = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetDescription() string {
+func (o *PatchedProviderNetworkRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -155,7 +155,7 @@ func (o *PatchedWritableProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedProviderNetworkRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -163,7 +163,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetDescriptionOk() (*string, boo
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasDescription() bool {
+func (o *PatchedProviderNetworkRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -172,12 +172,12 @@ func (o *PatchedWritableProviderNetworkRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableProviderNetworkRequest) SetDescription(v string) {
+func (o *PatchedProviderNetworkRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetComments() string {
+func (o *PatchedProviderNetworkRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -187,7 +187,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetComments() string {
// 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 *PatchedWritableProviderNetworkRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedProviderNetworkRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -195,7 +195,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetCommentsOk() (*string, bool)
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasComments() bool {
+func (o *PatchedProviderNetworkRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -204,12 +204,12 @@ func (o *PatchedWritableProviderNetworkRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableProviderNetworkRequest) SetComments(v string) {
+func (o *PatchedProviderNetworkRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetTags() []NestedTagRequest {
+func (o *PatchedProviderNetworkRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -219,7 +219,7 @@ func (o *PatchedWritableProviderNetworkRequest) 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 *PatchedWritableProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -227,7 +227,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest,
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasTags() bool {
+func (o *PatchedProviderNetworkRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -236,12 +236,12 @@ func (o *PatchedWritableProviderNetworkRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableProviderNetworkRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedProviderNetworkRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableProviderNetworkRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedProviderNetworkRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -251,7 +251,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetCustomFields() map[string]int
// 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 *PatchedWritableProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -259,7 +259,7 @@ func (o *PatchedWritableProviderNetworkRequest) GetCustomFieldsOk() (map[string]
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableProviderNetworkRequest) HasCustomFields() bool {
+func (o *PatchedProviderNetworkRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -268,11 +268,11 @@ func (o *PatchedWritableProviderNetworkRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableProviderNetworkRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedProviderNetworkRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableProviderNetworkRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedProviderNetworkRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -280,7 +280,7 @@ func (o PatchedWritableProviderNetworkRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableProviderNetworkRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedProviderNetworkRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Provider) {
toSerialize["provider"] = o.Provider
@@ -311,16 +311,16 @@ func (o PatchedWritableProviderNetworkRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableProviderNetworkRequest := _PatchedWritableProviderNetworkRequest{}
+func (o *PatchedProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedProviderNetworkRequest := _PatchedProviderNetworkRequest{}
- err = json.Unmarshal(data, &varPatchedWritableProviderNetworkRequest)
+ err = json.Unmarshal(data, &varPatchedProviderNetworkRequest)
if err != nil {
return err
}
- *o = PatchedWritableProviderNetworkRequest(varPatchedWritableProviderNetworkRequest)
+ *o = PatchedProviderNetworkRequest(varPatchedProviderNetworkRequest)
additionalProperties := make(map[string]interface{})
@@ -338,38 +338,38 @@ func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(data []byte) (err
return err
}
-type NullablePatchedWritableProviderNetworkRequest struct {
- value *PatchedWritableProviderNetworkRequest
+type NullablePatchedProviderNetworkRequest struct {
+ value *PatchedProviderNetworkRequest
isSet bool
}
-func (v NullablePatchedWritableProviderNetworkRequest) Get() *PatchedWritableProviderNetworkRequest {
+func (v NullablePatchedProviderNetworkRequest) Get() *PatchedProviderNetworkRequest {
return v.value
}
-func (v *NullablePatchedWritableProviderNetworkRequest) Set(val *PatchedWritableProviderNetworkRequest) {
+func (v *NullablePatchedProviderNetworkRequest) Set(val *PatchedProviderNetworkRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableProviderNetworkRequest) IsSet() bool {
+func (v NullablePatchedProviderNetworkRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableProviderNetworkRequest) Unset() {
+func (v *NullablePatchedProviderNetworkRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableProviderNetworkRequest(val *PatchedWritableProviderNetworkRequest) *NullablePatchedWritableProviderNetworkRequest {
- return &NullablePatchedWritableProviderNetworkRequest{value: val, isSet: true}
+func NewNullablePatchedProviderNetworkRequest(val *PatchedProviderNetworkRequest) *NullablePatchedProviderNetworkRequest {
+ return &NullablePatchedProviderNetworkRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableProviderNetworkRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedProviderNetworkRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableProviderNetworkRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedProviderNetworkRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_provider_request.go b/model_patched_provider_request.go
similarity index 65%
rename from model_patched_writable_provider_request.go
rename to model_patched_provider_request.go
index 7219343c3f..1c4432678d 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,11 +14,11 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableProviderRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableProviderRequest{}
+// checks if the PatchedProviderRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedProviderRequest{}
-// PatchedWritableProviderRequest Adds support for custom fields and tags.
-type PatchedWritableProviderRequest struct {
+// 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"`
@@ -31,27 +31,27 @@ type PatchedWritableProviderRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableProviderRequest PatchedWritableProviderRequest
+type _PatchedProviderRequest PatchedProviderRequest
-// NewPatchedWritableProviderRequest instantiates a new PatchedWritableProviderRequest object
+// NewPatchedProviderRequest instantiates a new PatchedProviderRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableProviderRequest() *PatchedWritableProviderRequest {
- this := PatchedWritableProviderRequest{}
+func NewPatchedProviderRequest() *PatchedProviderRequest {
+ this := PatchedProviderRequest{}
return &this
}
-// NewPatchedWritableProviderRequestWithDefaults instantiates a new PatchedWritableProviderRequest object
+// NewPatchedProviderRequestWithDefaults instantiates a new PatchedProviderRequest object
// This 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 NewPatchedWritableProviderRequestWithDefaults() *PatchedWritableProviderRequest {
- this := PatchedWritableProviderRequest{}
+func NewPatchedProviderRequestWithDefaults() *PatchedProviderRequest {
+ this := PatchedProviderRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetName() string {
+func (o *PatchedProviderRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -61,7 +61,7 @@ func (o *PatchedWritableProviderRequest) 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 *PatchedWritableProviderRequest) GetNameOk() (*string, bool) {
+func (o *PatchedProviderRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -69,7 +69,7 @@ func (o *PatchedWritableProviderRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasName() bool {
+func (o *PatchedProviderRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -78,12 +78,12 @@ func (o *PatchedWritableProviderRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableProviderRequest) SetName(v string) {
+func (o *PatchedProviderRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetSlug() string {
+func (o *PatchedProviderRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
@@ -93,7 +93,7 @@ func (o *PatchedWritableProviderRequest) GetSlug() string {
// 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 *PatchedWritableProviderRequest) GetSlugOk() (*string, bool) {
+func (o *PatchedProviderRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
@@ -101,7 +101,7 @@ func (o *PatchedWritableProviderRequest) GetSlugOk() (*string, bool) {
}
// HasSlug returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasSlug() bool {
+func (o *PatchedProviderRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
@@ -110,12 +110,12 @@ func (o *PatchedWritableProviderRequest) HasSlug() bool {
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
-func (o *PatchedWritableProviderRequest) SetSlug(v string) {
+func (o *PatchedProviderRequest) SetSlug(v string) {
o.Slug = &v
}
// GetAccounts returns the Accounts field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetAccounts() []int32 {
+func (o *PatchedProviderRequest) GetAccounts() []int32 {
if o == nil || IsNil(o.Accounts) {
var ret []int32
return ret
@@ -125,7 +125,7 @@ func (o *PatchedWritableProviderRequest) GetAccounts() []int32 {
// 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 *PatchedWritableProviderRequest) GetAccountsOk() ([]int32, bool) {
+func (o *PatchedProviderRequest) GetAccountsOk() ([]int32, bool) {
if o == nil || IsNil(o.Accounts) {
return nil, false
}
@@ -133,7 +133,7 @@ func (o *PatchedWritableProviderRequest) GetAccountsOk() ([]int32, bool) {
}
// HasAccounts returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasAccounts() bool {
+func (o *PatchedProviderRequest) HasAccounts() bool {
if o != nil && !IsNil(o.Accounts) {
return true
}
@@ -142,12 +142,12 @@ func (o *PatchedWritableProviderRequest) HasAccounts() bool {
}
// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field.
-func (o *PatchedWritableProviderRequest) SetAccounts(v []int32) {
+func (o *PatchedProviderRequest) SetAccounts(v []int32) {
o.Accounts = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetDescription() string {
+func (o *PatchedProviderRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -157,7 +157,7 @@ func (o *PatchedWritableProviderRequest) 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 *PatchedWritableProviderRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedProviderRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -165,7 +165,7 @@ func (o *PatchedWritableProviderRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasDescription() bool {
+func (o *PatchedProviderRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -174,12 +174,12 @@ func (o *PatchedWritableProviderRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableProviderRequest) SetDescription(v string) {
+func (o *PatchedProviderRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetComments() string {
+func (o *PatchedProviderRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -189,7 +189,7 @@ func (o *PatchedWritableProviderRequest) GetComments() string {
// 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 *PatchedWritableProviderRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedProviderRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -197,7 +197,7 @@ func (o *PatchedWritableProviderRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasComments() bool {
+func (o *PatchedProviderRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -206,12 +206,12 @@ func (o *PatchedWritableProviderRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableProviderRequest) SetComments(v string) {
+func (o *PatchedProviderRequest) SetComments(v string) {
o.Comments = &v
}
// GetAsns returns the Asns field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetAsns() []int32 {
+func (o *PatchedProviderRequest) GetAsns() []int32 {
if o == nil || IsNil(o.Asns) {
var ret []int32
return ret
@@ -221,7 +221,7 @@ func (o *PatchedWritableProviderRequest) GetAsns() []int32 {
// 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 *PatchedWritableProviderRequest) GetAsnsOk() ([]int32, bool) {
+func (o *PatchedProviderRequest) GetAsnsOk() ([]int32, bool) {
if o == nil || IsNil(o.Asns) {
return nil, false
}
@@ -229,7 +229,7 @@ func (o *PatchedWritableProviderRequest) GetAsnsOk() ([]int32, bool) {
}
// HasAsns returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasAsns() bool {
+func (o *PatchedProviderRequest) HasAsns() bool {
if o != nil && !IsNil(o.Asns) {
return true
}
@@ -238,12 +238,12 @@ func (o *PatchedWritableProviderRequest) HasAsns() bool {
}
// SetAsns gets a reference to the given []int32 and assigns it to the Asns field.
-func (o *PatchedWritableProviderRequest) SetAsns(v []int32) {
+func (o *PatchedProviderRequest) SetAsns(v []int32) {
o.Asns = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetTags() []NestedTagRequest {
+func (o *PatchedProviderRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -253,7 +253,7 @@ func (o *PatchedWritableProviderRequest) 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 *PatchedWritableProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -261,7 +261,7 @@ func (o *PatchedWritableProviderRequest) GetTagsOk() ([]NestedTagRequest, bool)
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasTags() bool {
+func (o *PatchedProviderRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -270,12 +270,12 @@ func (o *PatchedWritableProviderRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableProviderRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedProviderRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableProviderRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedProviderRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -285,7 +285,7 @@ func (o *PatchedWritableProviderRequest) 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 *PatchedWritableProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -293,7 +293,7 @@ func (o *PatchedWritableProviderRequest) GetCustomFieldsOk() (map[string]interfa
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableProviderRequest) HasCustomFields() bool {
+func (o *PatchedProviderRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -302,11 +302,11 @@ func (o *PatchedWritableProviderRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableProviderRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedProviderRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableProviderRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedProviderRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -314,7 +314,7 @@ func (o PatchedWritableProviderRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableProviderRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedProviderRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -348,16 +348,16 @@ func (o PatchedWritableProviderRequest) ToMap() (map[string]interface{}, error)
return toSerialize, nil
}
-func (o *PatchedWritableProviderRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableProviderRequest := _PatchedWritableProviderRequest{}
+func (o *PatchedProviderRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedProviderRequest := _PatchedProviderRequest{}
- err = json.Unmarshal(data, &varPatchedWritableProviderRequest)
+ err = json.Unmarshal(data, &varPatchedProviderRequest)
if err != nil {
return err
}
- *o = PatchedWritableProviderRequest(varPatchedWritableProviderRequest)
+ *o = PatchedProviderRequest(varPatchedProviderRequest)
additionalProperties := make(map[string]interface{})
@@ -376,38 +376,38 @@ func (o *PatchedWritableProviderRequest) UnmarshalJSON(data []byte) (err error)
return err
}
-type NullablePatchedWritableProviderRequest struct {
- value *PatchedWritableProviderRequest
+type NullablePatchedProviderRequest struct {
+ value *PatchedProviderRequest
isSet bool
}
-func (v NullablePatchedWritableProviderRequest) Get() *PatchedWritableProviderRequest {
+func (v NullablePatchedProviderRequest) Get() *PatchedProviderRequest {
return v.value
}
-func (v *NullablePatchedWritableProviderRequest) Set(val *PatchedWritableProviderRequest) {
+func (v *NullablePatchedProviderRequest) Set(val *PatchedProviderRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableProviderRequest) IsSet() bool {
+func (v NullablePatchedProviderRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableProviderRequest) Unset() {
+func (v *NullablePatchedProviderRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableProviderRequest(val *PatchedWritableProviderRequest) *NullablePatchedWritableProviderRequest {
- return &NullablePatchedWritableProviderRequest{value: val, isSet: true}
+func NewNullablePatchedProviderRequest(val *PatchedProviderRequest) *NullablePatchedProviderRequest {
+ return &NullablePatchedProviderRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableProviderRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedProviderRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableProviderRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedProviderRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_rack_reservation_request.go b/model_patched_rack_reservation_request.go
similarity index 59%
rename from model_patched_writable_rack_reservation_request.go
rename to model_patched_rack_reservation_request.go
index afc3196822..c5e404cb38 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,15 +14,15 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableRackReservationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableRackReservationRequest{}
+// checks if the PatchedRackReservationRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedRackReservationRequest{}
-// PatchedWritableRackReservationRequest Adds support for custom fields and tags.
-type PatchedWritableRackReservationRequest struct {
- Rack *int32 `json:"rack,omitempty"`
+// PatchedRackReservationRequest Adds support for custom fields and tags.
+type PatchedRackReservationRequest struct {
+ Rack *RackRequest `json:"rack,omitempty"`
Units []int32 `json:"units,omitempty"`
- User *int32 `json:"user,omitempty"`
- Tenant NullableInt32 `json:"tenant,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"`
@@ -30,29 +30,29 @@ type PatchedWritableRackReservationRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableRackReservationRequest PatchedWritableRackReservationRequest
+type _PatchedRackReservationRequest PatchedRackReservationRequest
-// NewPatchedWritableRackReservationRequest instantiates a new PatchedWritableRackReservationRequest object
+// NewPatchedRackReservationRequest instantiates a new PatchedRackReservationRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableRackReservationRequest() *PatchedWritableRackReservationRequest {
- this := PatchedWritableRackReservationRequest{}
+func NewPatchedRackReservationRequest() *PatchedRackReservationRequest {
+ this := PatchedRackReservationRequest{}
return &this
}
-// NewPatchedWritableRackReservationRequestWithDefaults instantiates a new PatchedWritableRackReservationRequest object
+// NewPatchedRackReservationRequestWithDefaults instantiates a new PatchedRackReservationRequest object
// This 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 NewPatchedWritableRackReservationRequestWithDefaults() *PatchedWritableRackReservationRequest {
- this := PatchedWritableRackReservationRequest{}
+func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationRequest {
+ this := PatchedRackReservationRequest{}
return &this
}
// GetRack returns the Rack field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetRack() int32 {
+func (o *PatchedRackReservationRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack) {
- var ret int32
+ var ret RackRequest
return ret
}
return *o.Rack
@@ -60,7 +60,7 @@ func (o *PatchedWritableRackReservationRequest) GetRack() int32 {
// 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 *PatchedWritableRackReservationRequest) GetRackOk() (*int32, bool) {
+func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) {
if o == nil || IsNil(o.Rack) {
return nil, false
}
@@ -68,7 +68,7 @@ func (o *PatchedWritableRackReservationRequest) GetRackOk() (*int32, bool) {
}
// HasRack returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasRack() bool {
+func (o *PatchedRackReservationRequest) HasRack() bool {
if o != nil && !IsNil(o.Rack) {
return true
}
@@ -76,13 +76,13 @@ func (o *PatchedWritableRackReservationRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given int32 and assigns it to the Rack field.
-func (o *PatchedWritableRackReservationRequest) SetRack(v int32) {
+// SetRack gets a reference to the given RackRequest and assigns it to the Rack field.
+func (o *PatchedRackReservationRequest) SetRack(v RackRequest) {
o.Rack = &v
}
// GetUnits returns the Units field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetUnits() []int32 {
+func (o *PatchedRackReservationRequest) GetUnits() []int32 {
if o == nil || IsNil(o.Units) {
var ret []int32
return ret
@@ -92,7 +92,7 @@ func (o *PatchedWritableRackReservationRequest) GetUnits() []int32 {
// GetUnitsOk returns a tuple with the Units field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableRackReservationRequest) GetUnitsOk() ([]int32, bool) {
+func (o *PatchedRackReservationRequest) GetUnitsOk() ([]int32, bool) {
if o == nil || IsNil(o.Units) {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *PatchedWritableRackReservationRequest) GetUnitsOk() ([]int32, bool) {
}
// HasUnits returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasUnits() bool {
+func (o *PatchedRackReservationRequest) HasUnits() bool {
if o != nil && !IsNil(o.Units) {
return true
}
@@ -109,14 +109,14 @@ func (o *PatchedWritableRackReservationRequest) HasUnits() bool {
}
// SetUnits gets a reference to the given []int32 and assigns it to the Units field.
-func (o *PatchedWritableRackReservationRequest) SetUnits(v []int32) {
+func (o *PatchedRackReservationRequest) SetUnits(v []int32) {
o.Units = v
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetUser() int32 {
+func (o *PatchedRackReservationRequest) GetUser() UserRequest {
if o == nil || IsNil(o.User) {
- var ret int32
+ var ret UserRequest
return ret
}
return *o.User
@@ -124,7 +124,7 @@ func (o *PatchedWritableRackReservationRequest) GetUser() int32 {
// 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 *PatchedWritableRackReservationRequest) GetUserOk() (*int32, bool) {
+func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -132,7 +132,7 @@ func (o *PatchedWritableRackReservationRequest) GetUserOk() (*int32, bool) {
}
// HasUser returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasUser() bool {
+func (o *PatchedRackReservationRequest) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
@@ -140,15 +140,15 @@ func (o *PatchedWritableRackReservationRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given int32 and assigns it to the User field.
-func (o *PatchedWritableRackReservationRequest) SetUser(v int32) {
+// SetUser gets a reference to the given UserRequest and assigns it to the User field.
+func (o *PatchedRackReservationRequest) SetUser(v UserRequest) {
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 *PatchedWritableRackReservationRequest) GetTenant() int32 {
+func (o *PatchedRackReservationRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -157,7 +157,7 @@ func (o *PatchedWritableRackReservationRequest) GetTenant() int32 {
// 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 *PatchedWritableRackReservationRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -165,7 +165,7 @@ func (o *PatchedWritableRackReservationRequest) GetTenantOk() (*int32, bool) {
}
// HasTenant returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasTenant() bool {
+func (o *PatchedRackReservationRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
@@ -173,23 +173,23 @@ func (o *PatchedWritableRackReservationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableRackReservationRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *PatchedWritableRackReservationRequest) SetTenantNil() {
+func (o *PatchedRackReservationRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *PatchedWritableRackReservationRequest) UnsetTenant() {
+func (o *PatchedRackReservationRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetDescription() string {
+func (o *PatchedRackReservationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -199,7 +199,7 @@ func (o *PatchedWritableRackReservationRequest) 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 *PatchedWritableRackReservationRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedRackReservationRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -207,7 +207,7 @@ func (o *PatchedWritableRackReservationRequest) GetDescriptionOk() (*string, boo
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasDescription() bool {
+func (o *PatchedRackReservationRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -216,12 +216,12 @@ func (o *PatchedWritableRackReservationRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableRackReservationRequest) SetDescription(v string) {
+func (o *PatchedRackReservationRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetComments() string {
+func (o *PatchedRackReservationRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -231,7 +231,7 @@ func (o *PatchedWritableRackReservationRequest) GetComments() string {
// 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 *PatchedWritableRackReservationRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedRackReservationRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -239,7 +239,7 @@ func (o *PatchedWritableRackReservationRequest) GetCommentsOk() (*string, bool)
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasComments() bool {
+func (o *PatchedRackReservationRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -248,12 +248,12 @@ func (o *PatchedWritableRackReservationRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableRackReservationRequest) SetComments(v string) {
+func (o *PatchedRackReservationRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetTags() []NestedTagRequest {
+func (o *PatchedRackReservationRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -263,7 +263,7 @@ func (o *PatchedWritableRackReservationRequest) 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 *PatchedWritableRackReservationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedRackReservationRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -271,7 +271,7 @@ func (o *PatchedWritableRackReservationRequest) GetTagsOk() ([]NestedTagRequest,
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasTags() bool {
+func (o *PatchedRackReservationRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -280,12 +280,12 @@ func (o *PatchedWritableRackReservationRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableRackReservationRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedRackReservationRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableRackReservationRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedRackReservationRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -295,7 +295,7 @@ func (o *PatchedWritableRackReservationRequest) GetCustomFields() map[string]int
// 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 *PatchedWritableRackReservationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedRackReservationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -303,7 +303,7 @@ func (o *PatchedWritableRackReservationRequest) GetCustomFieldsOk() (map[string]
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableRackReservationRequest) HasCustomFields() bool {
+func (o *PatchedRackReservationRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -312,11 +312,11 @@ func (o *PatchedWritableRackReservationRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableRackReservationRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedRackReservationRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableRackReservationRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedRackReservationRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -324,7 +324,7 @@ func (o PatchedWritableRackReservationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableRackReservationRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedRackReservationRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Rack) {
toSerialize["rack"] = o.Rack
@@ -358,16 +358,16 @@ func (o PatchedWritableRackReservationRequest) ToMap() (map[string]interface{},
return toSerialize, nil
}
-func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableRackReservationRequest := _PatchedWritableRackReservationRequest{}
+func (o *PatchedRackReservationRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedRackReservationRequest := _PatchedRackReservationRequest{}
- err = json.Unmarshal(data, &varPatchedWritableRackReservationRequest)
+ err = json.Unmarshal(data, &varPatchedRackReservationRequest)
if err != nil {
return err
}
- *o = PatchedWritableRackReservationRequest(varPatchedWritableRackReservationRequest)
+ *o = PatchedRackReservationRequest(varPatchedRackReservationRequest)
additionalProperties := make(map[string]interface{})
@@ -386,38 +386,38 @@ func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(data []byte) (err
return err
}
-type NullablePatchedWritableRackReservationRequest struct {
- value *PatchedWritableRackReservationRequest
+type NullablePatchedRackReservationRequest struct {
+ value *PatchedRackReservationRequest
isSet bool
}
-func (v NullablePatchedWritableRackReservationRequest) Get() *PatchedWritableRackReservationRequest {
+func (v NullablePatchedRackReservationRequest) Get() *PatchedRackReservationRequest {
return v.value
}
-func (v *NullablePatchedWritableRackReservationRequest) Set(val *PatchedWritableRackReservationRequest) {
+func (v *NullablePatchedRackReservationRequest) Set(val *PatchedRackReservationRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableRackReservationRequest) IsSet() bool {
+func (v NullablePatchedRackReservationRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableRackReservationRequest) Unset() {
+func (v *NullablePatchedRackReservationRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableRackReservationRequest(val *PatchedWritableRackReservationRequest) *NullablePatchedWritableRackReservationRequest {
- return &NullablePatchedWritableRackReservationRequest{value: val, isSet: true}
+func NewNullablePatchedRackReservationRequest(val *PatchedRackReservationRequest) *NullablePatchedRackReservationRequest {
+ return &NullablePatchedRackReservationRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableRackReservationRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedRackReservationRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableRackReservationRequest) UnmarshalJSON(src []byte) error {
+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 13f63afdab..6d892aa821 100644
--- a/model_patched_rack_role_request.go
+++ b/model_patched_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go
index a7b08543d2..0b99fe5290 100644
--- a/model_patched_rir_request.go
+++ b/model_patched_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_role_request.go b/model_patched_role_request.go
index 5cdd5fd1b0..7352ad89e9 100644
--- a/model_patched_role_request.go
+++ b/model_patched_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_route_target_request.go b/model_patched_route_target_request.go
similarity index 61%
rename from model_patched_writable_route_target_request.go
rename to model_patched_route_target_request.go
index 94c5a2caec..b2a367b400 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,14 +14,14 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableRouteTargetRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableRouteTargetRequest{}
+// checks if the PatchedRouteTargetRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedRouteTargetRequest{}
-// PatchedWritableRouteTargetRequest Adds support for custom fields and tags.
-type PatchedWritableRouteTargetRequest struct {
+// 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 NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -29,27 +29,27 @@ type PatchedWritableRouteTargetRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableRouteTargetRequest PatchedWritableRouteTargetRequest
+type _PatchedRouteTargetRequest PatchedRouteTargetRequest
-// NewPatchedWritableRouteTargetRequest instantiates a new PatchedWritableRouteTargetRequest object
+// 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
-func NewPatchedWritableRouteTargetRequest() *PatchedWritableRouteTargetRequest {
- this := PatchedWritableRouteTargetRequest{}
+func NewPatchedRouteTargetRequest() *PatchedRouteTargetRequest {
+ this := PatchedRouteTargetRequest{}
return &this
}
-// NewPatchedWritableRouteTargetRequestWithDefaults instantiates a new PatchedWritableRouteTargetRequest object
+// 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
-func NewPatchedWritableRouteTargetRequestWithDefaults() *PatchedWritableRouteTargetRequest {
- this := PatchedWritableRouteTargetRequest{}
+func NewPatchedRouteTargetRequestWithDefaults() *PatchedRouteTargetRequest {
+ this := PatchedRouteTargetRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableRouteTargetRequest) GetName() string {
+func (o *PatchedRouteTargetRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -59,7 +59,7 @@ func (o *PatchedWritableRouteTargetRequest) 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 *PatchedWritableRouteTargetRequest) GetNameOk() (*string, bool) {
+func (o *PatchedRouteTargetRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -67,7 +67,7 @@ func (o *PatchedWritableRouteTargetRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasName() bool {
+func (o *PatchedRouteTargetRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -76,14 +76,14 @@ func (o *PatchedWritableRouteTargetRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableRouteTargetRequest) SetName(v string) {
+func (o *PatchedRouteTargetRequest) 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 *PatchedWritableRouteTargetRequest) GetTenant() int32 {
+func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -92,7 +92,7 @@ func (o *PatchedWritableRouteTargetRequest) GetTenant() int32 {
// 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 *PatchedWritableRouteTargetRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *PatchedWritableRouteTargetRequest) GetTenantOk() (*int32, bool) {
}
// HasTenant returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasTenant() bool {
+func (o *PatchedRouteTargetRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
@@ -108,23 +108,23 @@ func (o *PatchedWritableRouteTargetRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableRouteTargetRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *PatchedWritableRouteTargetRequest) SetTenantNil() {
+func (o *PatchedRouteTargetRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *PatchedWritableRouteTargetRequest) UnsetTenant() {
+func (o *PatchedRouteTargetRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableRouteTargetRequest) GetDescription() string {
+func (o *PatchedRouteTargetRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -134,7 +134,7 @@ func (o *PatchedWritableRouteTargetRequest) 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 *PatchedWritableRouteTargetRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedRouteTargetRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -142,7 +142,7 @@ func (o *PatchedWritableRouteTargetRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasDescription() bool {
+func (o *PatchedRouteTargetRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -151,12 +151,12 @@ func (o *PatchedWritableRouteTargetRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableRouteTargetRequest) SetDescription(v string) {
+func (o *PatchedRouteTargetRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableRouteTargetRequest) GetComments() string {
+func (o *PatchedRouteTargetRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -166,7 +166,7 @@ func (o *PatchedWritableRouteTargetRequest) GetComments() string {
// 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 *PatchedWritableRouteTargetRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedRouteTargetRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -174,7 +174,7 @@ func (o *PatchedWritableRouteTargetRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasComments() bool {
+func (o *PatchedRouteTargetRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -183,12 +183,12 @@ func (o *PatchedWritableRouteTargetRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableRouteTargetRequest) SetComments(v string) {
+func (o *PatchedRouteTargetRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableRouteTargetRequest) GetTags() []NestedTagRequest {
+func (o *PatchedRouteTargetRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -198,7 +198,7 @@ func (o *PatchedWritableRouteTargetRequest) 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 *PatchedWritableRouteTargetRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedRouteTargetRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -206,7 +206,7 @@ func (o *PatchedWritableRouteTargetRequest) GetTagsOk() ([]NestedTagRequest, boo
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasTags() bool {
+func (o *PatchedRouteTargetRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -215,12 +215,12 @@ func (o *PatchedWritableRouteTargetRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableRouteTargetRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedRouteTargetRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableRouteTargetRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedRouteTargetRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -230,7 +230,7 @@ func (o *PatchedWritableRouteTargetRequest) GetCustomFields() map[string]interfa
// 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 *PatchedWritableRouteTargetRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedRouteTargetRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -238,7 +238,7 @@ func (o *PatchedWritableRouteTargetRequest) GetCustomFieldsOk() (map[string]inte
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableRouteTargetRequest) HasCustomFields() bool {
+func (o *PatchedRouteTargetRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -247,11 +247,11 @@ func (o *PatchedWritableRouteTargetRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableRouteTargetRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedRouteTargetRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableRouteTargetRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedRouteTargetRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -259,7 +259,7 @@ func (o PatchedWritableRouteTargetRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableRouteTargetRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedRouteTargetRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -287,16 +287,16 @@ func (o PatchedWritableRouteTargetRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableRouteTargetRequest := _PatchedWritableRouteTargetRequest{}
+func (o *PatchedRouteTargetRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedRouteTargetRequest := _PatchedRouteTargetRequest{}
- err = json.Unmarshal(data, &varPatchedWritableRouteTargetRequest)
+ err = json.Unmarshal(data, &varPatchedRouteTargetRequest)
if err != nil {
return err
}
- *o = PatchedWritableRouteTargetRequest(varPatchedWritableRouteTargetRequest)
+ *o = PatchedRouteTargetRequest(varPatchedRouteTargetRequest)
additionalProperties := make(map[string]interface{})
@@ -313,38 +313,38 @@ func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(data []byte) (err erro
return err
}
-type NullablePatchedWritableRouteTargetRequest struct {
- value *PatchedWritableRouteTargetRequest
+type NullablePatchedRouteTargetRequest struct {
+ value *PatchedRouteTargetRequest
isSet bool
}
-func (v NullablePatchedWritableRouteTargetRequest) Get() *PatchedWritableRouteTargetRequest {
+func (v NullablePatchedRouteTargetRequest) Get() *PatchedRouteTargetRequest {
return v.value
}
-func (v *NullablePatchedWritableRouteTargetRequest) Set(val *PatchedWritableRouteTargetRequest) {
+func (v *NullablePatchedRouteTargetRequest) Set(val *PatchedRouteTargetRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableRouteTargetRequest) IsSet() bool {
+func (v NullablePatchedRouteTargetRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableRouteTargetRequest) Unset() {
+func (v *NullablePatchedRouteTargetRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableRouteTargetRequest(val *PatchedWritableRouteTargetRequest) *NullablePatchedWritableRouteTargetRequest {
- return &NullablePatchedWritableRouteTargetRequest{value: val, isSet: true}
+func NewNullablePatchedRouteTargetRequest(val *PatchedRouteTargetRequest) *NullablePatchedRouteTargetRequest {
+ return &NullablePatchedRouteTargetRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableRouteTargetRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedRouteTargetRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableRouteTargetRequest) UnmarshalJSON(src []byte) error {
+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 9f41450a5a..0f76328b37 100644
--- a/model_patched_saved_filter_request.go
+++ b/model_patched_saved_filter_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedSavedFilterRequest{}
// PatchedSavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PatchedSavedFilterRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
+ ObjectTypes []string `json:"object_types,omitempty"`
Name *string `json:"name,omitempty"`
Slug *string `json:"slug,omitempty"`
Description *string `json:"description,omitempty"`
@@ -50,36 +50,36 @@ func NewPatchedSavedFilterRequestWithDefaults() *PatchedSavedFilterRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedSavedFilterRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
+// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
+func (o *PatchedSavedFilterRequest) GetObjectTypes() []string {
+ if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedSavedFilterRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
+func (o *PatchedSavedFilterRequest) GetObjectTypesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedSavedFilterRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
+// HasObjectTypes returns a boolean if a field has been set.
+func (o *PatchedSavedFilterRequest) HasObjectTypes() bool {
+ if o != nil && !IsNil(o.ObjectTypes) {
return true
}
return false
}
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedSavedFilterRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
+func (o *PatchedSavedFilterRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -360,8 +360,8 @@ func (o PatchedSavedFilterRequest) MarshalJSON() ([]byte, error) {
func (o PatchedSavedFilterRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
+ if !IsNil(o.ObjectTypes) {
+ toSerialize["object_types"] = o.ObjectTypes
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -409,7 +409,7 @@ func (o *PatchedSavedFilterRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go
index c27a004229..df4b1fd5be 100644
--- a/model_patched_tag_request.go
+++ b/model_patched_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_tenant_request.go b/model_patched_tenant_request.go
similarity index 60%
rename from model_patched_writable_tenant_request.go
rename to model_patched_tenant_request.go
index 1968477c45..3948518419 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,42 +14,42 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableTenantRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableTenantRequest{}
-
-// PatchedWritableTenantRequest Adds support for custom fields and tags.
-type PatchedWritableTenantRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+// checks if the PatchedTenantRequest type satisfies the MappedNullable interface at compile time
+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"`
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableTenantRequest PatchedWritableTenantRequest
+type _PatchedTenantRequest PatchedTenantRequest
-// NewPatchedWritableTenantRequest instantiates a new PatchedWritableTenantRequest object
+// NewPatchedTenantRequest instantiates a new PatchedTenantRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableTenantRequest() *PatchedWritableTenantRequest {
- this := PatchedWritableTenantRequest{}
+func NewPatchedTenantRequest() *PatchedTenantRequest {
+ this := PatchedTenantRequest{}
return &this
}
-// NewPatchedWritableTenantRequestWithDefaults instantiates a new PatchedWritableTenantRequest object
+// NewPatchedTenantRequestWithDefaults instantiates a new PatchedTenantRequest object
// This 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 NewPatchedWritableTenantRequestWithDefaults() *PatchedWritableTenantRequest {
- this := PatchedWritableTenantRequest{}
+func NewPatchedTenantRequestWithDefaults() *PatchedTenantRequest {
+ this := PatchedTenantRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetName() string {
+func (o *PatchedTenantRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -59,7 +59,7 @@ func (o *PatchedWritableTenantRequest) 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 *PatchedWritableTenantRequest) GetNameOk() (*string, bool) {
+func (o *PatchedTenantRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -67,7 +67,7 @@ func (o *PatchedWritableTenantRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasName() bool {
+func (o *PatchedTenantRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -76,12 +76,12 @@ func (o *PatchedWritableTenantRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableTenantRequest) SetName(v string) {
+func (o *PatchedTenantRequest) SetName(v string) {
o.Name = &v
}
// GetSlug returns the Slug field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetSlug() string {
+func (o *PatchedTenantRequest) GetSlug() string {
if o == nil || IsNil(o.Slug) {
var ret string
return ret
@@ -91,7 +91,7 @@ func (o *PatchedWritableTenantRequest) GetSlug() string {
// 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 *PatchedWritableTenantRequest) GetSlugOk() (*string, bool) {
+func (o *PatchedTenantRequest) GetSlugOk() (*string, bool) {
if o == nil || IsNil(o.Slug) {
return nil, false
}
@@ -99,7 +99,7 @@ func (o *PatchedWritableTenantRequest) GetSlugOk() (*string, bool) {
}
// HasSlug returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasSlug() bool {
+func (o *PatchedTenantRequest) HasSlug() bool {
if o != nil && !IsNil(o.Slug) {
return true
}
@@ -108,14 +108,14 @@ func (o *PatchedWritableTenantRequest) HasSlug() bool {
}
// SetSlug gets a reference to the given string and assigns it to the Slug field.
-func (o *PatchedWritableTenantRequest) SetSlug(v string) {
+func (o *PatchedTenantRequest) 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 *PatchedWritableTenantRequest) GetGroup() int32 {
+func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret TenantGroupRequest
return ret
}
return *o.Group.Get()
@@ -124,7 +124,7 @@ func (o *PatchedWritableTenantRequest) GetGroup() int32 {
// 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 *PatchedWritableTenantRequest) GetGroupOk() (*int32, bool) {
+func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -132,7 +132,7 @@ func (o *PatchedWritableTenantRequest) GetGroupOk() (*int32, bool) {
}
// HasGroup returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasGroup() bool {
+func (o *PatchedTenantRequest) HasGroup() bool {
if o != nil && o.Group.IsSet() {
return true
}
@@ -140,23 +140,23 @@ func (o *PatchedWritableTenantRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableTenantRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field.
+func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) {
o.Group.Set(&v)
}
// SetGroupNil sets the value for Group to be an explicit nil
-func (o *PatchedWritableTenantRequest) SetGroupNil() {
+func (o *PatchedTenantRequest) SetGroupNil() {
o.Group.Set(nil)
}
// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *PatchedWritableTenantRequest) UnsetGroup() {
+func (o *PatchedTenantRequest) UnsetGroup() {
o.Group.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetDescription() string {
+func (o *PatchedTenantRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -166,7 +166,7 @@ func (o *PatchedWritableTenantRequest) 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 *PatchedWritableTenantRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedTenantRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -174,7 +174,7 @@ func (o *PatchedWritableTenantRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasDescription() bool {
+func (o *PatchedTenantRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -183,12 +183,12 @@ func (o *PatchedWritableTenantRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableTenantRequest) SetDescription(v string) {
+func (o *PatchedTenantRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetComments() string {
+func (o *PatchedTenantRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -198,7 +198,7 @@ func (o *PatchedWritableTenantRequest) GetComments() string {
// 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 *PatchedWritableTenantRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedTenantRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -206,7 +206,7 @@ func (o *PatchedWritableTenantRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasComments() bool {
+func (o *PatchedTenantRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -215,12 +215,12 @@ func (o *PatchedWritableTenantRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableTenantRequest) SetComments(v string) {
+func (o *PatchedTenantRequest) SetComments(v string) {
o.Comments = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetTags() []NestedTagRequest {
+func (o *PatchedTenantRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -230,7 +230,7 @@ func (o *PatchedWritableTenantRequest) 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 *PatchedWritableTenantRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedTenantRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -238,7 +238,7 @@ func (o *PatchedWritableTenantRequest) GetTagsOk() ([]NestedTagRequest, bool) {
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasTags() bool {
+func (o *PatchedTenantRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -247,12 +247,12 @@ func (o *PatchedWritableTenantRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableTenantRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedTenantRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableTenantRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedTenantRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -262,7 +262,7 @@ func (o *PatchedWritableTenantRequest) 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 *PatchedWritableTenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedTenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -270,7 +270,7 @@ func (o *PatchedWritableTenantRequest) GetCustomFieldsOk() (map[string]interface
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableTenantRequest) HasCustomFields() bool {
+func (o *PatchedTenantRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -279,11 +279,11 @@ func (o *PatchedWritableTenantRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableTenantRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedTenantRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableTenantRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedTenantRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -291,7 +291,7 @@ func (o PatchedWritableTenantRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableTenantRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedTenantRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -322,16 +322,16 @@ func (o PatchedWritableTenantRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableTenantRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableTenantRequest := _PatchedWritableTenantRequest{}
+func (o *PatchedTenantRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedTenantRequest := _PatchedTenantRequest{}
- err = json.Unmarshal(data, &varPatchedWritableTenantRequest)
+ err = json.Unmarshal(data, &varPatchedTenantRequest)
if err != nil {
return err
}
- *o = PatchedWritableTenantRequest(varPatchedWritableTenantRequest)
+ *o = PatchedTenantRequest(varPatchedTenantRequest)
additionalProperties := make(map[string]interface{})
@@ -349,38 +349,38 @@ func (o *PatchedWritableTenantRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullablePatchedWritableTenantRequest struct {
- value *PatchedWritableTenantRequest
+type NullablePatchedTenantRequest struct {
+ value *PatchedTenantRequest
isSet bool
}
-func (v NullablePatchedWritableTenantRequest) Get() *PatchedWritableTenantRequest {
+func (v NullablePatchedTenantRequest) Get() *PatchedTenantRequest {
return v.value
}
-func (v *NullablePatchedWritableTenantRequest) Set(val *PatchedWritableTenantRequest) {
+func (v *NullablePatchedTenantRequest) Set(val *PatchedTenantRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableTenantRequest) IsSet() bool {
+func (v NullablePatchedTenantRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableTenantRequest) Unset() {
+func (v *NullablePatchedTenantRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableTenantRequest(val *PatchedWritableTenantRequest) *NullablePatchedWritableTenantRequest {
- return &NullablePatchedWritableTenantRequest{value: val, isSet: true}
+func NewNullablePatchedTenantRequest(val *PatchedTenantRequest) *NullablePatchedTenantRequest {
+ return &NullablePatchedTenantRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableTenantRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedTenantRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableTenantRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedTenantRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_token_request.go b/model_patched_token_request.go
similarity index 63%
rename from model_patched_writable_token_request.go
rename to model_patched_token_request.go
index 69bcd6f18b..87277f4960 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,12 +15,12 @@ import (
"time"
)
-// checks if the PatchedWritableTokenRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableTokenRequest{}
+// checks if the PatchedTokenRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedTokenRequest{}
-// PatchedWritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableTokenRequest struct {
- User *int32 `json:"user,omitempty"`
+// 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"`
LastUsed NullableTime `json:"last_used,omitempty"`
Key *string `json:"key,omitempty"`
@@ -30,29 +30,29 @@ type PatchedWritableTokenRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableTokenRequest PatchedWritableTokenRequest
+type _PatchedTokenRequest PatchedTokenRequest
-// NewPatchedWritableTokenRequest instantiates a new PatchedWritableTokenRequest object
+// NewPatchedTokenRequest instantiates a new PatchedTokenRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableTokenRequest() *PatchedWritableTokenRequest {
- this := PatchedWritableTokenRequest{}
+func NewPatchedTokenRequest() *PatchedTokenRequest {
+ this := PatchedTokenRequest{}
return &this
}
-// NewPatchedWritableTokenRequestWithDefaults instantiates a new PatchedWritableTokenRequest object
+// NewPatchedTokenRequestWithDefaults instantiates a new PatchedTokenRequest object
// This 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 NewPatchedWritableTokenRequestWithDefaults() *PatchedWritableTokenRequest {
- this := PatchedWritableTokenRequest{}
+func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest {
+ this := PatchedTokenRequest{}
return &this
}
// GetUser returns the User field value if set, zero value otherwise.
-func (o *PatchedWritableTokenRequest) GetUser() int32 {
+func (o *PatchedTokenRequest) GetUser() UserRequest {
if o == nil || IsNil(o.User) {
- var ret int32
+ var ret UserRequest
return ret
}
return *o.User
@@ -60,7 +60,7 @@ func (o *PatchedWritableTokenRequest) GetUser() int32 {
// 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 *PatchedWritableTokenRequest) GetUserOk() (*int32, bool) {
+func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
@@ -68,7 +68,7 @@ func (o *PatchedWritableTokenRequest) GetUserOk() (*int32, bool) {
}
// HasUser returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasUser() bool {
+func (o *PatchedTokenRequest) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
@@ -76,13 +76,13 @@ func (o *PatchedWritableTokenRequest) HasUser() bool {
return false
}
-// SetUser gets a reference to the given int32 and assigns it to the User field.
-func (o *PatchedWritableTokenRequest) SetUser(v int32) {
+// SetUser gets a reference to the given UserRequest and assigns it to the User field.
+func (o *PatchedTokenRequest) SetUser(v UserRequest) {
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 *PatchedWritableTokenRequest) GetExpires() time.Time {
+func (o *PatchedTokenRequest) GetExpires() time.Time {
if o == nil || IsNil(o.Expires.Get()) {
var ret time.Time
return ret
@@ -93,7 +93,7 @@ func (o *PatchedWritableTokenRequest) GetExpires() time.Time {
// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableTokenRequest) GetExpiresOk() (*time.Time, bool) {
+func (o *PatchedTokenRequest) GetExpiresOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
@@ -101,7 +101,7 @@ func (o *PatchedWritableTokenRequest) GetExpiresOk() (*time.Time, bool) {
}
// HasExpires returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasExpires() bool {
+func (o *PatchedTokenRequest) HasExpires() bool {
if o != nil && o.Expires.IsSet() {
return true
}
@@ -110,22 +110,22 @@ func (o *PatchedWritableTokenRequest) HasExpires() bool {
}
// SetExpires gets a reference to the given NullableTime and assigns it to the Expires field.
-func (o *PatchedWritableTokenRequest) SetExpires(v time.Time) {
+func (o *PatchedTokenRequest) SetExpires(v time.Time) {
o.Expires.Set(&v)
}
// SetExpiresNil sets the value for Expires to be an explicit nil
-func (o *PatchedWritableTokenRequest) SetExpiresNil() {
+func (o *PatchedTokenRequest) SetExpiresNil() {
o.Expires.Set(nil)
}
// UnsetExpires ensures that no value is present for Expires, not even an explicit nil
-func (o *PatchedWritableTokenRequest) UnsetExpires() {
+func (o *PatchedTokenRequest) UnsetExpires() {
o.Expires.Unset()
}
// GetLastUsed returns the LastUsed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableTokenRequest) GetLastUsed() time.Time {
+func (o *PatchedTokenRequest) GetLastUsed() time.Time {
if o == nil || IsNil(o.LastUsed.Get()) {
var ret time.Time
return ret
@@ -136,7 +136,7 @@ func (o *PatchedWritableTokenRequest) GetLastUsed() time.Time {
// GetLastUsedOk returns a tuple with the LastUsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableTokenRequest) GetLastUsedOk() (*time.Time, bool) {
+func (o *PatchedTokenRequest) GetLastUsedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
@@ -144,7 +144,7 @@ func (o *PatchedWritableTokenRequest) GetLastUsedOk() (*time.Time, bool) {
}
// HasLastUsed returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasLastUsed() bool {
+func (o *PatchedTokenRequest) HasLastUsed() bool {
if o != nil && o.LastUsed.IsSet() {
return true
}
@@ -153,22 +153,22 @@ func (o *PatchedWritableTokenRequest) HasLastUsed() bool {
}
// SetLastUsed gets a reference to the given NullableTime and assigns it to the LastUsed field.
-func (o *PatchedWritableTokenRequest) SetLastUsed(v time.Time) {
+func (o *PatchedTokenRequest) SetLastUsed(v time.Time) {
o.LastUsed.Set(&v)
}
// SetLastUsedNil sets the value for LastUsed to be an explicit nil
-func (o *PatchedWritableTokenRequest) SetLastUsedNil() {
+func (o *PatchedTokenRequest) SetLastUsedNil() {
o.LastUsed.Set(nil)
}
// UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil
-func (o *PatchedWritableTokenRequest) UnsetLastUsed() {
+func (o *PatchedTokenRequest) UnsetLastUsed() {
o.LastUsed.Unset()
}
// GetKey returns the Key field value if set, zero value otherwise.
-func (o *PatchedWritableTokenRequest) GetKey() string {
+func (o *PatchedTokenRequest) GetKey() string {
if o == nil || IsNil(o.Key) {
var ret string
return ret
@@ -178,7 +178,7 @@ func (o *PatchedWritableTokenRequest) GetKey() string {
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableTokenRequest) GetKeyOk() (*string, bool) {
+func (o *PatchedTokenRequest) GetKeyOk() (*string, bool) {
if o == nil || IsNil(o.Key) {
return nil, false
}
@@ -186,7 +186,7 @@ func (o *PatchedWritableTokenRequest) GetKeyOk() (*string, bool) {
}
// HasKey returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasKey() bool {
+func (o *PatchedTokenRequest) HasKey() bool {
if o != nil && !IsNil(o.Key) {
return true
}
@@ -195,12 +195,12 @@ func (o *PatchedWritableTokenRequest) HasKey() bool {
}
// SetKey gets a reference to the given string and assigns it to the Key field.
-func (o *PatchedWritableTokenRequest) SetKey(v string) {
+func (o *PatchedTokenRequest) SetKey(v string) {
o.Key = &v
}
// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise.
-func (o *PatchedWritableTokenRequest) GetWriteEnabled() bool {
+func (o *PatchedTokenRequest) GetWriteEnabled() bool {
if o == nil || IsNil(o.WriteEnabled) {
var ret bool
return ret
@@ -210,7 +210,7 @@ func (o *PatchedWritableTokenRequest) GetWriteEnabled() bool {
// GetWriteEnabledOk returns a tuple with the WriteEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableTokenRequest) GetWriteEnabledOk() (*bool, bool) {
+func (o *PatchedTokenRequest) GetWriteEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.WriteEnabled) {
return nil, false
}
@@ -218,7 +218,7 @@ func (o *PatchedWritableTokenRequest) GetWriteEnabledOk() (*bool, bool) {
}
// HasWriteEnabled returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasWriteEnabled() bool {
+func (o *PatchedTokenRequest) HasWriteEnabled() bool {
if o != nil && !IsNil(o.WriteEnabled) {
return true
}
@@ -227,12 +227,12 @@ func (o *PatchedWritableTokenRequest) HasWriteEnabled() bool {
}
// SetWriteEnabled gets a reference to the given bool and assigns it to the WriteEnabled field.
-func (o *PatchedWritableTokenRequest) SetWriteEnabled(v bool) {
+func (o *PatchedTokenRequest) SetWriteEnabled(v bool) {
o.WriteEnabled = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableTokenRequest) GetDescription() string {
+func (o *PatchedTokenRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -242,7 +242,7 @@ func (o *PatchedWritableTokenRequest) 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 *PatchedWritableTokenRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedTokenRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -250,7 +250,7 @@ func (o *PatchedWritableTokenRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableTokenRequest) HasDescription() bool {
+func (o *PatchedTokenRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -259,11 +259,11 @@ func (o *PatchedWritableTokenRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableTokenRequest) SetDescription(v string) {
+func (o *PatchedTokenRequest) SetDescription(v string) {
o.Description = &v
}
-func (o PatchedWritableTokenRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedTokenRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -271,7 +271,7 @@ func (o PatchedWritableTokenRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableTokenRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedTokenRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.User) {
toSerialize["user"] = o.User
@@ -299,16 +299,16 @@ func (o PatchedWritableTokenRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableTokenRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableTokenRequest := _PatchedWritableTokenRequest{}
+func (o *PatchedTokenRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedTokenRequest := _PatchedTokenRequest{}
- err = json.Unmarshal(data, &varPatchedWritableTokenRequest)
+ err = json.Unmarshal(data, &varPatchedTokenRequest)
if err != nil {
return err
}
- *o = PatchedWritableTokenRequest(varPatchedWritableTokenRequest)
+ *o = PatchedTokenRequest(varPatchedTokenRequest)
additionalProperties := make(map[string]interface{})
@@ -325,38 +325,38 @@ func (o *PatchedWritableTokenRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullablePatchedWritableTokenRequest struct {
- value *PatchedWritableTokenRequest
+type NullablePatchedTokenRequest struct {
+ value *PatchedTokenRequest
isSet bool
}
-func (v NullablePatchedWritableTokenRequest) Get() *PatchedWritableTokenRequest {
+func (v NullablePatchedTokenRequest) Get() *PatchedTokenRequest {
return v.value
}
-func (v *NullablePatchedWritableTokenRequest) Set(val *PatchedWritableTokenRequest) {
+func (v *NullablePatchedTokenRequest) Set(val *PatchedTokenRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableTokenRequest) IsSet() bool {
+func (v NullablePatchedTokenRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableTokenRequest) Unset() {
+func (v *NullablePatchedTokenRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableTokenRequest(val *PatchedWritableTokenRequest) *NullablePatchedWritableTokenRequest {
- return &NullablePatchedWritableTokenRequest{value: val, isSet: true}
+func NewNullablePatchedTokenRequest(val *PatchedTokenRequest) *NullablePatchedTokenRequest {
+ return &NullablePatchedTokenRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableTokenRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedTokenRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableTokenRequest) UnmarshalJSON(src []byte) error {
+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 8cb233bcde..d01b7dc833 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_user_request.go b/model_patched_user_request.go
similarity index 64%
rename from model_patched_writable_user_request.go
rename to model_patched_user_request.go
index d963ebf4a1..b035309876 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,11 +15,11 @@ import (
"time"
)
-// checks if the PatchedWritableUserRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableUserRequest{}
+// checks if the PatchedUserRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedUserRequest{}
-// PatchedWritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type PatchedWritableUserRequest struct {
+// 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"`
@@ -29,35 +29,35 @@ type PatchedWritableUserRequest struct {
// 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"`
- // The groups this user belongs to. A user will get all permissions granted to each of their groups.
- Groups []int32 `json:"groups,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{}
}
-type _PatchedWritableUserRequest PatchedWritableUserRequest
+type _PatchedUserRequest PatchedUserRequest
-// NewPatchedWritableUserRequest instantiates a new PatchedWritableUserRequest object
+// NewPatchedUserRequest instantiates a new PatchedUserRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableUserRequest() *PatchedWritableUserRequest {
- this := PatchedWritableUserRequest{}
+func NewPatchedUserRequest() *PatchedUserRequest {
+ this := PatchedUserRequest{}
return &this
}
-// NewPatchedWritableUserRequestWithDefaults instantiates a new PatchedWritableUserRequest object
+// NewPatchedUserRequestWithDefaults instantiates a new PatchedUserRequest object
// This 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 NewPatchedWritableUserRequestWithDefaults() *PatchedWritableUserRequest {
- this := PatchedWritableUserRequest{}
+func NewPatchedUserRequestWithDefaults() *PatchedUserRequest {
+ this := PatchedUserRequest{}
return &this
}
// GetUsername returns the Username field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetUsername() string {
+func (o *PatchedUserRequest) GetUsername() string {
if o == nil || IsNil(o.Username) {
var ret string
return ret
@@ -67,7 +67,7 @@ func (o *PatchedWritableUserRequest) GetUsername() string {
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableUserRequest) GetUsernameOk() (*string, bool) {
+func (o *PatchedUserRequest) GetUsernameOk() (*string, bool) {
if o == nil || IsNil(o.Username) {
return nil, false
}
@@ -75,7 +75,7 @@ func (o *PatchedWritableUserRequest) GetUsernameOk() (*string, bool) {
}
// HasUsername returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasUsername() bool {
+func (o *PatchedUserRequest) HasUsername() bool {
if o != nil && !IsNil(o.Username) {
return true
}
@@ -84,12 +84,12 @@ func (o *PatchedWritableUserRequest) HasUsername() bool {
}
// SetUsername gets a reference to the given string and assigns it to the Username field.
-func (o *PatchedWritableUserRequest) SetUsername(v string) {
+func (o *PatchedUserRequest) SetUsername(v string) {
o.Username = &v
}
// GetPassword returns the Password field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetPassword() string {
+func (o *PatchedUserRequest) GetPassword() string {
if o == nil || IsNil(o.Password) {
var ret string
return ret
@@ -99,7 +99,7 @@ func (o *PatchedWritableUserRequest) GetPassword() string {
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableUserRequest) GetPasswordOk() (*string, bool) {
+func (o *PatchedUserRequest) GetPasswordOk() (*string, bool) {
if o == nil || IsNil(o.Password) {
return nil, false
}
@@ -107,7 +107,7 @@ func (o *PatchedWritableUserRequest) GetPasswordOk() (*string, bool) {
}
// HasPassword returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasPassword() bool {
+func (o *PatchedUserRequest) HasPassword() bool {
if o != nil && !IsNil(o.Password) {
return true
}
@@ -116,12 +116,12 @@ func (o *PatchedWritableUserRequest) HasPassword() bool {
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
-func (o *PatchedWritableUserRequest) SetPassword(v string) {
+func (o *PatchedUserRequest) SetPassword(v string) {
o.Password = &v
}
// GetFirstName returns the FirstName field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetFirstName() string {
+func (o *PatchedUserRequest) GetFirstName() string {
if o == nil || IsNil(o.FirstName) {
var ret string
return ret
@@ -131,7 +131,7 @@ func (o *PatchedWritableUserRequest) GetFirstName() string {
// 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 *PatchedWritableUserRequest) GetFirstNameOk() (*string, bool) {
+func (o *PatchedUserRequest) GetFirstNameOk() (*string, bool) {
if o == nil || IsNil(o.FirstName) {
return nil, false
}
@@ -139,7 +139,7 @@ func (o *PatchedWritableUserRequest) GetFirstNameOk() (*string, bool) {
}
// HasFirstName returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasFirstName() bool {
+func (o *PatchedUserRequest) HasFirstName() bool {
if o != nil && !IsNil(o.FirstName) {
return true
}
@@ -148,12 +148,12 @@ func (o *PatchedWritableUserRequest) HasFirstName() bool {
}
// SetFirstName gets a reference to the given string and assigns it to the FirstName field.
-func (o *PatchedWritableUserRequest) SetFirstName(v string) {
+func (o *PatchedUserRequest) SetFirstName(v string) {
o.FirstName = &v
}
// GetLastName returns the LastName field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetLastName() string {
+func (o *PatchedUserRequest) GetLastName() string {
if o == nil || IsNil(o.LastName) {
var ret string
return ret
@@ -163,7 +163,7 @@ func (o *PatchedWritableUserRequest) GetLastName() string {
// 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 *PatchedWritableUserRequest) GetLastNameOk() (*string, bool) {
+func (o *PatchedUserRequest) GetLastNameOk() (*string, bool) {
if o == nil || IsNil(o.LastName) {
return nil, false
}
@@ -171,7 +171,7 @@ func (o *PatchedWritableUserRequest) GetLastNameOk() (*string, bool) {
}
// HasLastName returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasLastName() bool {
+func (o *PatchedUserRequest) HasLastName() bool {
if o != nil && !IsNil(o.LastName) {
return true
}
@@ -180,12 +180,12 @@ func (o *PatchedWritableUserRequest) HasLastName() bool {
}
// SetLastName gets a reference to the given string and assigns it to the LastName field.
-func (o *PatchedWritableUserRequest) SetLastName(v string) {
+func (o *PatchedUserRequest) SetLastName(v string) {
o.LastName = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetEmail() string {
+func (o *PatchedUserRequest) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
@@ -195,7 +195,7 @@ func (o *PatchedWritableUserRequest) GetEmail() string {
// 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 *PatchedWritableUserRequest) GetEmailOk() (*string, bool) {
+func (o *PatchedUserRequest) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
@@ -203,7 +203,7 @@ func (o *PatchedWritableUserRequest) GetEmailOk() (*string, bool) {
}
// HasEmail returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasEmail() bool {
+func (o *PatchedUserRequest) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
@@ -212,12 +212,12 @@ func (o *PatchedWritableUserRequest) HasEmail() bool {
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
-func (o *PatchedWritableUserRequest) SetEmail(v string) {
+func (o *PatchedUserRequest) SetEmail(v string) {
o.Email = &v
}
// GetIsStaff returns the IsStaff field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetIsStaff() bool {
+func (o *PatchedUserRequest) GetIsStaff() bool {
if o == nil || IsNil(o.IsStaff) {
var ret bool
return ret
@@ -227,7 +227,7 @@ func (o *PatchedWritableUserRequest) GetIsStaff() bool {
// 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 *PatchedWritableUserRequest) GetIsStaffOk() (*bool, bool) {
+func (o *PatchedUserRequest) GetIsStaffOk() (*bool, bool) {
if o == nil || IsNil(o.IsStaff) {
return nil, false
}
@@ -235,7 +235,7 @@ func (o *PatchedWritableUserRequest) GetIsStaffOk() (*bool, bool) {
}
// HasIsStaff returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasIsStaff() bool {
+func (o *PatchedUserRequest) HasIsStaff() bool {
if o != nil && !IsNil(o.IsStaff) {
return true
}
@@ -244,12 +244,12 @@ func (o *PatchedWritableUserRequest) HasIsStaff() bool {
}
// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field.
-func (o *PatchedWritableUserRequest) SetIsStaff(v bool) {
+func (o *PatchedUserRequest) SetIsStaff(v bool) {
o.IsStaff = &v
}
// GetIsActive returns the IsActive field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetIsActive() bool {
+func (o *PatchedUserRequest) GetIsActive() bool {
if o == nil || IsNil(o.IsActive) {
var ret bool
return ret
@@ -259,7 +259,7 @@ func (o *PatchedWritableUserRequest) GetIsActive() bool {
// 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 *PatchedWritableUserRequest) GetIsActiveOk() (*bool, bool) {
+func (o *PatchedUserRequest) GetIsActiveOk() (*bool, bool) {
if o == nil || IsNil(o.IsActive) {
return nil, false
}
@@ -267,7 +267,7 @@ func (o *PatchedWritableUserRequest) GetIsActiveOk() (*bool, bool) {
}
// HasIsActive returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasIsActive() bool {
+func (o *PatchedUserRequest) HasIsActive() bool {
if o != nil && !IsNil(o.IsActive) {
return true
}
@@ -276,12 +276,12 @@ func (o *PatchedWritableUserRequest) HasIsActive() bool {
}
// SetIsActive gets a reference to the given bool and assigns it to the IsActive field.
-func (o *PatchedWritableUserRequest) SetIsActive(v bool) {
+func (o *PatchedUserRequest) SetIsActive(v bool) {
o.IsActive = &v
}
// GetDateJoined returns the DateJoined field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetDateJoined() time.Time {
+func (o *PatchedUserRequest) GetDateJoined() time.Time {
if o == nil || IsNil(o.DateJoined) {
var ret time.Time
return ret
@@ -291,7 +291,7 @@ func (o *PatchedWritableUserRequest) GetDateJoined() time.Time {
// 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 *PatchedWritableUserRequest) GetDateJoinedOk() (*time.Time, bool) {
+func (o *PatchedUserRequest) GetDateJoinedOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateJoined) {
return nil, false
}
@@ -299,7 +299,7 @@ func (o *PatchedWritableUserRequest) GetDateJoinedOk() (*time.Time, bool) {
}
// HasDateJoined returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasDateJoined() bool {
+func (o *PatchedUserRequest) HasDateJoined() bool {
if o != nil && !IsNil(o.DateJoined) {
return true
}
@@ -308,12 +308,12 @@ func (o *PatchedWritableUserRequest) HasDateJoined() bool {
}
// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field.
-func (o *PatchedWritableUserRequest) SetDateJoined(v time.Time) {
+func (o *PatchedUserRequest) 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 *PatchedWritableUserRequest) GetLastLogin() time.Time {
+func (o *PatchedUserRequest) GetLastLogin() time.Time {
if o == nil || IsNil(o.LastLogin.Get()) {
var ret time.Time
return ret
@@ -324,7 +324,7 @@ func (o *PatchedWritableUserRequest) GetLastLogin() time.Time {
// 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 *PatchedWritableUserRequest) GetLastLoginOk() (*time.Time, bool) {
+func (o *PatchedUserRequest) GetLastLoginOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
@@ -332,7 +332,7 @@ func (o *PatchedWritableUserRequest) GetLastLoginOk() (*time.Time, bool) {
}
// HasLastLogin returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasLastLogin() bool {
+func (o *PatchedUserRequest) HasLastLogin() bool {
if o != nil && o.LastLogin.IsSet() {
return true
}
@@ -341,22 +341,22 @@ func (o *PatchedWritableUserRequest) HasLastLogin() bool {
}
// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field.
-func (o *PatchedWritableUserRequest) SetLastLogin(v time.Time) {
+func (o *PatchedUserRequest) SetLastLogin(v time.Time) {
o.LastLogin.Set(&v)
}
// SetLastLoginNil sets the value for LastLogin to be an explicit nil
-func (o *PatchedWritableUserRequest) SetLastLoginNil() {
+func (o *PatchedUserRequest) SetLastLoginNil() {
o.LastLogin.Set(nil)
}
// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil
-func (o *PatchedWritableUserRequest) UnsetLastLogin() {
+func (o *PatchedUserRequest) UnsetLastLogin() {
o.LastLogin.Unset()
}
// GetGroups returns the Groups field value if set, zero value otherwise.
-func (o *PatchedWritableUserRequest) GetGroups() []int32 {
+func (o *PatchedUserRequest) GetGroups() []int32 {
if o == nil || IsNil(o.Groups) {
var ret []int32
return ret
@@ -366,7 +366,7 @@ func (o *PatchedWritableUserRequest) GetGroups() []int32 {
// 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 *PatchedWritableUserRequest) GetGroupsOk() ([]int32, bool) {
+func (o *PatchedUserRequest) GetGroupsOk() ([]int32, bool) {
if o == nil || IsNil(o.Groups) {
return nil, false
}
@@ -374,7 +374,7 @@ func (o *PatchedWritableUserRequest) GetGroupsOk() ([]int32, bool) {
}
// HasGroups returns a boolean if a field has been set.
-func (o *PatchedWritableUserRequest) HasGroups() bool {
+func (o *PatchedUserRequest) HasGroups() bool {
if o != nil && !IsNil(o.Groups) {
return true
}
@@ -383,11 +383,43 @@ func (o *PatchedWritableUserRequest) HasGroups() bool {
}
// SetGroups gets a reference to the given []int32 and assigns it to the Groups field.
-func (o *PatchedWritableUserRequest) SetGroups(v []int32) {
+func (o *PatchedUserRequest) SetGroups(v []int32) {
o.Groups = v
}
-func (o PatchedWritableUserRequest) MarshalJSON() ([]byte, error) {
+// GetPermissions returns the Permissions field value if set, zero value otherwise.
+func (o *PatchedUserRequest) 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 *PatchedUserRequest) 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 *PatchedUserRequest) 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 *PatchedUserRequest) SetPermissions(v []int32) {
+ o.Permissions = v
+}
+
+func (o PatchedUserRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -395,7 +427,7 @@ func (o PatchedWritableUserRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableUserRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedUserRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Username) {
toSerialize["username"] = o.Username
@@ -427,6 +459,9 @@ func (o PatchedWritableUserRequest) ToMap() (map[string]interface{}, error) {
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
@@ -435,16 +470,16 @@ func (o PatchedWritableUserRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableUserRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableUserRequest := _PatchedWritableUserRequest{}
+func (o *PatchedUserRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedUserRequest := _PatchedUserRequest{}
- err = json.Unmarshal(data, &varPatchedWritableUserRequest)
+ err = json.Unmarshal(data, &varPatchedUserRequest)
if err != nil {
return err
}
- *o = PatchedWritableUserRequest(varPatchedWritableUserRequest)
+ *o = PatchedUserRequest(varPatchedUserRequest)
additionalProperties := make(map[string]interface{})
@@ -459,44 +494,45 @@ func (o *PatchedWritableUserRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "date_joined")
delete(additionalProperties, "last_login")
delete(additionalProperties, "groups")
+ delete(additionalProperties, "permissions")
o.AdditionalProperties = additionalProperties
}
return err
}
-type NullablePatchedWritableUserRequest struct {
- value *PatchedWritableUserRequest
+type NullablePatchedUserRequest struct {
+ value *PatchedUserRequest
isSet bool
}
-func (v NullablePatchedWritableUserRequest) Get() *PatchedWritableUserRequest {
+func (v NullablePatchedUserRequest) Get() *PatchedUserRequest {
return v.value
}
-func (v *NullablePatchedWritableUserRequest) Set(val *PatchedWritableUserRequest) {
+func (v *NullablePatchedUserRequest) Set(val *PatchedUserRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableUserRequest) IsSet() bool {
+func (v NullablePatchedUserRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableUserRequest) Unset() {
+func (v *NullablePatchedUserRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableUserRequest(val *PatchedWritableUserRequest) *NullablePatchedWritableUserRequest {
- return &NullablePatchedWritableUserRequest{value: val, isSet: true}
+func NewNullablePatchedUserRequest(val *PatchedUserRequest) *NullablePatchedUserRequest {
+ return &NullablePatchedUserRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableUserRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedUserRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableUserRequest) UnmarshalJSON(src []byte) error {
+func (v *NullablePatchedUserRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_patched_writable_virtual_disk_request.go b/model_patched_virtual_disk_request.go
similarity index 60%
rename from model_patched_writable_virtual_disk_request.go
rename to model_patched_virtual_disk_request.go
index 7298fcd480..17afe0ffad 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,12 +14,12 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableVirtualDiskRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableVirtualDiskRequest{}
+// checks if the PatchedVirtualDiskRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedVirtualDiskRequest{}
-// PatchedWritableVirtualDiskRequest Adds support for custom fields and tags.
-type PatchedWritableVirtualDiskRequest struct {
- VirtualMachine *int32 `json:"virtual_machine,omitempty"`
+// 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"`
@@ -28,29 +28,29 @@ type PatchedWritableVirtualDiskRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableVirtualDiskRequest PatchedWritableVirtualDiskRequest
+type _PatchedVirtualDiskRequest PatchedVirtualDiskRequest
-// NewPatchedWritableVirtualDiskRequest instantiates a new PatchedWritableVirtualDiskRequest object
+// NewPatchedVirtualDiskRequest instantiates a new PatchedVirtualDiskRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableVirtualDiskRequest() *PatchedWritableVirtualDiskRequest {
- this := PatchedWritableVirtualDiskRequest{}
+func NewPatchedVirtualDiskRequest() *PatchedVirtualDiskRequest {
+ this := PatchedVirtualDiskRequest{}
return &this
}
-// NewPatchedWritableVirtualDiskRequestWithDefaults instantiates a new PatchedWritableVirtualDiskRequest object
+// NewPatchedVirtualDiskRequestWithDefaults instantiates a new PatchedVirtualDiskRequest object
// This 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 NewPatchedWritableVirtualDiskRequestWithDefaults() *PatchedWritableVirtualDiskRequest {
- this := PatchedWritableVirtualDiskRequest{}
+func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest {
+ this := PatchedVirtualDiskRequest{}
return &this
}
// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachine() int32 {
+func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil || IsNil(o.VirtualMachine) {
- var ret int32
+ var ret VirtualMachineRequest
return ret
}
return *o.VirtualMachine
@@ -58,7 +58,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachine() int32 {
// 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 *PatchedWritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, bool) {
+func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil || IsNil(o.VirtualMachine) {
return nil, false
}
@@ -66,7 +66,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, bool)
}
// HasVirtualMachine returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasVirtualMachine() bool {
+func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool {
if o != nil && !IsNil(o.VirtualMachine) {
return true
}
@@ -74,13 +74,13 @@ func (o *PatchedWritableVirtualDiskRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given int32 and assigns it to the VirtualMachine field.
-func (o *PatchedWritableVirtualDiskRequest) SetVirtualMachine(v int32) {
+// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field.
+func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine = &v
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetName() string {
+func (o *PatchedVirtualDiskRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -90,7 +90,7 @@ func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) GetNameOk() (*string, bool) {
+func (o *PatchedVirtualDiskRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -98,7 +98,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasName() bool {
+func (o *PatchedVirtualDiskRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -107,12 +107,12 @@ func (o *PatchedWritableVirtualDiskRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableVirtualDiskRequest) SetName(v string) {
+func (o *PatchedVirtualDiskRequest) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetDescription() string {
+func (o *PatchedVirtualDiskRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -122,7 +122,7 @@ func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedVirtualDiskRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -130,7 +130,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasDescription() bool {
+func (o *PatchedVirtualDiskRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -139,12 +139,12 @@ func (o *PatchedWritableVirtualDiskRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableVirtualDiskRequest) SetDescription(v string) {
+func (o *PatchedVirtualDiskRequest) SetDescription(v string) {
o.Description = &v
}
// GetSize returns the Size field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetSize() int32 {
+func (o *PatchedVirtualDiskRequest) GetSize() int32 {
if o == nil || IsNil(o.Size) {
var ret int32
return ret
@@ -154,7 +154,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetSize() int32 {
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableVirtualDiskRequest) GetSizeOk() (*int32, bool) {
+func (o *PatchedVirtualDiskRequest) GetSizeOk() (*int32, bool) {
if o == nil || IsNil(o.Size) {
return nil, false
}
@@ -162,7 +162,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetSizeOk() (*int32, bool) {
}
// HasSize returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasSize() bool {
+func (o *PatchedVirtualDiskRequest) HasSize() bool {
if o != nil && !IsNil(o.Size) {
return true
}
@@ -171,12 +171,12 @@ func (o *PatchedWritableVirtualDiskRequest) HasSize() bool {
}
// SetSize gets a reference to the given int32 and assigns it to the Size field.
-func (o *PatchedWritableVirtualDiskRequest) SetSize(v int32) {
+func (o *PatchedVirtualDiskRequest) SetSize(v int32) {
o.Size = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetTags() []NestedTagRequest {
+func (o *PatchedVirtualDiskRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -186,7 +186,7 @@ func (o *PatchedWritableVirtualDiskRequest) 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 *PatchedWritableVirtualDiskRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedVirtualDiskRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -194,7 +194,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetTagsOk() ([]NestedTagRequest, boo
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasTags() bool {
+func (o *PatchedVirtualDiskRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -203,12 +203,12 @@ func (o *PatchedWritableVirtualDiskRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableVirtualDiskRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedVirtualDiskRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualDiskRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedVirtualDiskRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -218,7 +218,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetCustomFields() map[string]interfa
// 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 *PatchedWritableVirtualDiskRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedVirtualDiskRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -226,7 +226,7 @@ func (o *PatchedWritableVirtualDiskRequest) GetCustomFieldsOk() (map[string]inte
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableVirtualDiskRequest) HasCustomFields() bool {
+func (o *PatchedVirtualDiskRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -235,11 +235,11 @@ func (o *PatchedWritableVirtualDiskRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableVirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedVirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedVirtualDiskRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -247,7 +247,7 @@ func (o PatchedWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableVirtualDiskRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedVirtualDiskRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.VirtualMachine) {
toSerialize["virtual_machine"] = o.VirtualMachine
@@ -275,16 +275,16 @@ func (o PatchedWritableVirtualDiskRequest) ToMap() (map[string]interface{}, erro
return toSerialize, nil
}
-func (o *PatchedWritableVirtualDiskRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableVirtualDiskRequest := _PatchedWritableVirtualDiskRequest{}
+func (o *PatchedVirtualDiskRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedVirtualDiskRequest := _PatchedVirtualDiskRequest{}
- err = json.Unmarshal(data, &varPatchedWritableVirtualDiskRequest)
+ err = json.Unmarshal(data, &varPatchedVirtualDiskRequest)
if err != nil {
return err
}
- *o = PatchedWritableVirtualDiskRequest(varPatchedWritableVirtualDiskRequest)
+ *o = PatchedVirtualDiskRequest(varPatchedVirtualDiskRequest)
additionalProperties := make(map[string]interface{})
@@ -301,38 +301,38 @@ func (o *PatchedWritableVirtualDiskRequest) UnmarshalJSON(data []byte) (err erro
return err
}
-type NullablePatchedWritableVirtualDiskRequest struct {
- value *PatchedWritableVirtualDiskRequest
+type NullablePatchedVirtualDiskRequest struct {
+ value *PatchedVirtualDiskRequest
isSet bool
}
-func (v NullablePatchedWritableVirtualDiskRequest) Get() *PatchedWritableVirtualDiskRequest {
+func (v NullablePatchedVirtualDiskRequest) Get() *PatchedVirtualDiskRequest {
return v.value
}
-func (v *NullablePatchedWritableVirtualDiskRequest) Set(val *PatchedWritableVirtualDiskRequest) {
+func (v *NullablePatchedVirtualDiskRequest) Set(val *PatchedVirtualDiskRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableVirtualDiskRequest) IsSet() bool {
+func (v NullablePatchedVirtualDiskRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableVirtualDiskRequest) Unset() {
+func (v *NullablePatchedVirtualDiskRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableVirtualDiskRequest(val *PatchedWritableVirtualDiskRequest) *NullablePatchedWritableVirtualDiskRequest {
- return &NullablePatchedWritableVirtualDiskRequest{value: val, isSet: true}
+func NewNullablePatchedVirtualDiskRequest(val *PatchedVirtualDiskRequest) *NullablePatchedVirtualDiskRequest {
+ return &NullablePatchedVirtualDiskRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedVirtualDiskRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableVirtualDiskRequest) UnmarshalJSON(src []byte) error {
+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 df64b527af..39f5d4933f 100644
--- a/model_patched_vlan_group_request.go
+++ b/model_patched_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_vrf_request.go b/model_patched_vrf_request.go
similarity index 68%
rename from model_patched_writable_vrf_request.go
rename to model_patched_vrf_request.go
index 00d99a6dfb..9dfb98881a 100644
--- a/model_patched_writable_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,15 +14,15 @@ import (
"encoding/json"
)
-// checks if the PatchedWritableVRFRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableVRFRequest{}
+// checks if the PatchedVRFRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &PatchedVRFRequest{}
-// PatchedWritableVRFRequest Adds support for custom fields and tags.
-type PatchedWritableVRFRequest struct {
+// PatchedVRFRequest Adds support for custom fields and tags.
+type PatchedVRFRequest struct {
Name *string `json:"name,omitempty"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
// Prevent duplicate prefixes/IP addresses within this VRF
EnforceUnique *bool `json:"enforce_unique,omitempty"`
Description *string `json:"description,omitempty"`
@@ -34,27 +34,27 @@ type PatchedWritableVRFRequest struct {
AdditionalProperties map[string]interface{}
}
-type _PatchedWritableVRFRequest PatchedWritableVRFRequest
+type _PatchedVRFRequest PatchedVRFRequest
-// NewPatchedWritableVRFRequest instantiates a new PatchedWritableVRFRequest object
+// NewPatchedVRFRequest instantiates a new PatchedVRFRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPatchedWritableVRFRequest() *PatchedWritableVRFRequest {
- this := PatchedWritableVRFRequest{}
+func NewPatchedVRFRequest() *PatchedVRFRequest {
+ this := PatchedVRFRequest{}
return &this
}
-// NewPatchedWritableVRFRequestWithDefaults instantiates a new PatchedWritableVRFRequest object
+// NewPatchedVRFRequestWithDefaults instantiates a new PatchedVRFRequest object
// This 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 NewPatchedWritableVRFRequestWithDefaults() *PatchedWritableVRFRequest {
- this := PatchedWritableVRFRequest{}
+func NewPatchedVRFRequestWithDefaults() *PatchedVRFRequest {
+ this := PatchedVRFRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetName() string {
+func (o *PatchedVRFRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
@@ -64,7 +64,7 @@ func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) GetNameOk() (*string, bool) {
+func (o *PatchedVRFRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
@@ -72,7 +72,7 @@ func (o *PatchedWritableVRFRequest) GetNameOk() (*string, bool) {
}
// HasName returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasName() bool {
+func (o *PatchedVRFRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
@@ -81,12 +81,12 @@ func (o *PatchedWritableVRFRequest) HasName() bool {
}
// SetName gets a reference to the given string and assigns it to the Name field.
-func (o *PatchedWritableVRFRequest) SetName(v string) {
+func (o *PatchedVRFRequest) 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 *PatchedWritableVRFRequest) GetRd() string {
+func (o *PatchedVRFRequest) GetRd() string {
if o == nil || IsNil(o.Rd.Get()) {
var ret string
return ret
@@ -97,7 +97,7 @@ func (o *PatchedWritableVRFRequest) GetRd() string {
// 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 *PatchedWritableVRFRequest) GetRdOk() (*string, bool) {
+func (o *PatchedVRFRequest) GetRdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -105,7 +105,7 @@ func (o *PatchedWritableVRFRequest) GetRdOk() (*string, bool) {
}
// HasRd returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasRd() bool {
+func (o *PatchedVRFRequest) HasRd() bool {
if o != nil && o.Rd.IsSet() {
return true
}
@@ -114,24 +114,24 @@ func (o *PatchedWritableVRFRequest) HasRd() bool {
}
// SetRd gets a reference to the given NullableString and assigns it to the Rd field.
-func (o *PatchedWritableVRFRequest) SetRd(v string) {
+func (o *PatchedVRFRequest) SetRd(v string) {
o.Rd.Set(&v)
}
// SetRdNil sets the value for Rd to be an explicit nil
-func (o *PatchedWritableVRFRequest) SetRdNil() {
+func (o *PatchedVRFRequest) SetRdNil() {
o.Rd.Set(nil)
}
// UnsetRd ensures that no value is present for Rd, not even an explicit nil
-func (o *PatchedWritableVRFRequest) UnsetRd() {
+func (o *PatchedVRFRequest) 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 *PatchedWritableVRFRequest) GetTenant() int32 {
+func (o *PatchedVRFRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -140,7 +140,7 @@ func (o *PatchedWritableVRFRequest) GetTenant() int32 {
// 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 *PatchedWritableVRFRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -148,7 +148,7 @@ func (o *PatchedWritableVRFRequest) GetTenantOk() (*int32, bool) {
}
// HasTenant returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasTenant() bool {
+func (o *PatchedVRFRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
@@ -156,23 +156,23 @@ func (o *PatchedWritableVRFRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableVRFRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedVRFRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *PatchedWritableVRFRequest) SetTenantNil() {
+func (o *PatchedVRFRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *PatchedWritableVRFRequest) UnsetTenant() {
+func (o *PatchedVRFRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetEnforceUnique() bool {
+func (o *PatchedVRFRequest) GetEnforceUnique() bool {
if o == nil || IsNil(o.EnforceUnique) {
var ret bool
return ret
@@ -182,7 +182,7 @@ func (o *PatchedWritableVRFRequest) GetEnforceUnique() bool {
// 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 *PatchedWritableVRFRequest) GetEnforceUniqueOk() (*bool, bool) {
+func (o *PatchedVRFRequest) GetEnforceUniqueOk() (*bool, bool) {
if o == nil || IsNil(o.EnforceUnique) {
return nil, false
}
@@ -190,7 +190,7 @@ func (o *PatchedWritableVRFRequest) GetEnforceUniqueOk() (*bool, bool) {
}
// HasEnforceUnique returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasEnforceUnique() bool {
+func (o *PatchedVRFRequest) HasEnforceUnique() bool {
if o != nil && !IsNil(o.EnforceUnique) {
return true
}
@@ -199,12 +199,12 @@ func (o *PatchedWritableVRFRequest) HasEnforceUnique() bool {
}
// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field.
-func (o *PatchedWritableVRFRequest) SetEnforceUnique(v bool) {
+func (o *PatchedVRFRequest) SetEnforceUnique(v bool) {
o.EnforceUnique = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetDescription() string {
+func (o *PatchedVRFRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
@@ -214,7 +214,7 @@ func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) GetDescriptionOk() (*string, bool) {
+func (o *PatchedVRFRequest) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
@@ -222,7 +222,7 @@ func (o *PatchedWritableVRFRequest) GetDescriptionOk() (*string, bool) {
}
// HasDescription returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasDescription() bool {
+func (o *PatchedVRFRequest) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
@@ -231,12 +231,12 @@ func (o *PatchedWritableVRFRequest) HasDescription() bool {
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
-func (o *PatchedWritableVRFRequest) SetDescription(v string) {
+func (o *PatchedVRFRequest) SetDescription(v string) {
o.Description = &v
}
// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetComments() string {
+func (o *PatchedVRFRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
@@ -246,7 +246,7 @@ func (o *PatchedWritableVRFRequest) GetComments() string {
// 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 *PatchedWritableVRFRequest) GetCommentsOk() (*string, bool) {
+func (o *PatchedVRFRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
@@ -254,7 +254,7 @@ func (o *PatchedWritableVRFRequest) GetCommentsOk() (*string, bool) {
}
// HasComments returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasComments() bool {
+func (o *PatchedVRFRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
@@ -263,12 +263,12 @@ func (o *PatchedWritableVRFRequest) HasComments() bool {
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
-func (o *PatchedWritableVRFRequest) SetComments(v string) {
+func (o *PatchedVRFRequest) SetComments(v string) {
o.Comments = &v
}
// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetImportTargets() []int32 {
+func (o *PatchedVRFRequest) GetImportTargets() []int32 {
if o == nil || IsNil(o.ImportTargets) {
var ret []int32
return ret
@@ -278,7 +278,7 @@ func (o *PatchedWritableVRFRequest) GetImportTargets() []int32 {
// 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 *PatchedWritableVRFRequest) GetImportTargetsOk() ([]int32, bool) {
+func (o *PatchedVRFRequest) GetImportTargetsOk() ([]int32, bool) {
if o == nil || IsNil(o.ImportTargets) {
return nil, false
}
@@ -286,7 +286,7 @@ func (o *PatchedWritableVRFRequest) GetImportTargetsOk() ([]int32, bool) {
}
// HasImportTargets returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasImportTargets() bool {
+func (o *PatchedVRFRequest) HasImportTargets() bool {
if o != nil && !IsNil(o.ImportTargets) {
return true
}
@@ -295,12 +295,12 @@ func (o *PatchedWritableVRFRequest) HasImportTargets() bool {
}
// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field.
-func (o *PatchedWritableVRFRequest) SetImportTargets(v []int32) {
+func (o *PatchedVRFRequest) SetImportTargets(v []int32) {
o.ImportTargets = v
}
// GetExportTargets returns the ExportTargets field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetExportTargets() []int32 {
+func (o *PatchedVRFRequest) GetExportTargets() []int32 {
if o == nil || IsNil(o.ExportTargets) {
var ret []int32
return ret
@@ -310,7 +310,7 @@ func (o *PatchedWritableVRFRequest) GetExportTargets() []int32 {
// 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 *PatchedWritableVRFRequest) GetExportTargetsOk() ([]int32, bool) {
+func (o *PatchedVRFRequest) GetExportTargetsOk() ([]int32, bool) {
if o == nil || IsNil(o.ExportTargets) {
return nil, false
}
@@ -318,7 +318,7 @@ func (o *PatchedWritableVRFRequest) GetExportTargetsOk() ([]int32, bool) {
}
// HasExportTargets returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasExportTargets() bool {
+func (o *PatchedVRFRequest) HasExportTargets() bool {
if o != nil && !IsNil(o.ExportTargets) {
return true
}
@@ -327,12 +327,12 @@ func (o *PatchedWritableVRFRequest) HasExportTargets() bool {
}
// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field.
-func (o *PatchedWritableVRFRequest) SetExportTargets(v []int32) {
+func (o *PatchedVRFRequest) SetExportTargets(v []int32) {
o.ExportTargets = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetTags() []NestedTagRequest {
+func (o *PatchedVRFRequest) GetTags() []NestedTagRequest {
if o == nil || IsNil(o.Tags) {
var ret []NestedTagRequest
return ret
@@ -342,7 +342,7 @@ func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) GetTagsOk() ([]NestedTagRequest, bool) {
+func (o *PatchedVRFRequest) GetTagsOk() ([]NestedTagRequest, bool) {
if o == nil || IsNil(o.Tags) {
return nil, false
}
@@ -350,7 +350,7 @@ func (o *PatchedWritableVRFRequest) GetTagsOk() ([]NestedTagRequest, bool) {
}
// HasTags returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasTags() bool {
+func (o *PatchedVRFRequest) HasTags() bool {
if o != nil && !IsNil(o.Tags) {
return true
}
@@ -359,12 +359,12 @@ func (o *PatchedWritableVRFRequest) HasTags() bool {
}
// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field.
-func (o *PatchedWritableVRFRequest) SetTags(v []NestedTagRequest) {
+func (o *PatchedVRFRequest) SetTags(v []NestedTagRequest) {
o.Tags = v
}
// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *PatchedWritableVRFRequest) GetCustomFields() map[string]interface{} {
+func (o *PatchedVRFRequest) GetCustomFields() map[string]interface{} {
if o == nil || IsNil(o.CustomFields) {
var ret map[string]interface{}
return ret
@@ -374,7 +374,7 @@ func (o *PatchedWritableVRFRequest) 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 *PatchedWritableVRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
+func (o *PatchedVRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.CustomFields) {
return map[string]interface{}{}, false
}
@@ -382,7 +382,7 @@ func (o *PatchedWritableVRFRequest) GetCustomFieldsOk() (map[string]interface{},
}
// HasCustomFields returns a boolean if a field has been set.
-func (o *PatchedWritableVRFRequest) HasCustomFields() bool {
+func (o *PatchedVRFRequest) HasCustomFields() bool {
if o != nil && !IsNil(o.CustomFields) {
return true
}
@@ -391,11 +391,11 @@ func (o *PatchedWritableVRFRequest) HasCustomFields() bool {
}
// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field.
-func (o *PatchedWritableVRFRequest) SetCustomFields(v map[string]interface{}) {
+func (o *PatchedVRFRequest) SetCustomFields(v map[string]interface{}) {
o.CustomFields = v
}
-func (o PatchedWritableVRFRequest) MarshalJSON() ([]byte, error) {
+func (o PatchedVRFRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -403,7 +403,7 @@ func (o PatchedWritableVRFRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o PatchedWritableVRFRequest) ToMap() (map[string]interface{}, error) {
+func (o PatchedVRFRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -443,16 +443,16 @@ func (o PatchedWritableVRFRequest) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *PatchedWritableVRFRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableVRFRequest := _PatchedWritableVRFRequest{}
+func (o *PatchedVRFRequest) UnmarshalJSON(data []byte) (err error) {
+ varPatchedVRFRequest := _PatchedVRFRequest{}
- err = json.Unmarshal(data, &varPatchedWritableVRFRequest)
+ err = json.Unmarshal(data, &varPatchedVRFRequest)
if err != nil {
return err
}
- *o = PatchedWritableVRFRequest(varPatchedWritableVRFRequest)
+ *o = PatchedVRFRequest(varPatchedVRFRequest)
additionalProperties := make(map[string]interface{})
@@ -473,38 +473,38 @@ func (o *PatchedWritableVRFRequest) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullablePatchedWritableVRFRequest struct {
- value *PatchedWritableVRFRequest
+type NullablePatchedVRFRequest struct {
+ value *PatchedVRFRequest
isSet bool
}
-func (v NullablePatchedWritableVRFRequest) Get() *PatchedWritableVRFRequest {
+func (v NullablePatchedVRFRequest) Get() *PatchedVRFRequest {
return v.value
}
-func (v *NullablePatchedWritableVRFRequest) Set(val *PatchedWritableVRFRequest) {
+func (v *NullablePatchedVRFRequest) Set(val *PatchedVRFRequest) {
v.value = val
v.isSet = true
}
-func (v NullablePatchedWritableVRFRequest) IsSet() bool {
+func (v NullablePatchedVRFRequest) IsSet() bool {
return v.isSet
}
-func (v *NullablePatchedWritableVRFRequest) Unset() {
+func (v *NullablePatchedVRFRequest) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullablePatchedWritableVRFRequest(val *PatchedWritableVRFRequest) *NullablePatchedWritableVRFRequest {
- return &NullablePatchedWritableVRFRequest{value: val, isSet: true}
+func NewNullablePatchedVRFRequest(val *PatchedVRFRequest) *NullablePatchedVRFRequest {
+ return &NullablePatchedVRFRequest{value: val, isSet: true}
}
-func (v NullablePatchedWritableVRFRequest) MarshalJSON() ([]byte, error) {
+func (v NullablePatchedVRFRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullablePatchedWritableVRFRequest) UnmarshalJSON(src []byte) error {
+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 984743287c..5c726471e4 100644
--- a/model_patched_webhook_request.go
+++ b/model_patched_webhook_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go
index c4ad9b7d94..184b35a71c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go
index 12de06ff86..0c3c8d591b 100644
--- a/model_patched_writable_aggregate_request.go
+++ b/model_patched_writable_aggregate_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,9 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{}
// PatchedWritableAggregateRequest Adds support for custom fields and tags.
type PatchedWritableAggregateRequest struct {
- Prefix *string `json:"prefix,omitempty"`
- // Regional Internet Registry responsible for this IP space
- Rir *int32 `json:"rir,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
@@ -83,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) {
}
// GetRir returns the Rir field value if set, zero value otherwise.
-func (o *PatchedWritableAggregateRequest) GetRir() int32 {
+func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest {
if o == nil || IsNil(o.Rir) {
- var ret int32
+ var ret RIRRequest
return ret
}
return *o.Rir
@@ -93,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil || IsNil(o.Rir) {
return nil, false
}
@@ -109,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool {
return false
}
-// SetRir gets a reference to the given int32 and assigns it to the Rir field.
-func (o *PatchedWritableAggregateRequest) SetRir(v int32) {
+// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field.
+func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) {
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() int32 {
+func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -126,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -142,8 +141,8 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableAggregateRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go
index c640f3d6f5..158155396e 100644
--- a/model_patched_writable_cable_request.go
+++ b/model_patched_writable_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 *CableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit *CableLengthUnitValue `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 *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"`
AdditionalProperties map[string]interface{}
}
@@ -55,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetType() CableType {
+func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType {
if o == nil || IsNil(o.Type) {
- var ret CableType
+ var ret PatchedWritableCableRequestType
return ret
}
return *o.Type
@@ -65,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() CableType {
// 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() (*CableType, bool) {
+func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given CableType and assigns it to the Type field.
-func (o *PatchedWritableCableRequest) SetType(v CableType) {
+// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field.
+func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) {
o.Type = &v
}
@@ -151,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest)
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue {
+func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Status
@@ -161,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue {
// 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() (*CableStatusValue, bool) {
+func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -177,15 +177,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
-func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) {
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() int32 {
+func (o *PatchedWritableCableRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -194,7 +194,7 @@ func (o *PatchedWritableCableRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -210,8 +210,8 @@ func (o *PatchedWritableCableRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableCableRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -333,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() {
}
// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise.
-func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue {
+func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit {
if o == nil || IsNil(o.LengthUnit) {
- var ret CableLengthUnitValue
+ var ret PatchedWritableCableRequestLengthUnit
return ret
}
return *o.LengthUnit
@@ -343,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue {
// 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() (*CableLengthUnitValue, bool) {
+func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) {
if o == nil || IsNil(o.LengthUnit) {
return nil, false
}
@@ -359,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool {
return false
}
-// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field.
-func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) {
+// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field.
+func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) {
o.LengthUnit = &v
}
diff --git a/model_patched_writable_cable_request_length_unit.go b/model_patched_writable_cable_request_length_unit.go
new file mode 100644
index 0000000000..d7aa10bbea
--- /dev/null
+++ b/model_patched_writable_cable_request_length_unit.go
@@ -0,0 +1,120 @@
+/*
+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
new file mode 100644
index 0000000000..e17fd5e32b
--- /dev/null
+++ b/model_patched_writable_cable_request_status.go
@@ -0,0 +1,112 @@
+/*
+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
new file mode 100644
index 0000000000..7f5e216ebe
--- /dev/null
+++ b/model_patched_writable_cable_request_type.go
@@ -0,0 +1,154 @@
+/*
+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_request.go b/model_patched_writable_circuit_request.go
index 3e9de352b2..a9b2fa6439 100644
--- a/model_patched_writable_circuit_request.go
+++ b/model_patched_writable_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{}
// PatchedWritableCircuitRequest Adds support for custom fields and tags.
type PatchedWritableCircuitRequest struct {
// Unique circuit ID
- Cid *string `json:"cid,omitempty"`
- Provider *int32 `json:"provider,omitempty"`
- ProviderAccount NullableInt32 `json:"provider_account,omitempty"`
- Type *int32 `json:"type,omitempty"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ 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"`
// Committed rate
CommitRate NullableInt32 `json:"commit_rate,omitempty"`
Description *string `json:"description,omitempty"`
@@ -89,9 +89,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) {
}
// GetProvider returns the Provider field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetProvider() int32 {
+func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest {
if o == nil || IsNil(o.Provider) {
- var ret int32
+ var ret ProviderRequest
return ret
}
return *o.Provider
@@ -99,7 +99,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
@@ -115,15 +115,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool {
return false
}
-// SetProvider gets a reference to the given int32 and assigns it to the Provider field.
-func (o *PatchedWritableCircuitRequest) SetProvider(v int32) {
+// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field.
+func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) {
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() int32 {
+func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret int32
+ var ret ProviderAccountRequest
return ret
}
return *o.ProviderAccount.Get()
@@ -132,7 +132,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) {
if o == nil {
return nil, false
}
@@ -148,8 +148,8 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableInt32 and assigns it to the ProviderAccount field.
-func (o *PatchedWritableCircuitRequest) SetProviderAccount(v int32) {
+// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field.
+func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) {
o.ProviderAccount.Set(&v)
}
@@ -164,9 +164,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetType() int32 {
+func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest {
if o == nil || IsNil(o.Type) {
- var ret int32
+ var ret CircuitTypeRequest
return ret
}
return *o.Type
@@ -174,7 +174,7 @@ func (o *PatchedWritableCircuitRequest) GetType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -190,15 +190,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given int32 and assigns it to the Type field.
-func (o *PatchedWritableCircuitRequest) SetType(v int32) {
+// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field.
+func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) {
o.Type = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue {
+func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CircuitStatusValue
+ var ret PatchedWritableCircuitRequestStatus
return ret
}
return *o.Status
@@ -206,7 +206,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue {
// 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() (*CircuitStatusValue, bool) {
+func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -222,15 +222,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field.
-func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) {
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() int32 {
+func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -239,7 +239,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -255,8 +255,8 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableCircuitRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_circuit_request_status.go b/model_patched_writable_circuit_request_status.go
new file mode 100644
index 0000000000..6801907f18
--- /dev/null
+++ b/model_patched_writable_circuit_request_status.go
@@ -0,0 +1,118 @@
+/*
+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 f791326a16..686e115224 100644
--- a/model_patched_writable_cluster_request.go
+++ b/model_patched_writable_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableClusterRequest{}
// PatchedWritableClusterRequest Adds support for custom fields and tags.
type PatchedWritableClusterRequest struct {
- Name *string `json:"name,omitempty"`
- Type *int32 `json:"type,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -84,9 +84,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *PatchedWritableClusterRequest) GetType() int32 {
+func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest {
if o == nil || IsNil(o.Type) {
- var ret int32
+ var ret ClusterTypeRequest
return ret
}
return *o.Type
@@ -94,7 +94,7 @@ func (o *PatchedWritableClusterRequest) GetType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -110,15 +110,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given int32 and assigns it to the Type field.
-func (o *PatchedWritableClusterRequest) SetType(v int32) {
+// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field.
+func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) {
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() int32 {
+func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret ClusterGroupRequest
return ret
}
return *o.Group.Get()
@@ -127,7 +127,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -143,8 +143,8 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableClusterRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field.
+func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) {
o.Group.Set(&v)
}
@@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue {
+func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ClusterStatusValue
+ var ret PatchedWritableClusterRequestStatus
return ret
}
return *o.Status
@@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue {
// 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() (*ClusterStatusValue, bool) {
+func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, 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 ClusterStatusValue and assigns it to the Status field.
-func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) {
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() int32 {
+func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -218,8 +218,8 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableClusterRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -234,9 +234,9 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableClusterRequest) GetSite() int32 {
+func (o *PatchedWritableClusterRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -245,7 +245,7 @@ func (o *PatchedWritableClusterRequest) GetSite() int32 {
// 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 *PatchedWritableClusterRequest) GetSiteOk() (*int32, bool) {
+func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -261,8 +261,8 @@ func (o *PatchedWritableClusterRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *PatchedWritableClusterRequest) SetSite(v int32) {
+// 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)
}
diff --git a/model_patched_writable_cluster_request_status.go b/model_patched_writable_cluster_request_status.go
new file mode 100644
index 0000000000..190ffc9868
--- /dev/null
+++ b/model_patched_writable_cluster_request_status.go
@@ -0,0 +1,116 @@
+/*
+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_config_template_request.go b/model_patched_writable_config_template_request.go
deleted file mode 100644
index 636a9f5222..0000000000
--- a/model_patched_writable_config_template_request.go
+++ /dev/null
@@ -1,401 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the PatchedWritableConfigTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &PatchedWritableConfigTemplateRequest{}
-
-// PatchedWritableConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
-type PatchedWritableConfigTemplateRequest struct {
- Name *string `json:"name,omitempty"`
- 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"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- DataFile NullableInt32 `json:"data_file,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _PatchedWritableConfigTemplateRequest PatchedWritableConfigTemplateRequest
-
-// NewPatchedWritableConfigTemplateRequest instantiates a new PatchedWritableConfigTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewPatchedWritableConfigTemplateRequest() *PatchedWritableConfigTemplateRequest {
- this := PatchedWritableConfigTemplateRequest{}
- return &this
-}
-
-// NewPatchedWritableConfigTemplateRequestWithDefaults instantiates a new PatchedWritableConfigTemplateRequest object
-// This 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 NewPatchedWritableConfigTemplateRequestWithDefaults() *PatchedWritableConfigTemplateRequest {
- this := PatchedWritableConfigTemplateRequest{}
- return &this
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetName(v string) {
- o.Name = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
- o.EnvironmentParams = v
-}
-
-// GetTemplateCode returns the TemplateCode field value if set, zero value otherwise.
-func (o *PatchedWritableConfigTemplateRequest) GetTemplateCode() string {
- if o == nil || IsNil(o.TemplateCode) {
- var ret string
- return ret
- }
- return *o.TemplateCode
-}
-
-// GetTemplateCodeOk returns a tuple with the TemplateCode field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *PatchedWritableConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) {
- if o == nil || IsNil(o.TemplateCode) {
- return nil, false
- }
- return o.TemplateCode, true
-}
-
-// HasTemplateCode returns a boolean if a field has been set.
-func (o *PatchedWritableConfigTemplateRequest) HasTemplateCode() bool {
- if o != nil && !IsNil(o.TemplateCode) {
- return true
- }
-
- return false
-}
-
-// SetTemplateCode gets a reference to the given string and assigns it to the TemplateCode field.
-func (o *PatchedWritableConfigTemplateRequest) SetTemplateCode(v string) {
- o.TemplateCode = &v
-}
-
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConfigTemplateRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
- return ret
- }
- return *o.DataSource.Get()
-}
-
-// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConfigTemplateRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataSource.Get(), o.DataSource.IsSet()
-}
-
-// HasDataSource returns a boolean if a field has been set.
-func (o *PatchedWritableConfigTemplateRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *PatchedWritableConfigTemplateRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
-}
-
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *PatchedWritableConfigTemplateRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *PatchedWritableConfigTemplateRequest) UnsetDataSource() {
- o.DataSource.Unset()
-}
-
-// GetDataFile returns the DataFile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableConfigTemplateRequest) GetDataFile() int32 {
- if o == nil || IsNil(o.DataFile.Get()) {
- var ret int32
- return ret
- }
- return *o.DataFile.Get()
-}
-
-// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableConfigTemplateRequest) GetDataFileOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataFile.Get(), o.DataFile.IsSet()
-}
-
-// HasDataFile returns a boolean if a field has been set.
-func (o *PatchedWritableConfigTemplateRequest) HasDataFile() bool {
- if o != nil && o.DataFile.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataFile gets a reference to the given NullableInt32 and assigns it to the DataFile field.
-func (o *PatchedWritableConfigTemplateRequest) SetDataFile(v int32) {
- o.DataFile.Set(&v)
-}
-
-// SetDataFileNil sets the value for DataFile to be an explicit nil
-func (o *PatchedWritableConfigTemplateRequest) SetDataFileNil() {
- o.DataFile.Set(nil)
-}
-
-// UnsetDataFile ensures that no value is present for DataFile, not even an explicit nil
-func (o *PatchedWritableConfigTemplateRequest) UnsetDataFile() {
- o.DataFile.Unset()
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) 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 *PatchedWritableConfigTemplateRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-func (o PatchedWritableConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o PatchedWritableConfigTemplateRequest) 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 o.EnvironmentParams != nil {
- toSerialize["environment_params"] = o.EnvironmentParams
- }
- if !IsNil(o.TemplateCode) {
- toSerialize["template_code"] = o.TemplateCode
- }
- if o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
- }
- if o.DataFile.IsSet() {
- toSerialize["data_file"] = o.DataFile.Get()
- }
- if !IsNil(o.Tags) {
- toSerialize["tags"] = o.Tags
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *PatchedWritableConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) {
- varPatchedWritableConfigTemplateRequest := _PatchedWritableConfigTemplateRequest{}
-
- err = json.Unmarshal(data, &varPatchedWritableConfigTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = PatchedWritableConfigTemplateRequest(varPatchedWritableConfigTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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, "data_file")
- delete(additionalProperties, "tags")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullablePatchedWritableConfigTemplateRequest struct {
- value *PatchedWritableConfigTemplateRequest
- isSet bool
-}
-
-func (v NullablePatchedWritableConfigTemplateRequest) Get() *PatchedWritableConfigTemplateRequest {
- return v.value
-}
-
-func (v *NullablePatchedWritableConfigTemplateRequest) Set(val *PatchedWritableConfigTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullablePatchedWritableConfigTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullablePatchedWritableConfigTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullablePatchedWritableConfigTemplateRequest(val *PatchedWritableConfigTemplateRequest) *NullablePatchedWritableConfigTemplateRequest {
- return &NullablePatchedWritableConfigTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullablePatchedWritableConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullablePatchedWritableConfigTemplateRequest) 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 a547e232d0..5e75fe1df9 100644
--- a/model_patched_writable_console_port_request.go
+++ b/model_patched_writable_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{}
// PatchedWritableConsolePortRequest Adds support for custom fields and tags.
type PatchedWritableConsolePortRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
@@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableConsolePortRequest) GetDevice() int32 {
+func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, 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 int32 and assigns it to the Device field.
-func (o *PatchedWritableConsolePortRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -113,8 +113,8 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritableConsolePortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go
index d8b63b60a4..9fb31ae8e3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go
index ac67586200..db1edadc39 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go
index dd610a2f0e..a4c19d0c0e 100644
--- a/model_patched_writable_console_port_template_request.go
+++ b/model_patched_writable_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -77,8 +77,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -93,9 +93,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() int32 {
+func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -104,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -120,8 +120,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go
index 85c9b1e3db..c5a84421b1 100644
--- a/model_patched_writable_console_server_port_request.go
+++ b/model_patched_writable_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{}
// PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags.
type PatchedWritableConsoleServerPortRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
@@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableConsoleServerPortRequest) GetDevice() int32 {
+func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, 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 int32 and assigns it to the Device field.
-func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -113,8 +113,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritableConsoleServerPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go
index ad448beefb..07402cdcd7 100644
--- a/model_patched_writable_console_server_port_template_request.go
+++ b/model_patched_writable_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() int32
// 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() (*int32, bool) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -77,8 +77,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -93,9 +93,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() int32 {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -104,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() int32
// 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() (*int32, bool) {
+func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -120,8 +120,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go
index 042fd0f435..8a792f86be 100644
--- a/model_patched_writable_contact_assignment_request.go
+++ b/model_patched_writable_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{}
// PatchedWritableContactAssignmentRequest Adds support for custom fields and tags.
type PatchedWritableContactAssignmentRequest struct {
- ContentType *string `json:"content_type,omitempty"`
+ ObjectType *string `json:"object_type,omitempty"`
ObjectId *int64 `json:"object_id,omitempty"`
- Contact *int32 `json:"contact,omitempty"`
- Role *int32 `json:"role,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"`
@@ -48,36 +48,36 @@ func NewPatchedWritableContactAssignmentRequestWithDefaults() *PatchedWritableCo
return &this
}
-// GetContentType returns the ContentType field value if set, zero value otherwise.
-func (o *PatchedWritableContactAssignmentRequest) GetContentType() string {
- if o == nil || IsNil(o.ContentType) {
+// GetObjectType returns the ObjectType field value if set, zero value otherwise.
+func (o *PatchedWritableContactAssignmentRequest) GetObjectType() string {
+ if o == nil || IsNil(o.ObjectType) {
var ret string
return ret
}
- return *o.ContentType
+ return *o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise
+// 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 *PatchedWritableContactAssignmentRequest) GetContentTypeOk() (*string, bool) {
- if o == nil || IsNil(o.ContentType) {
+func (o *PatchedWritableContactAssignmentRequest) GetObjectTypeOk() (*string, bool) {
+ if o == nil || IsNil(o.ObjectType) {
return nil, false
}
- return o.ContentType, true
+ return o.ObjectType, true
}
-// HasContentType returns a boolean if a field has been set.
-func (o *PatchedWritableContactAssignmentRequest) HasContentType() bool {
- if o != nil && !IsNil(o.ContentType) {
+// HasObjectType returns a boolean if a field has been set.
+func (o *PatchedWritableContactAssignmentRequest) HasObjectType() bool {
+ if o != nil && !IsNil(o.ObjectType) {
return true
}
return false
}
-// SetContentType gets a reference to the given string and assigns it to the ContentType field.
-func (o *PatchedWritableContactAssignmentRequest) SetContentType(v string) {
- o.ContentType = &v
+// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
+func (o *PatchedWritableContactAssignmentRequest) SetObjectType(v string) {
+ o.ObjectType = &v
}
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
@@ -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() int32 {
+func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest {
if o == nil || IsNil(o.Contact) {
- var ret int32
+ var ret ContactRequest
return ret
}
return *o.Contact
@@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) {
if o == nil || IsNil(o.Contact) {
return nil, false
}
@@ -139,41 +139,52 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool {
return false
}
-// SetContact gets a reference to the given int32 and assigns it to the Contact field.
-func (o *PatchedWritableContactAssignmentRequest) SetContact(v int32) {
+// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field.
+func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) {
o.Contact = &v
}
-// GetRole returns the Role field value if set, zero value otherwise.
-func (o *PatchedWritableContactAssignmentRequest) GetRole() int32 {
- if o == nil || IsNil(o.Role) {
- var ret int32
+// 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 {
+ if o == nil || IsNil(o.Role.Get()) {
+ var ret ContactRoleRequest
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.
-func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*int32, bool) {
- if o == nil || IsNil(o.Role) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) {
+ 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 *PatchedWritableContactAssignmentRequest) 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 int32 and assigns it to the Role field.
-func (o *PatchedWritableContactAssignmentRequest) SetRole(v int32) {
- o.Role = &v
+// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) {
+ o.Role.Set(&v)
+}
+
+// SetRoleNil sets the value for Role to be an explicit nil
+func (o *PatchedWritableContactAssignmentRequest) SetRoleNil() {
+ o.Role.Set(nil)
+}
+
+// UnsetRole ensures that no value is present for Role, not even an explicit nil
+func (o *PatchedWritableContactAssignmentRequest) UnsetRole() {
+ o.Role.Unset()
}
// GetPriority returns the Priority field value if set, zero value otherwise.
@@ -282,8 +293,8 @@ func (o PatchedWritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentType) {
- toSerialize["content_type"] = o.ContentType
+ if !IsNil(o.ObjectType) {
+ toSerialize["object_type"] = o.ObjectType
}
if !IsNil(o.ObjectId) {
toSerialize["object_id"] = o.ObjectId
@@ -291,8 +302,8 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{}
if !IsNil(o.Contact) {
toSerialize["contact"] = o.Contact
}
- if !IsNil(o.Role) {
- toSerialize["role"] = o.Role
+ if o.Role.IsSet() {
+ toSerialize["role"] = o.Role.Get()
}
if !IsNil(o.Priority) {
toSerialize["priority"] = o.Priority
@@ -325,7 +336,7 @@ func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(data []byte) (er
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go
index bdfcddcbc4..b7868b9e76 100644
--- a/model_patched_writable_contact_group_request.go
+++ b/model_patched_writable_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go
index 74c7ed10f3..685a24ba2c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
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 43099c2067..05ed85e77b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go
index d8de09ce1c..4e6a76214e 100644
--- a/model_patched_writable_custom_field_request.go
+++ b/model_patched_writable_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ 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 {
- ContentTypes []string `json:"content_types,omitempty"`
- Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
- ObjectType NullableString `json:"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 of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -47,8 +47,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 NullableInt32 `json:"choice_set,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -71,36 +72,36 @@ func NewPatchedWritableCustomFieldRequestWithDefaults() *PatchedWritableCustomFi
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedWritableCustomFieldRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
+// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
+func (o *PatchedWritableCustomFieldRequest) GetObjectTypes() []string {
+ if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableCustomFieldRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
+func (o *PatchedWritableCustomFieldRequest) GetObjectTypesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedWritableCustomFieldRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
+// HasObjectTypes returns a boolean if a field has been set.
+func (o *PatchedWritableCustomFieldRequest) HasObjectTypes() bool {
+ if o != nil && !IsNil(o.ObjectTypes) {
return true
}
return false
}
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedWritableCustomFieldRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
+func (o *PatchedWritableCustomFieldRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetType returns the Type field value if set, zero value otherwise.
@@ -135,47 +136,47 @@ func (o *PatchedWritableCustomFieldRequest) SetType(v PatchedWritableCustomField
o.Type = &v
}
-// GetObjectType returns the ObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableCustomFieldRequest) GetObjectType() string {
- if o == nil || IsNil(o.ObjectType.Get()) {
+// GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectType() string {
+ if o == nil || IsNil(o.RelatedObjectType.Get()) {
var ret string
return ret
}
- return *o.ObjectType.Get()
+ return *o.RelatedObjectType.Get()
}
-// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
+// GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field value if set, nil otherwise
// and a 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) GetObjectTypeOk() (*string, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.ObjectType.Get(), o.ObjectType.IsSet()
+ return o.RelatedObjectType.Get(), o.RelatedObjectType.IsSet()
}
-// HasObjectType returns a boolean if a field has been set.
-func (o *PatchedWritableCustomFieldRequest) HasObjectType() bool {
- if o != nil && o.ObjectType.IsSet() {
+// HasRelatedObjectType returns a boolean if a field has been set.
+func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectType() bool {
+ if o != nil && o.RelatedObjectType.IsSet() {
return true
}
return false
}
-// SetObjectType gets a reference to the given NullableString and assigns it to the ObjectType field.
-func (o *PatchedWritableCustomFieldRequest) SetObjectType(v string) {
- o.ObjectType.Set(&v)
+// SetRelatedObjectType gets a reference to the given NullableString and assigns it to the RelatedObjectType field.
+func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectType(v string) {
+ o.RelatedObjectType.Set(&v)
}
-// SetObjectTypeNil sets the value for ObjectType to be an explicit nil
-func (o *PatchedWritableCustomFieldRequest) SetObjectTypeNil() {
- o.ObjectType.Set(nil)
+// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
+func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectTypeNil() {
+ o.RelatedObjectType.Set(nil)
}
-// UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
-func (o *PatchedWritableCustomFieldRequest) UnsetObjectType() {
- o.ObjectType.Unset()
+// UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
+func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectType() {
+ o.RelatedObjectType.Unset()
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -682,9 +683,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() int32 {
+func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret int32
+ var ret CustomFieldChoiceSetRequest
return ret
}
return *o.ChoiceSet.Get()
@@ -693,7 +694,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) {
if o == nil {
return nil, false
}
@@ -709,8 +710,8 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableInt32 and assigns it to the ChoiceSet field.
-func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v int32) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
+func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) {
o.ChoiceSet.Set(&v)
}
@@ -724,6 +725,38 @@ func (o *PatchedWritableCustomFieldRequest) UnsetChoiceSet() {
o.ChoiceSet.Unset()
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *PatchedWritableCustomFieldRequest) 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 *PatchedWritableCustomFieldRequest) 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 *PatchedWritableCustomFieldRequest) 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 *PatchedWritableCustomFieldRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o PatchedWritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -734,14 +767,14 @@ func (o PatchedWritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
+ if !IsNil(o.ObjectTypes) {
+ toSerialize["object_types"] = o.ObjectTypes
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
- if o.ObjectType.IsSet() {
- toSerialize["object_type"] = o.ObjectType.Get()
+ if o.RelatedObjectType.IsSet() {
+ toSerialize["related_object_type"] = o.RelatedObjectType.Get()
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -791,6 +824,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro
if o.ChoiceSet.IsSet() {
toSerialize["choice_set"] = o.ChoiceSet.Get()
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -813,9 +849,9 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "type")
- delete(additionalProperties, "object_type")
+ delete(additionalProperties, "related_object_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "group_name")
@@ -832,6 +868,7 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro
delete(additionalProperties, "validation_maximum")
delete(additionalProperties, "validation_regex")
delete(additionalProperties, "choice_set")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go
index cf518dffb8..617a068559 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go
index 5e813f2d05..3efb71f2cf 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go
index 27f5ae4b1c..2ebd0d168a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go
index 2062185e58..2b26094231 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go
index cec7e3c3ba..4446f37e84 100644
--- a/model_patched_writable_data_source_request.go
+++ b/model_patched_writable_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go
index 842c6a929e..e5906960d9 100644
--- a/model_patched_writable_device_type_request.go
+++ b/model_patched_writable_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 *int32 `json:"manufacturer,omitempty"`
- DefaultPlatform NullableInt32 `json:"default_platform,omitempty"`
- Model *string `json:"model,omitempty"`
- Slug *string `json:"slug,omitempty"`
+ Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"`
+ DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"`
+ Model *string `json:"model,omitempty"`
+ Slug *string `json:"slug,omitempty"`
// Discrete part number (optional)
PartNumber *string `json:"part_number,omitempty"`
UHeight *float64 `json:"u_height,omitempty"`
// 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 *ParentChildStatus `json:"subdevice_role,omitempty"`
- Airflow *DeviceAirflowValue `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `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 *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"`
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() int32 {
+func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer) {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer
@@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, 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 int32 and assigns it to the Manufacturer field.
-func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v int32) {
+// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field.
+func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) {
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() int32 {
+func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.DefaultPlatform.Get()
@@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -127,8 +127,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool {
return false
}
-// SetDefaultPlatform gets a reference to the given NullableInt32 and assigns it to the DefaultPlatform field.
-func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v int32) {
+// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field.
+func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) {
o.DefaultPlatform.Set(&v)
}
@@ -335,9 +335,9 @@ func (o *PatchedWritableDeviceTypeRequest) SetIsFullDepth(v bool) {
}
// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus {
+func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1 {
if o == nil || IsNil(o.SubdeviceRole) {
- var ret ParentChildStatus
+ var ret ParentChildStatus1
return ret
}
return *o.SubdeviceRole
@@ -345,7 +345,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus
// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, bool) {
if o == nil || IsNil(o.SubdeviceRole) {
return nil, false
}
@@ -361,8 +361,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasSubdeviceRole() bool {
return false
}
-// SetSubdeviceRole gets a reference to the given ParentChildStatus and assigns it to the SubdeviceRole field.
-func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus) {
+// SetSubdeviceRole gets a reference to the given ParentChildStatus1 and assigns it to the SubdeviceRole field.
+func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) {
o.SubdeviceRole = &v
}
@@ -442,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -452,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitV
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -468,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_patched_writable_device_type_request_weight_unit.go b/model_patched_writable_device_type_request_weight_unit.go
new file mode 100644
index 0000000000..7fcd239e1a
--- /dev/null
+++ b/model_patched_writable_device_type_request_weight_unit.go
@@ -0,0 +1,116 @@
+/*
+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 01e4397200..2594a9023b 100644
--- a/model_patched_writable_device_with_config_context_request.go
+++ b/model_patched_writable_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,38 +19,37 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{}
// PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableDeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType *int32 `json:"device_type,omitempty"`
- // The function this device serves
- Role *int32 `json:"role,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
+ 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"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site *int32 `json:"site,omitempty"`
- Location NullableInt32 `json:"location,omitempty"`
- Rack NullableInt32 `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *RackFace `json:"face,omitempty"`
+ 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"`
// 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 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- OobIp NullableInt32 `json:"oob_ip,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- VirtualChassis NullableInt32 `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ 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"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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"`
@@ -121,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType
@@ -131,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
@@ -147,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given int32 and assigns it to the DeviceType field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil || IsNil(o.Role) {
- var ret int32
+ var ret DeviceRoleRequest
return ret
}
return *o.Role
@@ -163,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
@@ -179,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given int32 and assigns it to the Role field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v int32) {
+// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -196,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -212,8 +211,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -228,9 +227,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -239,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -255,8 +254,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableInt32 and assigns it to the Platform field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v int32) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -346,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site
@@ -356,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -372,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given int32 and assigns it to the Site field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v int32) {
+// SetSite gets a reference to the given SiteRequest and assigns it to the Site field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) {
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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret int32
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -389,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -405,8 +404,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v int32) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
@@ -421,9 +420,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret int32
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -432,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -448,8 +447,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableInt32 and assigns it to the Rack field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v int32) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -507,9 +506,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPosition() {
}
// GetFace returns the Face field value if set, zero value otherwise.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace1 {
if o == nil || IsNil(o.Face) {
- var ret RackFace
+ var ret RackFace1
return ret
}
return *o.Face
@@ -517,7 +516,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace {
// GetFaceOk returns a tuple with the Face field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace1, bool) {
if o == nil || IsNil(o.Face) {
return nil, false
}
@@ -533,8 +532,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasFace() bool {
return false
}
-// SetFace gets a reference to the given RackFace and assigns it to the Face field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace) {
+// SetFace gets a reference to the given RackFace1 and assigns it to the Face field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace1) {
o.Face = &v
}
@@ -689,9 +688,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirfl
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -700,7 +699,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -716,8 +715,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -732,9 +731,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -743,7 +742,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -759,8 +758,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -775,9 +774,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.OobIp.Get()
@@ -786,7 +785,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() int32 {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -802,8 +801,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableInt32 and assigns it to the OobIp field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v int32) {
+// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) {
o.OobIp.Set(&v)
}
@@ -818,9 +817,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret int32
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -829,7 +828,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -845,8 +844,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableInt32 and assigns it to the Cluster field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v int32) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -861,9 +860,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret int32
+ var ret VirtualChassisRequest
return ret
}
return *o.VirtualChassis.Get()
@@ -872,7 +871,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() int3
// 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() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) {
if o == nil {
return nil, false
}
@@ -888,8 +887,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool
return false
}
-// SetVirtualChassis gets a reference to the given NullableInt32 and assigns it to the VirtualChassis field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v int32) {
+// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) {
o.VirtualChassis.Set(&v)
}
@@ -1054,9 +1053,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() int32 {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -1065,7 +1064,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int3
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) {
+func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -1081,8 +1080,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go
index 4729c9e03a..0251a39dc1 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{}
// PatchedWritableEventRuleRequest Adds support for custom fields and tags.
type PatchedWritableEventRuleRequest struct {
- ContentTypes []string `json:"content_types,omitempty"`
- Name *string `json:"name,omitempty"`
+ 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.
@@ -62,36 +62,36 @@ func NewPatchedWritableEventRuleRequestWithDefaults() *PatchedWritableEventRuleR
return &this
}
-// GetContentTypes returns the ContentTypes field value if set, zero value otherwise.
-func (o *PatchedWritableEventRuleRequest) GetContentTypes() []string {
- if o == nil || IsNil(o.ContentTypes) {
+// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise.
+func (o *PatchedWritableEventRuleRequest) GetObjectTypes() []string {
+ if o == nil || IsNil(o.ObjectTypes) {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value if set, nil otherwise
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableEventRuleRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil || IsNil(o.ContentTypes) {
+func (o *PatchedWritableEventRuleRequest) GetObjectTypesOk() ([]string, bool) {
+ if o == nil || IsNil(o.ObjectTypes) {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// HasContentTypes returns a boolean if a field has been set.
-func (o *PatchedWritableEventRuleRequest) HasContentTypes() bool {
- if o != nil && !IsNil(o.ContentTypes) {
+// HasObjectTypes returns a boolean if a field has been set.
+func (o *PatchedWritableEventRuleRequest) HasObjectTypes() bool {
+ if o != nil && !IsNil(o.ObjectTypes) {
return true
}
return false
}
-// SetContentTypes gets a reference to the given []string and assigns it to the ContentTypes field.
-func (o *PatchedWritableEventRuleRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field.
+func (o *PatchedWritableEventRuleRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value if set, zero value otherwise.
@@ -564,8 +564,8 @@ func (o PatchedWritableEventRuleRequest) MarshalJSON() ([]byte, error) {
func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- if !IsNil(o.ContentTypes) {
- toSerialize["content_types"] = o.ContentTypes
+ if !IsNil(o.ObjectTypes) {
+ toSerialize["object_types"] = o.ObjectTypes
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
@@ -631,7 +631,7 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "type_create")
delete(additionalProperties, "type_update")
diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go
index a7aff3cfc6..56a5a766f6 100644
--- a/model_patched_writable_front_port_request.go
+++ b/model_patched_writable_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{}
// PatchedWritableFrontPortRequest Adds support for custom fields and tags.
type PatchedWritableFrontPortRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *FrontPortTypeValue `json:"type,omitempty"`
@@ -45,6 +45,8 @@ 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
}
@@ -53,13 +55,15 @@ 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() int32 {
+func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -67,7 +71,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -83,15 +87,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritableFrontPortRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -100,7 +104,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -116,8 +120,8 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritableFrontPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go
index c35679ee87..a7e2d7d33e 100644
--- a/model_patched_writable_front_port_template_request.go
+++ b/model_patched_writable_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 *int32 `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"`
+ RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -41,6 +41,8 @@ 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
}
@@ -49,13 +51,15 @@ 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() int32 {
+func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -64,7 +68,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -80,8 +84,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -96,9 +100,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() int32 {
+func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -107,7 +111,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -123,8 +127,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -267,9 +271,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value if set, zero value otherwise.
-func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() int32 {
+func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest {
if o == nil || IsNil(o.RearPort) {
- var ret int32
+ var ret RearPortTemplateRequest
return ret
}
return *o.RearPort
@@ -277,7 +281,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) {
if o == nil || IsNil(o.RearPort) {
return nil, false
}
@@ -293,8 +297,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool {
return false
}
-// SetRearPort gets a reference to the given int32 and assigns it to the RearPort field.
-func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v int32) {
+// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field.
+func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) {
o.RearPort = &v
}
diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go
index 8e192b424e..58f359b1eb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go
index d7c7b0ced4..16fbd5659f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go
index 3086c48694..2a6c5849cb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go
index 1743eea9b7..6de0b3f452 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go
index 6b617ef18b..98ac12303d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go
index 41de4c7b4a..89cee30812 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go
index d002475a54..16c8c59a08 100644
--- a/model_patched_writable_interface_request.go
+++ b/model_patched_writable_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{}
// PatchedWritableInterfaceRequest Adds support for custom fields and tags.
type PatchedWritableInterfaceRequest struct {
- Device *int32 `json:"device,omitempty"`
- Vdcs []int32 `json:"vdcs,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *InterfaceTypeValue `json:"type,omitempty"`
@@ -46,14 +46,14 @@ type PatchedWritableInterfaceRequest struct {
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ 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"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -79,9 +79,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableInterfaceRequest) GetDevice() int32 {
+func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -89,7 +89,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -105,8 +105,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritableInterfaceRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) {
o.Device = &v
}
@@ -143,9 +143,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() int32 {
+func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -154,7 +154,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -170,8 +170,8 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritableInterfaceRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -1011,9 +1011,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() int32 {
+func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -1022,7 +1022,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -1038,8 +1038,8 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableInt32 and assigns it to the UntaggedVlan field.
-func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v int32) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -1150,9 +1150,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() int32 {
+func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -1161,7 +1161,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -1177,8 +1177,8 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *PatchedWritableInterfaceRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go
index bac24f5972..8417725be5 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go
index f85243e1c8..f88d3d2055 100644
--- a/model_patched_writable_interface_template_request.go
+++ b/model_patched_writable_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -83,8 +83,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -99,9 +99,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() int32 {
+func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -110,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -126,8 +126,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go
index 4f388a7405..8aced88b88 100644
--- a/model_patched_writable_ip_address_request.go
+++ b/model_patched_writable_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{}
// PatchedWritableIPAddressRequest Adds support for custom fields and tags.
type PatchedWritableIPAddressRequest struct {
Address *string `json:"address,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
@@ -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() int32 {
+func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -116,8 +116,8 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *PatchedWritableIPAddressRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -132,9 +132,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() int32 {
+func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -143,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -159,8 +159,8 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableIPAddressRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go
index fe795edc11..c50d402363 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go
index 2b6a6385ca..aa05d1c780 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go
index c95dcb711d..3ae8f8a3b7 100644
--- a/model_patched_writable_ip_range_request.go
+++ b/model_patched_writable_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,15 +21,14 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{}
type PatchedWritableIPRangeRequest struct {
StartAddress *string `json:"start_address,omitempty"`
EndAddress *string `json:"end_address,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
- // The primary function of this range
- Role NullableInt32 `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,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"`
// Treat as fully utilized
MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
@@ -119,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() int32 {
+func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -130,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -146,8 +145,8 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *PatchedWritableIPRangeRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -162,9 +161,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() int32 {
+func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -173,7 +172,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -189,8 +188,8 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableIPRangeRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -237,9 +236,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() int32 {
+func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -248,7 +247,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -264,8 +263,8 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableIPRangeRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go
index 0c9887cc7d..c5cdba089a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go
index b6af15afb9..6c4c674f77 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
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 6732b1abd9..8b81531d6f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go
index 1dba8698d7..1c0acccc08 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,8 +22,8 @@ type PatchedWritableIPSecProfileRequest struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Mode *IPSecProfileModeValue `json:"mode,omitempty"`
- IkePolicy *int32 `json:"ike_policy,omitempty"`
- IpsecPolicy *int32 `json:"ipsec_policy,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"`
@@ -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() int32 {
+func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest {
if o == nil || IsNil(o.IkePolicy) {
- var ret int32
+ var ret IKEPolicyRequest
return ret
}
return *o.IkePolicy
@@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, 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 int32 and assigns it to the IkePolicy field.
-func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v int32) {
+// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) {
o.IkePolicy = &v
}
// GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise.
-func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() int32 {
+func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest {
if o == nil || IsNil(o.IpsecPolicy) {
- var ret int32
+ var ret IPSecPolicyRequest
return ret
}
return *o.IpsecPolicy
@@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, 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 int32 and assigns it to the IpsecPolicy field.
-func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v int32) {
+// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field.
+func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) {
o.IpsecPolicy = &v
}
diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go
index 20dff9f257..b79dc65d84 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go
index bdc5ebb957..97f19a1e79 100644
--- a/model_patched_writable_journal_entry_request.go
+++ b/model_patched_writable_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go
index 20adbc5ed5..0cbb2327b3 100644
--- a/model_patched_writable_l2_vpn_request.go
+++ b/model_patched_writable_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -27,7 +27,7 @@ type PatchedWritableL2VPNRequest struct {
ExportTargets []int32 `json:"export_targets,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -320,9 +320,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() int32 {
+func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -331,7 +331,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -347,8 +347,8 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableL2VPNRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go
index e0a8911680..338f115dd0 100644
--- a/model_patched_writable_location_request.go
+++ b/model_patched_writable_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,12 +19,14 @@ var _ MappedNullable = &PatchedWritableLocationRequest{}
// PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support.
type PatchedWritableLocationRequest struct {
- Name *string `json:"name,omitempty"`
- Slug *string `json:"slug,omitempty"`
- Site *int32 `json:"site,omitempty"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
+ // 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"`
@@ -115,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableLocationRequest) GetSite() int32 {
+func (o *PatchedWritableLocationRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site
@@ -125,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -141,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given int32 and assigns it to the Site field.
-func (o *PatchedWritableLocationRequest) SetSite(v int32) {
+// SetSite gets a reference to the given SiteRequest and assigns it to the Site field.
+func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) {
o.Site = &v
}
@@ -190,9 +192,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue {
+func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret LocationStatusValue
+ var ret PatchedWritableLocationRequestStatus
return ret
}
return *o.Status
@@ -200,7 +202,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue {
// 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() (*LocationStatusValue, bool) {
+func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -216,15 +218,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
-func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) {
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() int32 {
+func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -233,7 +235,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -249,8 +251,8 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableLocationRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -264,6 +266,38 @@ func (o *PatchedWritableLocationRequest) UnsetTenant() {
o.Tenant.Unset()
}
+// GetFacility returns the Facility field value if set, zero value otherwise.
+func (o *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) 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 *PatchedWritableLocationRequest) SetFacility(v string) {
+ o.Facility = &v
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PatchedWritableLocationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -388,6 +422,9 @@ func (o PatchedWritableLocationRequest) ToMap() (map[string]interface{}, error)
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
}
@@ -425,6 +462,7 @@ func (o *PatchedWritableLocationRequest) UnmarshalJSON(data []byte) (err error)
delete(additionalProperties, "parent")
delete(additionalProperties, "status")
delete(additionalProperties, "tenant")
+ delete(additionalProperties, "facility")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
diff --git a/model_patched_writable_location_request_status.go b/model_patched_writable_location_request_status.go
new file mode 100644
index 0000000000..f311375491
--- /dev/null
+++ b/model_patched_writable_location_request_status.go
@@ -0,0 +1,116 @@
+/*
+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 95e850a76d..5d7316da71 100644
--- a/model_patched_writable_module_request.go
+++ b/model_patched_writable_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableModuleRequest{}
// PatchedWritableModuleRequest Adds support for custom fields and tags.
type PatchedWritableModuleRequest struct {
- Device *int32 `json:"device,omitempty"`
- ModuleBay *int32 `json:"module_bay,omitempty"`
- ModuleType *int32 `json:"module_type,omitempty"`
- Status *ModuleStatusValue `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ 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"`
// A unique tag used to identify this device
AssetTag NullableString `json:"asset_tag,omitempty"`
Description *string `json:"description,omitempty"`
@@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableModuleRequest) GetDevice() int32 {
+func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, 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 int32 and assigns it to the Device field.
-func (o *PatchedWritableModuleRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType
@@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, 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 int32 and assigns it to the ModuleType field.
-func (o *PatchedWritableModuleRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue {
+func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
+ var ret PatchedWritableModuleRequestStatus
return ret
}
return *o.Status
@@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue {
// 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() (*ModuleStatusValue, bool) {
+func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, 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 ModuleStatusValue and assigns it to the Status field.
-func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) {
o.Status = &v
}
diff --git a/model_patched_writable_module_request_status.go b/model_patched_writable_module_request_status.go
new file mode 100644
index 0000000000..989d8739a3
--- /dev/null
+++ b/model_patched_writable_module_request_status.go
@@ -0,0 +1,118 @@
+/*
+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 692493b8a5..284d2cda9a 100644
--- a/model_patched_writable_module_type_request.go
+++ b/model_patched_writable_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{}
// PatchedWritableModuleTypeRequest Adds support for custom fields and tags.
type PatchedWritableModuleTypeRequest struct {
- Manufacturer *int32 `json:"manufacturer,omitempty"`
- Model *string `json:"model,omitempty"`
+ Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"`
+ Model *string `json:"model,omitempty"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `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"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -52,9 +52,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
-func (o *PatchedWritableModuleTypeRequest) GetManufacturer() int32 {
+func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil || IsNil(o.Manufacturer) {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
return *o.Manufacturer
@@ -62,7 +62,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil || IsNil(o.Manufacturer) {
return nil, false
}
@@ -78,8 +78,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool {
return false
}
-// SetManufacturer gets a reference to the given int32 and assigns it to the Manufacturer field.
-func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v int32) {
+// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field.
+func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer = &v
}
@@ -191,9 +191,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -201,7 +201,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitV
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -217,8 +217,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go
index b8d6adb956..cd730a4d06 100644
--- a/model_patched_writable_power_feed_request.go
+++ b/model_patched_writable_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{}
// PatchedWritablePowerFeedRequest Adds support for custom fields and tags.
type PatchedWritablePowerFeedRequest struct {
- PowerPanel *int32 `json:"power_panel,omitempty"`
- Rack NullableInt32 `json:"rack,omitempty"`
+ 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"`
@@ -33,7 +33,7 @@ type PatchedWritablePowerFeedRequest struct {
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Description *string `json:"description,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR
}
// GetPowerPanel returns the PowerPanel field value if set, zero value otherwise.
-func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() int32 {
+func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest {
if o == nil || IsNil(o.PowerPanel) {
- var ret int32
+ var ret PowerPanelRequest
return ret
}
return *o.PowerPanel
@@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, 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 int32 and assigns it to the PowerPanel field.
-func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v int32) {
+// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field.
+func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) {
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() int32 {
+func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret int32
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -119,8 +119,8 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableInt32 and assigns it to the Rack field.
-func (o *PatchedWritablePowerFeedRequest) SetRack(v int32) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -455,9 +455,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() int32 {
+func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -466,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() int32 {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*int32, bool) {
+func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -482,8 +482,8 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritablePowerFeedRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go
index 64a2dfb2ae..9a576dfa2f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go
index adb000a989..e83c0f2fa7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go
index d3e5161100..e8b5b27a3e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go
index 1578b0444b..6951215c40 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go
index b41c2127e4..4a3f01b5d4 100644
--- a/model_patched_writable_power_outlet_request.go
+++ b/model_patched_writable_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{}
// PatchedWritablePowerOutletRequest Adds support for custom fields and tags.
type PatchedWritablePowerOutletRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
+ PowerPort NullablePowerPortRequest `json:"power_port,omitempty"`
FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
@@ -55,9 +55,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritablePowerOutletRequest) GetDevice() int32 {
+func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -65,7 +65,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
@@ -81,15 +81,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given int32 and assigns it to the Device field.
-func (o *PatchedWritablePowerOutletRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -98,7 +98,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -114,8 +114,8 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritablePowerOutletRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -226,9 +226,9 @@ func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutlet
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletRequest) GetPowerPort() int32 {
+func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret int32
+ var ret PowerPortRequest
return ret
}
return *o.PowerPort.Get()
@@ -237,7 +237,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) {
if o == nil {
return nil, false
}
@@ -253,8 +253,8 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableInt32 and assigns it to the PowerPort field.
-func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v int32) {
+// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field.
+func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go
index 5fe6d1cea6..bb994c1906 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go
index 855c9bc293..b71ce89bf3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ 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 * `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-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 PatchedWritablePowerOutletRequestType string
// List of PatchedWritablePowerOutletRequest_type
@@ -103,6 +103,9 @@ const (
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"
@@ -201,6 +204,9 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo
"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",
diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go
index 0d823f8e54..665ffab4ec 100644
--- a/model_patched_writable_power_outlet_template_request.go
+++ b/model_patched_writable_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,14 +19,14 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 NullableInt32 `json:"power_port,omitempty"`
+ PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"`
FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `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() int32 {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() int32 {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -234,9 +234,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePow
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() int32 {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret int32
+ var ret PowerPortTemplateRequest
return ret
}
return *o.PowerPort.Get()
@@ -245,7 +245,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -261,8 +261,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableInt32 and assigns it to the PowerPort field.
-func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v int32) {
+// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field.
+func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go
index 64b9f8017e..1ca2917115 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ 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 * `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-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 PatchedWritablePowerOutletTemplateRequestType string
// List of PatchedWritablePowerOutletTemplateRequest_type
@@ -103,6 +103,9 @@ const (
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"
@@ -201,6 +204,9 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr
"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",
diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go
index aced7f8ebd..1df1cacd17 100644
--- a/model_patched_writable_power_port_request.go
+++ b/model_patched_writable_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{}
// PatchedWritablePowerPortRequest Adds support for custom fields and tags.
type PatchedWritablePowerPortRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"`
@@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritablePowerPortRequest) GetDevice() int32 {
+func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, 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 int32 and assigns it to the Device field.
-func (o *PatchedWritablePowerPortRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -116,8 +116,8 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritablePowerPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go
index 8034bce84c..fd8a265b04 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ 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 * `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-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
@@ -111,6 +111,9 @@ const (
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"
@@ -216,6 +219,9 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe
"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",
diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go
index 023fba9555..6598158be9 100644
--- a/model_patched_writable_power_port_template_request.go
+++ b/model_patched_writable_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -97,9 +97,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() int32 {
+func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -108,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -124,8 +124,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go
index 9a428a71b0..554ee3f097 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ 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 * `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-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
@@ -111,6 +111,9 @@ const (
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"
@@ -216,6 +219,9 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit
"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",
diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go
index 7e293a58cf..4f5dc38b73 100644
--- a/model_patched_writable_prefix_request.go
+++ b/model_patched_writable_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,12 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{}
// PatchedWritablePrefixRequest Adds support for custom fields and tags.
type PatchedWritablePrefixRequest struct {
Prefix *string `json:"prefix,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
+ Site NullableSiteRequest `json:"site,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
+ Vlan NullableVLANRequest `json:"vlan,omitempty"`
Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
- // The primary function of this prefix
- Role NullableInt32 `json:"role,omitempty"`
+ Role NullableRoleRequest `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
@@ -90,9 +89,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetSite() int32 {
+func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -101,7 +100,7 @@ func (o *PatchedWritablePrefixRequest) GetSite() int32 {
// 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 *PatchedWritablePrefixRequest) GetSiteOk() (*int32, bool) {
+func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -117,8 +116,8 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *PatchedWritablePrefixRequest) SetSite(v int32) {
+// 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)
}
@@ -133,9 +132,9 @@ func (o *PatchedWritablePrefixRequest) UnsetSite() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetVrf() int32 {
+func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -144,7 +143,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() int32 {
// 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) GetVrfOk() (*int32, bool) {
+func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -160,8 +159,8 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *PatchedWritablePrefixRequest) SetVrf(v int32) {
+// 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)
}
@@ -176,9 +175,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritablePrefixRequest) GetTenant() int32 {
+func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -187,7 +186,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -203,8 +202,8 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritablePrefixRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -219,9 +218,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() int32 {
+func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -230,7 +229,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -246,8 +245,8 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableInt32 and assigns it to the Vlan field.
-func (o *PatchedWritablePrefixRequest) SetVlan(v int32) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -294,9 +293,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() int32 {
+func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -305,7 +304,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -321,8 +320,8 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritablePrefixRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go
index 389a244f15..ecbeb236f0 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go
index 1d676e70f9..2b21e78d46 100644
--- a/model_patched_writable_rack_request.go
+++ b/model_patched_writable_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,12 @@ var _ MappedNullable = &PatchedWritableRackRequest{}
type PatchedWritableRackRequest struct {
Name *string `json:"name,omitempty"`
FacilityId NullableString `json:"facility_id,omitempty"`
- Site *int32 `json:"site,omitempty"`
- Location NullableInt32 `json:"location,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Site *SiteRequest `json:"site,omitempty"`
+ Location NullableLocationRequest `json:"location,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- // Functional role
- Role NullableInt32 `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Role NullableRackRoleRequest `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"`
@@ -38,8 +37,8 @@ type PatchedWritableRackRequest struct {
StartingUnit *int32 `json:"starting_unit,omitempty"`
Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Units are numbered top-to-bottom
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
@@ -151,9 +150,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() {
}
// GetSite returns the Site field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetSite() int32 {
+func (o *PatchedWritableRackRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site
@@ -161,7 +160,7 @@ func (o *PatchedWritableRackRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
@@ -177,15 +176,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given int32 and assigns it to the Site field.
-func (o *PatchedWritableRackRequest) SetSite(v int32) {
+// SetSite gets a reference to the given SiteRequest and assigns it to the Site field.
+func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) {
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() int32 {
+func (o *PatchedWritableRackRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret int32
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -194,7 +193,7 @@ func (o *PatchedWritableRackRequest) GetLocation() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -210,8 +209,8 @@ func (o *PatchedWritableRackRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *PatchedWritableRackRequest) SetLocation(v int32) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
@@ -226,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() int32 {
+func (o *PatchedWritableRackRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -237,7 +236,7 @@ func (o *PatchedWritableRackRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -253,8 +252,8 @@ func (o *PatchedWritableRackRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableRackRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -301,9 +300,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() int32 {
+func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RackRoleRequest
return ret
}
return *o.Role.Get()
@@ -312,7 +311,7 @@ func (o *PatchedWritableRackRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -328,8 +327,8 @@ func (o *PatchedWritableRackRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableRackRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) {
o.Role.Set(&v)
}
@@ -633,9 +632,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -643,7 +642,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -659,8 +658,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go
index bc555350e2..21a86adeda 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go
index 4774868cde..9dc9df3293 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_rack_request_type.go b/model_patched_writable_rack_request_type.go
index eb843e00fd..2e9301b3c3 100644
--- a/model_patched_writable_rack_request_type.go
+++ b/model_patched_writable_rack_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go
index c9caea3718..19908dc01e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go
index 48f9813467..881056212e 100644
--- a/model_patched_writable_rear_port_request.go
+++ b/model_patched_writable_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{}
// PatchedWritableRearPortRequest Adds support for custom fields and tags.
type PatchedWritableRearPortRequest struct {
- Device *int32 `json:"device,omitempty"`
- Module NullableInt32 `json:"module,omitempty"`
- Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name *string `json:"name,omitempty"`
// Physical label
Label *string `json:"label,omitempty"`
Type *FrontPortTypeValue `json:"type,omitempty"`
@@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq
}
// GetDevice returns the Device field value if set, zero value otherwise.
-func (o *PatchedWritableRearPortRequest) GetDevice() int32 {
+func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device
@@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, 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 int32 and assigns it to the Device field.
-func (o *PatchedWritableRearPortRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -115,8 +115,8 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *PatchedWritableRearPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go
index c4d6dabdb3..5280e4ec8d 100644
--- a/model_patched_writable_rear_port_template_request.go
+++ b/model_patched_writable_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,8 +19,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() int32 {
+func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go
index 3049bfcaa0..f2deb297b8 100644
--- a/model_patched_writable_region_request.go
+++ b/model_patched_writable_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go
index 677e061b6c..9f1abb8c1b 100644
--- a/model_patched_writable_service_request.go
+++ b/model_patched_writable_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,17 +19,16 @@ var _ MappedNullable = &PatchedWritableServiceRequest{}
// PatchedWritableServiceRequest Adds support for custom fields and tags.
type PatchedWritableServiceRequest struct {
- Device NullableInt32 `json:"device,omitempty"`
- VirtualMachine NullableInt32 `json:"virtual_machine,omitempty"`
- Name *string `json:"name,omitempty"`
- Ports []int32 `json:"ports,omitempty"`
- Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
- // The specific IP addresses (if any) to which this service is bound
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -53,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() int32 {
+func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -64,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -80,8 +79,8 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *PatchedWritableServiceRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -96,9 +95,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() int32 {
+func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret int32
+ var ret VirtualMachineRequest
return ret
}
return *o.VirtualMachine.Get()
@@ -107,7 +106,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -123,8 +122,8 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given NullableInt32 and assigns it to the VirtualMachine field.
-func (o *PatchedWritableServiceRequest) SetVirtualMachine(v int32) {
+// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field.
+func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine.Set(&v)
}
@@ -170,68 +169,68 @@ func (o *PatchedWritableServiceRequest) SetName(v string) {
o.Name = &v
}
-// GetPorts returns the Ports field value if set, zero value otherwise.
-func (o *PatchedWritableServiceRequest) GetPorts() []int32 {
- if o == nil || IsNil(o.Ports) {
- var ret []int32
+// GetProtocol returns the Protocol field value if set, zero value otherwise.
+func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
+ if o == nil || IsNil(o.Protocol) {
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
- return o.Ports
+ return *o.Protocol
}
-// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise
+// 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 *PatchedWritableServiceRequest) GetPortsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Ports) {
+func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
+ if o == nil || IsNil(o.Protocol) {
return nil, false
}
- return o.Ports, true
+ return o.Protocol, true
}
-// HasPorts returns a boolean if a field has been set.
-func (o *PatchedWritableServiceRequest) HasPorts() bool {
- if o != nil && !IsNil(o.Ports) {
+// HasProtocol returns a boolean if a field has been set.
+func (o *PatchedWritableServiceRequest) HasProtocol() bool {
+ if o != nil && !IsNil(o.Protocol) {
return true
}
return false
}
-// SetPorts gets a reference to the given []int32 and assigns it to the Ports field.
-func (o *PatchedWritableServiceRequest) SetPorts(v []int32) {
- o.Ports = v
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
+ o.Protocol = &v
}
-// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
- if o == nil || IsNil(o.Protocol) {
- var ret PatchedWritableServiceRequestProtocol
+// GetPorts returns the Ports field value if set, zero value otherwise.
+func (o *PatchedWritableServiceRequest) GetPorts() []int32 {
+ if o == nil || IsNil(o.Ports) {
+ var ret []int32
return ret
}
- return *o.Protocol
+ return o.Ports
}
-// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
+// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
- if o == nil || IsNil(o.Protocol) {
+func (o *PatchedWritableServiceRequest) GetPortsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Ports) {
return nil, false
}
- return o.Protocol, true
+ return o.Ports, true
}
-// HasProtocol returns a boolean if a field has been set.
-func (o *PatchedWritableServiceRequest) HasProtocol() bool {
- if o != nil && !IsNil(o.Protocol) {
+// HasPorts returns a boolean if a field has been set.
+func (o *PatchedWritableServiceRequest) HasPorts() bool {
+ if o != nil && !IsNil(o.Ports) {
return true
}
return false
}
-// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
-func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
- o.Protocol = &v
+// SetPorts gets a reference to the given []int32 and assigns it to the Ports field.
+func (o *PatchedWritableServiceRequest) SetPorts(v []int32) {
+ o.Ports = v
}
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
@@ -413,12 +412,12 @@ func (o PatchedWritableServiceRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
- if !IsNil(o.Ports) {
- toSerialize["ports"] = o.Ports
- }
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ if !IsNil(o.Ports) {
+ toSerialize["ports"] = o.Ports
+ }
if !IsNil(o.Ipaddresses) {
toSerialize["ipaddresses"] = o.Ipaddresses
}
@@ -459,8 +458,8 @@ func (o *PatchedWritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "ipaddresses")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go
index 7fcd603a5a..4b7b5d491d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go
index 1417ea5313..182e8786dd 100644
--- a/model_patched_writable_service_template_request.go
+++ b/model_patched_writable_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableServiceTemplateRequest{}
// PatchedWritableServiceTemplateRequest Adds support for custom fields and tags.
type PatchedWritableServiceTemplateRequest struct {
Name *string `json:"name,omitempty"`
- Ports []int32 `json:"ports,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"`
@@ -80,68 +80,68 @@ func (o *PatchedWritableServiceTemplateRequest) SetName(v string) {
o.Name = &v
}
-// GetPorts returns the Ports field value if set, zero value otherwise.
-func (o *PatchedWritableServiceTemplateRequest) GetPorts() []int32 {
- if o == nil || IsNil(o.Ports) {
- var ret []int32
+// GetProtocol returns the Protocol field value if set, zero value otherwise.
+func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
+ if o == nil || IsNil(o.Protocol) {
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
- return o.Ports
+ return *o.Protocol
}
-// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise
+// 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 *PatchedWritableServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Ports) {
+func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
+ if o == nil || IsNil(o.Protocol) {
return nil, false
}
- return o.Ports, true
+ return o.Protocol, true
}
-// HasPorts returns a boolean if a field has been set.
-func (o *PatchedWritableServiceTemplateRequest) HasPorts() bool {
- if o != nil && !IsNil(o.Ports) {
+// HasProtocol returns a boolean if a field has been set.
+func (o *PatchedWritableServiceTemplateRequest) HasProtocol() bool {
+ if o != nil && !IsNil(o.Protocol) {
return true
}
return false
}
-// SetPorts gets a reference to the given []int32 and assigns it to the Ports field.
-func (o *PatchedWritableServiceTemplateRequest) SetPorts(v []int32) {
- o.Ports = v
+// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
+func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
+ o.Protocol = &v
}
-// GetProtocol returns the Protocol field value if set, zero value otherwise.
-func (o *PatchedWritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
- if o == nil || IsNil(o.Protocol) {
- var ret PatchedWritableServiceRequestProtocol
+// GetPorts returns the Ports field value if set, zero value otherwise.
+func (o *PatchedWritableServiceTemplateRequest) GetPorts() []int32 {
+ if o == nil || IsNil(o.Ports) {
+ var ret []int32
return ret
}
- return *o.Protocol
+ return o.Ports
}
-// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
+// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *PatchedWritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
- if o == nil || IsNil(o.Protocol) {
+func (o *PatchedWritableServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
+ if o == nil || IsNil(o.Ports) {
return nil, false
}
- return o.Protocol, true
+ return o.Ports, true
}
-// HasProtocol returns a boolean if a field has been set.
-func (o *PatchedWritableServiceTemplateRequest) HasProtocol() bool {
- if o != nil && !IsNil(o.Protocol) {
+// HasPorts returns a boolean if a field has been set.
+func (o *PatchedWritableServiceTemplateRequest) HasPorts() bool {
+ if o != nil && !IsNil(o.Ports) {
return true
}
return false
}
-// SetProtocol gets a reference to the given PatchedWritableServiceRequestProtocol and assigns it to the Protocol field.
-func (o *PatchedWritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
- o.Protocol = &v
+// SetPorts gets a reference to the given []int32 and assigns it to the Ports field.
+func (o *PatchedWritableServiceTemplateRequest) SetPorts(v []int32) {
+ o.Ports = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
@@ -285,12 +285,12 @@ func (o PatchedWritableServiceTemplateRequest) ToMap() (map[string]interface{},
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
- if !IsNil(o.Ports) {
- toSerialize["ports"] = o.Ports
- }
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ if !IsNil(o.Ports) {
+ toSerialize["ports"] = o.Ports
+ }
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -326,8 +326,8 @@ func (o *PatchedWritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go
index 210866ffe2..784b865675 100644
--- a/model_patched_writable_site_group_request.go
+++ b/model_patched_writable_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go
index bbfd04f2f6..35523daf2d 100644
--- a/model_patched_writable_site_request.go
+++ b/model_patched_writable_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,12 @@ 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 *LocationStatusValue `json:"status,omitempty"`
- Region NullableInt32 `json:"region,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
// Local facility ID or description
Facility *string `json:"facility,omitempty"`
TimeZone NullableString `json:"time_zone,omitempty"`
@@ -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() LocationStatusValue {
+func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret LocationStatusValue
+ var ret PatchedWritableLocationRequestStatus
return ret
}
return *o.Status
@@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue {
// 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() (*LocationStatusValue, bool) {
+func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, 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 LocationStatusValue and assigns it to the Status field.
-func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) {
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() int32 {
+func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest {
if o == nil || IsNil(o.Region.Get()) {
- var ret int32
+ var ret RegionRequest
return ret
}
return *o.Region.Get()
@@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) {
if o == nil {
return nil, false
}
@@ -188,8 +188,8 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool {
return false
}
-// SetRegion gets a reference to the given NullableInt32 and assigns it to the Region field.
-func (o *PatchedWritableSiteRequest) SetRegion(v int32) {
+// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field.
+func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) {
o.Region.Set(&v)
}
@@ -204,9 +204,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() int32 {
+func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret SiteGroupRequest
return ret
}
return *o.Group.Get()
@@ -215,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -231,8 +231,8 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableSiteRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field.
+func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) {
o.Group.Set(&v)
}
@@ -247,9 +247,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() int32 {
+func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -258,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -274,8 +274,8 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableSiteRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go
index b5057c4d94..86547508dd 100644
--- a/model_patched_writable_tenant_group_request.go
+++ b/model_patched_writable_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go
index c780e60552..cac6687a18 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{}
type PatchedWritableTunnelRequest struct {
Name *string `json:"name,omitempty"`
Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
+ Group NullableTunnelGroupRequest `json:"group,omitempty"`
Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"`
- IpsecProfile NullableInt32 `json:"ipsec_profile,omitempty"`
- Tenant NullableInt32 `json:"tenant,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"`
@@ -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() int32 {
+func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret TunnelGroupRequest
return ret
}
return *o.Group.Get()
@@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -144,8 +144,8 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableTunnelRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field.
+func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) {
o.Group.Set(&v)
}
@@ -192,9 +192,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() int32 {
+func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest {
if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret int32
+ var ret IPSecProfileRequest
return ret
}
return *o.IpsecProfile.Get()
@@ -203,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) {
if o == nil {
return nil, false
}
@@ -219,8 +219,8 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool {
return false
}
-// SetIpsecProfile gets a reference to the given NullableInt32 and assigns it to the IpsecProfile field.
-func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v int32) {
+// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field.
+func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) {
o.IpsecProfile.Set(&v)
}
@@ -235,9 +235,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() int32 {
+func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -246,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -262,8 +262,8 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableTunnelRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go
index b30b31aa82..54582c03d2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go
index b77f76cecd..b4b020162d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go
index 579741cacb..3619913905 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{}
// PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags.
type PatchedWritableTunnelTerminationRequest struct {
- Tunnel *int32 `json:"tunnel,omitempty"`
+ Tunnel *TunnelRequest `json:"tunnel,omitempty"`
Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
TerminationType *string `json:"termination_type,omitempty"`
TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableInt32 `json:"outside_ip,omitempty"`
+ OutsideIp NullableIPAddressRequest `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() int32 {
+func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest {
if o == nil || IsNil(o.Tunnel) {
- var ret int32
+ var ret TunnelRequest
return ret
}
return *o.Tunnel
@@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, 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 int32 and assigns it to the Tunnel field.
-func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v int32) {
+// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field.
+func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) {
o.Tunnel = &v
}
@@ -188,9 +188,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() int32 {
+func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.OutsideIp.Get()
@@ -199,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -215,8 +215,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableInt32 and assigns it to the OutsideIp field.
-func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v int32) {
+// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field.
+func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) {
o.OutsideIp.Set(&v)
}
diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go
index fb8aaabf72..8bc7b5eeab 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go
index 2a783dd646..f160befac7 100644
--- a/model_patched_writable_virtual_chassis_request.go
+++ b/model_patched_writable_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go
index fdabb7530d..34ba5129c8 100644
--- a/model_patched_writable_virtual_device_context_request.go
+++ b/model_patched_writable_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,13 +19,12 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{}
// PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags.
type PatchedWritableVirtualDeviceContextRequest struct {
- Name *string `json:"name,omitempty"`
- Device NullableInt32 `json:"device,omitempty"`
- // Numeric identifier unique to the parent device
+ Name *string `json:"name,omitempty"`
+ Device *DeviceRequest `json:"device,omitempty"`
Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,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"`
@@ -85,47 +84,36 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) {
o.Name = &v
}
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() int32 {
- if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+// GetDevice returns the Device field value if set, zero value otherwise.
+func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest {
+ if o == nil || IsNil(o.Device) {
+ var ret DeviceRequest
return ret
}
- return *o.Device.Get()
+ return *o.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 *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*int32, bool) {
- if o == nil {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
+ if o == nil || IsNil(o.Device) {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
+ return o.Device, true
}
// HasDevice returns a boolean if a field has been set.
func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
+ if o != nil && !IsNil(o.Device) {
return true
}
return false
}
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v int32) {
- o.Device.Set(&v)
-}
-
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *PatchedWritableVirtualDeviceContextRequest) SetDeviceNil() {
- o.Device.Set(nil)
-}
-
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *PatchedWritableVirtualDeviceContextRequest) UnsetDevice() {
- o.Device.Unset()
+// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) {
+ o.Device = &v
}
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -172,9 +160,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() int32 {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -183,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -199,8 +187,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -215,9 +203,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() int32 {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -226,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -242,8 +230,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -258,9 +246,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() int32 {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -269,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -285,8 +273,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -473,8 +461,8 @@ func (o PatchedWritableVirtualDeviceContextRequest) ToMap() (map[string]interfac
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
+ if !IsNil(o.Device) {
+ toSerialize["device"] = o.Device
}
if o.Identifier.IsSet() {
toSerialize["identifier"] = o.Identifier.Get()
diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go
index 03175cf1e3..9bed2f9137 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
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 09388d2cd4..e9006bf847 100644
--- a/model_patched_writable_virtual_machine_with_config_context_request.go
+++ b/model_patched_writable_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,22 +19,22 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{}
// PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableVirtualMachineWithConfigContextRequest struct {
- Name *string `json:"name,omitempty"`
- Status *ModuleStatusValue `json:"status,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- Device NullableInt32 `json:"device,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
+ 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"`
// 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"`
@@ -94,9 +94,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
+ var ret PatchedWritableModuleRequestStatus
return ret
}
return *o.Status
@@ -104,7 +104,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Modu
// 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() (*ModuleStatusValue, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -120,15 +120,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool
return false
}
-// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) {
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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -137,7 +137,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() int32
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -153,8 +153,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v int32) {
+// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) {
o.Site.Set(&v)
}
@@ -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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret int32
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -180,7 +180,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() int
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo
return false
}
-// SetCluster gets a reference to the given NullableInt32 and assigns it to the Cluster field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v int32) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -212,9 +212,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -223,7 +223,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() int3
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -239,8 +239,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool
return false
}
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -255,9 +255,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret DeviceRoleRequest
return ret
}
return *o.Role.Get()
@@ -266,7 +266,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() int32
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -282,8 +282,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
o.Role.Set(&v)
}
@@ -298,9 +298,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -309,7 +309,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() int3
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -325,8 +325,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -341,9 +341,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -352,7 +352,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() in
// 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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -368,8 +368,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo
return false
}
-// SetPlatform gets a reference to the given NullableInt32 and assigns it to the Platform field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -384,9 +384,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -395,7 +395,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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -411,8 +411,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4()
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -427,9 +427,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -438,7 +438,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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -454,8 +454,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6()
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -663,9 +663,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() int32 {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -674,7 +674,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() (*int32, bool) {
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -690,8 +690,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go
index ea0b100463..f341c24258 100644
--- a/model_patched_writable_vlan_request.go
+++ b/model_patched_writable_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,21 +19,18 @@ var _ MappedNullable = &PatchedWritableVLANRequest{}
// PatchedWritableVLANRequest Adds support for custom fields and tags.
type PatchedWritableVLANRequest struct {
- // The specific site to which this VLAN is assigned (if any)
- Site NullableInt32 `json:"site,omitempty"`
- // VLAN group (optional)
- Group NullableInt32 `json:"group,omitempty"`
+ Site NullableSiteRequest `json:"site,omitempty"`
+ Group NullableVLANGroupRequest `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid *int32 `json:"vid,omitempty"`
- Name *string `json:"name,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
- // The primary function of this VLAN
- Role NullableInt32 `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -57,9 +54,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() int32 {
+func (o *PatchedWritableVLANRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -68,7 +65,7 @@ func (o *PatchedWritableVLANRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -84,8 +81,8 @@ func (o *PatchedWritableVLANRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *PatchedWritableVLANRequest) SetSite(v int32) {
+// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field.
+func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) {
o.Site.Set(&v)
}
@@ -100,9 +97,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() int32 {
+func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret VLANGroupRequest
return ret
}
return *o.Group.Get()
@@ -111,7 +108,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -127,8 +124,8 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableVLANRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field.
+func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) {
o.Group.Set(&v)
}
@@ -207,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() int32 {
+func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -218,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -234,8 +231,8 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableVLANRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -282,9 +279,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() int32 {
+func (o *PatchedWritableVLANRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -293,7 +290,7 @@ func (o *PatchedWritableVLANRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -309,8 +306,8 @@ func (o *PatchedWritableVLANRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *PatchedWritableVLANRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go
index ac77f7c359..74ada78e4b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go
index deccf88707..fd72c0f661 100644
--- a/model_patched_writable_vm_interface_request.go
+++ b/model_patched_writable_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{}
// PatchedWritableVMInterfaceRequest Adds support for custom fields and tags.
type PatchedWritableVMInterfaceRequest struct {
- VirtualMachine *int32 `json:"virtual_machine,omitempty"`
+ VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"`
Name *string `json:"name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Parent NullableInt32 `json:"parent,omitempty"`
@@ -28,9 +28,9 @@ type PatchedWritableVMInterfaceRequest struct {
MacAddress NullableString `json:"mac_address,omitempty"`
Description *string `json:"description,omitempty"`
Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
+ UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"`
TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -56,9 +56,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf
}
// GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise.
-func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() int32 {
+func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil || IsNil(o.VirtualMachine) {
- var ret int32
+ var ret VirtualMachineRequest
return ret
}
return *o.VirtualMachine
@@ -66,7 +66,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil || IsNil(o.VirtualMachine) {
return nil, false
}
@@ -82,8 +82,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given int32 and assigns it to the VirtualMachine field.
-func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v int32) {
+// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field.
+func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine = &v
}
@@ -388,9 +388,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRe
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() int32 {
+func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -399,7 +399,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -415,8 +415,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableInt32 and assigns it to the UntaggedVlan field.
-func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v int32) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -463,9 +463,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableVMInterfaceRequest) GetVrf() int32 {
+func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -474,7 +474,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -490,8 +490,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *PatchedWritableVMInterfaceRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go
index 36cc017142..1ffc71e4c3 100644
--- a/model_patched_writable_wireless_lan_group_request.go
+++ b/model_patched_writable_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go
index cd328916b6..9619126116 100644
--- a/model_patched_writable_wireless_lan_request.go
+++ b/model_patched_writable_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{}
type PatchedWritableWirelessLANRequest struct {
Ssid *string `json:"ssid,omitempty"`
Description *string `json:"description,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
+ Group NullableWirelessLANGroupRequest `json:"group,omitempty"`
Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
- Tenant NullableInt32 `json:"tenant,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"`
@@ -118,9 +118,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() int32 {
+func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret WirelessLANGroupRequest
return ret
}
return *o.Group.Get()
@@ -129,7 +129,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -145,8 +145,8 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *PatchedWritableWirelessLANRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field.
+func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) {
o.Group.Set(&v)
}
@@ -193,9 +193,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() int32 {
+func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -204,7 +204,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -220,8 +220,8 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableInt32 and assigns it to the Vlan field.
-func (o *PatchedWritableWirelessLANRequest) SetVlan(v int32) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -236,9 +236,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PatchedWritableWirelessLANRequest) GetTenant() int32 {
+func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -247,7 +247,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -263,8 +263,8 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableWirelessLANRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go
index ce8f5e68bb..2960171ff5 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go
index 4122ee4a80..53a6fee89d 100644
--- a/model_patched_writable_wireless_link_request.go
+++ b/model_patched_writable_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{}
// PatchedWritableWirelessLinkRequest Adds support for custom fields and tags.
type PatchedWritableWirelessLinkRequest struct {
- InterfaceA *int32 `json:"interface_a,omitempty"`
- InterfaceB *int32 `json:"interface_b,omitempty"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `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 *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"`
AdditionalProperties map[string]interface{}
}
@@ -54,9 +54,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles
}
// GetInterfaceA returns the InterfaceA field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() int32 {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest {
if o == nil || IsNil(o.InterfaceA) {
- var ret int32
+ var ret InterfaceRequest
return ret
}
return *o.InterfaceA
@@ -64,7 +64,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) {
if o == nil || IsNil(o.InterfaceA) {
return nil, false
}
@@ -80,15 +80,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool {
return false
}
-// SetInterfaceA gets a reference to the given int32 and assigns it to the InterfaceA field.
-func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v int32) {
+// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field.
+func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) {
o.InterfaceA = &v
}
// GetInterfaceB returns the InterfaceB field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() int32 {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest {
if o == nil || IsNil(o.InterfaceB) {
- var ret int32
+ var ret InterfaceRequest
return ret
}
return *o.InterfaceB
@@ -96,7 +96,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) {
if o == nil || IsNil(o.InterfaceB) {
return nil, false
}
@@ -112,8 +112,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool {
return false
}
-// SetInterfaceB gets a reference to the given int32 and assigns it to the InterfaceB field.
-func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v int32) {
+// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field.
+func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) {
o.InterfaceB = &v
}
@@ -150,9 +150,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue {
+func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Status
@@ -160,7 +160,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue {
// 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() (*CableStatusValue, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -176,15 +176,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
-func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field.
+func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) {
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() int32 {
+func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -193,7 +193,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -209,8 +209,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *PatchedWritableWirelessLinkRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_platform.go b/model_platform.go
index 9b493ddda1..5ab96ce266 100644
--- a/model_platform.go
+++ b/model_platform.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Platform type satisfies the MappedNullable interface at compile time
@@ -21,20 +20,14 @@ var _ MappedNullable = &Platform{}
// Platform Adds support for custom fields and tags.
type Platform struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"`
- ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- DeviceCount int32 `json:"device_count"`
- VirtualmachineCount int32 `json:"virtualmachine_count"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -44,15 +37,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, created NullableTime, lastUpdated NullableTime, deviceCount int32, virtualmachineCount int32) *Platform {
+func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *Platform {
this := Platform{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.DeviceCount = deviceCount
this.VirtualmachineCount = virtualmachineCount
return &this
@@ -186,92 +177,6 @@ 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() NestedManufacturer {
- if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturer
- 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() (*NestedManufacturer, 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 NullableNestedManufacturer and assigns it to the Manufacturer field.
-func (o *Platform) SetManufacturer(v NestedManufacturer) {
- o.Manufacturer.Set(&v)
-}
-
-// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *Platform) SetManufacturerNil() {
- o.Manufacturer.Set(nil)
-}
-
-// 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() NestedConfigTemplate {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplate
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Platform) GetConfigTemplateOk() (*NestedConfigTemplate, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *Platform) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field.
-func (o *Platform) SetConfigTemplate(v NestedConfigTemplate) {
- o.ConfigTemplate.Set(&v)
-}
-
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *Platform) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// 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) {
@@ -304,126 +209,10 @@ func (o *Platform) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Platform) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Platform) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Platform) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Platform) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Platform) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Platform) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetDeviceCount returns the DeviceCount field value
-func (o *Platform) GetDeviceCount() int32 {
+func (o *Platform) GetDeviceCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -432,7 +221,7 @@ func (o *Platform) GetDeviceCount() int32 {
// GetDeviceCountOk returns a tuple with the DeviceCount field value
// and a boolean to check if the value has been set.
-func (o *Platform) GetDeviceCountOk() (*int32, bool) {
+func (o *Platform) GetDeviceCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -440,14 +229,14 @@ func (o *Platform) GetDeviceCountOk() (*int32, bool) {
}
// SetDeviceCount sets field value
-func (o *Platform) SetDeviceCount(v int32) {
+func (o *Platform) SetDeviceCount(v int64) {
o.DeviceCount = v
}
// GetVirtualmachineCount returns the VirtualmachineCount field value
-func (o *Platform) GetVirtualmachineCount() int32 {
+func (o *Platform) GetVirtualmachineCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -456,7 +245,7 @@ func (o *Platform) GetVirtualmachineCount() int32 {
// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value
// and a boolean to check if the value has been set.
-func (o *Platform) GetVirtualmachineCountOk() (*int32, bool) {
+func (o *Platform) GetVirtualmachineCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -464,7 +253,7 @@ func (o *Platform) GetVirtualmachineCountOk() (*int32, bool) {
}
// SetVirtualmachineCount sets field value
-func (o *Platform) SetVirtualmachineCount(v int32) {
+func (o *Platform) SetVirtualmachineCount(v int64) {
o.VirtualmachineCount = v
}
@@ -483,23 +272,9 @@ func (o Platform) ToMap() (map[string]interface{}, error) {
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
}
- 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()
toSerialize["device_count"] = o.DeviceCount
toSerialize["virtualmachine_count"] = o.VirtualmachineCount
@@ -520,8 +295,6 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"device_count",
"virtualmachine_count",
}
@@ -558,13 +331,7 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) {
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
diff --git a/model_platform_request.go b/model_platform_request.go
index b9d4b743d5..365ea0c950 100644
--- a/model_platform_request.go
+++ b/model_platform_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,9 @@ var _ MappedNullable = &PlatformRequest{}
// PlatformRequest Adds support for custom fields and tags.
type PlatformRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"`
- ConfigTemplate NullableNestedConfigTemplateRequest `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"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -99,92 +95,6 @@ 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() NestedManufacturerRequest {
- if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret NestedManufacturerRequest
- 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() (*NestedManufacturerRequest, 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 NullableNestedManufacturerRequest and assigns it to the Manufacturer field.
-func (o *PlatformRequest) SetManufacturer(v NestedManufacturerRequest) {
- o.Manufacturer.Set(&v)
-}
-
-// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *PlatformRequest) SetManufacturerNil() {
- o.Manufacturer.Set(nil)
-}
-
-// 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() NestedConfigTemplateRequest {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplateRequest
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PlatformRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *PlatformRequest) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *PlatformRequest) SetConfigTemplate(v NestedConfigTemplateRequest) {
- o.ConfigTemplate.Set(&v)
-}
-
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *PlatformRequest) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// 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) {
@@ -217,70 +127,6 @@ 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()
if err != nil {
@@ -293,21 +139,9 @@ 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
@@ -354,11 +188,7 @@ 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
}
diff --git a/model_power_feed.go b/model_power_feed.go
index c1aa1d5166..d946fcb849 100644
--- a/model_power_feed.go
+++ b/model_power_feed.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,32 +21,32 @@ var _ MappedNullable = &PowerFeed{}
// PowerFeed Adds support for custom fields and tags.
type PowerFeed struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- PowerPanel NestedPowerPanel `json:"power_panel"`
- Rack NullableNestedRack `json:"rack,omitempty"`
- Name string `json:"name"`
- Status *PowerFeedStatus `json:"status,omitempty"`
- Type *PowerFeedType `json:"type,omitempty"`
- Supply *PowerFeedSupply `json:"supply,omitempty"`
- Phase *PowerFeedPhase `json:"phase,omitempty"`
- Voltage *int32 `json:"voltage,omitempty"`
- Amperage *int32 `json:"amperage,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ PowerPanel 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"`
// Maximum permissible draw (percentage)
MaxUtilization *int32 `json:"max_utilization,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
ConnectedEndpoints []interface{} `json:"connected_endpoints"`
ConnectedEndpointsType string `json:"connected_endpoints_type"`
ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
Description *string `json:"description,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -62,7 +62,7 @@ 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 NestedPowerPanel, name string, cable NullableNestedCable, 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 PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed {
this := PowerFeed{}
this.Id = id
this.Url = url
@@ -163,9 +163,9 @@ func (o *PowerFeed) SetDisplay(v string) {
}
// GetPowerPanel returns the PowerPanel field value
-func (o *PowerFeed) GetPowerPanel() NestedPowerPanel {
+func (o *PowerFeed) GetPowerPanel() PowerPanel {
if o == nil {
- var ret NestedPowerPanel
+ var ret PowerPanel
return ret
}
@@ -174,7 +174,7 @@ func (o *PowerFeed) GetPowerPanel() NestedPowerPanel {
// GetPowerPanelOk returns a tuple with the PowerPanel field value
// and a boolean to check if the value has been set.
-func (o *PowerFeed) GetPowerPanelOk() (*NestedPowerPanel, bool) {
+func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) {
if o == nil {
return nil, false
}
@@ -182,14 +182,14 @@ func (o *PowerFeed) GetPowerPanelOk() (*NestedPowerPanel, bool) {
}
// SetPowerPanel sets field value
-func (o *PowerFeed) SetPowerPanel(v NestedPowerPanel) {
+func (o *PowerFeed) SetPowerPanel(v PowerPanel) {
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() NestedRack {
+func (o *PowerFeed) GetRack() Rack {
if o == nil || IsNil(o.Rack.Get()) {
- var ret NestedRack
+ var ret Rack
return ret
}
return *o.Rack.Get()
@@ -198,7 +198,7 @@ func (o *PowerFeed) GetRack() NestedRack {
// 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() (*NestedRack, bool) {
+func (o *PowerFeed) GetRackOk() (*Rack, bool) {
if o == nil {
return nil, false
}
@@ -214,8 +214,8 @@ func (o *PowerFeed) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableNestedRack and assigns it to the Rack field.
-func (o *PowerFeed) SetRack(v NestedRack) {
+// SetRack gets a reference to the given NullableRack and assigns it to the Rack field.
+func (o *PowerFeed) SetRack(v Rack) {
o.Rack.Set(&v)
}
@@ -510,10 +510,10 @@ func (o *PowerFeed) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *PowerFeed) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -523,7 +523,7 @@ func (o *PowerFeed) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *PowerFeed) GetCableOk() (*NestedCable, bool) {
+func (o *PowerFeed) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -531,7 +531,7 @@ func (o *PowerFeed) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *PowerFeed) SetCable(v NestedCable) {
+func (o *PowerFeed) SetCable(v Cable) {
o.Cable.Set(&v)
}
@@ -712,9 +712,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() NestedTenant {
+func (o *PowerFeed) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -723,7 +723,7 @@ func (o *PowerFeed) GetTenant() NestedTenant {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerFeed) GetTenantOk() (*NestedTenant, bool) {
+func (o *PowerFeed) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -739,8 +739,8 @@ func (o *PowerFeed) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *PowerFeed) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *PowerFeed) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go
index 284f0a5ee6..728d75ab99 100644
--- a/model_power_feed_phase.go
+++ b/model_power_feed_phase.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go
index 588aec4d05..1e4274876d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_request.go b/model_power_feed_request.go
index 6b4bd788f4..51865eb47c 100644
--- a/model_power_feed_request.go
+++ b/model_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedRequest{}
// PowerFeedRequest Adds support for custom fields and tags.
type PowerFeedRequest struct {
- PowerPanel NestedPowerPanelRequest `json:"power_panel"`
- Rack NullableNestedRackRequest `json:"rack,omitempty"`
+ PowerPanel PowerPanelRequest `json:"power_panel"`
+ Rack NullableRackRequest `json:"rack,omitempty"`
Name string `json:"name"`
Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
@@ -32,12 +32,12 @@ type PowerFeedRequest struct {
// 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 NullableNestedTenantRequest `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 NullableTenantRequest `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 NestedPowerPanelRequest, name string) *PowerFeedRequest {
+func NewPowerFeedRequest(powerPanel PowerPanelRequest, 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() NestedPowerPanelRequest {
+func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest {
if o == nil {
- var ret NestedPowerPanelRequest
+ var ret PowerPanelRequest
return ret
}
@@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() NestedPowerPanelRequest {
// GetPowerPanelOk returns a tuple with the PowerPanel field value
// and a boolean to check if the value has been set.
-func (o *PowerFeedRequest) GetPowerPanelOk() (*NestedPowerPanelRequest, bool) {
+func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) {
if o == nil {
return nil, false
}
@@ -82,14 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*NestedPowerPanelRequest, bool) {
}
// SetPowerPanel sets field value
-func (o *PowerFeedRequest) SetPowerPanel(v NestedPowerPanelRequest) {
+func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) {
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() NestedRackRequest {
+func (o *PowerFeedRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret NestedRackRequest
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -98,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() NestedRackRequest {
// 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() (*NestedRackRequest, bool) {
+func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -114,8 +114,8 @@ func (o *PowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableNestedRackRequest and assigns it to the Rack field.
-func (o *PowerFeedRequest) SetRack(v NestedRackRequest) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *PowerFeedRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -442,9 +442,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() NestedTenantRequest {
+func (o *PowerFeedRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -453,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() NestedTenantRequest {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerFeedRequest) GetTenantOk() (*NestedTenantRequest, bool) {
+func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -469,8 +469,8 @@ func (o *PowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *PowerFeedRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PowerFeedRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_power_feed_status.go b/model_power_feed_status.go
index 3566c4acec..e0b9ca5753 100644
--- a/model_power_feed_status.go
+++ b/model_power_feed_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go
index 13d48c7a35..25d308214d 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go
index 37e2abe84a..f7a5c92515 100644
--- a/model_power_feed_supply.go
+++ b/model_power_feed_supply.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go
index 336dc900df..07573618e4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_type.go b/model_power_feed_type.go
index 878f7561a3..0e839a1a27 100644
--- a/model_power_feed_type.go
+++ b/model_power_feed_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go
index dcb44039d0..e98943a9f2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet.go b/model_power_outlet.go
index 60da0b4f21..2072ed336b 100644
--- a/model_power_outlet.go
+++ b/model_power_outlet.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,23 +21,23 @@ var _ MappedNullable = &PowerOutlet{}
// PowerOutlet Adds support for custom fields and tags.
type PowerOutlet struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Module NullableModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type NullablePowerOutletType `json:"type,omitempty"`
- PowerPort NullableNestedPowerPort `json:"power_port,omitempty"`
+ PowerPort NullablePowerPort `json:"power_port,omitempty"`
FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
ConnectedEndpoints []interface{} `json:"connected_endpoints"`
@@ -57,7 +57,7 @@ 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 NestedDevice, name string, cable NullableNestedCable, 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 Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet {
this := PowerOutlet{}
this.Id = id
this.Url = url
@@ -158,9 +158,9 @@ func (o *PowerOutlet) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *PowerOutlet) GetDevice() NestedDevice {
+func (o *PowerOutlet) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -169,7 +169,7 @@ func (o *PowerOutlet) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerOutlet) GetDeviceOk() (*NestedDevice, bool) {
+func (o *PowerOutlet) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -177,14 +177,14 @@ func (o *PowerOutlet) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *PowerOutlet) SetDevice(v NestedDevice) {
+func (o *PowerOutlet) SetDevice(v Device) {
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() ComponentNestedModule {
+func (o *PowerOutlet) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -193,7 +193,7 @@ func (o *PowerOutlet) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *PowerOutlet) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -209,8 +209,8 @@ func (o *PowerOutlet) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *PowerOutlet) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *PowerOutlet) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -324,9 +324,9 @@ func (o *PowerOutlet) UnsetType() {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutlet) GetPowerPort() NestedPowerPort {
+func (o *PowerOutlet) GetPowerPort() PowerPort {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret NestedPowerPort
+ var ret PowerPort
return ret
}
return *o.PowerPort.Get()
@@ -335,7 +335,7 @@ func (o *PowerOutlet) GetPowerPort() NestedPowerPort {
// 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() (*NestedPowerPort, bool) {
+func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) {
if o == nil {
return nil, false
}
@@ -351,8 +351,8 @@ func (o *PowerOutlet) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableNestedPowerPort and assigns it to the PowerPort field.
-func (o *PowerOutlet) SetPowerPort(v NestedPowerPort) {
+// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field.
+func (o *PowerOutlet) SetPowerPort(v PowerPort) {
o.PowerPort.Set(&v)
}
@@ -474,10 +474,10 @@ func (o *PowerOutlet) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *PowerOutlet) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -487,7 +487,7 @@ func (o *PowerOutlet) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *PowerOutlet) GetCableOk() (*NestedCable, bool) {
+func (o *PowerOutlet) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -495,7 +495,7 @@ func (o *PowerOutlet) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *PowerOutlet) SetCable(v NestedCable) {
+func (o *PowerOutlet) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go
index 62fbf1afc7..95698360a8 100644
--- a/model_power_outlet_feed_leg.go
+++ b/model_power_outlet_feed_leg.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go
index 973eb34131..8a906036cb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go
index bb020c054f..bc3abd6e53 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go
index 9cc764c501..122e3eb78d 100644
--- a/model_power_outlet_request.go
+++ b/model_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PowerOutletRequest{}
// PowerOutletRequest Adds support for custom fields and tags.
type PowerOutletRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type NullablePowerOutletRequestType `json:"type,omitempty"`
- PowerPort NullableNestedPowerPortRequest `json:"power_port,omitempty"`
+ PowerPort NullablePowerPortRequest `json:"power_port,omitempty"`
FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
@@ -42,7 +42,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 NestedDeviceRequest, name string) *PowerOutletRequest {
+func NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest {
this := PowerOutletRequest{}
this.Device = device
this.Name = name
@@ -58,9 +58,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest {
}
// GetDevice returns the Device field value
-func (o *PowerOutletRequest) GetDevice() NestedDeviceRequest {
+func (o *PowerOutletRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -69,7 +69,7 @@ func (o *PowerOutletRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerOutletRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -77,14 +77,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *PowerOutletRequest) SetDevice(v NestedDeviceRequest) {
+func (o *PowerOutletRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
+func (o *PowerOutletRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -93,7 +93,7 @@ func (o *PowerOutletRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -109,8 +109,8 @@ func (o *PowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *PowerOutletRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *PowerOutletRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -224,9 +224,9 @@ func (o *PowerOutletRequest) UnsetType() {
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletRequest) GetPowerPort() NestedPowerPortRequest {
+func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret NestedPowerPortRequest
+ var ret PowerPortRequest
return ret
}
return *o.PowerPort.Get()
@@ -235,7 +235,7 @@ func (o *PowerOutletRequest) GetPowerPort() NestedPowerPortRequest {
// 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() (*NestedPowerPortRequest, bool) {
+func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) {
if o == nil {
return nil, false
}
@@ -251,8 +251,8 @@ func (o *PowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableNestedPowerPortRequest and assigns it to the PowerPort field.
-func (o *PowerOutletRequest) SetPowerPort(v NestedPowerPortRequest) {
+// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field.
+func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go
index ddce307201..7cb04c40cf 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go
index 25da9da560..ab5cb9272a 100644
--- a/model_power_outlet_request_type.go
+++ b/model_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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ import (
"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 * `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
+// 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
@@ -103,6 +103,9 @@ const (
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"
@@ -201,6 +204,9 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{
"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",
diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go
index b84e03032e..8d700a1161 100644
--- a/model_power_outlet_template.go
+++ b/model_power_outlet_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -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 NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ DeviceType NullableDeviceType `json:"device_type,omitempty"`
+ ModuleType NullableModuleType `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 NullableNestedPowerPortTemplate `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Label *string `json:"label,omitempty"`
+ Type NullablePowerOutletType `json:"type,omitempty"`
+ PowerPort 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"`
AdditionalProperties map[string]interface{}
}
@@ -137,9 +137,9 @@ func (o *PowerOutletTemplate) SetDisplay(v string) {
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PowerOutletTemplate) GetDeviceType() NestedDeviceType {
+func (o *PowerOutletTemplate) GetDeviceType() DeviceType {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
+ var ret DeviceType
return ret
}
return *o.DeviceType.Get()
@@ -148,7 +148,7 @@ func (o *PowerOutletTemplate) GetDeviceType() NestedDeviceType {
// 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() (*NestedDeviceType, bool) {
+func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) {
if o == nil {
return nil, false
}
@@ -164,8 +164,8 @@ func (o *PowerOutletTemplate) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *PowerOutletTemplate) SetDeviceType(v NestedDeviceType) {
+// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field.
+func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) {
o.DeviceType.Set(&v)
}
@@ -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() NestedModuleType {
+func (o *PowerOutletTemplate) GetModuleType() ModuleType {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
+ var ret ModuleType
return ret
}
return *o.ModuleType.Get()
@@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() NestedModuleType {
// 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() (*NestedModuleType, bool) {
+func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) {
if o == nil {
return nil, false
}
@@ -207,8 +207,8 @@ func (o *PowerOutletTemplate) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *PowerOutletTemplate) SetModuleType(v NestedModuleType) {
+// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field.
+func (o *PowerOutletTemplate) SetModuleType(v ModuleType) {
o.ModuleType.Set(&v)
}
@@ -322,9 +322,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() NestedPowerPortTemplate {
+func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret NestedPowerPortTemplate
+ var ret PowerPortTemplate
return ret
}
return *o.PowerPort.Get()
@@ -333,7 +333,7 @@ func (o *PowerOutletTemplate) GetPowerPort() NestedPowerPortTemplate {
// 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() (*NestedPowerPortTemplate, bool) {
+func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) {
if o == nil {
return nil, false
}
@@ -349,8 +349,8 @@ func (o *PowerOutletTemplate) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableNestedPowerPortTemplate and assigns it to the PowerPort field.
-func (o *PowerOutletTemplate) SetPowerPort(v NestedPowerPortTemplate) {
+// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field.
+func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) {
o.PowerPort.Set(&v)
}
diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go
index d2410a32c5..55567b581b 100644
--- a/model_power_outlet_template_request.go
+++ b/model_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 NullableNestedPowerPortTemplateRequest `json:"power_port,omitempty"`
- FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
- Description *string `json:"description,omitempty"`
+ 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"`
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() NestedDeviceTypeRequest {
+func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() NestedDeviceTypeRequest {
// 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() (*NestedDeviceTypeRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PowerOutletTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -97,9 +97,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() NestedModuleTypeRequest {
+func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -108,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() NestedModuleTypeRequest {
// 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() (*NestedModuleTypeRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -124,8 +124,8 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PowerOutletTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -239,9 +239,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() NestedPowerPortTemplateRequest {
+func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret NestedPowerPortTemplateRequest
+ var ret PowerPortTemplateRequest
return ret
}
return *o.PowerPort.Get()
@@ -250,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() NestedPowerPortTemplateReque
// 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() (*NestedPowerPortTemplateRequest, bool) {
+func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -266,8 +266,8 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableNestedPowerPortTemplateRequest and assigns it to the PowerPort field.
-func (o *PowerOutletTemplateRequest) SetPowerPort(v NestedPowerPortTemplateRequest) {
+// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field.
+func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go
index be160433bd..2f39149ab7 100644
--- a/model_power_outlet_type.go
+++ b/model_power_outlet_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go
index 9855aae61c..4b09dda97c 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -103,6 +103,9 @@ const (
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"
@@ -200,6 +203,9 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{
"USB Type A",
"USB Micro B",
"USB Type C",
+ "Molex Micro-Fit 1x2",
+ "Molex Micro-Fit 2x2",
+ "Molex Micro-Fit 2x4",
"DC Terminal",
"HDOT Cx",
"Saf-D-Grid",
diff --git a/model_power_panel.go b/model_power_panel.go
index 0372afbbb5..9548ab75a2 100644
--- a/model_power_panel.go
+++ b/model_power_panel.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the PowerPanel type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,12 @@ var _ MappedNullable = &PowerPanel{}
// PowerPanel Adds support for custom fields and tags.
type PowerPanel struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Site NestedSite `json:"site"`
- Location NullableNestedLocation `json:"location,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- PowerfeedCount int32 `json:"powerfeed_count"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ PowerfeedCount int64 `json:"powerfeed_count"`
AdditionalProperties map[string]interface{}
}
@@ -43,16 +35,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 NestedSite, name string, powerfeedCount int32, created NullableTime, lastUpdated NullableTime) *PowerPanel {
+func NewPowerPanel(id int32, url string, display string, 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
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -136,73 +125,6 @@ func (o *PowerPanel) SetDisplay(v string) {
o.Display = v
}
-// GetSite returns the Site field value
-func (o *PowerPanel) GetSite() NestedSite {
- if o == nil {
- var ret NestedSite
- 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() (*NestedSite, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *PowerPanel) SetSite(v NestedSite) {
- 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() NestedLocation {
- if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocation
- 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() (*NestedLocation, 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 NullableNestedLocation and assigns it to the Location field.
-func (o *PowerPanel) SetLocation(v NestedLocation) {
- o.Location.Set(&v)
-}
-
-// SetLocationNil sets the value for Location to be an explicit nil
-func (o *PowerPanel) SetLocationNil() {
- o.Location.Set(nil)
-}
-
-// 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 {
@@ -259,106 +181,10 @@ 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() int32 {
+func (o *PowerPanel) GetPowerfeedCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -367,7 +193,7 @@ func (o *PowerPanel) GetPowerfeedCount() int32 {
// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value
// and a boolean to check if the value has been set.
-func (o *PowerPanel) GetPowerfeedCountOk() (*int32, bool) {
+func (o *PowerPanel) GetPowerfeedCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -375,62 +201,10 @@ func (o *PowerPanel) GetPowerfeedCountOk() (*int32, bool) {
}
// SetPowerfeedCount sets field value
-func (o *PowerPanel) SetPowerfeedCount(v int32) {
+func (o *PowerPanel) SetPowerfeedCount(v int64) {
o.PowerfeedCount = v
}
-// GetCreated returns the Created field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *PowerPanel) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPanel) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *PowerPanel) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *PowerPanel) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *PowerPanel) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o PowerPanel) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -444,26 +218,11 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["site"] = o.Site
- if o.Location.IsSet() {
- toSerialize["location"] = o.Location.Get()
- }
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
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -480,11 +239,8 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "site",
"name",
"powerfeed_count",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -517,16 +273,9 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "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
}
diff --git a/model_power_panel_request.go b/model_power_panel_request.go
index 920375e982..41ab3ae46b 100644
--- a/model_power_panel_request.go
+++ b/model_power_panel_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,8 @@ var _ MappedNullable = &PowerPanelRequest{}
// PowerPanelRequest Adds support for custom fields and tags.
type PowerPanelRequest struct {
- Site NestedSiteRequest `json:"site"`
- Location NullableNestedLocationRequest `json:"location,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,9 +31,8 @@ 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(site NestedSiteRequest, name string) *PowerPanelRequest {
+func NewPowerPanelRequest(name string) *PowerPanelRequest {
this := PowerPanelRequest{}
- this.Site = site
this.Name = name
return &this
}
@@ -51,73 +45,6 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest {
return &this
}
-// GetSite returns the Site field value
-func (o *PowerPanelRequest) GetSite() NestedSiteRequest {
- if o == nil {
- var ret NestedSiteRequest
- 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() (*NestedSiteRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *PowerPanelRequest) SetSite(v NestedSiteRequest) {
- 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() NestedLocationRequest {
- if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocationRequest
- 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() (*NestedLocationRequest, 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 NullableNestedLocationRequest and assigns it to the Location field.
-func (o *PowerPanelRequest) SetLocation(v NestedLocationRequest) {
- o.Location.Set(&v)
-}
-
-// SetLocationNil sets the value for Location to be an explicit nil
-func (o *PowerPanelRequest) SetLocationNil() {
- o.Location.Set(nil)
-}
-
-// 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 {
@@ -174,102 +101,6 @@ 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()
if err != nil {
@@ -280,23 +111,10 @@ 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
@@ -310,7 +128,6 @@ 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",
}
@@ -341,13 +158,8 @@ 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
}
diff --git a/model_power_port.go b/model_power_port.go
index b38854ed9f..bfc69ca0ff 100644
--- a/model_power_port.go
+++ b/model_power_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the PowerPort type satisfies the MappedNullable interface at compile time
@@ -21,36 +20,15 @@ var _ MappedNullable = &PowerPort{}
// PowerPort Adds support for custom fields and tags.
type PowerPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
- // 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 NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
- // Return the type of the peer link terminations, or None.
- LinkPeersType string `json:"link_peers_type"`
- ConnectedEndpoints []interface{} `json:"connected_endpoints"`
- ConnectedEndpointsType string `json:"connected_endpoints_type"`
- ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- Occupied bool `json:"_occupied"`
- AdditionalProperties map[string]interface{}
+ 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"`
+ AdditionalProperties map[string]interface{}
}
type _PowerPort PowerPort
@@ -59,7 +37,7 @@ 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 NestedDevice, name string, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerPort {
+func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort {
this := PowerPort{}
this.Id = id
this.Url = url
@@ -67,14 +45,6 @@ func NewPowerPort(id int32, url string, display string, device NestedDevice, nam
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
}
@@ -160,9 +130,9 @@ func (o *PowerPort) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *PowerPort) GetDevice() NestedDevice {
+func (o *PowerPort) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -171,7 +141,7 @@ func (o *PowerPort) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerPort) GetDeviceOk() (*NestedDevice, bool) {
+func (o *PowerPort) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -179,53 +149,10 @@ func (o *PowerPort) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *PowerPort) SetDevice(v NestedDevice) {
+func (o *PowerPort) SetDevice(v Device) {
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() ComponentNestedModule {
- if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
- 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() (*ComponentNestedModule, 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 NullableComponentNestedModule and assigns it to the Module field.
-func (o *PowerPort) SetModule(v ComponentNestedModule) {
- o.Module.Set(&v)
-}
-
-// SetModuleNil sets the value for Module to be an explicit nil
-func (o *PowerPort) SetModuleNil() {
- o.Module.Set(nil)
-}
-
-// 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 {
@@ -250,167 +177,6 @@ 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) {
@@ -443,43 +209,11 @@ func (o *PowerPort) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for NestedCable will be returned
-func (o *PowerPort) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -489,7 +223,7 @@ func (o *PowerPort) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *PowerPort) GetCableOk() (*NestedCable, bool) {
+func (o *PowerPort) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -497,270 +231,10 @@ func (o *PowerPort) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *PowerPort) SetCable(v NestedCable) {
+func (o *PowerPort) SetCable(v Cable) {
o.Cable.Set(&v)
}
-// 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
-func (o *PowerPort) GetLinkPeersType() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.LinkPeersType
-}
-
-// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value
-// and a boolean to check if the value has been set.
-func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.LinkPeersType, true
-}
-
-// SetLinkPeersType sets field value
-func (o *PowerPort) SetLinkPeersType(v string) {
- o.LinkPeersType = v
-}
-
-// GetConnectedEndpoints returns the ConnectedEndpoints field value
-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
-// and a boolean to check if the value has been set.
-func (o *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConnectedEndpoints, true
-}
-
-// SetConnectedEndpoints sets field value
-func (o *PowerPort) SetConnectedEndpoints(v []interface{}) {
- o.ConnectedEndpoints = v
-}
-
-// GetConnectedEndpointsType returns the ConnectedEndpointsType field value
-func (o *PowerPort) GetConnectedEndpointsType() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.ConnectedEndpointsType
-}
-
-// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value
-// and a boolean to check if the value has been set.
-func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ConnectedEndpointsType, true
-}
-
-// SetConnectedEndpointsType sets field value
-func (o *PowerPort) SetConnectedEndpointsType(v string) {
- o.ConnectedEndpointsType = v
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *PowerPort) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPort) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *PowerPort) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *PowerPort) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *PowerPort) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetOccupied returns the Occupied field value
func (o *PowerPort) GetOccupied() bool {
if o == nil {
@@ -799,43 +273,11 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
}
- if !IsNil(o.MarkConnected) {
- toSerialize["mark_connected"] = o.MarkConnected
- }
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
- toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable
- 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()
toSerialize["_occupied"] = o.Occupied
for key, value := range o.AdditionalProperties {
@@ -856,14 +298,6 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) {
"device",
"name",
"cable",
- "cable_end",
- "link_peers",
- "link_peers_type",
- "connected_endpoints",
- "connected_endpoints_type",
- "connected_endpoints_reachable",
- "created",
- "last_updated",
"_occupied",
}
@@ -898,25 +332,9 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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
}
diff --git a/model_power_port_request.go b/model_power_port_request.go
index 6ed600ae8f..b699633c58 100644
--- a/model_power_port_request.go
+++ b/model_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,9 @@ var _ MappedNullable = &PowerPortRequest{}
// PowerPortRequest Adds support for custom fields and tags.
type PowerPortRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerPortRequestType `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"`
+ Device DeviceRequest `json:"device"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -44,7 +32,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 NestedDeviceRequest, name string) *PowerPortRequest {
+func NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest {
this := PowerPortRequest{}
this.Device = device
this.Name = name
@@ -60,9 +48,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest {
}
// GetDevice returns the Device field value
-func (o *PowerPortRequest) GetDevice() NestedDeviceRequest {
+func (o *PowerPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -71,7 +59,7 @@ func (o *PowerPortRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *PowerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,53 +67,10 @@ func (o *PowerPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *PowerPortRequest) SetDevice(v NestedDeviceRequest) {
+func (o *PowerPortRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
- if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
- 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() (*ComponentNestedModuleRequest, 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 NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *PowerPortRequest) SetModule(v ComponentNestedModuleRequest) {
- o.Module.Set(&v)
-}
-
-// SetModuleNil sets the value for Module to be an explicit nil
-func (o *PowerPortRequest) SetModuleNil() {
- o.Module.Set(nil)
-}
-
-// 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 {
@@ -150,167 +95,6 @@ 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() PowerPortRequestType {
- if o == nil || IsNil(o.Type.Get()) {
- var ret PowerPortRequestType
- 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() (*PowerPortRequestType, 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 NullablePowerPortRequestType and assigns it to the Type field.
-func (o *PowerPortRequest) SetType(v PowerPortRequestType) {
- 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) {
@@ -343,102 +127,6 @@ 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()
if err != nil {
@@ -450,34 +138,10 @@ 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
@@ -523,16 +187,8 @@ 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
}
diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go
deleted file mode 100644
index 1145dc761c..0000000000
--- a/model_power_port_request_type.go
+++ /dev/null
@@ -1,308 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// PowerPortRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other
-type PowerPortRequestType string
-
-// List of PowerPortRequest_type
-const (
- POWERPORTREQUESTTYPE_IEC_60320_C6 PowerPortRequestType = "iec-60320-c6"
- POWERPORTREQUESTTYPE_IEC_60320_C8 PowerPortRequestType = "iec-60320-c8"
- POWERPORTREQUESTTYPE_IEC_60320_C14 PowerPortRequestType = "iec-60320-c14"
- POWERPORTREQUESTTYPE_IEC_60320_C16 PowerPortRequestType = "iec-60320-c16"
- POWERPORTREQUESTTYPE_IEC_60320_C20 PowerPortRequestType = "iec-60320-c20"
- POWERPORTREQUESTTYPE_IEC_60320_C22 PowerPortRequestType = "iec-60320-c22"
- POWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PowerPortRequestType = "iec-60309-p-n-e-4h"
- POWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PowerPortRequestType = "iec-60309-p-n-e-6h"
- POWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PowerPortRequestType = "iec-60309-p-n-e-9h"
- POWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PowerPortRequestType = "iec-60309-2p-e-4h"
- POWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PowerPortRequestType = "iec-60309-2p-e-6h"
- POWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PowerPortRequestType = "iec-60309-2p-e-9h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PowerPortRequestType = "iec-60309-3p-e-4h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PowerPortRequestType = "iec-60309-3p-e-6h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PowerPortRequestType = "iec-60309-3p-e-9h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PowerPortRequestType = "iec-60309-3p-n-e-4h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PowerPortRequestType = "iec-60309-3p-n-e-6h"
- POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PowerPortRequestType = "iec-60309-3p-n-e-9h"
- POWERPORTREQUESTTYPE_IEC_60906_1 PowerPortRequestType = "iec-60906-1"
- POWERPORTREQUESTTYPE_NBR_14136_10A PowerPortRequestType = "nbr-14136-10a"
- POWERPORTREQUESTTYPE_NBR_14136_20A PowerPortRequestType = "nbr-14136-20a"
- POWERPORTREQUESTTYPE_NEMA_1_15P PowerPortRequestType = "nema-1-15p"
- POWERPORTREQUESTTYPE_NEMA_5_15P PowerPortRequestType = "nema-5-15p"
- POWERPORTREQUESTTYPE_NEMA_5_20P PowerPortRequestType = "nema-5-20p"
- POWERPORTREQUESTTYPE_NEMA_5_30P PowerPortRequestType = "nema-5-30p"
- POWERPORTREQUESTTYPE_NEMA_5_50P PowerPortRequestType = "nema-5-50p"
- POWERPORTREQUESTTYPE_NEMA_6_15P PowerPortRequestType = "nema-6-15p"
- POWERPORTREQUESTTYPE_NEMA_6_20P PowerPortRequestType = "nema-6-20p"
- POWERPORTREQUESTTYPE_NEMA_6_30P PowerPortRequestType = "nema-6-30p"
- POWERPORTREQUESTTYPE_NEMA_6_50P PowerPortRequestType = "nema-6-50p"
- POWERPORTREQUESTTYPE_NEMA_10_30P PowerPortRequestType = "nema-10-30p"
- POWERPORTREQUESTTYPE_NEMA_10_50P PowerPortRequestType = "nema-10-50p"
- POWERPORTREQUESTTYPE_NEMA_14_20P PowerPortRequestType = "nema-14-20p"
- POWERPORTREQUESTTYPE_NEMA_14_30P PowerPortRequestType = "nema-14-30p"
- POWERPORTREQUESTTYPE_NEMA_14_50P PowerPortRequestType = "nema-14-50p"
- POWERPORTREQUESTTYPE_NEMA_14_60P PowerPortRequestType = "nema-14-60p"
- POWERPORTREQUESTTYPE_NEMA_15_15P PowerPortRequestType = "nema-15-15p"
- POWERPORTREQUESTTYPE_NEMA_15_20P PowerPortRequestType = "nema-15-20p"
- POWERPORTREQUESTTYPE_NEMA_15_30P PowerPortRequestType = "nema-15-30p"
- POWERPORTREQUESTTYPE_NEMA_15_50P PowerPortRequestType = "nema-15-50p"
- POWERPORTREQUESTTYPE_NEMA_15_60P PowerPortRequestType = "nema-15-60p"
- POWERPORTREQUESTTYPE_NEMA_L1_15P PowerPortRequestType = "nema-l1-15p"
- POWERPORTREQUESTTYPE_NEMA_L5_15P PowerPortRequestType = "nema-l5-15p"
- POWERPORTREQUESTTYPE_NEMA_L5_20P PowerPortRequestType = "nema-l5-20p"
- POWERPORTREQUESTTYPE_NEMA_L5_30P PowerPortRequestType = "nema-l5-30p"
- POWERPORTREQUESTTYPE_NEMA_L5_50P PowerPortRequestType = "nema-l5-50p"
- POWERPORTREQUESTTYPE_NEMA_L6_15P PowerPortRequestType = "nema-l6-15p"
- POWERPORTREQUESTTYPE_NEMA_L6_20P PowerPortRequestType = "nema-l6-20p"
- POWERPORTREQUESTTYPE_NEMA_L6_30P PowerPortRequestType = "nema-l6-30p"
- POWERPORTREQUESTTYPE_NEMA_L6_50P PowerPortRequestType = "nema-l6-50p"
- POWERPORTREQUESTTYPE_NEMA_L10_30P PowerPortRequestType = "nema-l10-30p"
- POWERPORTREQUESTTYPE_NEMA_L14_20P PowerPortRequestType = "nema-l14-20p"
- POWERPORTREQUESTTYPE_NEMA_L14_30P PowerPortRequestType = "nema-l14-30p"
- POWERPORTREQUESTTYPE_NEMA_L14_50P PowerPortRequestType = "nema-l14-50p"
- POWERPORTREQUESTTYPE_NEMA_L14_60P PowerPortRequestType = "nema-l14-60p"
- POWERPORTREQUESTTYPE_NEMA_L15_20P PowerPortRequestType = "nema-l15-20p"
- POWERPORTREQUESTTYPE_NEMA_L15_30P PowerPortRequestType = "nema-l15-30p"
- POWERPORTREQUESTTYPE_NEMA_L15_50P PowerPortRequestType = "nema-l15-50p"
- POWERPORTREQUESTTYPE_NEMA_L15_60P PowerPortRequestType = "nema-l15-60p"
- POWERPORTREQUESTTYPE_NEMA_L21_20P PowerPortRequestType = "nema-l21-20p"
- POWERPORTREQUESTTYPE_NEMA_L21_30P PowerPortRequestType = "nema-l21-30p"
- POWERPORTREQUESTTYPE_NEMA_L22_30P PowerPortRequestType = "nema-l22-30p"
- POWERPORTREQUESTTYPE_CS6361C PowerPortRequestType = "cs6361c"
- POWERPORTREQUESTTYPE_CS6365C PowerPortRequestType = "cs6365c"
- POWERPORTREQUESTTYPE_CS8165C PowerPortRequestType = "cs8165c"
- POWERPORTREQUESTTYPE_CS8265C PowerPortRequestType = "cs8265c"
- POWERPORTREQUESTTYPE_CS8365C PowerPortRequestType = "cs8365c"
- POWERPORTREQUESTTYPE_CS8465C PowerPortRequestType = "cs8465c"
- POWERPORTREQUESTTYPE_ITA_C PowerPortRequestType = "ita-c"
- POWERPORTREQUESTTYPE_ITA_E PowerPortRequestType = "ita-e"
- POWERPORTREQUESTTYPE_ITA_F PowerPortRequestType = "ita-f"
- POWERPORTREQUESTTYPE_ITA_EF PowerPortRequestType = "ita-ef"
- POWERPORTREQUESTTYPE_ITA_G PowerPortRequestType = "ita-g"
- POWERPORTREQUESTTYPE_ITA_H PowerPortRequestType = "ita-h"
- POWERPORTREQUESTTYPE_ITA_I PowerPortRequestType = "ita-i"
- POWERPORTREQUESTTYPE_ITA_J PowerPortRequestType = "ita-j"
- POWERPORTREQUESTTYPE_ITA_K PowerPortRequestType = "ita-k"
- POWERPORTREQUESTTYPE_ITA_L PowerPortRequestType = "ita-l"
- POWERPORTREQUESTTYPE_ITA_M PowerPortRequestType = "ita-m"
- POWERPORTREQUESTTYPE_ITA_N PowerPortRequestType = "ita-n"
- POWERPORTREQUESTTYPE_ITA_O PowerPortRequestType = "ita-o"
- POWERPORTREQUESTTYPE_USB_A PowerPortRequestType = "usb-a"
- POWERPORTREQUESTTYPE_USB_B PowerPortRequestType = "usb-b"
- POWERPORTREQUESTTYPE_USB_C PowerPortRequestType = "usb-c"
- POWERPORTREQUESTTYPE_USB_MINI_A PowerPortRequestType = "usb-mini-a"
- POWERPORTREQUESTTYPE_USB_MINI_B PowerPortRequestType = "usb-mini-b"
- POWERPORTREQUESTTYPE_USB_MICRO_A PowerPortRequestType = "usb-micro-a"
- POWERPORTREQUESTTYPE_USB_MICRO_B PowerPortRequestType = "usb-micro-b"
- POWERPORTREQUESTTYPE_USB_MICRO_AB PowerPortRequestType = "usb-micro-ab"
- POWERPORTREQUESTTYPE_USB_3_B PowerPortRequestType = "usb-3-b"
- POWERPORTREQUESTTYPE_USB_3_MICRO_B PowerPortRequestType = "usb-3-micro-b"
- POWERPORTREQUESTTYPE_DC_TERMINAL PowerPortRequestType = "dc-terminal"
- POWERPORTREQUESTTYPE_SAF_D_GRID PowerPortRequestType = "saf-d-grid"
- POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PowerPortRequestType = "neutrik-powercon-20"
- POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PowerPortRequestType = "neutrik-powercon-32"
- POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerPortRequestType = "neutrik-powercon-true1"
- POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortRequestType = "neutrik-powercon-true1-top"
- POWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PowerPortRequestType = "ubiquiti-smartpower"
- POWERPORTREQUESTTYPE_HARDWIRED PowerPortRequestType = "hardwired"
- POWERPORTREQUESTTYPE_OTHER PowerPortRequestType = "other"
- POWERPORTREQUESTTYPE_EMPTY PowerPortRequestType = ""
-)
-
-// All allowed values of PowerPortRequestType enum
-var AllowedPowerPortRequestTypeEnumValues = []PowerPortRequestType{
- "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-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",
- "dc-terminal",
- "saf-d-grid",
- "neutrik-powercon-20",
- "neutrik-powercon-32",
- "neutrik-powercon-true1",
- "neutrik-powercon-true1-top",
- "ubiquiti-smartpower",
- "hardwired",
- "other",
- "",
-}
-
-func (v *PowerPortRequestType) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := PowerPortRequestType(value)
- for _, existing := range AllowedPowerPortRequestTypeEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid PowerPortRequestType", value)
-}
-
-// NewPowerPortRequestTypeFromValue returns a pointer to a valid PowerPortRequestType
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewPowerPortRequestTypeFromValue(v string) (*PowerPortRequestType, error) {
- ev := PowerPortRequestType(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for PowerPortRequestType: valid values are %v", v, AllowedPowerPortRequestTypeEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v PowerPortRequestType) IsValid() bool {
- for _, existing := range AllowedPowerPortRequestTypeEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to PowerPortRequest_type value
-func (v PowerPortRequestType) Ptr() *PowerPortRequestType {
- return &v
-}
-
-type NullablePowerPortRequestType struct {
- value *PowerPortRequestType
- isSet bool
-}
-
-func (v NullablePowerPortRequestType) Get() *PowerPortRequestType {
- return v.value
-}
-
-func (v *NullablePowerPortRequestType) Set(val *PowerPortRequestType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullablePowerPortRequestType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullablePowerPortRequestType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullablePowerPortRequestType(val *PowerPortRequestType) *NullablePowerPortRequestType {
- return &NullablePowerPortRequestType{value: val, isSet: true}
-}
-
-func (v NullablePowerPortRequestType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullablePowerPortRequestType) 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 481482d6d5..2178d92e0f 100644
--- a/model_power_port_template.go
+++ b/model_power_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,23 +20,12 @@ var _ MappedNullable = &PowerPortTemplate{}
// PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type PowerPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- DeviceType NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ 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"`
- // 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"`
- LastUpdated NullableTime `json:"last_updated"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -47,14 +35,12 @@ type _PowerPortTemplate PowerPortTemplate
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerPortTemplate {
+func NewPowerPortTemplate(id int32, url string, display string, name string) *PowerPortTemplate {
this := PowerPortTemplate{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -138,92 +124,6 @@ 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() NestedDeviceType {
- if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
- 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() (*NestedDeviceType, 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 NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *PowerPortTemplate) SetDeviceType(v NestedDeviceType) {
- o.DeviceType.Set(&v)
-}
-
-// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
-func (o *PowerPortTemplate) SetDeviceTypeNil() {
- o.DeviceType.Set(nil)
-}
-
-// 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() NestedModuleType {
- if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
- 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() (*NestedModuleType, 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 NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *PowerPortTemplate) SetModuleType(v NestedModuleType) {
- o.ModuleType.Set(&v)
-}
-
-// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
-func (o *PowerPortTemplate) SetModuleTypeNil() {
- o.ModuleType.Set(nil)
-}
-
-// 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 {
@@ -248,167 +148,6 @@ 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) {
@@ -441,58 +180,6 @@ func (o *PowerPortTemplate) 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
-func (o *PowerPortTemplate) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *PowerPortTemplate) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *PowerPortTemplate) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *PowerPortTemplate) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o PowerPortTemplate) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -506,30 +193,10 @@ 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
}
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -547,8 +214,6 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -581,16 +246,8 @@ 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
}
diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go
index 337d65e46c..4f2826e7f4 100644
--- a/model_power_port_template_request.go
+++ b/model_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,9 @@ 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Type NullablePowerPortRequestType `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"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -55,92 +46,6 @@ 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() NestedDeviceTypeRequest {
- if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
- 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() (*NestedDeviceTypeRequest, 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 NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *PowerPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
- o.DeviceType.Set(&v)
-}
-
-// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
-func (o *PowerPortTemplateRequest) SetDeviceTypeNil() {
- o.DeviceType.Set(nil)
-}
-
-// 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() NestedModuleTypeRequest {
- if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
- 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() (*NestedModuleTypeRequest, 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 NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *PowerPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
- o.ModuleType.Set(&v)
-}
-
-// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
-func (o *PowerPortTemplateRequest) SetModuleTypeNil() {
- o.ModuleType.Set(nil)
-}
-
-// 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 {
@@ -165,167 +70,6 @@ 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() PowerPortRequestType {
- if o == nil || IsNil(o.Type.Get()) {
- var ret PowerPortRequestType
- 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() (*PowerPortRequestType, 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 NullablePowerPortRequestType and assigns it to the Type field.
-func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType) {
- 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) {
@@ -368,25 +112,7 @@ 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
}
@@ -433,13 +159,7 @@ 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
}
diff --git a/model_power_port_type.go b/model_power_port_type.go
deleted file mode 100644
index fa0583232b..0000000000
--- a/model_power_port_type.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: 3.7.7 (3.7)
-*/
-
-// 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 *PatchedWritablePowerPortTemplateRequestType `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() PatchedWritablePowerPortTemplateRequestType {
- if o == nil || IsNil(o.Value) {
- var ret PatchedWritablePowerPortTemplateRequestType
- 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() (*PatchedWritablePowerPortTemplateRequestType, 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 PatchedWritablePowerPortTemplateRequestType and assigns it to the Value field.
-func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType) {
- 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
deleted file mode 100644
index 169d342cb4..0000000000
--- a/model_power_port_type_label.go
+++ /dev/null
@@ -1,306 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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_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_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-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",
- "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_prefix.go b/model_prefix.go
index 19704cd117..69448e57b1 100644
--- a/model_prefix.go
+++ b/model_prefix.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,17 +21,17 @@ var _ MappedNullable = &Prefix{}
// Prefix Adds support for custom fields and tags.
type Prefix struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Family AggregateFamily `json:"family"`
- Prefix string `json:"prefix"`
- Site NullableNestedSite `json:"site,omitempty"`
- Vrf NullableNestedVRF `json:"vrf,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Vlan NullableNestedVLAN `json:"vlan,omitempty"`
- Status *PrefixStatus `json:"status,omitempty"`
- Role NullableNestedRole `json:"role,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Family AggregateFamily `json:"family"`
+ Prefix string `json:"prefix"`
+ Site 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"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
@@ -196,9 +196,9 @@ func (o *Prefix) SetPrefix(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Prefix) GetSite() NestedSite {
+func (o *Prefix) GetSite() Site {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSite
+ var ret Site
return ret
}
return *o.Site.Get()
@@ -207,7 +207,7 @@ func (o *Prefix) GetSite() NestedSite {
// 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 *Prefix) GetSiteOk() (*NestedSite, bool) {
+func (o *Prefix) GetSiteOk() (*Site, bool) {
if o == nil {
return nil, false
}
@@ -223,8 +223,8 @@ func (o *Prefix) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSite and assigns it to the Site field.
-func (o *Prefix) SetSite(v NestedSite) {
+// 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)
}
@@ -239,9 +239,9 @@ func (o *Prefix) UnsetSite() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Prefix) GetVrf() NestedVRF {
+func (o *Prefix) GetVrf() VRF {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRF
+ var ret VRF
return ret
}
return *o.Vrf.Get()
@@ -250,7 +250,7 @@ func (o *Prefix) GetVrf() NestedVRF {
// 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) GetVrfOk() (*NestedVRF, bool) {
+func (o *Prefix) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -266,8 +266,8 @@ func (o *Prefix) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRF and assigns it to the Vrf field.
-func (o *Prefix) SetVrf(v NestedVRF) {
+// 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)
}
@@ -282,9 +282,9 @@ func (o *Prefix) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Prefix) GetTenant() NestedTenant {
+func (o *Prefix) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -293,7 +293,7 @@ func (o *Prefix) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *Prefix) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -309,8 +309,8 @@ func (o *Prefix) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Prefix) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *Prefix) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -325,9 +325,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() NestedVLAN {
+func (o *Prefix) GetVlan() VLAN {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret NestedVLAN
+ var ret VLAN
return ret
}
return *o.Vlan.Get()
@@ -336,7 +336,7 @@ func (o *Prefix) GetVlan() NestedVLAN {
// 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() (*NestedVLAN, bool) {
+func (o *Prefix) GetVlanOk() (*VLAN, bool) {
if o == nil {
return nil, false
}
@@ -352,8 +352,8 @@ func (o *Prefix) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableNestedVLAN and assigns it to the Vlan field.
-func (o *Prefix) SetVlan(v NestedVLAN) {
+// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field.
+func (o *Prefix) SetVlan(v VLAN) {
o.Vlan.Set(&v)
}
@@ -400,9 +400,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() NestedRole {
+func (o *Prefix) GetRole() Role {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRole
+ var ret Role
return ret
}
return *o.Role.Get()
@@ -411,7 +411,7 @@ func (o *Prefix) GetRole() NestedRole {
// 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() (*NestedRole, bool) {
+func (o *Prefix) GetRoleOk() (*Role, bool) {
if o == nil {
return nil, false
}
@@ -427,8 +427,8 @@ func (o *Prefix) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedRole and assigns it to the Role field.
-func (o *Prefix) SetRole(v NestedRole) {
+// SetRole gets a reference to the given NullableRole and assigns it to the Role field.
+func (o *Prefix) SetRole(v Role) {
o.Role.Set(&v)
}
diff --git a/model_prefix_request.go b/model_prefix_request.go
index 8cf7560876..5634c83a7b 100644
--- a/model_prefix_request.go
+++ b/model_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &PrefixRequest{}
// PrefixRequest Adds support for custom fields and tags.
type PrefixRequest struct {
- Prefix string `json:"prefix"`
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Vlan NullableNestedVLANRequest `json:"vlan,omitempty"`
- Status *PrefixStatusValue `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
+ 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"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
@@ -83,9 +83,9 @@ func (o *PrefixRequest) SetPrefix(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetSite() NestedSiteRequest {
+func (o *PrefixRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSiteRequest
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -94,7 +94,7 @@ func (o *PrefixRequest) GetSite() NestedSiteRequest {
// 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 *PrefixRequest) GetSiteOk() (*NestedSiteRequest, bool) {
+func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -110,8 +110,8 @@ func (o *PrefixRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSiteRequest and assigns it to the Site field.
-func (o *PrefixRequest) SetSite(v NestedSiteRequest) {
+// 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)
}
@@ -126,9 +126,9 @@ func (o *PrefixRequest) UnsetSite() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetVrf() NestedVRFRequest {
+func (o *PrefixRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRFRequest
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -137,7 +137,7 @@ func (o *PrefixRequest) GetVrf() NestedVRFRequest {
// 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) GetVrfOk() (*NestedVRFRequest, bool) {
+func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -153,8 +153,8 @@ func (o *PrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRFRequest and assigns it to the Vrf field.
-func (o *PrefixRequest) SetVrf(v NestedVRFRequest) {
+// 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)
}
@@ -169,9 +169,9 @@ func (o *PrefixRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *PrefixRequest) GetTenant() NestedTenantRequest {
+func (o *PrefixRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -180,7 +180,7 @@ func (o *PrefixRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *PrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *PrefixRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *PrefixRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -212,9 +212,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() NestedVLANRequest {
+func (o *PrefixRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret NestedVLANRequest
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -223,7 +223,7 @@ func (o *PrefixRequest) GetVlan() NestedVLANRequest {
// 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() (*NestedVLANRequest, bool) {
+func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -239,8 +239,8 @@ func (o *PrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableNestedVLANRequest and assigns it to the Vlan field.
-func (o *PrefixRequest) SetVlan(v NestedVLANRequest) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *PrefixRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -287,9 +287,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() NestedRoleRequest {
+func (o *PrefixRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRoleRequest
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -298,7 +298,7 @@ func (o *PrefixRequest) GetRole() NestedRoleRequest {
// 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() (*NestedRoleRequest, bool) {
+func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -314,8 +314,8 @@ func (o *PrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedRoleRequest and assigns it to the Role field.
-func (o *PrefixRequest) SetRole(v NestedRoleRequest) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *PrefixRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_prefix_status.go b/model_prefix_status.go
index 8aa82c1b5d..f2406410f9 100644
--- a/model_prefix_status.go
+++ b/model_prefix_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go
index 5fbcf6225c..41bac8bf79 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go
index 9745bca9ea..7e225f7006 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_provider.go b/model_provider.go
index 2caedacbe2..a368b3c0b1 100644
--- a/model_provider.go
+++ b/model_provider.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Provider type satisfies the MappedNullable interface at compile time
@@ -25,17 +24,10 @@ type Provider struct {
Url string `json:"url"`
Display string `json:"display"`
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug"`
- Accounts []int32 `json:"accounts,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- CircuitCount int32 `json:"circuit_count"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ CircuitCount int64 `json:"circuit_count"`
AdditionalProperties map[string]interface{}
}
@@ -45,15 +37,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, created NullableTime, lastUpdated NullableTime, circuitCount int32) *Provider {
+func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider {
this := Provider{}
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
}
@@ -186,38 +176,6 @@ func (o *Provider) SetSlug(v string) {
o.Slug = v
}
-// GetAccounts returns the Accounts field value if set, zero value otherwise.
-func (o *Provider) 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 *Provider) 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 *Provider) 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 *Provider) SetAccounts(v []int32) {
- 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) {
@@ -250,190 +208,10 @@ 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() []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 *Provider) 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 *Provider) 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 *Provider) SetAsns(v []int32) {
- 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Provider) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Provider) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Provider) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Provider) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Provider) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Provider) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetCircuitCount returns the CircuitCount field value
-func (o *Provider) GetCircuitCount() int32 {
+func (o *Provider) GetCircuitCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -442,7 +220,7 @@ func (o *Provider) GetCircuitCount() int32 {
// GetCircuitCountOk returns a tuple with the CircuitCount field value
// and a boolean to check if the value has been set.
-func (o *Provider) GetCircuitCountOk() (*int32, bool) {
+func (o *Provider) GetCircuitCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -450,7 +228,7 @@ func (o *Provider) GetCircuitCountOk() (*int32, bool) {
}
// SetCircuitCount sets field value
-func (o *Provider) SetCircuitCount(v int32) {
+func (o *Provider) SetCircuitCount(v int64) {
o.CircuitCount = v
}
@@ -469,26 +247,9 @@ func (o Provider) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["circuit_count"] = o.CircuitCount
for key, value := range o.AdditionalProperties {
@@ -508,8 +269,6 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"circuit_count",
}
@@ -545,14 +304,7 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_provider_account.go b/model_provider_account.go
index 4e8462c42c..e1b668c13a 100644
--- a/model_provider_account.go
+++ b/model_provider_account.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type ProviderAccount struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- Provider NestedProvider `json:"provider"`
+ Provider Provider `json:"provider"`
Name *string `json:"name,omitempty"`
Account string `json:"account"`
Description *string `json:"description,omitempty"`
@@ -42,12 +42,14 @@ 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 NestedProvider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount {
+func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount {
this := ProviderAccount{}
this.Id = id
this.Url = url
this.Display = display
this.Provider = provider
+ var name string = ""
+ this.Name = &name
this.Account = account
this.Created = created
this.LastUpdated = lastUpdated
@@ -59,6 +61,8 @@ func NewProviderAccount(id int32, url string, display string, provider NestedPro
// but it doesn't guarantee that properties required by API are set
func NewProviderAccountWithDefaults() *ProviderAccount {
this := ProviderAccount{}
+ var name string = ""
+ this.Name = &name
return &this
}
@@ -135,9 +139,9 @@ func (o *ProviderAccount) SetDisplay(v string) {
}
// GetProvider returns the Provider field value
-func (o *ProviderAccount) GetProvider() NestedProvider {
+func (o *ProviderAccount) GetProvider() Provider {
if o == nil {
- var ret NestedProvider
+ var ret Provider
return ret
}
@@ -146,7 +150,7 @@ func (o *ProviderAccount) GetProvider() NestedProvider {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *ProviderAccount) GetProviderOk() (*NestedProvider, bool) {
+func (o *ProviderAccount) GetProviderOk() (*Provider, bool) {
if o == nil {
return nil, false
}
@@ -154,7 +158,7 @@ func (o *ProviderAccount) GetProviderOk() (*NestedProvider, bool) {
}
// SetProvider sets field value
-func (o *ProviderAccount) SetProvider(v NestedProvider) {
+func (o *ProviderAccount) SetProvider(v Provider) {
o.Provider = v
}
diff --git a/model_provider_account_request.go b/model_provider_account_request.go
index dd745618e2..feca4b6eaa 100644
--- a/model_provider_account_request.go
+++ b/model_provider_account_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,9 @@ var _ MappedNullable = &ProviderAccountRequest{}
// ProviderAccountRequest Adds support for custom fields and tags.
type ProviderAccountRequest struct {
- Provider NestedProviderRequest `json:"provider"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Account string `json:"account"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,9 +32,10 @@ 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(provider NestedProviderRequest, account string) *ProviderAccountRequest {
+func NewProviderAccountRequest(account string) *ProviderAccountRequest {
this := ProviderAccountRequest{}
- this.Provider = provider
+ var name string = ""
+ this.Name = &name
this.Account = account
return &this
}
@@ -48,33 +45,11 @@ func NewProviderAccountRequest(provider NestedProviderRequest, account string) *
// but it doesn't guarantee that properties required by API are set
func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest {
this := ProviderAccountRequest{}
+ var name string = ""
+ this.Name = &name
return &this
}
-// GetProvider returns the Provider field value
-func (o *ProviderAccountRequest) GetProvider() NestedProviderRequest {
- if o == nil {
- var ret NestedProviderRequest
- 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() (*NestedProviderRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *ProviderAccountRequest) SetProvider(v NestedProviderRequest) {
- 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) {
@@ -163,102 +138,6 @@ 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()
if err != nil {
@@ -269,7 +148,6 @@ 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
}
@@ -277,15 +155,6 @@ 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
@@ -299,7 +168,6 @@ 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",
}
@@ -330,13 +198,9 @@ 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
}
diff --git a/model_provider_network.go b/model_provider_network.go
index bad1846b23..213b6174c2 100644
--- a/model_provider_network.go
+++ b/model_provider_network.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time
@@ -21,18 +20,11 @@ var _ MappedNullable = &ProviderNetwork{}
// ProviderNetwork Adds support for custom fields and tags.
type ProviderNetwork struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Provider NestedProvider `json:"provider"`
- Name string `json:"name"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -42,15 +34,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, provider NestedProvider, name string, created NullableTime, lastUpdated NullableTime) *ProviderNetwork {
+func NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork {
this := ProviderNetwork{}
this.Id = id
this.Url = url
this.Display = display
- this.Provider = provider
this.Name = name
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -134,30 +123,6 @@ func (o *ProviderNetwork) SetDisplay(v string) {
o.Display = v
}
-// GetProvider returns the Provider field value
-func (o *ProviderNetwork) GetProvider() NestedProvider {
- if o == nil {
- var ret NestedProvider
- 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() (*NestedProvider, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *ProviderNetwork) SetProvider(v NestedProvider) {
- o.Provider = v
-}
-
// GetName returns the Name field value
func (o *ProviderNetwork) GetName() string {
if o == nil {
@@ -182,38 +147,6 @@ 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) {
@@ -246,154 +179,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *ProviderNetwork) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *ProviderNetwork) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *ProviderNetwork) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *ProviderNetwork) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o ProviderNetwork) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -407,25 +192,10 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -442,10 +212,7 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "provider",
"name",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -478,15 +245,8 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "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
}
diff --git a/model_provider_network_request.go b/model_provider_network_request.go
index 125a7b4ba8..05b023aca2 100644
--- a/model_provider_network_request.go
+++ b/model_provider_network_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,8 @@ var _ MappedNullable = &ProviderNetworkRequest{}
// ProviderNetworkRequest Adds support for custom fields and tags.
type ProviderNetworkRequest struct {
- Provider NestedProviderRequest `json:"provider"`
- Name string `json:"name"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -36,9 +31,8 @@ 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(provider NestedProviderRequest, name string) *ProviderNetworkRequest {
+func NewProviderNetworkRequest(name string) *ProviderNetworkRequest {
this := ProviderNetworkRequest{}
- this.Provider = provider
this.Name = name
return &this
}
@@ -51,30 +45,6 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest {
return &this
}
-// GetProvider returns the Provider field value
-func (o *ProviderNetworkRequest) GetProvider() NestedProviderRequest {
- if o == nil {
- var ret NestedProviderRequest
- 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() (*NestedProviderRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *ProviderNetworkRequest) SetProvider(v NestedProviderRequest) {
- o.Provider = v
-}
-
// GetName returns the Name field value
func (o *ProviderNetworkRequest) GetName() string {
if o == nil {
@@ -99,38 +69,6 @@ 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) {
@@ -163,102 +101,6 @@ 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()
if err != nil {
@@ -269,23 +111,10 @@ 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
@@ -299,7 +128,6 @@ 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",
}
@@ -330,13 +158,8 @@ 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
}
diff --git a/model_provider_request.go b/model_provider_request.go
index 36602cd308..1edfe34ee9 100644
--- a/model_provider_request.go
+++ b/model_provider_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,14 +21,9 @@ var _ MappedNullable = &ProviderRequest{}
// ProviderRequest Adds support for custom fields and tags.
type ProviderRequest struct {
// Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug"`
- Accounts []int32 `json:"accounts,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -101,38 +96,6 @@ 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) {
@@ -165,134 +128,6 @@ 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()
if err != nil {
@@ -305,24 +140,9 @@ 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
@@ -369,12 +189,7 @@ 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
}
diff --git a/model_rack.go b/model_rack.go
index 233895b5ef..471e264e13 100644
--- a/model_rack.go
+++ b/model_rack.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Rack type satisfies the MappedNullable interface at compile time
@@ -21,46 +20,12 @@ var _ MappedNullable = &Rack{}
// Rack Adds support for custom fields and tags.
type Rack struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- FacilityId NullableString `json:"facility_id,omitempty"`
- Site NestedSite `json:"site"`
- Location NullableNestedLocation `json:"location,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Status *RackStatus `json:"status,omitempty"`
- Role NullableNestedRackRole `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
- // A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Type NullableRackType `json:"type,omitempty"`
- Width *RackWidth `json:"width,omitempty"`
- // Height in rack units
- UHeight *int32 `json:"u_height,omitempty"`
- // 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"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- DeviceCount int32 `json:"device_count"`
- PowerfeedCount int32 `json:"powerfeed_count"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -70,17 +35,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 NestedSite, created NullableTime, lastUpdated NullableTime, deviceCount int32, powerfeedCount int32) *Rack {
+func NewRack(id int32, url string, display string, name string, deviceCount int64) *Rack {
this := Rack{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Site = site
- this.Created = created
- this.LastUpdated = lastUpdated
this.DeviceCount = deviceCount
- this.PowerfeedCount = powerfeedCount
return &this
}
@@ -188,781 +149,6 @@ 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() NestedSite {
- if o == nil {
- var ret NestedSite
- 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() (*NestedSite, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *Rack) SetSite(v NestedSite) {
- 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() NestedLocation {
- if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocation
- 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() (*NestedLocation, 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 NullableNestedLocation and assigns it to the Location field.
-func (o *Rack) SetLocation(v NestedLocation) {
- o.Location.Set(&v)
-}
-
-// SetLocationNil sets the value for Location to be an explicit nil
-func (o *Rack) SetLocationNil() {
- o.Location.Set(nil)
-}
-
-// 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Rack) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Rack) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Rack) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Rack) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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() NestedRackRole {
- if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRackRole
- 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() (*NestedRackRole, 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 NullableNestedRackRole and assigns it to the Role field.
-func (o *Rack) SetRole(v NestedRackRole) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *Rack) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// 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()
-}
-
-// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Rack) GetType() RackType {
- if o == nil || IsNil(o.Type.Get()) {
- var ret RackType
- 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 *Rack) GetTypeOk() (*RackType, 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 *Rack) HasType() bool {
- if o != nil && o.Type.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetType gets a reference to the given NullableRackType and assigns it to the Type field.
-func (o *Rack) SetType(v RackType) {
- o.Type.Set(&v)
-}
-
-// SetTypeNil sets the value for Type to be an explicit nil
-func (o *Rack) SetTypeNil() {
- o.Type.Set(nil)
-}
-
-// UnsetType ensures that no value is present for Type, not even an explicit nil
-func (o *Rack) UnsetType() {
- o.Type.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
-}
-
-// 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.
-// 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.OuterWidth.Get(), o.OuterWidth.IsSet()
-}
-
-// 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
-}
-
-// 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.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 *Rack) 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 *Rack) 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 *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()
-}
-
-// 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()
-}
-
-// 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.
-// 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.MountingDepth.Get(), o.MountingDepth.IsSet()
-}
-
-// 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()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Rack) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -995,158 +181,10 @@ func (o *Rack) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Rack) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Rack) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Rack) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Rack) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Rack) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Rack) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetDeviceCount returns the DeviceCount field value
-func (o *Rack) GetDeviceCount() int32 {
+func (o *Rack) GetDeviceCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -1155,7 +193,7 @@ func (o *Rack) GetDeviceCount() int32 {
// GetDeviceCountOk returns a tuple with the DeviceCount field value
// and a boolean to check if the value has been set.
-func (o *Rack) GetDeviceCountOk() (*int32, bool) {
+func (o *Rack) GetDeviceCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -1163,34 +201,10 @@ func (o *Rack) GetDeviceCountOk() (*int32, bool) {
}
// SetDeviceCount sets field value
-func (o *Rack) SetDeviceCount(v int32) {
+func (o *Rack) SetDeviceCount(v int64) {
o.DeviceCount = v
}
-// GetPowerfeedCount returns the PowerfeedCount field value
-func (o *Rack) GetPowerfeedCount() int32 {
- if o == nil {
- var ret int32
- 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 *Rack) GetPowerfeedCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PowerfeedCount, true
-}
-
-// SetPowerfeedCount sets field value
-func (o *Rack) SetPowerfeedCount(v int32) {
- o.PowerfeedCount = v
-}
-
func (o Rack) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -1205,80 +219,10 @@ func (o Rack) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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.Type.IsSet() {
- toSerialize["type"] = o.Type.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.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["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["device_count"] = o.DeviceCount
- toSerialize["powerfeed_count"] = o.PowerfeedCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -1296,11 +240,7 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "site",
- "created",
- "last_updated",
"device_count",
- "powerfeed_count",
}
allProperties := make(map[string]interface{})
@@ -1334,34 +274,8 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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, "type")
- 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, "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
}
diff --git a/model_rack_face.go b/model_rack_face.go
index 830ed98431..a0c96cd51a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,21 +15,19 @@ import (
"fmt"
)
-// RackFace * `front` - Front * `rear` - Rear
+// RackFace the model 'RackFace'
type RackFace string
// List of Rack_face
const (
RACKFACE_FRONT RackFace = "front"
RACKFACE_REAR RackFace = "rear"
- RACKFACE_EMPTY RackFace = ""
)
// All allowed values of RackFace enum
var AllowedRackFaceEnumValues = []RackFace{
"front",
"rear",
- "",
}
func (v *RackFace) UnmarshalJSON(src []byte) error {
diff --git a/model_rack_face_1.go b/model_rack_face_1.go
new file mode 100644
index 0000000000..bbb6509414
--- /dev/null
+++ b/model_rack_face_1.go
@@ -0,0 +1,112 @@
+/*
+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"
+)
+
+// RackFace1 * `front` - Front * `rear` - Rear
+type RackFace1 string
+
+// List of Rack_face_1
+const (
+ RACKFACE1_FRONT RackFace1 = "front"
+ RACKFACE1_REAR RackFace1 = "rear"
+ RACKFACE1_EMPTY RackFace1 = ""
+)
+
+// All allowed values of RackFace1 enum
+var AllowedRackFace1EnumValues = []RackFace1{
+ "front",
+ "rear",
+ "",
+}
+
+func (v *RackFace1) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := RackFace1(value)
+ for _, existing := range AllowedRackFace1EnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid RackFace1", value)
+}
+
+// NewRackFace1FromValue returns a pointer to a valid RackFace1
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewRackFace1FromValue(v string) (*RackFace1, error) {
+ ev := RackFace1(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for RackFace1: valid values are %v", v, AllowedRackFace1EnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v RackFace1) IsValid() bool {
+ for _, existing := range AllowedRackFace1EnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to Rack_face_1 value
+func (v RackFace1) Ptr() *RackFace1 {
+ return &v
+}
+
+type NullableRackFace1 struct {
+ value *RackFace1
+ isSet bool
+}
+
+func (v NullableRackFace1) Get() *RackFace1 {
+ return v.value
+}
+
+func (v *NullableRackFace1) Set(val *RackFace1) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRackFace1) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRackFace1) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRackFace1(val *RackFace1) *NullableRackFace1 {
+ return &NullableRackFace1{value: val, isSet: true}
+}
+
+func (v NullableRackFace1) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRackFace1) 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
deleted file mode 100644
index 3858b71d3e..0000000000
--- a/model_rack_outer_unit.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: 3.7.7 (3.7)
-*/
-
-// 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 *PatchedWritableRackRequestOuterUnit `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() PatchedWritableRackRequestOuterUnit {
- if o == nil || IsNil(o.Value) {
- var ret PatchedWritableRackRequestOuterUnit
- 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() (*PatchedWritableRackRequestOuterUnit, 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 PatchedWritableRackRequestOuterUnit and assigns it to the Value field.
-func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit) {
- 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
deleted file mode 100644
index 8cf8f73a14..0000000000
--- a/model_rack_outer_unit_label.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: 3.7.7 (3.7)
-*/
-
-// 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_request.go b/model_rack_request.go
index ec299cf7b1..820be5e16b 100644
--- a/model_rack_request.go
+++ b/model_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,39 +20,8 @@ var _ MappedNullable = &RackRequest{}
// RackRequest Adds support for custom fields and tags.
type RackRequest struct {
- Name string `json:"name"`
- FacilityId NullableString `json:"facility_id,omitempty"`
- Site NestedSiteRequest `json:"site"`
- Location NullableNestedLocationRequest `json:"location,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- Role NullableNestedRackRoleRequest `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
- // A unique tag used to identify this rack
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Type NullableRackRequestType `json:"type,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 NullableRackRequestOuterUnit `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"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -62,10 +31,9 @@ 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, site NestedSiteRequest) *RackRequest {
+func NewRackRequest(name string) *RackRequest {
this := RackRequest{}
this.Name = name
- this.Site = site
return &this
}
@@ -101,781 +69,6 @@ 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() NestedSiteRequest {
- if o == nil {
- var ret NestedSiteRequest
- 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() (*NestedSiteRequest, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *RackRequest) SetSite(v NestedSiteRequest) {
- 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() NestedLocationRequest {
- if o == nil || IsNil(o.Location.Get()) {
- var ret NestedLocationRequest
- 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() (*NestedLocationRequest, 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 NullableNestedLocationRequest and assigns it to the Location field.
-func (o *RackRequest) SetLocation(v NestedLocationRequest) {
- o.Location.Set(&v)
-}
-
-// SetLocationNil sets the value for Location to be an explicit nil
-func (o *RackRequest) SetLocationNil() {
- o.Location.Set(nil)
-}
-
-// 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RackRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *RackRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *RackRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *RackRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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() NestedRackRoleRequest {
- if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRackRoleRequest
- 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() (*NestedRackRoleRequest, 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 NullableNestedRackRoleRequest and assigns it to the Role field.
-func (o *RackRequest) SetRole(v NestedRackRoleRequest) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *RackRequest) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// 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()
-}
-
-// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *RackRequest) GetType() RackRequestType {
- if o == nil || IsNil(o.Type.Get()) {
- var ret RackRequestType
- 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 *RackRequest) GetTypeOk() (*RackRequestType, 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 *RackRequest) HasType() bool {
- if o != nil && o.Type.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetType gets a reference to the given NullableRackRequestType and assigns it to the Type field.
-func (o *RackRequest) SetType(v RackRequestType) {
- o.Type.Set(&v)
-}
-
-// SetTypeNil sets the value for Type to be an explicit nil
-func (o *RackRequest) SetTypeNil() {
- o.Type.Set(nil)
-}
-
-// UnsetType ensures that no value is present for Type, not even an explicit nil
-func (o *RackRequest) UnsetType() {
- o.Type.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() RackRequestOuterUnit {
- if o == nil || IsNil(o.OuterUnit.Get()) {
- var ret RackRequestOuterUnit
- 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() (*RackRequestOuterUnit, 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 NullableRackRequestOuterUnit and assigns it to the OuterUnit field.
-func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit) {
- 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()
-}
-
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *RackRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -908,102 +101,6 @@ 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()
if err != nil {
@@ -1015,76 +112,9 @@ 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.Type.IsSet() {
- toSerialize["type"] = o.Type.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.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
@@ -1099,7 +129,6 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "site",
}
allProperties := make(map[string]interface{})
@@ -1130,30 +159,7 @@ 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, "type")
- 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, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go
deleted file mode 100644
index e1dfedbc74..0000000000
--- a/model_rack_request_outer_unit.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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// RackRequestOuterUnit * `mm` - Millimeters * `in` - Inches
-type RackRequestOuterUnit string
-
-// List of RackRequest_outer_unit
-const (
- RACKREQUESTOUTERUNIT_MM RackRequestOuterUnit = "mm"
- RACKREQUESTOUTERUNIT_IN RackRequestOuterUnit = "in"
- RACKREQUESTOUTERUNIT_EMPTY RackRequestOuterUnit = ""
-)
-
-// All allowed values of RackRequestOuterUnit enum
-var AllowedRackRequestOuterUnitEnumValues = []RackRequestOuterUnit{
- "mm",
- "in",
- "",
-}
-
-func (v *RackRequestOuterUnit) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := RackRequestOuterUnit(value)
- for _, existing := range AllowedRackRequestOuterUnitEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid RackRequestOuterUnit", value)
-}
-
-// NewRackRequestOuterUnitFromValue returns a pointer to a valid RackRequestOuterUnit
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewRackRequestOuterUnitFromValue(v string) (*RackRequestOuterUnit, error) {
- ev := RackRequestOuterUnit(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for RackRequestOuterUnit: valid values are %v", v, AllowedRackRequestOuterUnitEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v RackRequestOuterUnit) IsValid() bool {
- for _, existing := range AllowedRackRequestOuterUnitEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to RackRequest_outer_unit value
-func (v RackRequestOuterUnit) Ptr() *RackRequestOuterUnit {
- return &v
-}
-
-type NullableRackRequestOuterUnit struct {
- value *RackRequestOuterUnit
- isSet bool
-}
-
-func (v NullableRackRequestOuterUnit) Get() *RackRequestOuterUnit {
- return v.value
-}
-
-func (v *NullableRackRequestOuterUnit) Set(val *RackRequestOuterUnit) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableRackRequestOuterUnit) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableRackRequestOuterUnit) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableRackRequestOuterUnit(val *RackRequestOuterUnit) *NullableRackRequestOuterUnit {
- return &NullableRackRequestOuterUnit{value: val, isSet: true}
-}
-
-func (v NullableRackRequestOuterUnit) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableRackRequestOuterUnit) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_rack_request_type.go b/model_rack_request_type.go
deleted file mode 100644
index f938572fb1..0000000000
--- a/model_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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// RackRequestType * `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 RackRequestType string
-
-// List of RackRequest_type
-const (
- RACKREQUESTTYPE__2_POST_FRAME RackRequestType = "2-post-frame"
- RACKREQUESTTYPE__4_POST_FRAME RackRequestType = "4-post-frame"
- RACKREQUESTTYPE__4_POST_CABINET RackRequestType = "4-post-cabinet"
- RACKREQUESTTYPE_WALL_FRAME RackRequestType = "wall-frame"
- RACKREQUESTTYPE_WALL_FRAME_VERTICAL RackRequestType = "wall-frame-vertical"
- RACKREQUESTTYPE_WALL_CABINET RackRequestType = "wall-cabinet"
- RACKREQUESTTYPE_WALL_CABINET_VERTICAL RackRequestType = "wall-cabinet-vertical"
- RACKREQUESTTYPE_EMPTY RackRequestType = ""
-)
-
-// All allowed values of RackRequestType enum
-var AllowedRackRequestTypeEnumValues = []RackRequestType{
- "2-post-frame",
- "4-post-frame",
- "4-post-cabinet",
- "wall-frame",
- "wall-frame-vertical",
- "wall-cabinet",
- "wall-cabinet-vertical",
- "",
-}
-
-func (v *RackRequestType) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := RackRequestType(value)
- for _, existing := range AllowedRackRequestTypeEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid RackRequestType", value)
-}
-
-// NewRackRequestTypeFromValue returns a pointer to a valid RackRequestType
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewRackRequestTypeFromValue(v string) (*RackRequestType, error) {
- ev := RackRequestType(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for RackRequestType: valid values are %v", v, AllowedRackRequestTypeEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v RackRequestType) IsValid() bool {
- for _, existing := range AllowedRackRequestTypeEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to RackRequest_type value
-func (v RackRequestType) Ptr() *RackRequestType {
- return &v
-}
-
-type NullableRackRequestType struct {
- value *RackRequestType
- isSet bool
-}
-
-func (v NullableRackRequestType) Get() *RackRequestType {
- return v.value
-}
-
-func (v *NullableRackRequestType) Set(val *RackRequestType) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableRackRequestType) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableRackRequestType) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableRackRequestType(val *RackRequestType) *NullableRackRequestType {
- return &NullableRackRequestType{value: val, isSet: true}
-}
-
-func (v NullableRackRequestType) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableRackRequestType) 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 1b28439787..f4cdb14114 100644
--- a/model_rack_reservation.go
+++ b/model_rack_reservation.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,12 +24,12 @@ type RackReservation struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- Rack NestedRack `json:"rack"`
+ Rack Rack `json:"rack"`
Units []int32 `json:"units"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- User NestedUser `json:"user"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ User User `json:"user"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
Description string `json:"description"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -43,7 +43,7 @@ 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 NestedRack, units []int32, created NullableTime, lastUpdated NullableTime, user NestedUser, description string) *RackReservation {
+func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation {
this := RackReservation{}
this.Id = id
this.Url = url
@@ -138,9 +138,9 @@ func (o *RackReservation) SetDisplay(v string) {
}
// GetRack returns the Rack field value
-func (o *RackReservation) GetRack() NestedRack {
+func (o *RackReservation) GetRack() Rack {
if o == nil {
- var ret NestedRack
+ var ret Rack
return ret
}
@@ -149,7 +149,7 @@ func (o *RackReservation) GetRack() NestedRack {
// GetRackOk returns a tuple with the Rack field value
// and a boolean to check if the value has been set.
-func (o *RackReservation) GetRackOk() (*NestedRack, bool) {
+func (o *RackReservation) GetRackOk() (*Rack, bool) {
if o == nil {
return nil, false
}
@@ -157,7 +157,7 @@ func (o *RackReservation) GetRackOk() (*NestedRack, bool) {
}
// SetRack sets field value
-func (o *RackReservation) SetRack(v NestedRack) {
+func (o *RackReservation) SetRack(v Rack) {
o.Rack = v
}
@@ -238,9 +238,9 @@ func (o *RackReservation) SetLastUpdated(v time.Time) {
}
// GetUser returns the User field value
-func (o *RackReservation) GetUser() NestedUser {
+func (o *RackReservation) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -249,7 +249,7 @@ func (o *RackReservation) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *RackReservation) GetUserOk() (*NestedUser, bool) {
+func (o *RackReservation) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -257,14 +257,14 @@ func (o *RackReservation) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *RackReservation) SetUser(v NestedUser) {
+func (o *RackReservation) SetUser(v User) {
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() NestedTenant {
+func (o *RackReservation) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -273,7 +273,7 @@ func (o *RackReservation) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *RackReservation) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -289,8 +289,8 @@ func (o *RackReservation) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *RackReservation) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *RackReservation) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go
index da69e1c6e1..f08054702d 100644
--- a/model_rack_reservation_request.go
+++ b/model_rack_reservation_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedRackRequest `json:"rack"`
- Units []int32 `json:"units"`
- User NestedUserRequest `json:"user"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description string `json:"description"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Rack 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"`
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 NestedRackRequest, units []int32, user NestedUserRequest, description string) *RackReservationRequest {
+func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, 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() NestedRackRequest {
+func (o *RackReservationRequest) GetRack() RackRequest {
if o == nil {
- var ret NestedRackRequest
+ var ret RackRequest
return ret
}
@@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() NestedRackRequest {
// GetRackOk returns a tuple with the Rack field value
// and a boolean to check if the value has been set.
-func (o *RackReservationRequest) GetRackOk() (*NestedRackRequest, bool) {
+func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -74,7 +74,7 @@ func (o *RackReservationRequest) GetRackOk() (*NestedRackRequest, bool) {
}
// SetRack sets field value
-func (o *RackReservationRequest) SetRack(v NestedRackRequest) {
+func (o *RackReservationRequest) SetRack(v RackRequest) {
o.Rack = v
}
@@ -103,9 +103,9 @@ func (o *RackReservationRequest) SetUnits(v []int32) {
}
// GetUser returns the User field value
-func (o *RackReservationRequest) GetUser() NestedUserRequest {
+func (o *RackReservationRequest) GetUser() UserRequest {
if o == nil {
- var ret NestedUserRequest
+ var ret UserRequest
return ret
}
@@ -114,7 +114,7 @@ func (o *RackReservationRequest) GetUser() NestedUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *RackReservationRequest) GetUserOk() (*NestedUserRequest, bool) {
+func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,14 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*NestedUserRequest, bool) {
}
// SetUser sets field value
-func (o *RackReservationRequest) SetUser(v NestedUserRequest) {
+func (o *RackReservationRequest) SetUser(v UserRequest) {
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() NestedTenantRequest {
+func (o *RackReservationRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -138,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -154,8 +154,8 @@ func (o *RackReservationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *RackReservationRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *RackReservationRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_rack_role.go b/model_rack_role.go
index 249dfde5cc..6f5af14fd1 100644
--- a/model_rack_role.go
+++ b/model_rack_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -32,7 +32,7 @@ type RackRole struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- RackCount int32 `json:"rack_count"`
+ RackCount int64 `json:"rack_count"`
AdditionalProperties map[string]interface{}
}
@@ -42,7 +42,7 @@ 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 int32) *RackRole {
+func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole {
this := RackRole{}
this.Id = id
this.Url = url
@@ -364,9 +364,9 @@ func (o *RackRole) SetLastUpdated(v time.Time) {
}
// GetRackCount returns the RackCount field value
-func (o *RackRole) GetRackCount() int32 {
+func (o *RackRole) GetRackCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -375,7 +375,7 @@ func (o *RackRole) GetRackCount() int32 {
// GetRackCountOk returns a tuple with the RackCount field value
// and a boolean to check if the value has been set.
-func (o *RackRole) GetRackCountOk() (*int32, bool) {
+func (o *RackRole) GetRackCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -383,7 +383,7 @@ func (o *RackRole) GetRackCountOk() (*int32, bool) {
}
// SetRackCount sets field value
-func (o *RackRole) SetRackCount(v int32) {
+func (o *RackRole) SetRackCount(v int64) {
o.RackCount = v
}
diff --git a/model_rack_role_request.go b/model_rack_role_request.go
index df79238ec0..f3d72593d4 100644
--- a/model_rack_role_request.go
+++ b/model_rack_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_rack_status.go b/model_rack_status.go
deleted file mode 100644
index 64020455c8..0000000000
--- a/model_rack_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index f5d9675f92..0000000000
--- a/model_rack_status_label.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index aeef27cd94..0000000000
--- a/model_rack_type.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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the RackType type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &RackType{}
-
-// RackType struct for RackType
-type RackType struct {
- Value *PatchedWritableRackRequestType `json:"value,omitempty"`
- Label *RackTypeLabel `json:"label,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() *RackType {
- this := RackType{}
- 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
-}
-
-// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackType) GetValue() PatchedWritableRackRequestType {
- if o == nil || IsNil(o.Value) {
- var ret PatchedWritableRackRequestType
- 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 *RackType) GetValueOk() (*PatchedWritableRackRequestType, 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 *RackType) HasValue() bool {
- if o != nil && !IsNil(o.Value) {
- return true
- }
-
- return false
-}
-
-// SetValue gets a reference to the given PatchedWritableRackRequestType and assigns it to the Value field.
-func (o *RackType) SetValue(v PatchedWritableRackRequestType) {
- o.Value = &v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *RackType) GetLabel() RackTypeLabel {
- if o == nil || IsNil(o.Label) {
- var ret RackTypeLabel
- 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 *RackType) GetLabelOk() (*RackTypeLabel, 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 *RackType) HasLabel() bool {
- if o != nil && !IsNil(o.Label) {
- return true
- }
-
- return false
-}
-
-// SetLabel gets a reference to the given RackTypeLabel and assigns it to the Label field.
-func (o *RackType) SetLabel(v RackTypeLabel) {
- o.Label = &v
-}
-
-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{}{}
- 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 *RackType) UnmarshalJSON(data []byte) (err error) {
- 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, "value")
- delete(additionalProperties, "label")
- 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_label.go b/model_rack_type_label.go
deleted file mode 100644
index ce8e22b2d3..0000000000
--- a/model_rack_type_label.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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// RackTypeLabel the model 'RackTypeLabel'
-type RackTypeLabel string
-
-// List of Rack_type_label
-const (
- RACKTYPELABEL__2_POST_FRAME RackTypeLabel = "2-post frame"
- RACKTYPELABEL__4_POST_FRAME RackTypeLabel = "4-post frame"
- RACKTYPELABEL__4_POST_CABINET RackTypeLabel = "4-post cabinet"
- RACKTYPELABEL_WALL_MOUNTED_FRAME RackTypeLabel = "Wall-mounted frame"
- RACKTYPELABEL_WALL_MOUNTED_FRAME__VERTICAL RackTypeLabel = "Wall-mounted frame (vertical)"
- RACKTYPELABEL_WALL_MOUNTED_CABINET RackTypeLabel = "Wall-mounted cabinet"
- RACKTYPELABEL_WALL_MOUNTED_CABINET__VERTICAL RackTypeLabel = "Wall-mounted cabinet (vertical)"
-)
-
-// All allowed values of RackTypeLabel enum
-var AllowedRackTypeLabelEnumValues = []RackTypeLabel{
- "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 *RackTypeLabel) UnmarshalJSON(src []byte) error {
- var value string
- err := json.Unmarshal(src, &value)
- if err != nil {
- return err
- }
- enumTypeValue := RackTypeLabel(value)
- for _, existing := range AllowedRackTypeLabelEnumValues {
- if existing == enumTypeValue {
- *v = enumTypeValue
- return nil
- }
- }
-
- return fmt.Errorf("%+v is not a valid RackTypeLabel", value)
-}
-
-// NewRackTypeLabelFromValue returns a pointer to a valid RackTypeLabel
-// for the value passed as argument, or an error if the value passed is not allowed by the enum
-func NewRackTypeLabelFromValue(v string) (*RackTypeLabel, error) {
- ev := RackTypeLabel(v)
- if ev.IsValid() {
- return &ev, nil
- } else {
- return nil, fmt.Errorf("invalid value '%v' for RackTypeLabel: valid values are %v", v, AllowedRackTypeLabelEnumValues)
- }
-}
-
-// IsValid return true if the value is valid for the enum, false otherwise
-func (v RackTypeLabel) IsValid() bool {
- for _, existing := range AllowedRackTypeLabelEnumValues {
- if existing == v {
- return true
- }
- }
- return false
-}
-
-// Ptr returns reference to Rack_type_label value
-func (v RackTypeLabel) Ptr() *RackTypeLabel {
- return &v
-}
-
-type NullableRackTypeLabel struct {
- value *RackTypeLabel
- isSet bool
-}
-
-func (v NullableRackTypeLabel) Get() *RackTypeLabel {
- return v.value
-}
-
-func (v *NullableRackTypeLabel) Set(val *RackTypeLabel) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableRackTypeLabel) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableRackTypeLabel) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableRackTypeLabel(val *RackTypeLabel) *NullableRackTypeLabel {
- return &NullableRackTypeLabel{value: val, isSet: true}
-}
-
-func (v NullableRackTypeLabel) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableRackTypeLabel) 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 479fc172f1..6bd4ac7813 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,7 +23,7 @@ type RackUnit struct {
Id float64 `json:"id"`
Name string `json:"name"`
Face RackUnitFace `json:"face"`
- Device NestedDevice `json:"device"`
+ Device Device `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 NestedDevice, occupied bool, display string) *RackUnit {
+func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit {
this := RackUnit{}
this.Id = id
this.Name = name
@@ -127,9 +127,9 @@ func (o *RackUnit) SetFace(v RackUnitFace) {
}
// GetDevice returns the Device field value
-func (o *RackUnit) GetDevice() NestedDevice {
+func (o *RackUnit) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -138,7 +138,7 @@ func (o *RackUnit) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *RackUnit) GetDeviceOk() (*NestedDevice, bool) {
+func (o *RackUnit) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -146,7 +146,7 @@ func (o *RackUnit) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *RackUnit) SetDevice(v NestedDevice) {
+func (o *RackUnit) SetDevice(v Device) {
o.Device = v
}
diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go
index 3d42d0957b..081988bab3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go
index d0efe68b09..1219f8e2cf 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_rack_width.go b/model_rack_width.go
deleted file mode 100644
index 95f2ff4e45..0000000000
--- a/model_rack_width.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: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
-)
-
-// checks if the RackWidth type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &RackWidth{}
-
-// RackWidth struct for RackWidth
-type RackWidth struct {
- Value *RackWidthValue `json:"value,omitempty"`
- Label *RackWidthLabel `json:"label,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _RackWidth RackWidth
-
-// 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 NewRackWidth() *RackWidth {
- this := RackWidth{}
- return &this
-}
-
-// 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 NewRackWidthWithDefaults() *RackWidth {
- this := RackWidth{}
- return &this
-}
-
-// GetValue returns the Value field value if set, zero value otherwise.
-func (o *RackWidth) GetValue() RackWidthValue {
- if o == nil || IsNil(o.Value) {
- var ret RackWidthValue
- 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 *RackWidth) GetValueOk() (*RackWidthValue, 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 *RackWidth) HasValue() bool {
- if o != nil && !IsNil(o.Value) {
- return true
- }
-
- return false
-}
-
-// 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 *RackWidth) GetLabel() RackWidthLabel {
- if o == nil || IsNil(o.Label) {
- var ret RackWidthLabel
- 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 *RackWidth) GetLabelOk() (*RackWidthLabel, 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 *RackWidth) HasLabel() bool {
- if o != nil && !IsNil(o.Label) {
- return true
- }
-
- return false
-}
-
-// 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 RackWidth) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o RackWidth) 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 *RackWidth) UnmarshalJSON(data []byte) (err error) {
- varRackWidth := _RackWidth{}
-
- err = json.Unmarshal(data, &varRackWidth)
-
- if err != nil {
- return err
- }
-
- *o = RackWidth(varRackWidth)
-
- 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 NullableRackWidth struct {
- value *RackWidth
- isSet bool
-}
-
-func (v NullableRackWidth) Get() *RackWidth {
- return v.value
-}
-
-func (v *NullableRackWidth) Set(val *RackWidth) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableRackWidth) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableRackWidth) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableRackWidth(val *RackWidth) *NullableRackWidth {
- return &NullableRackWidth{value: val, isSet: true}
-}
-
-func (v NullableRackWidth) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-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
deleted file mode 100644
index 33681668c9..0000000000
--- a/model_rack_width_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 3983ae4db0..0000000000
--- a/model_rack_width_value.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: 3.7.7 (3.7)
-*/
-
-// 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 bd027526b5..874ce1541c 100644
--- a/model_rear_port.go
+++ b/model_rear_port.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ var _ MappedNullable = &RearPort{}
// RearPort Adds support for custom fields and tags.
type RearPort struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NestedDevice `json:"device"`
- Module NullableComponentNestedModule `json:"module,omitempty"`
- Name string `json:"name"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device Device `json:"device"`
+ Module NullableModule `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortType `json:"type"`
@@ -35,10 +35,10 @@ type RearPort struct {
Positions *int32 `json:"positions,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
- MarkConnected *bool `json:"mark_connected,omitempty"`
- Cable NullableNestedCable `json:"cable"`
- CableEnd string `json:"cable_end"`
- LinkPeers []interface{} `json:"link_peers"`
+ MarkConnected *bool `json:"mark_connected,omitempty"`
+ Cable NullableCable `json:"cable"`
+ CableEnd string `json:"cable_end"`
+ LinkPeers []interface{} `json:"link_peers"`
// Return the type of the peer link terminations, or None.
LinkPeersType string `json:"link_peers_type"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -55,7 +55,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 NestedDevice, name string, type_ FrontPortType, cable NullableNestedCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort {
+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 {
this := RearPort{}
this.Id = id
this.Url = url
@@ -154,9 +154,9 @@ func (o *RearPort) SetDisplay(v string) {
}
// GetDevice returns the Device field value
-func (o *RearPort) GetDevice() NestedDevice {
+func (o *RearPort) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -165,7 +165,7 @@ func (o *RearPort) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *RearPort) GetDeviceOk() (*NestedDevice, bool) {
+func (o *RearPort) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -173,14 +173,14 @@ func (o *RearPort) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *RearPort) SetDevice(v NestedDevice) {
+func (o *RearPort) SetDevice(v Device) {
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() ComponentNestedModule {
+func (o *RearPort) GetModule() Module {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModule
+ var ret Module
return ret
}
return *o.Module.Get()
@@ -189,7 +189,7 @@ func (o *RearPort) GetModule() ComponentNestedModule {
// 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() (*ComponentNestedModule, bool) {
+func (o *RearPort) GetModuleOk() (*Module, bool) {
if o == nil {
return nil, false
}
@@ -205,8 +205,8 @@ func (o *RearPort) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModule and assigns it to the Module field.
-func (o *RearPort) SetModule(v ComponentNestedModule) {
+// SetModule gets a reference to the given NullableModule and assigns it to the Module field.
+func (o *RearPort) SetModule(v Module) {
o.Module.Set(&v)
}
@@ -429,10 +429,10 @@ func (o *RearPort) SetMarkConnected(v bool) {
}
// GetCable returns the Cable field value
-// If the value is explicit nil, the zero value for NestedCable will be returned
-func (o *RearPort) GetCable() NestedCable {
+// 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 NestedCable
+ var ret Cable
return ret
}
@@ -442,7 +442,7 @@ func (o *RearPort) GetCable() NestedCable {
// GetCableOk returns a tuple with the Cable 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 *RearPort) GetCableOk() (*NestedCable, bool) {
+func (o *RearPort) GetCableOk() (*Cable, bool) {
if o == nil {
return nil, false
}
@@ -450,7 +450,7 @@ func (o *RearPort) GetCableOk() (*NestedCable, bool) {
}
// SetCable sets field value
-func (o *RearPort) SetCable(v NestedCable) {
+func (o *RearPort) SetCable(v Cable) {
o.Cable.Set(&v)
}
diff --git a/model_rear_port_request.go b/model_rear_port_request.go
index 6ef697a74f..0ea93e90ed 100644
--- a/model_rear_port_request.go
+++ b/model_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &RearPortRequest{}
// RearPortRequest Adds support for custom fields and tags.
type RearPortRequest struct {
- Device NestedDeviceRequest `json:"device"`
- Module NullableComponentNestedModuleRequest `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortTypeValue `json:"type"`
@@ -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 NestedDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest {
+func NewRearPortRequest(device DeviceRequest, 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() NestedDeviceRequest {
+func (o *RearPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *RearPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
}
// SetDevice sets field value
-func (o *RearPortRequest) SetDevice(v NestedDeviceRequest) {
+func (o *RearPortRequest) SetDevice(v DeviceRequest) {
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() ComponentNestedModuleRequest {
+func (o *RearPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret ComponentNestedModuleRequest
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -95,7 +95,7 @@ func (o *RearPortRequest) GetModule() ComponentNestedModuleRequest {
// 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() (*ComponentNestedModuleRequest, bool) {
+func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -111,8 +111,8 @@ func (o *RearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableComponentNestedModuleRequest and assigns it to the Module field.
-func (o *RearPortRequest) SetModule(v ComponentNestedModuleRequest) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *RearPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_rear_port_template.go b/model_rear_port_template.go
index 959dcfd61c..c0fc38788d 100644
--- a/model_rear_port_template.go
+++ b/model_rear_port_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time
@@ -21,21 +20,12 @@ var _ MappedNullable = &RearPortTemplate{}
// RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type RearPortTemplate struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- DeviceType NullableNestedDeviceType `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleType `json:"module_type,omitempty"`
+ 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"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Type FrontPortType `json:"type"`
- Color *string `json:"color,omitempty"`
- Positions *int32 `json:"positions,omitempty"`
- Description *string `json:"description,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -45,15 +35,12 @@ 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, type_ FrontPortType, created NullableTime, lastUpdated NullableTime) *RearPortTemplate {
+func NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate {
this := RearPortTemplate{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Type = type_
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -137,92 +124,6 @@ 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() NestedDeviceType {
- if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceType
- 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() (*NestedDeviceType, 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 NullableNestedDeviceType and assigns it to the DeviceType field.
-func (o *RearPortTemplate) SetDeviceType(v NestedDeviceType) {
- o.DeviceType.Set(&v)
-}
-
-// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
-func (o *RearPortTemplate) SetDeviceTypeNil() {
- o.DeviceType.Set(nil)
-}
-
-// 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() NestedModuleType {
- if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleType
- 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() (*NestedModuleType, 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 NullableNestedModuleType and assigns it to the ModuleType field.
-func (o *RearPortTemplate) SetModuleType(v NestedModuleType) {
- o.ModuleType.Set(&v)
-}
-
-// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
-func (o *RearPortTemplate) SetModuleTypeNil() {
- o.ModuleType.Set(nil)
-}
-
-// 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 {
@@ -247,126 +148,6 @@ 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) {
@@ -399,58 +180,6 @@ func (o *RearPortTemplate) 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
-func (o *RearPortTemplate) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *RearPortTemplate) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *RearPortTemplate) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *RearPortTemplate) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o RearPortTemplate) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -464,28 +193,10 @@ 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
}
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -503,9 +214,6 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "type",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -538,16 +246,8 @@ 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
}
diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go
index 59b533d8da..094c72a2dc 100644
--- a/model_rear_port_template_request.go
+++ b/model_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,9 @@ 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 NullableNestedDeviceTypeRequest `json:"device_type,omitempty"`
- ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"`
// {module} is accepted as a substitution for the module bay position when attached to a module type.
- 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"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -39,10 +32,9 @@ 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, type_ FrontPortTypeValue) *RearPortTemplateRequest {
+func NewRearPortTemplateRequest(name string) *RearPortTemplateRequest {
this := RearPortTemplateRequest{}
this.Name = name
- this.Type = type_
return &this
}
@@ -54,92 +46,6 @@ 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() NestedDeviceTypeRequest {
- if o == nil || IsNil(o.DeviceType.Get()) {
- var ret NestedDeviceTypeRequest
- 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() (*NestedDeviceTypeRequest, 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 NullableNestedDeviceTypeRequest and assigns it to the DeviceType field.
-func (o *RearPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) {
- o.DeviceType.Set(&v)
-}
-
-// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
-func (o *RearPortTemplateRequest) SetDeviceTypeNil() {
- o.DeviceType.Set(nil)
-}
-
-// 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() NestedModuleTypeRequest {
- if o == nil || IsNil(o.ModuleType.Get()) {
- var ret NestedModuleTypeRequest
- 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() (*NestedModuleTypeRequest, 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 NullableNestedModuleTypeRequest and assigns it to the ModuleType field.
-func (o *RearPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) {
- o.ModuleType.Set(&v)
-}
-
-// SetModuleTypeNil sets the value for ModuleType to be an explicit nil
-func (o *RearPortTemplateRequest) SetModuleTypeNil() {
- o.ModuleType.Set(nil)
-}
-
-// 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 {
@@ -164,126 +70,6 @@ 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) {
@@ -326,23 +112,7 @@ 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
}
@@ -360,7 +130,6 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "type",
}
allProperties := make(map[string]interface{})
@@ -390,13 +159,7 @@ 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
}
diff --git a/model_region.go b/model_region.go
index 0c2dcd15ea..41939f6356 100644
--- a/model_region.go
+++ b/model_region.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_region_request.go b/model_region_request.go
index 2e415b3418..a014b48115 100644
--- a/model_region_request.go
+++ b/model_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_rir.go b/model_rir.go
index 3a995d45ce..503050bfc1 100644
--- a/model_rir.go
+++ b/model_rir.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the RIR type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,13 @@ 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"`
- // IP space managed by this RIR is considered private
- IsPrivate *bool `json:"is_private,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- AggregateCount int32 `json:"aggregate_count"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -43,15 +36,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, created NullableTime, lastUpdated NullableTime, aggregateCount int32) *RIR {
+func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR {
this := RIR{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.AggregateCount = aggregateCount
return &this
}
@@ -184,38 +175,6 @@ 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) {
@@ -248,126 +207,10 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *RIR) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RIR) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *RIR) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *RIR) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *RIR) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *RIR) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetAggregateCount returns the AggregateCount field value
-func (o *RIR) GetAggregateCount() int32 {
+func (o *RIR) GetAggregateCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -376,7 +219,7 @@ func (o *RIR) GetAggregateCount() int32 {
// GetAggregateCountOk returns a tuple with the AggregateCount field value
// and a boolean to check if the value has been set.
-func (o *RIR) GetAggregateCountOk() (*int32, bool) {
+func (o *RIR) GetAggregateCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -384,7 +227,7 @@ func (o *RIR) GetAggregateCountOk() (*int32, bool) {
}
// SetAggregateCount sets field value
-func (o *RIR) SetAggregateCount(v int32) {
+func (o *RIR) SetAggregateCount(v int64) {
o.AggregateCount = v
}
@@ -403,20 +246,9 @@ func (o RIR) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["aggregate_count"] = o.AggregateCount
for key, value := range o.AdditionalProperties {
@@ -436,8 +268,6 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"aggregate_count",
}
@@ -473,12 +303,7 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_rir_request.go b/model_rir_request.go
index 0c2e6de13d..c7ddc0294b 100644
--- a/model_rir_request.go
+++ b/model_rir_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,9 @@ var _ MappedNullable = &RIRRequest{}
// RIRRequest Adds support for custom fields and tags.
type RIRRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- // IP space managed by this RIR is considered private
- IsPrivate *bool `json:"is_private,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -99,38 +95,6 @@ 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) {
@@ -163,70 +127,6 @@ 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()
if err != nil {
@@ -239,18 +139,9 @@ 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
@@ -297,10 +188,7 @@ 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
}
diff --git a/model_role.go b/model_role.go
index af5cf33b2b..41ad3c7c58 100644
--- a/model_role.go
+++ b/model_role.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Role type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,14 @@ var _ MappedNullable = &Role{}
// Role Adds support for custom fields and tags.
type Role struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- PrefixCount int32 `json:"prefix_count"`
- VlanCount int32 `json:"vlan_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ PrefixCount int64 `json:"prefix_count"`
+ VlanCount int64 `json:"vlan_count"`
AdditionalProperties map[string]interface{}
}
@@ -43,15 +37,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, created NullableTime, lastUpdated NullableTime, prefixCount int32, vlanCount int32) *Role {
+func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64) *Role {
this := Role{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.PrefixCount = prefixCount
this.VlanCount = vlanCount
return &this
@@ -185,38 +177,6 @@ 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) {
@@ -249,126 +209,10 @@ func (o *Role) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Role) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Role) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Role) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Role) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Role) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Role) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetPrefixCount returns the PrefixCount field value
-func (o *Role) GetPrefixCount() int32 {
+func (o *Role) GetPrefixCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -377,7 +221,7 @@ func (o *Role) GetPrefixCount() int32 {
// GetPrefixCountOk returns a tuple with the PrefixCount field value
// and a boolean to check if the value has been set.
-func (o *Role) GetPrefixCountOk() (*int32, bool) {
+func (o *Role) GetPrefixCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -385,14 +229,14 @@ func (o *Role) GetPrefixCountOk() (*int32, bool) {
}
// SetPrefixCount sets field value
-func (o *Role) SetPrefixCount(v int32) {
+func (o *Role) SetPrefixCount(v int64) {
o.PrefixCount = v
}
// GetVlanCount returns the VlanCount field value
-func (o *Role) GetVlanCount() int32 {
+func (o *Role) GetVlanCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -401,7 +245,7 @@ func (o *Role) GetVlanCount() int32 {
// GetVlanCountOk returns a tuple with the VlanCount field value
// and a boolean to check if the value has been set.
-func (o *Role) GetVlanCountOk() (*int32, bool) {
+func (o *Role) GetVlanCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -409,7 +253,7 @@ func (o *Role) GetVlanCountOk() (*int32, bool) {
}
// SetVlanCount sets field value
-func (o *Role) SetVlanCount(v int32) {
+func (o *Role) SetVlanCount(v int64) {
o.VlanCount = v
}
@@ -428,20 +272,9 @@ func (o Role) ToMap() (map[string]interface{}, error) {
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
}
- 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()
toSerialize["prefix_count"] = o.PrefixCount
toSerialize["vlan_count"] = o.VlanCount
@@ -462,8 +295,6 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"prefix_count",
"vlan_count",
}
@@ -500,12 +331,7 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) {
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
diff --git a/model_role_request.go b/model_role_request.go
index e08aea16bc..601cac5595 100644
--- a/model_role_request.go
+++ b/model_role_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,9 @@ var _ MappedNullable = &RoleRequest{}
// RoleRequest Adds support for custom fields and tags.
type RoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -98,38 +95,6 @@ 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) {
@@ -162,70 +127,6 @@ 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()
if err != nil {
@@ -238,18 +139,9 @@ 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
@@ -296,10 +188,7 @@ 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
}
diff --git a/model_route_target.go b/model_route_target.go
index 6016157c91..7856b51ca6 100644
--- a/model_route_target.go
+++ b/model_route_target.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -26,7 +26,7 @@ type RouteTarget struct {
Display string `json:"display"`
// Route target value (formatted in accordance with RFC 4360)
Name string `json:"name"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
+ Tenant NullableTenant `json:"tenant,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -158,9 +158,9 @@ func (o *RouteTarget) 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 *RouteTarget) GetTenant() NestedTenant {
+func (o *RouteTarget) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -169,7 +169,7 @@ func (o *RouteTarget) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *RouteTarget) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -185,8 +185,8 @@ func (o *RouteTarget) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *RouteTarget) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *RouteTarget) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_route_target_request.go b/model_route_target_request.go
index ceabf5a957..f913d4bdf1 100644
--- a/model_route_target_request.go
+++ b/model_route_target_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableNestedTenantRequest `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Tenant 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"`
AdditionalProperties map[string]interface{}
}
@@ -75,9 +75,9 @@ func (o *RouteTargetRequest) 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 *RouteTargetRequest) GetTenant() NestedTenantRequest {
+func (o *RouteTargetRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -86,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -102,8 +102,8 @@ func (o *RouteTargetRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *RouteTargetRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *RouteTargetRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_saved_filter.go b/model_saved_filter.go
index f7ee500bd3..4282ab65ad 100644
--- a/model_saved_filter.go
+++ b/model_saved_filter.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type SavedFilter struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- ContentTypes []string `json:"content_types"`
+ ObjectTypes []string `json:"object_types"`
Name string `json:"name"`
Slug string `json:"slug"`
Description *string `json:"description,omitempty"`
@@ -44,12 +44,12 @@ 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, contentTypes []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{}, created NullableTime, lastUpdated NullableTime) *SavedFilter {
this := SavedFilter{}
this.Id = id
this.Url = url
this.Display = display
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.Slug = slug
this.Parameters = parameters
@@ -138,28 +138,28 @@ func (o *SavedFilter) SetDisplay(v string) {
o.Display = v
}
-// GetContentTypes returns the ContentTypes field value
-func (o *SavedFilter) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *SavedFilter) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *SavedFilter) GetContentTypesOk() ([]string, bool) {
+func (o *SavedFilter) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *SavedFilter) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *SavedFilter) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -472,7 +472,7 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
if !IsNil(o.Description) {
@@ -511,7 +511,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) {
"id",
"url",
"display",
- "content_types",
+ "object_types",
"name",
"slug",
"parameters",
@@ -549,7 +549,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "url")
delete(additionalProperties, "display")
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go
index 4b559a477e..d38d5ce3eb 100644
--- a/model_saved_filter_request.go
+++ b/model_saved_filter_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &SavedFilterRequest{}
// SavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type SavedFilterRequest struct {
- ContentTypes []string `json:"content_types"`
+ ObjectTypes []string `json:"object_types"`
Name string `json:"name"`
Slug string `json:"slug"`
Description *string `json:"description,omitempty"`
@@ -38,9 +38,9 @@ type _SavedFilterRequest SavedFilterRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewSavedFilterRequest(contentTypes []string, name string, slug string, parameters interface{}) *SavedFilterRequest {
+func NewSavedFilterRequest(objectTypes []string, name string, slug string, parameters interface{}) *SavedFilterRequest {
this := SavedFilterRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.Slug = slug
this.Parameters = parameters
@@ -55,28 +55,28 @@ func NewSavedFilterRequestWithDefaults() *SavedFilterRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *SavedFilterRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *SavedFilterRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *SavedFilterRequest) GetContentTypesOk() ([]string, bool) {
+func (o *SavedFilterRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *SavedFilterRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *SavedFilterRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -334,7 +334,7 @@ func (o SavedFilterRequest) MarshalJSON() ([]byte, error) {
func (o SavedFilterRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
if !IsNil(o.Description) {
@@ -368,7 +368,7 @@ func (o *SavedFilterRequest) 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{
- "content_types",
+ "object_types",
"name",
"slug",
"parameters",
@@ -401,7 +401,7 @@ func (o *SavedFilterRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "slug")
delete(additionalProperties, "description")
diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go
index f1a077ca7c..19b41f6a59 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go
new file mode 100644
index 0000000000..301bf4dbb2
--- /dev/null
+++ b/model_schema_retrieve_lang_parameter.go
@@ -0,0 +1,126 @@
+/*
+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"
+)
+
+// SchemaRetrieveLangParameter the model 'SchemaRetrieveLangParameter'
+type SchemaRetrieveLangParameter string
+
+// List of schema_retrieve_lang_parameter
+const (
+ SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de"
+ SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en"
+ SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es"
+ SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr"
+ SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja"
+ SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt"
+ SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru"
+ SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr"
+ SCHEMARETRIEVELANGPARAMETER_UK SchemaRetrieveLangParameter = "uk"
+ SCHEMARETRIEVELANGPARAMETER_ZH SchemaRetrieveLangParameter = "zh"
+)
+
+// All allowed values of SchemaRetrieveLangParameter enum
+var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{
+ "de",
+ "en",
+ "es",
+ "fr",
+ "ja",
+ "pt",
+ "ru",
+ "tr",
+ "uk",
+ "zh",
+}
+
+func (v *SchemaRetrieveLangParameter) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SchemaRetrieveLangParameter(value)
+ for _, existing := range AllowedSchemaRetrieveLangParameterEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+
+ return fmt.Errorf("%+v is not a valid SchemaRetrieveLangParameter", value)
+}
+
+// NewSchemaRetrieveLangParameterFromValue returns a pointer to a valid SchemaRetrieveLangParameter
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSchemaRetrieveLangParameterFromValue(v string) (*SchemaRetrieveLangParameter, error) {
+ ev := SchemaRetrieveLangParameter(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SchemaRetrieveLangParameter: valid values are %v", v, AllowedSchemaRetrieveLangParameterEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SchemaRetrieveLangParameter) IsValid() bool {
+ for _, existing := range AllowedSchemaRetrieveLangParameterEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to schema_retrieve_lang_parameter value
+func (v SchemaRetrieveLangParameter) Ptr() *SchemaRetrieveLangParameter {
+ return &v
+}
+
+type NullableSchemaRetrieveLangParameter struct {
+ value *SchemaRetrieveLangParameter
+ isSet bool
+}
+
+func (v NullableSchemaRetrieveLangParameter) Get() *SchemaRetrieveLangParameter {
+ return v.value
+}
+
+func (v *NullableSchemaRetrieveLangParameter) Set(val *SchemaRetrieveLangParameter) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSchemaRetrieveLangParameter) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSchemaRetrieveLangParameter) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSchemaRetrieveLangParameter(val *SchemaRetrieveLangParameter) *NullableSchemaRetrieveLangParameter {
+ return &NullableSchemaRetrieveLangParameter{value: val, isSet: true}
+}
+
+func (v NullableSchemaRetrieveLangParameter) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+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
new file mode 100644
index 0000000000..738094f17b
--- /dev/null
+++ b/model_script.go
@@ -0,0 +1,402 @@
+/*
+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 Script type satisfies the MappedNullable interface at compile time
+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"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _Script Script
+
+// NewScript instantiates a new Script object
+// This constructor will assign default values to properties that have it defined,
+// and 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 {
+ 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
+ return &this
+}
+
+// NewScriptWithDefaults instantiates a new Script object
+// This 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 NewScriptWithDefaults() *Script {
+ this := Script{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *Script) 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 *Script) GetIdOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *Script) SetId(v int32) {
+ o.Id = v
+}
+
+// GetUrl returns the Url field value
+func (o *Script) 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 *Script) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *Script) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetModule returns the Module field value
+func (o *Script) GetModule() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.Module
+}
+
+// GetModuleOk returns a tuple with the Module field value
+// and a boolean to check if the value has been set.
+func (o *Script) GetModuleOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Module, true
+}
+
+// SetModule sets field value
+func (o *Script) SetModule(v int32) {
+ o.Module = v
+}
+
+// GetName returns the Name field value
+func (o *Script) 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 *Script) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *Script) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value
+func (o *Script) GetDescription() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Description
+}
+
+// GetDescriptionOk returns a tuple with the Description field value
+// and a boolean to check if the value has been set.
+func (o *Script) GetDescriptionOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Description, true
+}
+
+// SetDescription sets field value
+func (o *Script) SetDescription(v string) {
+ o.Description = v
+}
+
+// GetVars returns the Vars field value
+// If the value is explicit nil, the zero value for interface{} will be returned
+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
+// and a 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) {
+ if o == nil || IsNil(o.Vars) {
+ return nil, false
+ }
+ return &o.Vars, true
+}
+
+// SetVars sets field value
+func (o *Script) SetVars(v interface{}) {
+ o.Vars = v
+}
+
+// GetResult returns the Result field value
+func (o *Script) GetResult() Job {
+ if o == nil {
+ var ret Job
+ return ret
+ }
+
+ return o.Result
+}
+
+// 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) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Result, true
+}
+
+// SetResult sets field value
+func (o *Script) SetResult(v Job) {
+ o.Result = v
+}
+
+// GetDisplay returns the Display field value
+func (o *Script) 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 *Script) GetDisplayOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Display, true
+}
+
+// SetDisplay sets field value
+func (o *Script) SetDisplay(v string) {
+ o.Display = v
+}
+
+// GetIsExecutable returns the IsExecutable field value
+func (o *Script) GetIsExecutable() bool {
+ if o == nil {
+ var ret bool
+ return ret
+ }
+
+ return o.IsExecutable
+}
+
+// GetIsExecutableOk returns a tuple with the IsExecutable field value
+// and a boolean to check if the value has been set.
+func (o *Script) GetIsExecutableOk() (*bool, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.IsExecutable, true
+}
+
+// SetIsExecutable sets field value
+func (o *Script) SetIsExecutable(v bool) {
+ o.IsExecutable = v
+}
+
+func (o Script) MarshalJSON() ([]byte, error) {
+ toSerialize, err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Script) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["url"] = o.Url
+ toSerialize["module"] = o.Module
+ toSerialize["name"] = o.Name
+ toSerialize["description"] = o.Description
+ if o.Vars != nil {
+ toSerialize["vars"] = o.Vars
+ }
+ toSerialize["result"] = o.Result
+ toSerialize["display"] = o.Display
+ toSerialize["is_executable"] = o.IsExecutable
+
+ for key, value := range o.AdditionalProperties {
+ toSerialize[key] = value
+ }
+
+ return toSerialize, nil
+}
+
+func (o *Script) 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",
+ "module",
+ "name",
+ "description",
+ "vars",
+ "result",
+ "display",
+ "is_executable",
+ }
+
+ 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)
+ }
+ }
+
+ varScript := _Script{}
+
+ err = json.Unmarshal(data, &varScript)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Script(varScript)
+
+ additionalProperties := make(map[string]interface{})
+
+ if err = json.Unmarshal(data, &additionalProperties); err == nil {
+ delete(additionalProperties, "id")
+ delete(additionalProperties, "url")
+ delete(additionalProperties, "module")
+ delete(additionalProperties, "name")
+ delete(additionalProperties, "description")
+ delete(additionalProperties, "vars")
+ delete(additionalProperties, "result")
+ delete(additionalProperties, "display")
+ delete(additionalProperties, "is_executable")
+ o.AdditionalProperties = additionalProperties
+ }
+
+ return err
+}
+
+type NullableScript struct {
+ value *Script
+ isSet bool
+}
+
+func (v NullableScript) Get() *Script {
+ return v.value
+}
+
+func (v *NullableScript) Set(val *Script) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableScript) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableScript) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableScript(val *Script) *NullableScript {
+ return &NullableScript{value: val, isSet: true}
+}
+
+func (v NullableScript) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableScript) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/model_service.go b/model_service.go
index a90f279be8..e12f61b56e 100644
--- a/model_service.go
+++ b/model_service.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,21 +21,21 @@ var _ MappedNullable = &Service{}
// Service Adds support for custom fields and tags.
type Service struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Device NullableNestedDevice `json:"device,omitempty"`
- VirtualMachine NullableNestedVirtualMachine `json:"virtual_machine,omitempty"`
- Name string `json:"name"`
- Ports []int32 `json:"ports"`
- Protocol *ServiceProtocol `json:"protocol,omitempty"`
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Device 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"`
AdditionalProperties map[string]interface{}
}
@@ -138,9 +138,9 @@ func (o *Service) SetDisplay(v string) {
}
// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *Service) GetDevice() NestedDevice {
+func (o *Service) GetDevice() Device {
if o == nil || IsNil(o.Device.Get()) {
- var ret NestedDevice
+ var ret Device
return ret
}
return *o.Device.Get()
@@ -149,7 +149,7 @@ func (o *Service) GetDevice() NestedDevice {
// 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() (*NestedDevice, bool) {
+func (o *Service) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -165,8 +165,8 @@ func (o *Service) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableNestedDevice and assigns it to the Device field.
-func (o *Service) SetDevice(v NestedDevice) {
+// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field.
+func (o *Service) SetDevice(v Device) {
o.Device.Set(&v)
}
@@ -181,9 +181,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() NestedVirtualMachine {
+func (o *Service) GetVirtualMachine() VirtualMachine {
if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret NestedVirtualMachine
+ var ret VirtualMachine
return ret
}
return *o.VirtualMachine.Get()
@@ -192,7 +192,7 @@ func (o *Service) GetVirtualMachine() NestedVirtualMachine {
// 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() (*NestedVirtualMachine, bool) {
+func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -208,8 +208,8 @@ func (o *Service) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given NullableNestedVirtualMachine and assigns it to the VirtualMachine field.
-func (o *Service) SetVirtualMachine(v NestedVirtualMachine) {
+// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field.
+func (o *Service) SetVirtualMachine(v VirtualMachine) {
o.VirtualMachine.Set(&v)
}
@@ -247,30 +247,6 @@ func (o *Service) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *Service) GetPorts() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Ports
-}
-
-// GetPortsOk returns a tuple with the Ports field value
-// and a boolean to check if the value has been set.
-func (o *Service) GetPortsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Ports, true
-}
-
-// SetPorts sets field value
-func (o *Service) SetPorts(v []int32) {
- o.Ports = v
-}
-
// GetProtocol returns the Protocol field value if set, zero value otherwise.
func (o *Service) GetProtocol() ServiceProtocol {
if o == nil || IsNil(o.Protocol) {
@@ -303,10 +279,34 @@ func (o *Service) SetProtocol(v ServiceProtocol) {
o.Protocol = &v
}
+// GetPorts returns the Ports field value
+func (o *Service) GetPorts() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Ports
+}
+
+// GetPortsOk returns a tuple with the Ports field value
+// and a boolean to check if the value has been set.
+func (o *Service) GetPortsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Ports, true
+}
+
+// SetPorts sets field value
+func (o *Service) SetPorts(v []int32) {
+ o.Ports = v
+}
+
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
-func (o *Service) GetIpaddresses() []int32 {
+func (o *Service) GetIpaddresses() []IPAddress {
if o == nil || IsNil(o.Ipaddresses) {
- var ret []int32
+ var ret []IPAddress
return ret
}
return o.Ipaddresses
@@ -314,7 +314,7 @@ func (o *Service) GetIpaddresses() []int32 {
// GetIpaddressesOk returns a tuple with the Ipaddresses field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *Service) GetIpaddressesOk() ([]int32, bool) {
+func (o *Service) GetIpaddressesOk() ([]IPAddress, bool) {
if o == nil || IsNil(o.Ipaddresses) {
return nil, false
}
@@ -330,8 +330,8 @@ func (o *Service) HasIpaddresses() bool {
return false
}
-// SetIpaddresses gets a reference to the given []int32 and assigns it to the Ipaddresses field.
-func (o *Service) SetIpaddresses(v []int32) {
+// SetIpaddresses gets a reference to the given []IPAddress and assigns it to the Ipaddresses field.
+func (o *Service) SetIpaddresses(v []IPAddress) {
o.Ipaddresses = v
}
@@ -535,10 +535,10 @@ func (o Service) ToMap() (map[string]interface{}, error) {
toSerialize["virtual_machine"] = o.VirtualMachine.Get()
}
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Ipaddresses) {
toSerialize["ipaddresses"] = o.Ipaddresses
}
@@ -611,8 +611,8 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "ipaddresses")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
diff --git a/model_service_protocol.go b/model_service_protocol.go
index 130420e999..bdd3078449 100644
--- a/model_service_protocol.go
+++ b/model_service_protocol.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go
index cf0ac6134f..b210b80a3a 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_service_request.go b/model_service_request.go
index 382ee64f8a..9b3bc7f2be 100644
--- a/model_service_request.go
+++ b/model_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &ServiceRequest{}
// ServiceRequest Adds support for custom fields and tags.
type ServiceRequest struct {
- Device NullableNestedDeviceRequest `json:"device,omitempty"`
- VirtualMachine NullableNestedVirtualMachineRequest `json:"virtual_machine,omitempty"`
+ Device NullableDeviceRequest `json:"device,omitempty"`
+ VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"`
Name string `json:"name"`
- Ports []int32 `json:"ports"`
Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
Ipaddresses []int32 `json:"ipaddresses,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
@@ -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() NestedDeviceRequest {
+func (o *ServiceRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() NestedDeviceRequest {
// 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() (*NestedDeviceRequest, bool) {
+func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -82,8 +82,8 @@ func (o *ServiceRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableNestedDeviceRequest and assigns it to the Device field.
-func (o *ServiceRequest) SetDevice(v NestedDeviceRequest) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *ServiceRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -98,9 +98,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() NestedVirtualMachineRequest {
+func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret NestedVirtualMachineRequest
+ var ret VirtualMachineRequest
return ret
}
return *o.VirtualMachine.Get()
@@ -109,7 +109,7 @@ func (o *ServiceRequest) GetVirtualMachine() NestedVirtualMachineRequest {
// 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() (*NestedVirtualMachineRequest, bool) {
+func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -125,8 +125,8 @@ func (o *ServiceRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given NullableNestedVirtualMachineRequest and assigns it to the VirtualMachine field.
-func (o *ServiceRequest) SetVirtualMachine(v NestedVirtualMachineRequest) {
+// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field.
+func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine.Set(&v)
}
@@ -164,30 +164,6 @@ func (o *ServiceRequest) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *ServiceRequest) GetPorts() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Ports
-}
-
-// GetPortsOk returns a tuple with the Ports field value
-// and a boolean to check if the value has been set.
-func (o *ServiceRequest) GetPortsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Ports, true
-}
-
-// SetPorts sets field value
-func (o *ServiceRequest) SetPorts(v []int32) {
- o.Ports = 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 +196,30 @@ func (o *ServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
o.Protocol = &v
}
+// GetPorts returns the Ports field value
+func (o *ServiceRequest) GetPorts() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Ports
+}
+
+// GetPortsOk returns a tuple with the Ports field value
+// and a boolean to check if the value has been set.
+func (o *ServiceRequest) GetPortsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Ports, true
+}
+
+// SetPorts sets field value
+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) {
@@ -397,10 +397,10 @@ func (o ServiceRequest) ToMap() (map[string]interface{}, error) {
toSerialize["virtual_machine"] = o.VirtualMachine.Get()
}
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Ipaddresses) {
toSerialize["ipaddresses"] = o.Ipaddresses
}
@@ -463,8 +463,8 @@ func (o *ServiceRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "ipaddresses")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
diff --git a/model_service_template.go b/model_service_template.go
index d63089ee58..9d80868778 100644
--- a/model_service_template.go
+++ b/model_service_template.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -25,8 +25,8 @@ type ServiceTemplate struct {
Url string `json:"url"`
Display string `json:"display"`
Name string `json:"name"`
- Ports []int32 `json:"ports"`
Protocol *ServiceProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTag `json:"tags,omitempty"`
@@ -158,30 +158,6 @@ func (o *ServiceTemplate) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *ServiceTemplate) GetPorts() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Ports
-}
-
-// GetPortsOk returns a tuple with the Ports field value
-// and a boolean to check if the value has been set.
-func (o *ServiceTemplate) GetPortsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Ports, true
-}
-
-// SetPorts sets field value
-func (o *ServiceTemplate) SetPorts(v []int32) {
- o.Ports = 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 +190,30 @@ func (o *ServiceTemplate) SetProtocol(v ServiceProtocol) {
o.Protocol = &v
}
+// GetPorts returns the Ports field value
+func (o *ServiceTemplate) GetPorts() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Ports
+}
+
+// GetPortsOk returns a tuple with the Ports field value
+// and a boolean to check if the value has been set.
+func (o *ServiceTemplate) GetPortsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Ports, true
+}
+
+// SetPorts sets field value
+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) {
@@ -408,10 +408,10 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
toSerialize["display"] = o.Display
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -479,8 +479,8 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display")
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
diff --git a/model_service_template_request.go b/model_service_template_request.go
index 4bbb590435..39275e46c0 100644
--- a/model_service_template_request.go
+++ b/model_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &ServiceTemplateRequest{}
// ServiceTemplateRequest Adds support for custom fields and tags.
type ServiceTemplateRequest struct {
Name string `json:"name"`
- Ports []int32 `json:"ports"`
Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"`
+ Ports []int32 `json:"ports"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -75,30 +75,6 @@ func (o *ServiceTemplateRequest) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *ServiceTemplateRequest) GetPorts() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Ports
-}
-
-// GetPortsOk returns a tuple with the Ports field value
-// and a boolean to check if the value has been set.
-func (o *ServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Ports, true
-}
-
-// SetPorts sets field value
-func (o *ServiceTemplateRequest) SetPorts(v []int32) {
- o.Ports = 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 +107,30 @@ func (o *ServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProt
o.Protocol = &v
}
+// GetPorts returns the Ports field value
+func (o *ServiceTemplateRequest) GetPorts() []int32 {
+ if o == nil {
+ var ret []int32
+ return ret
+ }
+
+ return o.Ports
+}
+
+// GetPortsOk returns a tuple with the Ports field value
+// and a boolean to check if the value has been set.
+func (o *ServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Ports, true
+}
+
+// SetPorts sets field value
+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) {
@@ -270,10 +270,10 @@ func (o ServiceTemplateRequest) MarshalJSON() ([]byte, error) {
func (o ServiceTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
if !IsNil(o.Protocol) {
toSerialize["protocol"] = o.Protocol
}
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -331,8 +331,8 @@ func (o *ServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) {
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
diff --git a/model_site.go b/model_site.go
index 60d4882014..1e847b294b 100644
--- a/model_site.go
+++ b/model_site.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Site type satisfies the MappedNullable interface at compile time
@@ -25,36 +24,9 @@ type Site struct {
Url string `json:"url"`
Display string `json:"display"`
// Full name of the site
- Name string `json:"name"`
- Slug string `json:"slug"`
- Status *LocationStatus `json:"status,omitempty"`
- Region NullableNestedRegion `json:"region,omitempty"`
- Group NullableNestedSiteGroup `json:"group,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- // 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 []NestedASN `json:"asns,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- CircuitCount int32 `json:"circuit_count"`
- DeviceCount int32 `json:"device_count"`
- PrefixCount int32 `json:"prefix_count"`
- RackCount int32 `json:"rack_count"`
- VirtualmachineCount int32 `json:"virtualmachine_count"`
- VlanCount int32 `json:"vlan_count"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -64,21 +36,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, created NullableTime, lastUpdated NullableTime, circuitCount int32, deviceCount int32, prefixCount int32, rackCount int32, virtualmachineCount int32, vlanCount int32) *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.Created = created
- this.LastUpdated = lastUpdated
- this.CircuitCount = circuitCount
- this.DeviceCount = deviceCount
- this.PrefixCount = prefixCount
- this.RackCount = rackCount
- this.VirtualmachineCount = virtualmachineCount
- this.VlanCount = vlanCount
return &this
}
@@ -210,242 +174,6 @@ 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() NestedRegion {
- if o == nil || IsNil(o.Region.Get()) {
- var ret NestedRegion
- 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() (*NestedRegion, 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 NullableNestedRegion and assigns it to the Region field.
-func (o *Site) SetRegion(v NestedRegion) {
- o.Region.Set(&v)
-}
-
-// SetRegionNil sets the value for Region to be an explicit nil
-func (o *Site) SetRegionNil() {
- o.Region.Set(nil)
-}
-
-// 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() NestedSiteGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedSiteGroup
- 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() (*NestedSiteGroup, 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 NullableNestedSiteGroup and assigns it to the Group field.
-func (o *Site) SetGroup(v NestedSiteGroup) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *Site) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Site) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Site) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Site) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *Site) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -478,480 +206,6 @@ 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() []NestedASN {
- if o == nil || IsNil(o.Asns) {
- var ret []NestedASN
- 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() ([]NestedASN, 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 []NestedASN and assigns it to the Asns field.
-func (o *Site) SetAsns(v []NestedASN) {
- 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Site) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Site) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Site) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Site) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Site) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Site) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetCircuitCount returns the CircuitCount field value
-func (o *Site) GetCircuitCount() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.CircuitCount, true
-}
-
-// SetCircuitCount sets field value
-func (o *Site) SetCircuitCount(v int32) {
- o.CircuitCount = v
-}
-
-// GetDeviceCount returns the DeviceCount field value
-func (o *Site) GetDeviceCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceCount
-}
-
-// GetDeviceCountOk returns a tuple with the DeviceCount field value
-// and a boolean to check if the value has been set.
-func (o *Site) GetDeviceCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceCount, true
-}
-
-// SetDeviceCount sets field value
-func (o *Site) SetDeviceCount(v int32) {
- o.DeviceCount = v
-}
-
-// GetPrefixCount returns the PrefixCount field value
-func (o *Site) GetPrefixCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.PrefixCount
-}
-
-// GetPrefixCountOk returns a tuple with the PrefixCount field value
-// and a boolean to check if the value has been set.
-func (o *Site) GetPrefixCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PrefixCount, true
-}
-
-// SetPrefixCount sets field value
-func (o *Site) SetPrefixCount(v int32) {
- o.PrefixCount = v
-}
-
-// GetRackCount returns the RackCount field value
-func (o *Site) GetRackCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.RackCount
-}
-
-// GetRackCountOk returns a tuple with the RackCount field value
-// and a boolean to check if the value has been set.
-func (o *Site) GetRackCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.RackCount, true
-}
-
-// SetRackCount sets field value
-func (o *Site) SetRackCount(v int32) {
- o.RackCount = v
-}
-
-// GetVirtualmachineCount returns the VirtualmachineCount field value
-func (o *Site) GetVirtualmachineCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VirtualmachineCount
-}
-
-// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value
-// and a boolean to check if the value has been set.
-func (o *Site) GetVirtualmachineCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VirtualmachineCount, true
-}
-
-// SetVirtualmachineCount sets field value
-func (o *Site) SetVirtualmachineCount(v int32) {
- o.VirtualmachineCount = v
-}
-
-// GetVlanCount returns the VlanCount field value
-func (o *Site) GetVlanCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VlanCount
-}
-
-// GetVlanCountOk returns a tuple with the VlanCount field value
-// and a boolean to check if the value has been set.
-func (o *Site) GetVlanCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VlanCount, true
-}
-
-// SetVlanCount sets field value
-func (o *Site) SetVlanCount(v int32) {
- o.VlanCount = v
-}
-
func (o Site) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -967,59 +221,9 @@ func (o Site) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["circuit_count"] = o.CircuitCount
- toSerialize["device_count"] = o.DeviceCount
- toSerialize["prefix_count"] = o.PrefixCount
- toSerialize["rack_count"] = o.RackCount
- toSerialize["virtualmachine_count"] = o.VirtualmachineCount
- toSerialize["vlan_count"] = o.VlanCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -1038,14 +242,6 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
- "circuit_count",
- "device_count",
- "prefix_count",
- "rack_count",
- "virtualmachine_count",
- "vlan_count",
}
allProperties := make(map[string]interface{})
@@ -1080,29 +276,7 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_site_group.go b/model_site_group.go
index 71401174b9..36320a38d7 100644
--- a/model_site_group.go
+++ b/model_site_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_site_group_request.go b/model_site_group_request.go
index 9393c710e8..1cd1ab1c56 100644
--- a/model_site_group_request.go
+++ b/model_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_site_request.go b/model_site_request.go
index 3bc36b1224..60b8fd8dc9 100644
--- a/model_site_request.go
+++ b/model_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,28 +21,9 @@ 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"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Region NullableNestedRegionRequest `json:"region,omitempty"`
- Group NullableNestedSiteGroupRequest `json:"group,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- // Local facility ID or description
- Facility *string `json:"facility,omitempty"`
- TimeZone NullableString `json:"time_zone,omitempty"`
- Description *string `json:"description,omitempty"`
- // 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"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -115,242 +96,6 @@ 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() NestedRegionRequest {
- if o == nil || IsNil(o.Region.Get()) {
- var ret NestedRegionRequest
- 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() (*NestedRegionRequest, 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 NullableNestedRegionRequest and assigns it to the Region field.
-func (o *SiteRequest) SetRegion(v NestedRegionRequest) {
- o.Region.Set(&v)
-}
-
-// SetRegionNil sets the value for Region to be an explicit nil
-func (o *SiteRequest) SetRegionNil() {
- o.Region.Set(nil)
-}
-
-// 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() NestedSiteGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedSiteGroupRequest
- 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() (*NestedSiteGroupRequest, 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 NullableNestedSiteGroupRequest and assigns it to the Group field.
-func (o *SiteRequest) SetGroup(v NestedSiteGroupRequest) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *SiteRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *SiteRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *SiteRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *SiteRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *SiteRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -383,284 +128,6 @@ 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()
if err != nil {
@@ -673,51 +140,9 @@ 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
@@ -764,21 +189,7 @@ 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
}
diff --git a/model_tag.go b/model_tag.go
index 70c467028c..976b2af1a6 100644
--- a/model_tag.go
+++ b/model_tag.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -29,7 +29,7 @@ type Tag struct {
Color *string `json:"color,omitempty"`
Description *string `json:"description,omitempty"`
ObjectTypes []string `json:"object_types,omitempty"`
- TaggedItems int32 `json:"tagged_items"`
+ TaggedItems int64 `json:"tagged_items"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
AdditionalProperties map[string]interface{}
@@ -41,7 +41,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 int32, created NullableTime, lastUpdated NullableTime) *Tag {
+func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag {
this := Tag{}
this.Id = id
this.Url = url
@@ -279,9 +279,9 @@ func (o *Tag) SetObjectTypes(v []string) {
}
// GetTaggedItems returns the TaggedItems field value
-func (o *Tag) GetTaggedItems() int32 {
+func (o *Tag) GetTaggedItems() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -290,7 +290,7 @@ func (o *Tag) GetTaggedItems() int32 {
// GetTaggedItemsOk returns a tuple with the TaggedItems field value
// and a boolean to check if the value has been set.
-func (o *Tag) GetTaggedItemsOk() (*int32, bool) {
+func (o *Tag) GetTaggedItemsOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -298,7 +298,7 @@ func (o *Tag) GetTaggedItemsOk() (*int32, bool) {
}
// SetTaggedItems sets field value
-func (o *Tag) SetTaggedItems(v int32) {
+func (o *Tag) SetTaggedItems(v int64) {
o.TaggedItems = v
}
diff --git a/model_tag_request.go b/model_tag_request.go
index 1809d989bc..3e2e1c595d 100644
--- a/model_tag_request.go
+++ b/model_tag_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_tenancy_contact_assignments_list_priority_parameter.go b/model_tenancy_contact_assignments_list_priority_parameter.go
new file mode 100644
index 0000000000..abf291b5b1
--- /dev/null
+++ b/model_tenancy_contact_assignments_list_priority_parameter.go
@@ -0,0 +1,114 @@
+/*
+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 20d0d33b51..0c4232d933 100644
--- a/model_tenant.go
+++ b/model_tenant.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Tenant type satisfies the MappedNullable interface at compile time
@@ -21,28 +20,12 @@ var _ MappedNullable = &Tenant{}
// Tenant Adds support for custom fields and tags.
type Tenant struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Group NullableNestedTenantGroup `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- CircuitCount int32 `json:"circuit_count"`
- DeviceCount int32 `json:"device_count"`
- IpaddressCount int32 `json:"ipaddress_count"`
- PrefixCount int32 `json:"prefix_count"`
- RackCount int32 `json:"rack_count"`
- SiteCount int32 `json:"site_count"`
- VirtualmachineCount int32 `json:"virtualmachine_count"`
- VlanCount int32 `json:"vlan_count"`
- VrfCount int32 `json:"vrf_count"`
- ClusterCount int32 `json:"cluster_count"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -52,25 +35,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, created NullableTime, lastUpdated NullableTime, circuitCount int32, deviceCount int32, ipaddressCount int32, prefixCount int32, rackCount int32, siteCount int32, virtualmachineCount int32, vlanCount int32, vrfCount int32, clusterCount int32) *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.Created = created
- this.LastUpdated = lastUpdated
- this.CircuitCount = circuitCount
- this.DeviceCount = deviceCount
- this.IpaddressCount = ipaddressCount
- this.PrefixCount = prefixCount
- this.RackCount = rackCount
- this.SiteCount = siteCount
- this.VirtualmachineCount = virtualmachineCount
- this.VlanCount = vlanCount
- this.VrfCount = vrfCount
- this.ClusterCount = clusterCount
return &this
}
@@ -202,49 +173,6 @@ 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() NestedTenantGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedTenantGroup
- 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() (*NestedTenantGroup, 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 NullableNestedTenantGroup and assigns it to the Group field.
-func (o *Tenant) SetGroup(v NestedTenantGroup) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *Tenant) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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) {
@@ -277,394 +205,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Tenant) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Tenant) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Tenant) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Tenant) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Tenant) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetCircuitCount returns the CircuitCount field value
-func (o *Tenant) GetCircuitCount() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.CircuitCount, true
-}
-
-// SetCircuitCount sets field value
-func (o *Tenant) SetCircuitCount(v int32) {
- o.CircuitCount = v
-}
-
-// GetDeviceCount returns the DeviceCount field value
-func (o *Tenant) GetDeviceCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceCount
-}
-
-// GetDeviceCountOk returns a tuple with the DeviceCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetDeviceCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceCount, true
-}
-
-// SetDeviceCount sets field value
-func (o *Tenant) SetDeviceCount(v int32) {
- o.DeviceCount = v
-}
-
-// GetIpaddressCount returns the IpaddressCount field value
-func (o *Tenant) GetIpaddressCount() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.IpaddressCount, true
-}
-
-// SetIpaddressCount sets field value
-func (o *Tenant) SetIpaddressCount(v int32) {
- o.IpaddressCount = v
-}
-
-// GetPrefixCount returns the PrefixCount field value
-func (o *Tenant) GetPrefixCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.PrefixCount
-}
-
-// GetPrefixCountOk returns a tuple with the PrefixCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetPrefixCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PrefixCount, true
-}
-
-// SetPrefixCount sets field value
-func (o *Tenant) SetPrefixCount(v int32) {
- o.PrefixCount = v
-}
-
-// GetRackCount returns the RackCount field value
-func (o *Tenant) GetRackCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.RackCount
-}
-
-// GetRackCountOk returns a tuple with the RackCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetRackCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.RackCount, true
-}
-
-// SetRackCount sets field value
-func (o *Tenant) SetRackCount(v int32) {
- o.RackCount = v
-}
-
-// GetSiteCount returns the SiteCount field value
-func (o *Tenant) GetSiteCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.SiteCount
-}
-
-// GetSiteCountOk returns a tuple with the SiteCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetSiteCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.SiteCount, true
-}
-
-// SetSiteCount sets field value
-func (o *Tenant) SetSiteCount(v int32) {
- o.SiteCount = v
-}
-
-// GetVirtualmachineCount returns the VirtualmachineCount field value
-func (o *Tenant) GetVirtualmachineCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VirtualmachineCount
-}
-
-// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetVirtualmachineCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VirtualmachineCount, true
-}
-
-// SetVirtualmachineCount sets field value
-func (o *Tenant) SetVirtualmachineCount(v int32) {
- o.VirtualmachineCount = v
-}
-
-// GetVlanCount returns the VlanCount field value
-func (o *Tenant) GetVlanCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VlanCount
-}
-
-// GetVlanCountOk returns a tuple with the VlanCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetVlanCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VlanCount, true
-}
-
-// SetVlanCount sets field value
-func (o *Tenant) SetVlanCount(v int32) {
- o.VlanCount = v
-}
-
-// GetVrfCount returns the VrfCount field value
-func (o *Tenant) GetVrfCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VrfCount
-}
-
-// GetVrfCountOk returns a tuple with the VrfCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetVrfCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VrfCount, true
-}
-
-// SetVrfCount sets field value
-func (o *Tenant) SetVrfCount(v int32) {
- o.VrfCount = v
-}
-
-// GetClusterCount returns the ClusterCount field value
-func (o *Tenant) GetClusterCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.ClusterCount
-}
-
-// GetClusterCountOk returns a tuple with the ClusterCount field value
-// and a boolean to check if the value has been set.
-func (o *Tenant) GetClusterCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ClusterCount, true
-}
-
-// SetClusterCount sets field value
-func (o *Tenant) SetClusterCount(v int32) {
- o.ClusterCount = v
-}
-
func (o Tenant) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -680,33 +220,9 @@ func (o Tenant) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["circuit_count"] = o.CircuitCount
- toSerialize["device_count"] = o.DeviceCount
- toSerialize["ipaddress_count"] = o.IpaddressCount
- toSerialize["prefix_count"] = o.PrefixCount
- toSerialize["rack_count"] = o.RackCount
- toSerialize["site_count"] = o.SiteCount
- toSerialize["virtualmachine_count"] = o.VirtualmachineCount
- toSerialize["vlan_count"] = o.VlanCount
- toSerialize["vrf_count"] = o.VrfCount
- toSerialize["cluster_count"] = o.ClusterCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -725,18 +241,6 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
- "circuit_count",
- "device_count",
- "ipaddress_count",
- "prefix_count",
- "rack_count",
- "site_count",
- "virtualmachine_count",
- "vlan_count",
- "vrf_count",
- "cluster_count",
}
allProperties := make(map[string]interface{})
@@ -771,23 +275,7 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_tenant_group.go b/model_tenant_group.go
index 68421b6558..ef3aab867f 100644
--- a/model_tenant_group.go
+++ b/model_tenant_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go
index 2b5f008a69..70e0f8dfcf 100644
--- a/model_tenant_group_request.go
+++ b/model_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_tenant_request.go b/model_tenant_request.go
index 74db865e8b..5b7a6cb221 100644
--- a/model_tenant_request.go
+++ b/model_tenant_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,9 @@ var _ MappedNullable = &TenantRequest{}
// TenantRequest Adds support for custom fields and tags.
type TenantRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Group NullableNestedTenantGroupRequest `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -99,49 +95,6 @@ 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() NestedTenantGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedTenantGroupRequest
- 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() (*NestedTenantGroupRequest, 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 NullableNestedTenantGroupRequest and assigns it to the Group field.
-func (o *TenantRequest) SetGroup(v NestedTenantGroupRequest) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *TenantRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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) {
@@ -174,102 +127,6 @@ 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()
if err != nil {
@@ -282,21 +139,9 @@ 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
@@ -343,11 +188,7 @@ 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
}
diff --git a/model_termination.go b/model_termination.go
index 15bd4d9c13..8c028ef173 100644
--- a/model_termination.go
+++ b/model_termination.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,7 +15,7 @@ import (
"fmt"
)
-// Termination * `A` - A * `Z` - Z
+// Termination the model 'Termination'
type Termination string
// List of Termination
diff --git a/model_termination_1.go b/model_termination_1.go
new file mode 100644
index 0000000000..c68e40d672
--- /dev/null
+++ b/model_termination_1.go
@@ -0,0 +1,110 @@
+/*
+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_token.go b/model_token.go
index 486443369b..017655fd02 100644
--- a/model_token.go
+++ b/model_token.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type Token struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- User NestedUser `json:"user"`
+ User User `json:"user"`
Created time.Time `json:"created"`
Expires NullableTime `json:"expires,omitempty"`
LastUsed NullableTime `json:"last_used,omitempty"`
@@ -41,7 +41,7 @@ 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 NestedUser, created time.Time) *Token {
+func NewToken(id int32, url string, display string, user User, created time.Time) *Token {
this := Token{}
this.Id = id
this.Url = url
@@ -132,9 +132,9 @@ func (o *Token) SetDisplay(v string) {
}
// GetUser returns the User field value
-func (o *Token) GetUser() NestedUser {
+func (o *Token) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -143,7 +143,7 @@ func (o *Token) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *Token) GetUserOk() (*NestedUser, bool) {
+func (o *Token) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -151,7 +151,7 @@ func (o *Token) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *Token) SetUser(v NestedUser) {
+func (o *Token) SetUser(v User) {
o.User = v
}
diff --git a/model_token_provision.go b/model_token_provision.go
index 6dc16855f6..d2058fd4a3 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type TokenProvision struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- User NestedUser `json:"user"`
+ User User `json:"user"`
Created time.Time `json:"created"`
Expires NullableTime `json:"expires,omitempty"`
LastUsed time.Time `json:"last_used"`
@@ -41,7 +41,7 @@ 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 NestedUser, created time.Time, lastUsed time.Time, key string) *TokenProvision {
+func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string) *TokenProvision {
this := TokenProvision{}
this.Id = id
this.Url = url
@@ -134,9 +134,9 @@ func (o *TokenProvision) SetDisplay(v string) {
}
// GetUser returns the User field value
-func (o *TokenProvision) GetUser() NestedUser {
+func (o *TokenProvision) GetUser() User {
if o == nil {
- var ret NestedUser
+ var ret User
return ret
}
@@ -145,7 +145,7 @@ func (o *TokenProvision) GetUser() NestedUser {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *TokenProvision) GetUserOk() (*NestedUser, bool) {
+func (o *TokenProvision) GetUserOk() (*User, bool) {
if o == nil {
return nil, false
}
@@ -153,7 +153,7 @@ func (o *TokenProvision) GetUserOk() (*NestedUser, bool) {
}
// SetUser sets field value
-func (o *TokenProvision) SetUser(v NestedUser) {
+func (o *TokenProvision) SetUser(v User) {
o.User = v
}
diff --git a/model_token_provision_request.go b/model_token_provision_request.go
index c3d288b89d..f880694d45 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_token_request.go b/model_token_request.go
index 1e7c44dafb..a472e96504 100644
--- a/model_token_request.go
+++ b/model_token_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,10 +21,10 @@ var _ MappedNullable = &TokenRequest{}
// TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type TokenRequest struct {
- User NestedUserRequest `json:"user"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed NullableTime `json:"last_used,omitempty"`
- Key *string `json:"key,omitempty"`
+ User UserRequest `json:"user"`
+ Expires NullableTime `json:"expires,omitempty"`
+ LastUsed NullableTime `json:"last_used,omitempty"`
+ Key *string `json:"key,omitempty"`
// Permit create/update/delete operations using this key
WriteEnabled *bool `json:"write_enabled,omitempty"`
Description *string `json:"description,omitempty"`
@@ -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 NestedUserRequest) *TokenRequest {
+func NewTokenRequest(user UserRequest) *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() NestedUserRequest {
+func (o *TokenRequest) GetUser() UserRequest {
if o == nil {
- var ret NestedUserRequest
+ var ret UserRequest
return ret
}
@@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() NestedUserRequest {
// GetUserOk returns a tuple with the User field value
// and a boolean to check if the value has been set.
-func (o *TokenRequest) GetUserOk() (*NestedUserRequest, bool) {
+func (o *TokenRequest) GetUserOk() (*UserRequest, bool) {
if o == nil {
return nil, false
}
@@ -71,7 +71,7 @@ func (o *TokenRequest) GetUserOk() (*NestedUserRequest, bool) {
}
// SetUser sets field value
-func (o *TokenRequest) SetUser(v NestedUserRequest) {
+func (o *TokenRequest) SetUser(v UserRequest) {
o.User = v
}
diff --git a/model_tunnel.go b/model_tunnel.go
index 2af99d2b76..b947b58fc7 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the Tunnel type satisfies the MappedNullable interface at compile time
@@ -21,22 +20,11 @@ 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"`
- Status TunnelStatus `json:"status"`
- Group NullableNestedTunnelGroup `json:"group,omitempty"`
- Encapsulation TunnelEncapsulation `json:"encapsulation"`
- IpsecProfile NullableNestedIPSecProfile `json:"ipsec_profile,omitempty"`
- Tenant NullableNestedTenant `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"`
- LastUpdated NullableTime `json:"last_updated"`
+ 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{}
}
@@ -46,16 +34,12 @@ 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, created NullableTime, lastUpdated NullableTime) *Tunnel {
+func NewTunnel(id int32, url string, display string, name string) *Tunnel {
this := Tunnel{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Status = status
- this.Encapsulation = encapsulation
- this.Created = created
- this.LastUpdated = lastUpdated
return &this
}
@@ -163,226 +147,6 @@ 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() NestedTunnelGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedTunnelGroup
- 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() (*NestedTunnelGroup, 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 NullableNestedTunnelGroup and assigns it to the Group field.
-func (o *Tunnel) SetGroup(v NestedTunnelGroup) {
- 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() NestedIPSecProfile {
- if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret NestedIPSecProfile
- 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() (*NestedIPSecProfile, 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 NullableNestedIPSecProfile and assigns it to the IpsecProfile field.
-func (o *Tunnel) SetIpsecProfile(v NestedIPSecProfile) {
- 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Tunnel) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *Tunnel) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *Tunnel) SetTenant(v NestedTenant) {
- 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) {
@@ -415,154 +179,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *Tunnel) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Tunnel) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *Tunnel) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *Tunnel) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *Tunnel) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
func (o Tunnel) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -577,34 +193,9 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -622,10 +213,6 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "status",
- "encapsulation",
- "created",
- "last_updated",
}
allProperties := make(map[string]interface{})
@@ -659,18 +246,7 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go
deleted file mode 100644
index 5511bc7164..0000000000
--- a/model_tunnel_encapsulation.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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index c6684a97e5..0000000000
--- a/model_tunnel_encapsulation_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: 3.7.7 (3.7)
-*/
-
-// 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"
-)
-
-// All allowed values of TunnelEncapsulationLabel enum
-var AllowedTunnelEncapsulationLabelEnumValues = []TunnelEncapsulationLabel{
- "IPsec - Transport",
- "IPsec - Tunnel",
- "IP-in-IP",
- "GRE",
-}
-
-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 63d0803492..c4ba9d081b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -31,7 +31,7 @@ type TunnelGroup struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- TunnelCount int32 `json:"tunnel_count"`
+ TunnelCount int64 `json:"tunnel_count"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,7 @@ 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 int32) *TunnelGroup {
+func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup {
this := TunnelGroup{}
this.Id = id
this.Url = url
@@ -331,9 +331,9 @@ func (o *TunnelGroup) SetLastUpdated(v time.Time) {
}
// GetTunnelCount returns the TunnelCount field value
-func (o *TunnelGroup) GetTunnelCount() int32 {
+func (o *TunnelGroup) GetTunnelCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -342,7 +342,7 @@ func (o *TunnelGroup) GetTunnelCount() int32 {
// GetTunnelCountOk returns a tuple with the TunnelCount field value
// and a boolean to check if the value has been set.
-func (o *TunnelGroup) GetTunnelCountOk() (*int32, bool) {
+func (o *TunnelGroup) GetTunnelCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -350,7 +350,7 @@ func (o *TunnelGroup) GetTunnelCountOk() (*int32, bool) {
}
// SetTunnelCount sets field value
-func (o *TunnelGroup) SetTunnelCount(v int32) {
+func (o *TunnelGroup) SetTunnelCount(v int64) {
o.TunnelCount = v
}
diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go
index a2ec01503c..f19727186e 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_tunnel_request.go b/model_tunnel_request.go
index 8883484685..c6e7ce5600 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,8 @@ var _ MappedNullable = &TunnelRequest{}
// TunnelRequest Adds support for custom fields and tags.
type TunnelRequest struct {
- Name string `json:"name"`
- Status PatchedWritableTunnelRequestStatus `json:"status"`
- Group NullableNestedTunnelGroupRequest `json:"group,omitempty"`
- Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
- IpsecProfile NullableNestedIPSecProfileRequest `json:"ipsec_profile,omitempty"`
- Tenant NullableNestedTenantRequest `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"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,11 +31,9 @@ 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, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest {
+func NewTunnelRequest(name string) *TunnelRequest {
this := TunnelRequest{}
this.Name = name
- this.Status = status
- this.Encapsulation = encapsulation
return &this
}
@@ -80,226 +69,6 @@ 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() NestedTunnelGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedTunnelGroupRequest
- 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() (*NestedTunnelGroupRequest, 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 NullableNestedTunnelGroupRequest and assigns it to the Group field.
-func (o *TunnelRequest) SetGroup(v NestedTunnelGroupRequest) {
- 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() NestedIPSecProfileRequest {
- if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret NestedIPSecProfileRequest
- 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() (*NestedIPSecProfileRequest, 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 NullableNestedIPSecProfileRequest and assigns it to the IpsecProfile field.
-func (o *TunnelRequest) SetIpsecProfile(v NestedIPSecProfileRequest) {
- 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *TunnelRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *TunnelRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *TunnelRequest) SetTenant(v NestedTenantRequest) {
- 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) {
@@ -332,102 +101,6 @@ 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()
if err != nil {
@@ -439,32 +112,9 @@ 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
@@ -479,8 +129,6 @@ 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",
}
allProperties := make(map[string]interface{})
@@ -511,16 +159,7 @@ 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
}
diff --git a/model_tunnel_status.go b/model_tunnel_status.go
deleted file mode 100644
index 8e2fcc9bcd..0000000000
--- a/model_tunnel_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: 3.7.7 (3.7)
-*/
-
-// 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
deleted file mode 100644
index 55722d7057..0000000000
--- a/model_tunnel_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: 3.7.7 (3.7)
-*/
-
-// 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 1f042f02d7..014447ce24 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,19 +21,19 @@ 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 NestedTunnel `json:"tunnel"`
- Role TunnelTerminationRole `json:"role"`
- TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- Termination interface{} `json:"termination"`
- OutsideIp NullableNestedIPAddress `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"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -43,7 +43,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 NestedTunnel, role TunnelTerminationRole, terminationType string, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination {
+func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination {
this := TunnelTermination{}
this.Id = id
this.Url = url
@@ -51,6 +51,7 @@ func NewTunnelTermination(id int32, url string, display string, tunnel NestedTun
this.Tunnel = tunnel
this.Role = role
this.TerminationType = terminationType
+ this.TerminationId = terminationId
this.Termination = termination
this.Created = created
this.LastUpdated = lastUpdated
@@ -138,9 +139,9 @@ func (o *TunnelTermination) SetDisplay(v string) {
}
// GetTunnel returns the Tunnel field value
-func (o *TunnelTermination) GetTunnel() NestedTunnel {
+func (o *TunnelTermination) GetTunnel() Tunnel {
if o == nil {
- var ret NestedTunnel
+ var ret Tunnel
return ret
}
@@ -149,7 +150,7 @@ func (o *TunnelTermination) GetTunnel() NestedTunnel {
// GetTunnelOk returns a tuple with the Tunnel field value
// and a boolean to check if the value has been set.
-func (o *TunnelTermination) GetTunnelOk() (*NestedTunnel, bool) {
+func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) {
if o == nil {
return nil, false
}
@@ -157,7 +158,7 @@ func (o *TunnelTermination) GetTunnelOk() (*NestedTunnel, bool) {
}
// SetTunnel sets field value
-func (o *TunnelTermination) SetTunnel(v NestedTunnel) {
+func (o *TunnelTermination) SetTunnel(v Tunnel) {
o.Tunnel = v
}
@@ -209,16 +210,18 @@ func (o *TunnelTermination) SetTerminationType(v string) {
o.TerminationType = v
}
-// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null).
+// GetTerminationId returns the TerminationId field value
+// If the value is explicit nil, the zero value for int64 will be returned
func (o *TunnelTermination) GetTerminationId() int64 {
- if o == nil || IsNil(o.TerminationId.Get()) {
+ if o == nil || o.TerminationId.Get() == nil {
var ret int64
return ret
}
+
return *o.TerminationId.Get()
}
-// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// GetTerminationIdOk returns a tuple with the TerminationId 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 *TunnelTermination) GetTerminationIdOk() (*int64, bool) {
@@ -228,30 +231,11 @@ func (o *TunnelTermination) GetTerminationIdOk() (*int64, bool) {
return o.TerminationId.Get(), o.TerminationId.IsSet()
}
-// 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.
+// SetTerminationId sets field value
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)
-}
-
-// 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 the value is explicit nil, the zero value for interface{} will be returned
func (o *TunnelTermination) GetTermination() interface{} {
@@ -279,9 +263,9 @@ func (o *TunnelTermination) SetTermination(v interface{}) {
}
// GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *TunnelTermination) GetOutsideIp() NestedIPAddress {
+func (o *TunnelTermination) GetOutsideIp() IPAddress {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.OutsideIp.Get()
@@ -290,7 +274,7 @@ func (o *TunnelTermination) GetOutsideIp() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -306,8 +290,8 @@ func (o *TunnelTermination) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableNestedIPAddress and assigns it to the OutsideIp field.
-func (o *TunnelTermination) SetOutsideIp(v NestedIPAddress) {
+// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field.
+func (o *TunnelTermination) SetOutsideIp(v IPAddress) {
o.OutsideIp.Set(&v)
}
@@ -453,9 +437,7 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) {
toSerialize["tunnel"] = o.Tunnel
toSerialize["role"] = o.Role
toSerialize["termination_type"] = o.TerminationType
- if o.TerminationId.IsSet() {
- toSerialize["termination_id"] = o.TerminationId.Get()
- }
+ toSerialize["termination_id"] = o.TerminationId.Get()
if o.Termination != nil {
toSerialize["termination"] = o.Termination
}
@@ -489,6 +471,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) {
"tunnel",
"role",
"termination_type",
+ "termination_id",
"termination",
"created",
"last_updated",
diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go
index 5ccf6aa273..d38e99b538 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelTerminationRequest{}
// TunnelTerminationRequest Adds support for custom fields and tags.
type TunnelTerminationRequest struct {
- Tunnel NestedTunnelRequest `json:"tunnel"`
+ Tunnel TunnelRequest `json:"tunnel"`
Role PatchedWritableTunnelTerminationRequestRole `json:"role"`
TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableNestedIPAddressRequest `json:"outside_ip,omitempty"`
+ TerminationId NullableInt64 `json:"termination_id"`
+ OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -36,11 +36,12 @@ 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 NestedTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string) *TunnelTerminationRequest {
+func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest {
this := TunnelTerminationRequest{}
this.Tunnel = tunnel
this.Role = role
this.TerminationType = terminationType
+ this.TerminationId = terminationId
return &this
}
@@ -53,9 +54,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest {
}
// GetTunnel returns the Tunnel field value
-func (o *TunnelTerminationRequest) GetTunnel() NestedTunnelRequest {
+func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest {
if o == nil {
- var ret NestedTunnelRequest
+ var ret TunnelRequest
return ret
}
@@ -64,7 +65,7 @@ func (o *TunnelTerminationRequest) GetTunnel() NestedTunnelRequest {
// GetTunnelOk returns a tuple with the Tunnel field value
// and a boolean to check if the value has been set.
-func (o *TunnelTerminationRequest) GetTunnelOk() (*NestedTunnelRequest, bool) {
+func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) {
if o == nil {
return nil, false
}
@@ -72,7 +73,7 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*NestedTunnelRequest, bool) {
}
// SetTunnel sets field value
-func (o *TunnelTerminationRequest) SetTunnel(v NestedTunnelRequest) {
+func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) {
o.Tunnel = v
}
@@ -124,16 +125,18 @@ func (o *TunnelTerminationRequest) SetTerminationType(v string) {
o.TerminationType = v
}
-// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null).
+// GetTerminationId returns the TerminationId field value
+// If the value is explicit nil, the zero value for int64 will be returned
func (o *TunnelTerminationRequest) GetTerminationId() int64 {
- if o == nil || IsNil(o.TerminationId.Get()) {
+ if o == nil || o.TerminationId.Get() == nil {
var ret int64
return ret
}
+
return *o.TerminationId.Get()
}
-// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// GetTerminationIdOk returns a tuple with the TerminationId 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 *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) {
@@ -143,34 +146,15 @@ func (o *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) {
return o.TerminationId.Get(), o.TerminationId.IsSet()
}
-// 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.
+// SetTerminationId sets field value
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() NestedIPAddressRequest {
+func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.OutsideIp.Get()
@@ -179,7 +163,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() NestedIPAddressRequest {
// 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() (*NestedIPAddressRequest, bool) {
+func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -195,8 +179,8 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableNestedIPAddressRequest and assigns it to the OutsideIp field.
-func (o *TunnelTerminationRequest) SetOutsideIp(v NestedIPAddressRequest) {
+// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field.
+func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) {
o.OutsideIp.Set(&v)
}
@@ -287,9 +271,7 @@ func (o TunnelTerminationRequest) ToMap() (map[string]interface{}, error) {
toSerialize["tunnel"] = o.Tunnel
toSerialize["role"] = o.Role
toSerialize["termination_type"] = o.TerminationType
- if o.TerminationId.IsSet() {
- toSerialize["termination_id"] = o.TerminationId.Get()
- }
+ toSerialize["termination_id"] = o.TerminationId.Get()
if o.OutsideIp.IsSet() {
toSerialize["outside_ip"] = o.OutsideIp.Get()
}
@@ -315,6 +297,7 @@ func (o *TunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) {
"tunnel",
"role",
"termination_type",
+ "termination_id",
}
allProperties := make(map[string]interface{})
diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go
index eed1b2b5e6..fe1ea1a389 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go
index c1aaf78e19..f59fb7fd85 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_user.go b/model_user.go
index 4ffb11a956..09bd2a3cd0 100644
--- a/model_user.go
+++ b/model_user.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the User type satisfies the MappedNullable interface at compile time
@@ -25,17 +24,7 @@ type User struct {
Url string `json:"url"`
Display string `json:"display"`
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username"`
- 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"`
+ Username string `json:"username"`
AdditionalProperties map[string]interface{}
}
@@ -158,273 +147,6 @@ 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() []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 *User) 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 *User) 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 *User) SetGroups(v []int32) {
- o.Groups = v
-}
-
func (o User) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -439,30 +161,6 @@ func (o User) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
- }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -513,14 +211,6 @@ func (o *User) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_user_request.go b/model_user_request.go
index 31ae40c51d..33ff7942b1 100644
--- a/model_user_request.go
+++ b/model_user_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the UserRequest type satisfies the MappedNullable interface at compile time
@@ -22,18 +21,7 @@ var _ MappedNullable = &UserRequest{}
// UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
type UserRequest struct {
// Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username"`
- Password string `json:"password"`
- 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"`
+ Username string `json:"username"`
AdditionalProperties map[string]interface{}
}
@@ -43,10 +31,9 @@ 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, password string) *UserRequest {
+func NewUserRequest(username string) *UserRequest {
this := UserRequest{}
this.Username = username
- this.Password = password
return &this
}
@@ -82,297 +69,6 @@ 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
-}
-
func (o UserRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -384,31 +80,6 @@ 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
- }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -423,7 +94,6 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"username",
- "password",
}
allProperties := make(map[string]interface{})
@@ -454,15 +124,6 @@ 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")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go
index b01c16926b..c23f982763 100644
--- a/model_virtual_chassis.go
+++ b/model_virtual_chassis.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the VirtualChassis type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,13 @@ var _ MappedNullable = &VirtualChassis{}
// VirtualChassis Adds support for custom fields and tags.
type VirtualChassis struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Domain *string `json:"domain,omitempty"`
- Master NullableNestedDevice `json:"master,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- MemberCount int32 `json:"member_count"`
+ 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{}
}
@@ -43,14 +36,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, created NullableTime, lastUpdated NullableTime, memberCount int32) *VirtualChassis {
+func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32) *VirtualChassis {
this := VirtualChassis{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Created = created
- this.LastUpdated = lastUpdated
this.MemberCount = memberCount
return &this
}
@@ -159,38 +150,6 @@ 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()) {
@@ -266,154 +225,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *VirtualChassis) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *VirtualChassis) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *VirtualChassis) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *VirtualChassis) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetMemberCount returns the MemberCount field value
func (o *VirtualChassis) GetMemberCount() int32 {
if o == nil {
@@ -452,26 +263,12 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) {
toSerialize["url"] = o.Url
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["member_count"] = o.MemberCount
for key, value := range o.AdditionalProperties {
@@ -490,8 +287,6 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "created",
- "last_updated",
"member_count",
}
@@ -526,14 +321,8 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "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")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go
index 4a3e384bd6..12a6c68c63 100644
--- a/model_virtual_chassis_request.go
+++ b/model_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,8 @@ var _ MappedNullable = &VirtualChassisRequest{}
// VirtualChassisRequest Adds support for custom fields and tags.
type VirtualChassisRequest struct {
Name string `json:"name"`
- Domain *string `json:"domain,omitempty"`
Master NullableNestedDeviceRequest `json:"master,omitempty"`
Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -74,38 +70,6 @@ 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()) {
@@ -181,102 +145,6 @@ 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()
if err != nil {
@@ -288,24 +156,12 @@ 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
@@ -350,12 +206,8 @@ 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
}
diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go
index 53287f9bd7..8e7c0ec50b 100644
--- a/model_virtual_device_context.go
+++ b/model_virtual_device_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,17 +21,16 @@ var _ MappedNullable = &VirtualDeviceContext{}
// VirtualDeviceContext Adds support for custom fields and tags.
type VirtualDeviceContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Device NestedDevice `json:"device"`
- // Numeric identifier unique to the parent device
+ 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 NullableNestedTenant `json:"tenant,omitempty"`
- PrimaryIp NullableNestedIPAddress `json:"primary_ip"`
- PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,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"`
@@ -39,7 +38,7 @@ type VirtualDeviceContext struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- InterfaceCount int32 `json:"interface_count"`
+ InterfaceCount int64 `json:"interface_count"`
AdditionalProperties map[string]interface{}
}
@@ -49,7 +48,7 @@ type _VirtualDeviceContext VirtualDeviceContext
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int32) *VirtualDeviceContext {
+func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext {
this := VirtualDeviceContext{}
this.Id = id
this.Url = url
@@ -169,9 +168,9 @@ func (o *VirtualDeviceContext) SetName(v string) {
}
// GetDevice returns the Device field value
-func (o *VirtualDeviceContext) GetDevice() NestedDevice {
+func (o *VirtualDeviceContext) GetDevice() Device {
if o == nil {
- var ret NestedDevice
+ var ret Device
return ret
}
@@ -180,7 +179,7 @@ func (o *VirtualDeviceContext) GetDevice() NestedDevice {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContext) GetDeviceOk() (*NestedDevice, bool) {
+func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -188,7 +187,7 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*NestedDevice, bool) {
}
// SetDevice sets field value
-func (o *VirtualDeviceContext) SetDevice(v NestedDevice) {
+func (o *VirtualDeviceContext) SetDevice(v Device) {
o.Device = v
}
@@ -236,9 +235,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() NestedTenant {
+func (o *VirtualDeviceContext) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -247,7 +246,7 @@ func (o *VirtualDeviceContext) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -263,8 +262,8 @@ func (o *VirtualDeviceContext) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *VirtualDeviceContext) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *VirtualDeviceContext) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -279,10 +278,10 @@ func (o *VirtualDeviceContext) UnsetTenant() {
}
// GetPrimaryIp returns the PrimaryIp field value
-// If the value is explicit nil, the zero value for NestedIPAddress will be returned
-func (o *VirtualDeviceContext) GetPrimaryIp() NestedIPAddress {
+// 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 NestedIPAddress
+ var ret IPAddress
return ret
}
@@ -292,7 +291,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp() NestedIPAddress {
// GetPrimaryIpOk returns a tuple with the PrimaryIp 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 *VirtualDeviceContext) GetPrimaryIpOk() (*NestedIPAddress, bool) {
+func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -300,14 +299,14 @@ func (o *VirtualDeviceContext) GetPrimaryIpOk() (*NestedIPAddress, bool) {
}
// SetPrimaryIp sets field value
-func (o *VirtualDeviceContext) SetPrimaryIp(v NestedIPAddress) {
+func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) {
o.PrimaryIp.Set(&v)
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualDeviceContext) GetPrimaryIp4() NestedIPAddress {
+func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp4.Get()
@@ -316,7 +315,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -332,8 +331,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp4 field.
-func (o *VirtualDeviceContext) SetPrimaryIp4(v NestedIPAddress) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field.
+func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) {
o.PrimaryIp4.Set(&v)
}
@@ -348,9 +347,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() NestedIPAddress {
+func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp6.Get()
@@ -359,7 +358,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -375,8 +374,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp6 field.
-func (o *VirtualDeviceContext) SetPrimaryIp6(v NestedIPAddress) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field.
+func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) {
o.PrimaryIp6.Set(&v)
}
@@ -595,9 +594,9 @@ func (o *VirtualDeviceContext) SetLastUpdated(v time.Time) {
}
// GetInterfaceCount returns the InterfaceCount field value
-func (o *VirtualDeviceContext) GetInterfaceCount() int32 {
+func (o *VirtualDeviceContext) GetInterfaceCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -606,7 +605,7 @@ func (o *VirtualDeviceContext) GetInterfaceCount() int32 {
// GetInterfaceCountOk returns a tuple with the InterfaceCount field value
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int32, bool) {
+func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -614,7 +613,7 @@ func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int32, bool) {
}
// SetInterfaceCount sets field value
-func (o *VirtualDeviceContext) SetInterfaceCount(v int32) {
+func (o *VirtualDeviceContext) SetInterfaceCount(v int64) {
o.InterfaceCount = v
}
diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go
index febd79cfd4..64ba644f61 100644
--- a/model_virtual_device_context_request.go
+++ b/model_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,12 @@ var _ MappedNullable = &VirtualDeviceContextRequest{}
// VirtualDeviceContextRequest Adds support for custom fields and tags.
type VirtualDeviceContextRequest struct {
- Name string `json:"name"`
- Device NestedDeviceRequest `json:"device"`
- // Numeric identifier unique to the parent device
+ Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,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"`
@@ -41,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 NestedDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest {
+func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest {
this := VirtualDeviceContextRequest{}
this.Name = name
this.Device = device
@@ -82,9 +81,9 @@ func (o *VirtualDeviceContextRequest) SetName(v string) {
}
// GetDevice returns the Device field value
-func (o *VirtualDeviceContextRequest) GetDevice() NestedDeviceRequest {
+func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
@@ -93,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() NestedDeviceRequest {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *VirtualDeviceContextRequest) GetDeviceOk() (*NestedDeviceRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -101,7 +100,7 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*NestedDeviceRequest, bool)
}
// SetDevice sets field value
-func (o *VirtualDeviceContextRequest) SetDevice(v NestedDeviceRequest) {
+func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -149,9 +148,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() NestedTenantRequest {
+func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -160,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -176,8 +175,8 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *VirtualDeviceContextRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -192,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() NestedIPAddressRequest {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -203,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() NestedIPAddressRequest {
// 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() (*NestedIPAddressRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -219,8 +218,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -235,9 +234,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() NestedIPAddressRequest {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -246,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() NestedIPAddressRequest {
// 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() (*NestedIPAddressRequest, bool) {
+func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -262,8 +261,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go
index 268c287db6..121a4f6ab1 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go
index fc98e89109..01cf885efd 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_virtual_disk.go b/model_virtual_disk.go
index 68b77d6a8c..581eae9f10 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type VirtualDisk struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
+ VirtualMachine VirtualMachine `json:"virtual_machine"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Size int32 `json:"size"`
@@ -41,7 +41,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 NestedVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk {
+func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk {
this := VirtualDisk{}
this.Id = id
this.Url = url
@@ -135,9 +135,9 @@ func (o *VirtualDisk) SetDisplay(v string) {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *VirtualDisk) GetVirtualMachine() NestedVirtualMachine {
+func (o *VirtualDisk) GetVirtualMachine() VirtualMachine {
if o == nil {
- var ret NestedVirtualMachine
+ var ret VirtualMachine
return ret
}
@@ -146,7 +146,7 @@ func (o *VirtualDisk) GetVirtualMachine() NestedVirtualMachine {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VirtualDisk) GetVirtualMachineOk() (*NestedVirtualMachine, bool) {
+func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -154,7 +154,7 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*NestedVirtualMachine, bool) {
}
// SetVirtualMachine sets field value
-func (o *VirtualDisk) SetVirtualMachine(v NestedVirtualMachine) {
+func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) {
o.VirtualMachine = v
}
diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go
index 80941c5867..1403ba9b13 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NestedVirtualMachineRequest `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 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"`
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 NestedVirtualMachineRequest, name string, size int32) *VirtualDiskRequest {
+func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, 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() NestedVirtualMachineRequest {
+func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil {
- var ret NestedVirtualMachineRequest
+ var ret VirtualMachineRequest
return ret
}
@@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() NestedVirtualMachineRequest {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VirtualDiskRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool) {
+func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -71,7 +71,7 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest
}
// SetVirtualMachine sets field value
-func (o *VirtualDiskRequest) SetVirtualMachine(v NestedVirtualMachineRequest) {
+func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine = v
}
diff --git a/model_nested_provider.go b/model_virtual_machine.go
similarity index 55%
rename from model_nested_provider.go
rename to model_virtual_machine.go
index 9d864efc19..3e1b4f6d63 100644
--- a/model_nested_provider.go
+++ b/model_virtual_machine.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -15,46 +15,44 @@ import (
"fmt"
)
-// checks if the NestedProvider type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &NestedProvider{}
-
-// NestedProvider Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
-type NestedProvider struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- // Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug"`
+// checks if the VirtualMachine type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VirtualMachine{}
+
+// 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"`
AdditionalProperties map[string]interface{}
}
-type _NestedProvider NestedProvider
+type _VirtualMachine VirtualMachine
-// NewNestedProvider instantiates a new NestedProvider object
+// NewVirtualMachine instantiates a new VirtualMachine object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewNestedProvider(id int32, url string, display string, name string, slug string) *NestedProvider {
- this := NestedProvider{}
+func NewVirtualMachine(id int32, url string, display string, name string) *VirtualMachine {
+ this := VirtualMachine{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Slug = slug
return &this
}
-// NewNestedProviderWithDefaults instantiates a new NestedProvider object
+// NewVirtualMachineWithDefaults instantiates a new VirtualMachine object
// This 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 NewNestedProviderWithDefaults() *NestedProvider {
- this := NestedProvider{}
+func NewVirtualMachineWithDefaults() *VirtualMachine {
+ this := VirtualMachine{}
return &this
}
// GetId returns the Id field value
-func (o *NestedProvider) GetId() int32 {
+func (o *VirtualMachine) GetId() int32 {
if o == nil {
var ret int32
return ret
@@ -65,7 +63,7 @@ func (o *NestedProvider) GetId() int32 {
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
-func (o *NestedProvider) GetIdOk() (*int32, bool) {
+func (o *VirtualMachine) GetIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -73,12 +71,12 @@ func (o *NestedProvider) GetIdOk() (*int32, bool) {
}
// SetId sets field value
-func (o *NestedProvider) SetId(v int32) {
+func (o *VirtualMachine) SetId(v int32) {
o.Id = v
}
// GetUrl returns the Url field value
-func (o *NestedProvider) GetUrl() string {
+func (o *VirtualMachine) GetUrl() string {
if o == nil {
var ret string
return ret
@@ -89,7 +87,7 @@ func (o *NestedProvider) GetUrl() string {
// GetUrlOk returns a tuple with the Url field value
// and a boolean to check if the value has been set.
-func (o *NestedProvider) GetUrlOk() (*string, bool) {
+func (o *VirtualMachine) GetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -97,12 +95,12 @@ func (o *NestedProvider) GetUrlOk() (*string, bool) {
}
// SetUrl sets field value
-func (o *NestedProvider) SetUrl(v string) {
+func (o *VirtualMachine) SetUrl(v string) {
o.Url = v
}
// GetDisplay returns the Display field value
-func (o *NestedProvider) GetDisplay() string {
+func (o *VirtualMachine) GetDisplay() string {
if o == nil {
var ret string
return ret
@@ -113,7 +111,7 @@ func (o *NestedProvider) GetDisplay() string {
// GetDisplayOk returns a tuple with the Display field value
// and a boolean to check if the value has been set.
-func (o *NestedProvider) GetDisplayOk() (*string, bool) {
+func (o *VirtualMachine) GetDisplayOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -121,12 +119,12 @@ func (o *NestedProvider) GetDisplayOk() (*string, bool) {
}
// SetDisplay sets field value
-func (o *NestedProvider) SetDisplay(v string) {
+func (o *VirtualMachine) SetDisplay(v string) {
o.Display = v
}
// GetName returns the Name field value
-func (o *NestedProvider) GetName() string {
+func (o *VirtualMachine) GetName() string {
if o == nil {
var ret string
return ret
@@ -137,7 +135,7 @@ func (o *NestedProvider) GetName() string {
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
-func (o *NestedProvider) GetNameOk() (*string, bool) {
+func (o *VirtualMachine) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -145,35 +143,43 @@ func (o *NestedProvider) GetNameOk() (*string, bool) {
}
// SetName sets field value
-func (o *NestedProvider) SetName(v string) {
+func (o *VirtualMachine) SetName(v string) {
o.Name = v
}
-// GetSlug returns the Slug field value
-func (o *NestedProvider) GetSlug() string {
- if o == nil {
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *VirtualMachine) GetDescription() string {
+ if o == nil || IsNil(o.Description) {
var ret string
return ret
}
-
- return o.Slug
+ return *o.Description
}
-// GetSlugOk returns a tuple with the Slug 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.
-func (o *NestedProvider) GetSlugOk() (*string, bool) {
- if o == nil {
+func (o *VirtualMachine) GetDescriptionOk() (*string, bool) {
+ if o == nil || IsNil(o.Description) {
return nil, false
}
- return &o.Slug, true
+ return o.Description, true
}
-// SetSlug sets field value
-func (o *NestedProvider) SetSlug(v string) {
- o.Slug = v
+// HasDescription returns a boolean if a field has been set.
+func (o *VirtualMachine) 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 *VirtualMachine) SetDescription(v string) {
+ o.Description = &v
}
-func (o NestedProvider) MarshalJSON() ([]byte, error) {
+func (o VirtualMachine) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -181,13 +187,15 @@ func (o NestedProvider) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o NestedProvider) ToMap() (map[string]interface{}, error) {
+func (o VirtualMachine) 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
@@ -196,7 +204,7 @@ func (o NestedProvider) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *NestedProvider) UnmarshalJSON(data []byte) (err error) {
+func (o *VirtualMachine) 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.
@@ -205,7 +213,6 @@ func (o *NestedProvider) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "slug",
}
allProperties := make(map[string]interface{})
@@ -222,15 +229,15 @@ func (o *NestedProvider) UnmarshalJSON(data []byte) (err error) {
}
}
- varNestedProvider := _NestedProvider{}
+ varVirtualMachine := _VirtualMachine{}
- err = json.Unmarshal(data, &varNestedProvider)
+ err = json.Unmarshal(data, &varVirtualMachine)
if err != nil {
return err
}
- *o = NestedProvider(varNestedProvider)
+ *o = VirtualMachine(varVirtualMachine)
additionalProperties := make(map[string]interface{})
@@ -239,45 +246,45 @@ func (o *NestedProvider) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "url")
delete(additionalProperties, "display")
delete(additionalProperties, "name")
- delete(additionalProperties, "slug")
+ delete(additionalProperties, "description")
o.AdditionalProperties = additionalProperties
}
return err
}
-type NullableNestedProvider struct {
- value *NestedProvider
+type NullableVirtualMachine struct {
+ value *VirtualMachine
isSet bool
}
-func (v NullableNestedProvider) Get() *NestedProvider {
+func (v NullableVirtualMachine) Get() *VirtualMachine {
return v.value
}
-func (v *NullableNestedProvider) Set(val *NestedProvider) {
+func (v *NullableVirtualMachine) Set(val *VirtualMachine) {
v.value = val
v.isSet = true
}
-func (v NullableNestedProvider) IsSet() bool {
+func (v NullableVirtualMachine) IsSet() bool {
return v.isSet
}
-func (v *NullableNestedProvider) Unset() {
+func (v *NullableVirtualMachine) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableNestedProvider(val *NestedProvider) *NullableNestedProvider {
- return &NullableNestedProvider{value: val, isSet: true}
+func NewNullableVirtualMachine(val *VirtualMachine) *NullableVirtualMachine {
+ return &NullableVirtualMachine{value: val, isSet: true}
}
-func (v NullableNestedProvider) MarshalJSON() ([]byte, error) {
+func (v NullableVirtualMachine) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableNestedProvider) UnmarshalJSON(src []byte) error {
+func (v *NullableVirtualMachine) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/model_virtual_machine_request.go b/model_virtual_machine_request.go
new file mode 100644
index 0000000000..74b05fd5a5
--- /dev/null
+++ b/model_virtual_machine_request.go
@@ -0,0 +1,203 @@
+/*
+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 VirtualMachineRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &VirtualMachineRequest{}
+
+// VirtualMachineRequest Adds support for custom fields and tags.
+type VirtualMachineRequest struct {
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
+ AdditionalProperties map[string]interface{}
+}
+
+type _VirtualMachineRequest VirtualMachineRequest
+
+// NewVirtualMachineRequest instantiates a new VirtualMachineRequest object
+// This constructor will assign default values to properties that have it defined,
+// and 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{}
+ this.Name = name
+ return &this
+}
+
+// NewVirtualMachineRequestWithDefaults instantiates a new VirtualMachineRequest object
+// This 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{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *VirtualMachineRequest) 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 *VirtualMachineRequest) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *VirtualMachineRequest) SetName(v string) {
+ o.Name = v
+}
+
+// GetDescription returns the Description field value if set, zero value otherwise.
+func (o *VirtualMachineRequest) 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 *VirtualMachineRequest) 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 *VirtualMachineRequest) 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 *VirtualMachineRequest) SetDescription(v string) {
+ o.Description = &v
+}
+
+func (o VirtualMachineRequest) 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) {
+ 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 *VirtualMachineRequest) 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",
+ }
+
+ 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)
+ }
+ }
+
+ varVirtualMachineRequest := _VirtualMachineRequest{}
+
+ err = json.Unmarshal(data, &varVirtualMachineRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = VirtualMachineRequest(varVirtualMachineRequest)
+
+ 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 NullableVirtualMachineRequest struct {
+ value *VirtualMachineRequest
+ isSet bool
+}
+
+func (v NullableVirtualMachineRequest) Get() *VirtualMachineRequest {
+ return v.value
+}
+
+func (v *NullableVirtualMachineRequest) Set(val *VirtualMachineRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVirtualMachineRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVirtualMachineRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVirtualMachineRequest(val *VirtualMachineRequest) *NullableVirtualMachineRequest {
+ return &NullableVirtualMachineRequest{value: val, isSet: true}
+}
+
+func (v NullableVirtualMachineRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVirtualMachineRequest) 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 0d18fe4b13..b51baaf129 100644
--- a/model_virtual_machine_with_config_context.go
+++ b/model_virtual_machine_with_config_context.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,26 +21,26 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{}
// VirtualMachineWithConfigContext Adds support for custom fields and tags.
type VirtualMachineWithConfigContext struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Status *ModuleStatus `json:"status,omitempty"`
- Site NullableNestedSite `json:"site,omitempty"`
- Cluster NullableNestedCluster `json:"cluster,omitempty"`
- Device NullableNestedDevice `json:"device,omitempty"`
- Role NullableNestedDeviceRole `json:"role,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Platform NullableNestedPlatform `json:"platform,omitempty"`
- PrimaryIp NullableNestedIPAddress `json:"primary_ip"`
- PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"`
+ 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"`
// 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"`
@@ -59,7 +59,7 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableNestedIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext {
+func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext {
this := VirtualMachineWithConfigContext{}
this.Id = id
this.Url = url
@@ -179,9 +179,9 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus {
+func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatus
+ var ret VirtualMachineWithConfigContextStatus
return ret
}
return *o.Status
@@ -189,7 +189,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus {
// 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() (*ModuleStatus, bool) {
+func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -205,15 +205,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field.
-func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus) {
+// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field.
+func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) {
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() NestedSite {
+func (o *VirtualMachineWithConfigContext) GetSite() Site {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSite
+ var ret Site
return ret
}
return *o.Site.Get()
@@ -222,7 +222,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() NestedSite {
// 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() (*NestedSite, bool) {
+func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) {
if o == nil {
return nil, false
}
@@ -238,8 +238,8 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSite and assigns it to the Site field.
-func (o *VirtualMachineWithConfigContext) SetSite(v NestedSite) {
+// SetSite gets a reference to the given NullableSite and assigns it to the Site field.
+func (o *VirtualMachineWithConfigContext) SetSite(v Site) {
o.Site.Set(&v)
}
@@ -254,9 +254,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() NestedCluster {
+func (o *VirtualMachineWithConfigContext) GetCluster() Cluster {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret NestedCluster
+ var ret Cluster
return ret
}
return *o.Cluster.Get()
@@ -265,7 +265,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() NestedCluster {
// 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() (*NestedCluster, bool) {
+func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) {
if o == nil {
return nil, false
}
@@ -281,8 +281,8 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableNestedCluster and assigns it to the Cluster field.
-func (o *VirtualMachineWithConfigContext) SetCluster(v NestedCluster) {
+// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field.
+func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) {
o.Cluster.Set(&v)
}
@@ -297,9 +297,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() NestedDevice {
+func (o *VirtualMachineWithConfigContext) GetDevice() Device {
if o == nil || IsNil(o.Device.Get()) {
- var ret NestedDevice
+ var ret Device
return ret
}
return *o.Device.Get()
@@ -308,7 +308,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() NestedDevice {
// 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() (*NestedDevice, bool) {
+func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) {
if o == nil {
return nil, false
}
@@ -324,8 +324,8 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableNestedDevice and assigns it to the Device field.
-func (o *VirtualMachineWithConfigContext) SetDevice(v NestedDevice) {
+// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field.
+func (o *VirtualMachineWithConfigContext) SetDevice(v Device) {
o.Device.Set(&v)
}
@@ -340,9 +340,9 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContext) GetRole() NestedDeviceRole {
+func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedDeviceRole
+ var ret DeviceRole
return ret
}
return *o.Role.Get()
@@ -351,7 +351,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() NestedDeviceRole {
// 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() (*NestedDeviceRole, bool) {
+func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) {
if o == nil {
return nil, false
}
@@ -367,8 +367,8 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedDeviceRole and assigns it to the Role field.
-func (o *VirtualMachineWithConfigContext) SetRole(v NestedDeviceRole) {
+// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field.
+func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) {
o.Role.Set(&v)
}
@@ -383,9 +383,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() NestedTenant {
+func (o *VirtualMachineWithConfigContext) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -394,7 +394,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -410,8 +410,8 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *VirtualMachineWithConfigContext) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
@@ -426,9 +426,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() NestedPlatform {
+func (o *VirtualMachineWithConfigContext) GetPlatform() Platform {
if o == nil || IsNil(o.Platform.Get()) {
- var ret NestedPlatform
+ var ret Platform
return ret
}
return *o.Platform.Get()
@@ -437,7 +437,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() NestedPlatform {
// 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() (*NestedPlatform, bool) {
+func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) {
if o == nil {
return nil, false
}
@@ -453,8 +453,8 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableNestedPlatform and assigns it to the Platform field.
-func (o *VirtualMachineWithConfigContext) SetPlatform(v NestedPlatform) {
+// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field.
+func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) {
o.Platform.Set(&v)
}
@@ -469,10 +469,10 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() {
}
// GetPrimaryIp returns the PrimaryIp field value
-// If the value is explicit nil, the zero value for NestedIPAddress will be returned
-func (o *VirtualMachineWithConfigContext) GetPrimaryIp() NestedIPAddress {
+// 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 NestedIPAddress
+ var ret IPAddress
return ret
}
@@ -482,7 +482,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp() NestedIPAddress {
// GetPrimaryIpOk returns a tuple with the PrimaryIp 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 *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bool) {
+func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -490,14 +490,14 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*NestedIPAddress, bo
}
// SetPrimaryIp sets field value
-func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v NestedIPAddress) {
+func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) {
o.PrimaryIp.Set(&v)
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() NestedIPAddress {
+func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp4.Get()
@@ -506,7 +506,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -522,8 +522,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp4 field.
-func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v NestedIPAddress) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field.
+func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) {
o.PrimaryIp4.Set(&v)
}
@@ -538,9 +538,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() NestedIPAddress {
+func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddress
+ var ret IPAddress
return ret
}
return *o.PrimaryIp6.Get()
@@ -549,7 +549,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() NestedIPAddress {
// 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() (*NestedIPAddress, bool) {
+func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) {
if o == nil {
return nil, false
}
@@ -565,8 +565,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddress and assigns it to the PrimaryIp6 field.
-func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v NestedIPAddress) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field.
+func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) {
o.PrimaryIp6.Set(&v)
}
@@ -774,9 +774,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() NestedConfigTemplate {
+func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplate
+ var ret ConfigTemplate
return ret
}
return *o.ConfigTemplate.Get()
@@ -785,7 +785,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() NestedConfigTempla
// 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() (*NestedConfigTemplate, bool) {
+func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) {
if o == nil {
return nil, false
}
@@ -801,8 +801,8 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field.
-func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v NestedConfigTemplate) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field.
+func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go
index 82a4681a8b..7795d684aa 100644
--- a/model_virtual_machine_with_config_context_request.go
+++ b/model_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,21 +21,21 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{}
// VirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type VirtualMachineWithConfigContextRequest struct {
Name string `json:"name"`
- Status *ModuleStatusValue `json:"status,omitempty"`
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- Cluster NullableNestedClusterRequest `json:"cluster,omitempty"`
- Device NullableNestedDeviceRequest `json:"device,omitempty"`
- Role NullableNestedDeviceRoleRequest `json:"role,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Platform NullableNestedPlatformRequest `json:"platform,omitempty"`
- PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"`
+ 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 NullableNestedConfigTemplateRequest `json:"config_template,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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"`
@@ -88,9 +88,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
+func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
+ var ret PatchedWritableModuleRequestStatus
return ret
}
return *o.Status
@@ -98,7 +98,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
// 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() (*ModuleStatusValue, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -114,15 +114,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
-func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field.
+func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) {
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() NestedSiteRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSiteRequest
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -131,7 +131,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() NestedSiteRequest {
// 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() (*NestedSiteRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -147,8 +147,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableNestedSiteRequest and assigns it to the Site field.
-func (o *VirtualMachineWithConfigContextRequest) SetSite(v NestedSiteRequest) {
+// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field.
+func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) {
o.Site.Set(&v)
}
@@ -163,9 +163,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() NestedClusterRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret NestedClusterRequest
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -174,7 +174,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() NestedClusterReque
// 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() (*NestedClusterRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -190,8 +190,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableNestedClusterRequest and assigns it to the Cluster field.
-func (o *VirtualMachineWithConfigContextRequest) SetCluster(v NestedClusterRequest) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -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() NestedDeviceRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret NestedDeviceRequest
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -217,7 +217,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() NestedDeviceRequest
// 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() (*NestedDeviceRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -233,8 +233,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableNestedDeviceRequest and assigns it to the Device field.
-func (o *VirtualMachineWithConfigContextRequest) SetDevice(v NestedDeviceRequest) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -249,9 +249,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VirtualMachineWithConfigContextRequest) GetRole() NestedDeviceRoleRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret NestedDeviceRoleRequest
+ var ret DeviceRoleRequest
return ret
}
return *o.Role.Get()
@@ -260,7 +260,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() NestedDeviceRoleReque
// 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() (*NestedDeviceRoleRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -276,8 +276,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableNestedDeviceRoleRequest and assigns it to the Role field.
-func (o *VirtualMachineWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest) {
+// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field.
+func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
o.Role.Set(&v)
}
@@ -292,9 +292,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() NestedTenantRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -303,7 +303,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() NestedTenantRequest
// 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() (*NestedTenantRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -319,8 +319,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *VirtualMachineWithConfigContextRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -335,9 +335,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() NestedPlatformRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret NestedPlatformRequest
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -346,7 +346,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() NestedPlatformReq
// 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() (*NestedPlatformRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -362,8 +362,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableNestedPlatformRequest and assigns it to the Platform field.
-func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v NestedPlatformRequest) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -378,9 +378,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() NestedIPAddressRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -389,7 +389,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() NestedIPAddress
// 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() (*NestedIPAddressRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -405,8 +405,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp4 field.
-func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -421,9 +421,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() NestedIPAddressRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret NestedIPAddressRequest
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -432,7 +432,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() NestedIPAddress
// 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() (*NestedIPAddressRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -448,8 +448,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableNestedIPAddressRequest and assigns it to the PrimaryIp6 field.
-func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -657,9 +657,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() NestedConfigTemplateRequest {
+func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret NestedConfigTemplateRequest
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -668,7 +668,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() NestedConfi
// 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() (*NestedConfigTemplateRequest, bool) {
+func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -684,8 +684,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field.
-func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_virtual_machine_with_config_context_status.go b/model_virtual_machine_with_config_context_status.go
new file mode 100644
index 0000000000..6d5d1e923b
--- /dev/null
+++ b/model_virtual_machine_with_config_context_status.go
@@ -0,0 +1,190 @@
+/*
+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
new file mode 100644
index 0000000000..a91af2d260
--- /dev/null
+++ b/model_virtual_machine_with_config_context_status_label.go
@@ -0,0 +1,118 @@
+/*
+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 e007924f47..434660f55d 100644
--- a/model_vlan.go
+++ b/model_vlan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the VLAN type satisfies the MappedNullable interface at compile time
@@ -21,25 +20,13 @@ var _ MappedNullable = &VLAN{}
// VLAN Adds support for custom fields and tags.
type VLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Site NullableNestedSite `json:"site,omitempty"`
- Group NullableNestedVLANGroup `json:"group,omitempty"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- Status *IPRangeStatus `json:"status,omitempty"`
- Role NullableNestedRole `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- PrefixCount int32 `json:"prefix_count"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -49,17 +36,13 @@ type _VLAN VLAN
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewVLAN(id int32, url string, display string, vid int32, name string, l2vpnTermination NullableNestedL2VPNTermination, created NullableTime, lastUpdated NullableTime, prefixCount int32) *VLAN {
+func NewVLAN(id int32, url string, display string, vid int32, name string) *VLAN {
this := VLAN{}
this.Id = id
this.Url = url
this.Display = display
this.Vid = vid
this.Name = name
- this.L2vpnTermination = l2vpnTermination
- this.Created = created
- this.LastUpdated = lastUpdated
- this.PrefixCount = prefixCount
return &this
}
@@ -143,92 +126,6 @@ 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() NestedSite {
- if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSite
- 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() (*NestedSite, 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 NullableNestedSite and assigns it to the Site field.
-func (o *VLAN) SetSite(v NestedSite) {
- o.Site.Set(&v)
-}
-
-// SetSiteNil sets the value for Site to be an explicit nil
-func (o *VLAN) SetSiteNil() {
- o.Site.Set(nil)
-}
-
-// 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() NestedVLANGroup {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedVLANGroup
- 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() (*NestedVLANGroup, 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 NullableNestedVLANGroup and assigns it to the Group field.
-func (o *VLAN) SetGroup(v NestedVLANGroup) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *VLAN) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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 {
@@ -277,124 +174,6 @@ 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLAN) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *VLAN) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *VLAN) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *VLAN) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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() NestedRole {
- if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRole
- 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() (*NestedRole, 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 NullableNestedRole and assigns it to the Role field.
-func (o *VLAN) SetRole(v NestedRole) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *VLAN) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// 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) {
@@ -427,204 +206,6 @@ func (o *VLAN) SetDescription(v string) {
o.Description = &v
}
-// 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 the value is explicit nil, the zero value for NestedL2VPNTermination will be returned
-func (o *VLAN) GetL2vpnTermination() NestedL2VPNTermination {
- if o == nil || o.L2vpnTermination.Get() == nil {
- var ret NestedL2VPNTermination
- return ret
- }
-
- return *o.L2vpnTermination.Get()
-}
-
-// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *VLAN) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool) {
- if o == nil {
- return nil, false
- }
- return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet()
-}
-
-// SetL2vpnTermination sets field value
-func (o *VLAN) SetL2vpnTermination(v NestedL2VPNTermination) {
- o.L2vpnTermination.Set(&v)
-}
-
-// 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *VLAN) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLAN) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *VLAN) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *VLAN) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *VLAN) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetPrefixCount returns the PrefixCount field value
-func (o *VLAN) GetPrefixCount() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.PrefixCount
-}
-
-// GetPrefixCountOk returns a tuple with the PrefixCount field value
-// and a boolean to check if the value has been set.
-func (o *VLAN) GetPrefixCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.PrefixCount, true
-}
-
-// SetPrefixCount sets field value
-func (o *VLAN) SetPrefixCount(v int32) {
- o.PrefixCount = v
-}
-
func (o VLAN) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -638,39 +219,11 @@ func (o VLAN) ToMap() (map[string]interface{}, error) {
toSerialize["id"] = o.Id
toSerialize["url"] = o.Url
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.Comments) {
- toSerialize["comments"] = o.Comments
- }
- 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()
- toSerialize["prefix_count"] = o.PrefixCount
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -689,10 +242,6 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) {
"display",
"vid",
"name",
- "l2vpn_termination",
- "created",
- "last_updated",
- "prefix_count",
}
allProperties := make(map[string]interface{})
@@ -725,21 +274,9 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "id")
delete(additionalProperties, "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, "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
}
diff --git a/model_vlan_group.go b/model_vlan_group.go
index 6f6ddd9be1..4ec3a49910 100644
--- a/model_vlan_group.go
+++ b/model_vlan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -38,7 +38,7 @@ type VLANGroup struct {
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Created NullableTime `json:"created"`
LastUpdated NullableTime `json:"last_updated"`
- VlanCount int32 `json:"vlan_count"`
+ VlanCount int64 `json:"vlan_count"`
Utilization string `json:"utilization"`
AdditionalProperties map[string]interface{}
}
@@ -49,7 +49,7 @@ 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 int32, utilization string) *VLANGroup {
+func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup {
this := VLANGroup{}
this.Id = id
this.Url = url
@@ -517,9 +517,9 @@ func (o *VLANGroup) SetLastUpdated(v time.Time) {
}
// GetVlanCount returns the VlanCount field value
-func (o *VLANGroup) GetVlanCount() int32 {
+func (o *VLANGroup) GetVlanCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -528,7 +528,7 @@ func (o *VLANGroup) GetVlanCount() int32 {
// GetVlanCountOk returns a tuple with the VlanCount field value
// and a boolean to check if the value has been set.
-func (o *VLANGroup) GetVlanCountOk() (*int32, bool) {
+func (o *VLANGroup) GetVlanCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -536,7 +536,7 @@ func (o *VLANGroup) GetVlanCountOk() (*int32, bool) {
}
// SetVlanCount sets field value
-func (o *VLANGroup) SetVlanCount(v int32) {
+func (o *VLANGroup) SetVlanCount(v int64) {
o.VlanCount = v
}
diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go
index dbc09679af..fb2c9e458a 100644
--- a/model_vlan_group_request.go
+++ b/model_vlan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_vlan_request.go b/model_vlan_request.go
index 7350c0b848..af65d4166c 100644
--- a/model_vlan_request.go
+++ b/model_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,10 @@ var _ MappedNullable = &VLANRequest{}
// VLANRequest Adds support for custom fields and tags.
type VLANRequest struct {
- Site NullableNestedSiteRequest `json:"site,omitempty"`
- Group NullableNestedVLANGroupRequest `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- Status *IPRangeStatusValue `json:"status,omitempty"`
- Role NullableNestedRoleRequest `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Vid int32 `json:"vid"`
+ Name string `json:"name"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -56,92 +48,6 @@ 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() NestedSiteRequest {
- if o == nil || IsNil(o.Site.Get()) {
- var ret NestedSiteRequest
- 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() (*NestedSiteRequest, 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 NullableNestedSiteRequest and assigns it to the Site field.
-func (o *VLANRequest) SetSite(v NestedSiteRequest) {
- o.Site.Set(&v)
-}
-
-// SetSiteNil sets the value for Site to be an explicit nil
-func (o *VLANRequest) SetSiteNil() {
- o.Site.Set(nil)
-}
-
-// 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() NestedVLANGroupRequest {
- if o == nil || IsNil(o.Group.Get()) {
- var ret NestedVLANGroupRequest
- 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() (*NestedVLANGroupRequest, 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 NullableNestedVLANGroupRequest and assigns it to the Group field.
-func (o *VLANRequest) SetGroup(v NestedVLANGroupRequest) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *VLANRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// 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 {
@@ -190,124 +96,6 @@ 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VLANRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *VLANRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *VLANRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *VLANRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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() NestedRoleRequest {
- if o == nil || IsNil(o.Role.Get()) {
- var ret NestedRoleRequest
- 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() (*NestedRoleRequest, 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 NullableNestedRoleRequest and assigns it to the Role field.
-func (o *VLANRequest) SetRole(v NestedRoleRequest) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *VLANRequest) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// 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) {
@@ -340,102 +128,6 @@ func (o *VLANRequest) SetDescription(v string) {
o.Description = &v
}
-// 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()
if err != nil {
@@ -446,35 +138,11 @@ 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.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
@@ -519,17 +187,9 @@ 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, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_vm_interface.go b/model_vm_interface.go
index 910a7631e7..ebe068fef1 100644
--- a/model_vm_interface.go
+++ b/model_vm_interface.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,28 +21,28 @@ var _ MappedNullable = &VMInterface{}
// VMInterface Adds support for custom fields and tags.
type VMInterface struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- VirtualMachine NestedVirtualMachine `json:"virtual_machine"`
- Name string `json:"name"`
- Enabled *bool `json:"enabled,omitempty"`
- Parent NullableNestedVMInterface `json:"parent,omitempty"`
- Bridge NullableNestedVMInterface `json:"bridge,omitempty"`
- Mtu NullableInt32 `json:"mtu,omitempty"`
- MacAddress NullableString `json:"mac_address,omitempty"`
- Description *string `json:"description,omitempty"`
- Mode *InterfaceMode `json:"mode,omitempty"`
- UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableNestedVRF `json:"vrf,omitempty"`
- L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- CountIpaddresses int32 `json:"count_ipaddresses"`
- CountFhrpGroups int32 `json:"count_fhrp_groups"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ VirtualMachine 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"`
AdditionalProperties map[string]interface{}
}
@@ -52,7 +52,7 @@ 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 NestedVirtualMachine, name string, l2vpnTermination NullableNestedL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface {
+func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface {
this := VMInterface{}
this.Id = id
this.Url = url
@@ -148,9 +148,9 @@ func (o *VMInterface) SetDisplay(v string) {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *VMInterface) GetVirtualMachine() NestedVirtualMachine {
+func (o *VMInterface) GetVirtualMachine() VirtualMachine {
if o == nil {
- var ret NestedVirtualMachine
+ var ret VirtualMachine
return ret
}
@@ -159,7 +159,7 @@ func (o *VMInterface) GetVirtualMachine() NestedVirtualMachine {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VMInterface) GetVirtualMachineOk() (*NestedVirtualMachine, bool) {
+func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) {
if o == nil {
return nil, false
}
@@ -167,7 +167,7 @@ func (o *VMInterface) GetVirtualMachineOk() (*NestedVirtualMachine, bool) {
}
// SetVirtualMachine sets field value
-func (o *VMInterface) SetVirtualMachine(v NestedVirtualMachine) {
+func (o *VMInterface) SetVirtualMachine(v VirtualMachine) {
o.VirtualMachine = v
}
@@ -464,9 +464,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() NestedVLAN {
+func (o *VMInterface) GetUntaggedVlan() VLAN {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret NestedVLAN
+ var ret VLAN
return ret
}
return *o.UntaggedVlan.Get()
@@ -475,7 +475,7 @@ func (o *VMInterface) GetUntaggedVlan() NestedVLAN {
// 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() (*NestedVLAN, bool) {
+func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) {
if o == nil {
return nil, false
}
@@ -491,8 +491,8 @@ func (o *VMInterface) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableNestedVLAN and assigns it to the UntaggedVlan field.
-func (o *VMInterface) SetUntaggedVlan(v NestedVLAN) {
+// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field.
+func (o *VMInterface) SetUntaggedVlan(v VLAN) {
o.UntaggedVlan.Set(&v)
}
@@ -507,9 +507,9 @@ func (o *VMInterface) UnsetUntaggedVlan() {
}
// GetTaggedVlans returns the TaggedVlans field value if set, zero value otherwise.
-func (o *VMInterface) GetTaggedVlans() []int32 {
+func (o *VMInterface) GetTaggedVlans() []VLAN {
if o == nil || IsNil(o.TaggedVlans) {
- var ret []int32
+ var ret []VLAN
return ret
}
return o.TaggedVlans
@@ -517,7 +517,7 @@ func (o *VMInterface) GetTaggedVlans() []int32 {
// GetTaggedVlansOk returns a tuple with the TaggedVlans field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *VMInterface) GetTaggedVlansOk() ([]int32, bool) {
+func (o *VMInterface) GetTaggedVlansOk() ([]VLAN, bool) {
if o == nil || IsNil(o.TaggedVlans) {
return nil, false
}
@@ -533,15 +533,15 @@ func (o *VMInterface) HasTaggedVlans() bool {
return false
}
-// SetTaggedVlans gets a reference to the given []int32 and assigns it to the TaggedVlans field.
-func (o *VMInterface) SetTaggedVlans(v []int32) {
+// SetTaggedVlans gets a reference to the given []VLAN and assigns it to the TaggedVlans field.
+func (o *VMInterface) SetTaggedVlans(v []VLAN) {
o.TaggedVlans = v
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterface) GetVrf() NestedVRF {
+func (o *VMInterface) GetVrf() VRF {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRF
+ var ret VRF
return ret
}
return *o.Vrf.Get()
@@ -550,7 +550,7 @@ func (o *VMInterface) GetVrf() NestedVRF {
// 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() (*NestedVRF, bool) {
+func (o *VMInterface) GetVrfOk() (*VRF, bool) {
if o == nil {
return nil, false
}
@@ -566,8 +566,8 @@ func (o *VMInterface) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRF and assigns it to the Vrf field.
-func (o *VMInterface) SetVrf(v NestedVRF) {
+// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field.
+func (o *VMInterface) SetVrf(v VRF) {
o.Vrf.Set(&v)
}
@@ -582,10 +582,10 @@ func (o *VMInterface) UnsetVrf() {
}
// GetL2vpnTermination returns the L2vpnTermination field value
-// If the value is explicit nil, the zero value for NestedL2VPNTermination will be returned
-func (o *VMInterface) GetL2vpnTermination() NestedL2VPNTermination {
+// 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 NestedL2VPNTermination
+ var ret L2VPNTermination
return ret
}
@@ -595,7 +595,7 @@ func (o *VMInterface) GetL2vpnTermination() NestedL2VPNTermination {
// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *VMInterface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool) {
+func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) {
if o == nil {
return nil, false
}
@@ -603,7 +603,7 @@ func (o *VMInterface) GetL2vpnTerminationOk() (*NestedL2VPNTermination, bool) {
}
// SetL2vpnTermination sets field value
-func (o *VMInterface) SetL2vpnTermination(v NestedL2VPNTermination) {
+func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) {
o.L2vpnTermination.Set(&v)
}
diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go
index 74cbe1363c..17f56f8698 100644
--- a/model_vm_interface_request.go
+++ b/model_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &VMInterfaceRequest{}
// VMInterfaceRequest Adds support for custom fields and tags.
type VMInterfaceRequest struct {
- VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"`
+ VirtualMachine VirtualMachineRequest `json:"virtual_machine"`
Name string `json:"name"`
Enabled *bool `json:"enabled,omitempty"`
Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"`
@@ -29,9 +29,9 @@ type VMInterfaceRequest struct {
MacAddress NullableString `json:"mac_address,omitempty"`
Description *string `json:"description,omitempty"`
Mode *InterfaceModeValue `json:"mode,omitempty"`
- UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"`
+ UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"`
TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableNestedVRFRequest `json:"vrf,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -43,7 +43,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 NestedVirtualMachineRequest, name string) *VMInterfaceRequest {
+func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest {
this := VMInterfaceRequest{}
this.VirtualMachine = virtualMachine
this.Name = name
@@ -59,9 +59,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *VMInterfaceRequest) GetVirtualMachine() NestedVirtualMachineRequest {
+func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil {
- var ret NestedVirtualMachineRequest
+ var ret VirtualMachineRequest
return ret
}
@@ -70,7 +70,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() NestedVirtualMachineRequest {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *VMInterfaceRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest, bool) {
+func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -78,7 +78,7 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*NestedVirtualMachineRequest
}
// SetVirtualMachine sets field value
-func (o *VMInterfaceRequest) SetVirtualMachine(v NestedVirtualMachineRequest) {
+func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine = v
}
@@ -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() NestedVLANRequest {
+func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret NestedVLANRequest
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() NestedVLANRequest {
// 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() (*NestedVLANRequest, bool) {
+func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -402,8 +402,8 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableNestedVLANRequest and assigns it to the UntaggedVlan field.
-func (o *VMInterfaceRequest) SetUntaggedVlan(v NestedVLANRequest) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -450,9 +450,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *VMInterfaceRequest) GetVrf() NestedVRFRequest {
+func (o *VMInterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret NestedVRFRequest
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -461,7 +461,7 @@ func (o *VMInterfaceRequest) GetVrf() NestedVRFRequest {
// 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() (*NestedVRFRequest, bool) {
+func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -477,8 +477,8 @@ func (o *VMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableNestedVRFRequest and assigns it to the Vrf field.
-func (o *VMInterfaceRequest) SetVrf(v NestedVRFRequest) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *VMInterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
diff --git a/model_vrf.go b/model_vrf.go
index 7d1611afcb..6f16484c97 100644
--- a/model_vrf.go
+++ b/model_vrf.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the VRF type satisfies the MappedNullable interface at compile time
@@ -26,20 +25,9 @@ type VRF struct {
Display string `json:"display"`
Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- // Prevent duplicate prefixes/IP addresses within this VRF
- EnforceUnique *bool `json:"enforce_unique,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- IpaddressCount int32 `json:"ipaddress_count"`
- PrefixCount int32 `json:"prefix_count"`
+ Rd NullableString `json:"rd,omitempty"`
+ Description *string `json:"description,omitempty"`
+ PrefixCount int64 `json:"prefix_count"`
AdditionalProperties map[string]interface{}
}
@@ -49,15 +37,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, created NullableTime, lastUpdated NullableTime, ipaddressCount int32, prefixCount int32) *VRF {
+func NewVRF(id int32, url string, display string, name string, prefixCount int64) *VRF {
this := VRF{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
- this.Created = created
- this.LastUpdated = lastUpdated
- this.IpaddressCount = ipaddressCount
this.PrefixCount = prefixCount
return &this
}
@@ -209,81 +194,6 @@ 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() NestedTenant {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VRF) GetTenantOk() (*NestedTenant, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *VRF) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *VRF) SetTenant(v NestedTenant) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *VRF) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -316,246 +226,10 @@ func (o *VRF) SetDescription(v string) {
o.Description = &v
}
-// 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() []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 *VRF) 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 *VRF) 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 *VRF) SetImportTargets(v []int32) {
- o.ImportTargets = v
-}
-
-// GetExportTargets returns the ExportTargets field value if set, zero value otherwise.
-func (o *VRF) 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 *VRF) 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 *VRF) 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 *VRF) SetExportTargets(v []int32) {
- 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *VRF) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VRF) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *VRF) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *VRF) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VRF) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *VRF) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
-// GetIpaddressCount returns the IpaddressCount field value
-func (o *VRF) GetIpaddressCount() int32 {
- if o == nil {
- var ret int32
- 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 *VRF) GetIpaddressCountOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.IpaddressCount, true
-}
-
-// SetIpaddressCount sets field value
-func (o *VRF) SetIpaddressCount(v int32) {
- o.IpaddressCount = v
-}
-
// GetPrefixCount returns the PrefixCount field value
-func (o *VRF) GetPrefixCount() int32 {
+func (o *VRF) GetPrefixCount() int64 {
if o == nil {
- var ret int32
+ var ret int64
return ret
}
@@ -564,7 +238,7 @@ func (o *VRF) GetPrefixCount() int32 {
// GetPrefixCountOk returns a tuple with the PrefixCount field value
// and a boolean to check if the value has been set.
-func (o *VRF) GetPrefixCountOk() (*int32, bool) {
+func (o *VRF) GetPrefixCountOk() (*int64, bool) {
if o == nil {
return nil, false
}
@@ -572,7 +246,7 @@ func (o *VRF) GetPrefixCountOk() (*int32, bool) {
}
// SetPrefixCount sets field value
-func (o *VRF) SetPrefixCount(v int32) {
+func (o *VRF) SetPrefixCount(v int64) {
o.PrefixCount = v
}
@@ -593,33 +267,9 @@ func (o VRF) 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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
- toSerialize["ipaddress_count"] = o.IpaddressCount
toSerialize["prefix_count"] = o.PrefixCount
for key, value := range o.AdditionalProperties {
@@ -638,9 +288,6 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) {
"url",
"display",
"name",
- "created",
- "last_updated",
- "ipaddress_count",
"prefix_count",
}
@@ -676,17 +323,7 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) {
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
}
diff --git a/model_vrf_request.go b/model_vrf_request.go
index 2679b38be5..16ae86557b 100644
--- a/model_vrf_request.go
+++ b/model_vrf_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,16 +22,8 @@ var _ MappedNullable = &VRFRequest{}
type VRFRequest struct {
Name string `json:"name"`
// Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableNestedTenantRequest `json:"tenant,omitempty"`
- // Prevent duplicate prefixes/IP addresses within this VRF
- EnforceUnique *bool `json:"enforce_unique,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ImportTargets []int32 `json:"import_targets,omitempty"`
- ExportTargets []int32 `json:"export_targets,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ Rd NullableString `json:"rd,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -122,81 +114,6 @@ 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() NestedTenantRequest {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *VRFRequest) GetTenantOk() (*NestedTenantRequest, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *VRFRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *VRFRequest) SetTenant(v NestedTenantRequest) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *VRFRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// 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) {
@@ -229,166 +146,6 @@ 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()
if err != nil {
@@ -403,30 +160,9 @@ 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
@@ -472,14 +208,7 @@ 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
}
diff --git a/model_webhook.go b/model_webhook.go
index c59f845a61..598066292e 100644
--- a/model_webhook.go
+++ b/model_webhook.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_webhook_request.go b/model_webhook_request.go
index 669fd1f765..09152c9ce7 100644
--- a/model_webhook_request.go
+++ b/model_webhook_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_channel.go b/model_wireless_channel.go
index 8b34df6820..0950f88f11 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan.go b/model_wireless_lan.go
index f66f258cad..4825664b88 100644
--- a/model_wireless_lan.go
+++ b/model_wireless_lan.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,23 +21,23 @@ var _ MappedNullable = &WirelessLAN{}
// WirelessLAN Adds support for custom fields and tags.
type WirelessLAN struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableNestedWirelessLANGroup `json:"group,omitempty"`
- Status *WirelessLANStatus `json:"status,omitempty"`
- Vlan NullableNestedVLAN `json:"vlan,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,omitempty"`
- AuthType *WirelessLANAuthType `json:"auth_type,omitempty"`
- AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"`
- AuthPsk *string `json:"auth_psk,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Ssid string `json:"ssid"`
+ Description *string `json:"description,omitempty"`
+ Group 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"`
AdditionalProperties map[string]interface{}
}
@@ -195,9 +195,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() NestedWirelessLANGroup {
+func (o *WirelessLAN) GetGroup() WirelessLANGroup {
if o == nil || IsNil(o.Group.Get()) {
- var ret NestedWirelessLANGroup
+ var ret WirelessLANGroup
return ret
}
return *o.Group.Get()
@@ -206,7 +206,7 @@ func (o *WirelessLAN) GetGroup() NestedWirelessLANGroup {
// 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() (*NestedWirelessLANGroup, bool) {
+func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) {
if o == nil {
return nil, false
}
@@ -222,8 +222,8 @@ func (o *WirelessLAN) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Group field.
-func (o *WirelessLAN) SetGroup(v NestedWirelessLANGroup) {
+// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field.
+func (o *WirelessLAN) SetGroup(v WirelessLANGroup) {
o.Group.Set(&v)
}
@@ -270,9 +270,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() NestedVLAN {
+func (o *WirelessLAN) GetVlan() VLAN {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret NestedVLAN
+ var ret VLAN
return ret
}
return *o.Vlan.Get()
@@ -281,7 +281,7 @@ func (o *WirelessLAN) GetVlan() NestedVLAN {
// 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() (*NestedVLAN, bool) {
+func (o *WirelessLAN) GetVlanOk() (*VLAN, bool) {
if o == nil {
return nil, false
}
@@ -297,8 +297,8 @@ func (o *WirelessLAN) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableNestedVLAN and assigns it to the Vlan field.
-func (o *WirelessLAN) SetVlan(v NestedVLAN) {
+// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field.
+func (o *WirelessLAN) SetVlan(v VLAN) {
o.Vlan.Set(&v)
}
@@ -313,9 +313,9 @@ func (o *WirelessLAN) UnsetVlan() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLAN) GetTenant() NestedTenant {
+func (o *WirelessLAN) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -324,7 +324,7 @@ func (o *WirelessLAN) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *WirelessLAN) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -340,8 +340,8 @@ func (o *WirelessLAN) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *WirelessLAN) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *WirelessLAN) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go
index 272ad66307..7edf6beb18 100644
--- a/model_wireless_lan_auth_cipher.go
+++ b/model_wireless_lan_auth_cipher.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go
index 8d010aef6f..212607db6f 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go
index 6268fe6386..e601548bda 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go
index 6bdafc4fb4..5d67cd3175 100644
--- a/model_wireless_lan_auth_type.go
+++ b/model_wireless_lan_auth_type.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go
index ae1ca14b12..3a804f5bc4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go
index cc4b8cb927..aa1b05122b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go
index e4f48c6a31..ca2ffb94fc 100644
--- a/model_wireless_lan_group.go
+++ b/model_wireless_lan_group.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -13,7 +13,6 @@ package netbox
import (
"encoding/json"
"fmt"
- "time"
)
// checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time
@@ -21,19 +20,14 @@ var _ MappedNullable = &WirelessLANGroup{}
// WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support.
type WirelessLANGroup struct {
- Id int32 `json:"id"`
- Url string `json:"url"`
- Display string `json:"display"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTag `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- Created NullableTime `json:"created"`
- LastUpdated NullableTime `json:"last_updated"`
- WirelesslanCount int32 `json:"wirelesslan_count"`
- Depth int32 `json:"_depth"`
+ Id int32 `json:"id"`
+ Url string `json:"url"`
+ Display string `json:"display"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Description *string `json:"description,omitempty"`
+ WirelesslanCount int32 `json:"wirelesslan_count"`
+ Depth int32 `json:"_depth"`
AdditionalProperties map[string]interface{}
}
@@ -43,15 +37,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, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32) *WirelessLANGroup {
+func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup {
this := WirelessLANGroup{}
this.Id = id
this.Url = url
this.Display = display
this.Name = name
this.Slug = slug
- this.Created = created
- this.LastUpdated = lastUpdated
this.WirelesslanCount = wirelesslanCount
this.Depth = depth
return &this
@@ -185,49 +177,6 @@ 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) {
@@ -260,122 +209,6 @@ 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 the value is explicit nil, the zero value for time.Time will be returned
-func (o *WirelessLANGroup) GetCreated() time.Time {
- if o == nil || o.Created.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.Created.Get()
-}
-
-// GetCreatedOk returns a tuple with the Created field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Created.Get(), o.Created.IsSet()
-}
-
-// SetCreated sets field value
-func (o *WirelessLANGroup) SetCreated(v time.Time) {
- o.Created.Set(&v)
-}
-
-// GetLastUpdated returns the LastUpdated field value
-// If the value is explicit nil, the zero value for time.Time will be returned
-func (o *WirelessLANGroup) GetLastUpdated() time.Time {
- if o == nil || o.LastUpdated.Get() == nil {
- var ret time.Time
- return ret
- }
-
- return *o.LastUpdated.Get()
-}
-
-// GetLastUpdatedOk returns a tuple with the LastUpdated field value
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUpdated.Get(), o.LastUpdated.IsSet()
-}
-
-// SetLastUpdated sets field value
-func (o *WirelessLANGroup) SetLastUpdated(v time.Time) {
- o.LastUpdated.Set(&v)
-}
-
// GetWirelesslanCount returns the WirelesslanCount field value
func (o *WirelessLANGroup) GetWirelesslanCount() int32 {
if o == nil {
@@ -439,20 +272,9 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) {
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
- }
- toSerialize["created"] = o.Created.Get()
- toSerialize["last_updated"] = o.LastUpdated.Get()
toSerialize["wirelesslan_count"] = o.WirelesslanCount
toSerialize["_depth"] = o.Depth
@@ -473,8 +295,6 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
"display",
"name",
"slug",
- "created",
- "last_updated",
"wirelesslan_count",
"_depth",
}
@@ -511,12 +331,7 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) {
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
diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go
index 5d1f507e1b..7063e6d878 100644
--- a/model_wireless_lan_group_request.go
+++ b/model_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go
index 4d0edbc301..f2ac3edde1 100644
--- a/model_wireless_lan_request.go
+++ b/model_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLANRequest{}
// WirelessLANRequest Adds support for custom fields and tags.
type WirelessLANRequest struct {
- Ssid string `json:"ssid"`
- Description *string `json:"description,omitempty"`
- Group NullableNestedWirelessLANGroupRequest `json:"group,omitempty"`
- Status *WirelessLANStatusValue `json:"status,omitempty"`
- Vlan NullableNestedVLANRequest `json:"vlan,omitempty"`
- Tenant NullableNestedTenantRequest `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 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"`
AdditionalProperties map[string]interface{}
}
@@ -112,9 +112,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() NestedWirelessLANGroupRequest {
+func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret NestedWirelessLANGroupRequest
+ var ret WirelessLANGroupRequest
return ret
}
return *o.Group.Get()
@@ -123,7 +123,7 @@ func (o *WirelessLANRequest) GetGroup() NestedWirelessLANGroupRequest {
// 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() (*NestedWirelessLANGroupRequest, bool) {
+func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -139,8 +139,8 @@ func (o *WirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableNestedWirelessLANGroupRequest and assigns it to the Group field.
-func (o *WirelessLANRequest) SetGroup(v NestedWirelessLANGroupRequest) {
+// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field.
+func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) {
o.Group.Set(&v)
}
@@ -187,9 +187,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() NestedVLANRequest {
+func (o *WirelessLANRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret NestedVLANRequest
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -198,7 +198,7 @@ func (o *WirelessLANRequest) GetVlan() NestedVLANRequest {
// 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() (*NestedVLANRequest, bool) {
+func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -214,8 +214,8 @@ func (o *WirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableNestedVLANRequest and assigns it to the Vlan field.
-func (o *WirelessLANRequest) SetVlan(v NestedVLANRequest) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *WirelessLANRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -230,9 +230,9 @@ func (o *WirelessLANRequest) UnsetVlan() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WirelessLANRequest) GetTenant() NestedTenantRequest {
+func (o *WirelessLANRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -241,7 +241,7 @@ func (o *WirelessLANRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -257,8 +257,8 @@ func (o *WirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *WirelessLANRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WirelessLANRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go
index a84fe5f23b..0b14b4e127 100644
--- a/model_wireless_lan_status.go
+++ b/model_wireless_lan_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go
index e7dd613b15..21057de6fb 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go
index b71f570499..ac9292d675 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_wireless_link.go b/model_wireless_link.go
index d17130cc27..8626318ea7 100644
--- a/model_wireless_link.go
+++ b/model_wireless_link.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,11 +24,11 @@ type WirelessLink struct {
Id int32 `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
- InterfaceA NestedInterface `json:"interface_a"`
- InterfaceB NestedInterface `json:"interface_b"`
+ InterfaceA Interface `json:"interface_a"`
+ InterfaceB Interface `json:"interface_b"`
Ssid *string `json:"ssid,omitempty"`
- Status *CableStatus `json:"status,omitempty"`
- Tenant NullableNestedTenant `json:"tenant,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"`
@@ -47,7 +47,7 @@ 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 NestedInterface, interfaceB NestedInterface, created NullableTime, lastUpdated NullableTime) *WirelessLink {
+func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink {
this := WirelessLink{}
this.Id = id
this.Url = url
@@ -140,9 +140,9 @@ func (o *WirelessLink) SetDisplay(v string) {
}
// GetInterfaceA returns the InterfaceA field value
-func (o *WirelessLink) GetInterfaceA() NestedInterface {
+func (o *WirelessLink) GetInterfaceA() Interface {
if o == nil {
- var ret NestedInterface
+ var ret Interface
return ret
}
@@ -151,7 +151,7 @@ func (o *WirelessLink) GetInterfaceA() NestedInterface {
// GetInterfaceAOk returns a tuple with the InterfaceA field value
// and a boolean to check if the value has been set.
-func (o *WirelessLink) GetInterfaceAOk() (*NestedInterface, bool) {
+func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) {
if o == nil {
return nil, false
}
@@ -159,14 +159,14 @@ func (o *WirelessLink) GetInterfaceAOk() (*NestedInterface, bool) {
}
// SetInterfaceA sets field value
-func (o *WirelessLink) SetInterfaceA(v NestedInterface) {
+func (o *WirelessLink) SetInterfaceA(v Interface) {
o.InterfaceA = v
}
// GetInterfaceB returns the InterfaceB field value
-func (o *WirelessLink) GetInterfaceB() NestedInterface {
+func (o *WirelessLink) GetInterfaceB() Interface {
if o == nil {
- var ret NestedInterface
+ var ret Interface
return ret
}
@@ -175,7 +175,7 @@ func (o *WirelessLink) GetInterfaceB() NestedInterface {
// GetInterfaceBOk returns a tuple with the InterfaceB field value
// and a boolean to check if the value has been set.
-func (o *WirelessLink) GetInterfaceBOk() (*NestedInterface, bool) {
+func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) {
if o == nil {
return nil, false
}
@@ -183,7 +183,7 @@ func (o *WirelessLink) GetInterfaceBOk() (*NestedInterface, bool) {
}
// SetInterfaceB sets field value
-func (o *WirelessLink) SetInterfaceB(v NestedInterface) {
+func (o *WirelessLink) SetInterfaceB(v Interface) {
o.InterfaceB = v
}
@@ -220,9 +220,9 @@ func (o *WirelessLink) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WirelessLink) GetStatus() CableStatus {
+func (o *WirelessLink) GetStatus() WirelessLinkStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatus
+ var ret WirelessLinkStatus
return ret
}
return *o.Status
@@ -230,7 +230,7 @@ func (o *WirelessLink) GetStatus() CableStatus {
// 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() (*CableStatus, bool) {
+func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -246,15 +246,15 @@ func (o *WirelessLink) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatus and assigns it to the Status field.
-func (o *WirelessLink) SetStatus(v CableStatus) {
+// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field.
+func (o *WirelessLink) SetStatus(v WirelessLinkStatus) {
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() NestedTenant {
+func (o *WirelessLink) GetTenant() Tenant {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenant
+ var ret Tenant
return ret
}
return *o.Tenant.Get()
@@ -263,7 +263,7 @@ func (o *WirelessLink) GetTenant() NestedTenant {
// 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() (*NestedTenant, bool) {
+func (o *WirelessLink) GetTenantOk() (*Tenant, bool) {
if o == nil {
return nil, false
}
@@ -279,8 +279,8 @@ func (o *WirelessLink) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field.
-func (o *WirelessLink) SetTenant(v NestedTenant) {
+// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field.
+func (o *WirelessLink) SetTenant(v Tenant) {
o.Tenant.Set(&v)
}
diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go
index 458d26ea0d..ac8afc3867 100644
--- a/model_wireless_link_request.go
+++ b/model_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLinkRequest{}
// WirelessLinkRequest Adds support for custom fields and tags.
type WirelessLinkRequest struct {
- InterfaceA NestedInterfaceRequest `json:"interface_a"`
- InterfaceB NestedInterfaceRequest `json:"interface_b"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableNestedTenantRequest `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 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"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,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 NestedInterfaceRequest, interfaceB NestedInterfaceRequest) *WirelessLinkRequest {
+func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest {
this := WirelessLinkRequest{}
this.InterfaceA = interfaceA
this.InterfaceB = interfaceB
@@ -57,9 +57,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest {
}
// GetInterfaceA returns the InterfaceA field value
-func (o *WirelessLinkRequest) GetInterfaceA() NestedInterfaceRequest {
+func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest {
if o == nil {
- var ret NestedInterfaceRequest
+ var ret InterfaceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() NestedInterfaceRequest {
// GetInterfaceAOk returns a tuple with the InterfaceA field value
// and a boolean to check if the value has been set.
-func (o *WirelessLinkRequest) GetInterfaceAOk() (*NestedInterfaceRequest, bool) {
+func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*NestedInterfaceRequest, bool)
}
// SetInterfaceA sets field value
-func (o *WirelessLinkRequest) SetInterfaceA(v NestedInterfaceRequest) {
+func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) {
o.InterfaceA = v
}
// GetInterfaceB returns the InterfaceB field value
-func (o *WirelessLinkRequest) GetInterfaceB() NestedInterfaceRequest {
+func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest {
if o == nil {
- var ret NestedInterfaceRequest
+ var ret InterfaceRequest
return ret
}
@@ -92,7 +92,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() NestedInterfaceRequest {
// GetInterfaceBOk returns a tuple with the InterfaceB field value
// and a boolean to check if the value has been set.
-func (o *WirelessLinkRequest) GetInterfaceBOk() (*NestedInterfaceRequest, bool) {
+func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) {
if o == nil {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*NestedInterfaceRequest, bool)
}
// SetInterfaceB sets field value
-func (o *WirelessLinkRequest) SetInterfaceB(v NestedInterfaceRequest) {
+func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) {
o.InterfaceB = v
}
@@ -137,9 +137,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WirelessLinkRequest) GetStatus() CableStatusValue {
+func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Status
@@ -147,7 +147,7 @@ func (o *WirelessLinkRequest) GetStatus() CableStatusValue {
// 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() (*CableStatusValue, bool) {
+func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -163,15 +163,15 @@ func (o *WirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
-func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field.
+func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) {
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() NestedTenantRequest {
+func (o *WirelessLinkRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret NestedTenantRequest
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -180,7 +180,7 @@ func (o *WirelessLinkRequest) GetTenant() NestedTenantRequest {
// 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() (*NestedTenantRequest, bool) {
+func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *WirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field.
-func (o *WirelessLinkRequest) SetTenant(v NestedTenantRequest) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WirelessLinkRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_data_source_status.go b/model_wireless_link_status.go
similarity index 50%
rename from model_data_source_status.go
rename to model_wireless_link_status.go
index dc59b69729..45f92f27dd 100644
--- a/model_data_source_status.go
+++ b/model_wireless_link_status.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -14,39 +14,39 @@ import (
"encoding/json"
)
-// checks if the DataSourceStatus type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &DataSourceStatus{}
+// checks if the WirelessLinkStatus type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WirelessLinkStatus{}
-// DataSourceStatus struct for DataSourceStatus
-type DataSourceStatus struct {
- Value *DataSourceStatusValue `json:"value,omitempty"`
- Label *DataSourceStatusLabel `json:"label,omitempty"`
+// WirelessLinkStatus struct for WirelessLinkStatus
+type WirelessLinkStatus struct {
+ Value *PatchedWritableCableRequestStatus `json:"value,omitempty"`
+ Label *WirelessLinkStatusLabel `json:"label,omitempty"`
AdditionalProperties map[string]interface{}
}
-type _DataSourceStatus DataSourceStatus
+type _WirelessLinkStatus WirelessLinkStatus
-// NewDataSourceStatus instantiates a new DataSourceStatus object
+// NewWirelessLinkStatus instantiates a new WirelessLinkStatus object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewDataSourceStatus() *DataSourceStatus {
- this := DataSourceStatus{}
+func NewWirelessLinkStatus() *WirelessLinkStatus {
+ this := WirelessLinkStatus{}
return &this
}
-// NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus object
+// NewWirelessLinkStatusWithDefaults instantiates a new WirelessLinkStatus object
// This 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 NewDataSourceStatusWithDefaults() *DataSourceStatus {
- this := DataSourceStatus{}
+func NewWirelessLinkStatusWithDefaults() *WirelessLinkStatus {
+ this := WirelessLinkStatus{}
return &this
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *DataSourceStatus) GetValue() DataSourceStatusValue {
+func (o *WirelessLinkStatus) GetValue() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Value) {
- var ret DataSourceStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Value
@@ -54,7 +54,7 @@ func (o *DataSourceStatus) GetValue() DataSourceStatusValue {
// 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 *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool) {
+func (o *WirelessLinkStatus) GetValueOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Value) {
return nil, false
}
@@ -62,7 +62,7 @@ func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool) {
}
// HasValue returns a boolean if a field has been set.
-func (o *DataSourceStatus) HasValue() bool {
+func (o *WirelessLinkStatus) HasValue() bool {
if o != nil && !IsNil(o.Value) {
return true
}
@@ -70,15 +70,15 @@ func (o *DataSourceStatus) HasValue() bool {
return false
}
-// SetValue gets a reference to the given DataSourceStatusValue and assigns it to the Value field.
-func (o *DataSourceStatus) SetValue(v DataSourceStatusValue) {
+// SetValue gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Value field.
+func (o *WirelessLinkStatus) SetValue(v PatchedWritableCableRequestStatus) {
o.Value = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel {
+func (o *WirelessLinkStatus) GetLabel() WirelessLinkStatusLabel {
if o == nil || IsNil(o.Label) {
- var ret DataSourceStatusLabel
+ var ret WirelessLinkStatusLabel
return ret
}
return *o.Label
@@ -86,7 +86,7 @@ func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel {
// 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 *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool) {
+func (o *WirelessLinkStatus) GetLabelOk() (*WirelessLinkStatusLabel, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
@@ -94,7 +94,7 @@ func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool) {
}
// HasLabel returns a boolean if a field has been set.
-func (o *DataSourceStatus) HasLabel() bool {
+func (o *WirelessLinkStatus) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
@@ -102,12 +102,12 @@ func (o *DataSourceStatus) HasLabel() bool {
return false
}
-// SetLabel gets a reference to the given DataSourceStatusLabel and assigns it to the Label field.
-func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) {
+// SetLabel gets a reference to the given WirelessLinkStatusLabel and assigns it to the Label field.
+func (o *WirelessLinkStatus) SetLabel(v WirelessLinkStatusLabel) {
o.Label = &v
}
-func (o DataSourceStatus) MarshalJSON() ([]byte, error) {
+func (o WirelessLinkStatus) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
@@ -115,7 +115,7 @@ func (o DataSourceStatus) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-func (o DataSourceStatus) ToMap() (map[string]interface{}, error) {
+func (o WirelessLinkStatus) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Value) {
toSerialize["value"] = o.Value
@@ -131,16 +131,16 @@ func (o DataSourceStatus) ToMap() (map[string]interface{}, error) {
return toSerialize, nil
}
-func (o *DataSourceStatus) UnmarshalJSON(data []byte) (err error) {
- varDataSourceStatus := _DataSourceStatus{}
+func (o *WirelessLinkStatus) UnmarshalJSON(data []byte) (err error) {
+ varWirelessLinkStatus := _WirelessLinkStatus{}
- err = json.Unmarshal(data, &varDataSourceStatus)
+ err = json.Unmarshal(data, &varWirelessLinkStatus)
if err != nil {
return err
}
- *o = DataSourceStatus(varDataSourceStatus)
+ *o = WirelessLinkStatus(varWirelessLinkStatus)
additionalProperties := make(map[string]interface{})
@@ -153,38 +153,38 @@ func (o *DataSourceStatus) UnmarshalJSON(data []byte) (err error) {
return err
}
-type NullableDataSourceStatus struct {
- value *DataSourceStatus
+type NullableWirelessLinkStatus struct {
+ value *WirelessLinkStatus
isSet bool
}
-func (v NullableDataSourceStatus) Get() *DataSourceStatus {
+func (v NullableWirelessLinkStatus) Get() *WirelessLinkStatus {
return v.value
}
-func (v *NullableDataSourceStatus) Set(val *DataSourceStatus) {
+func (v *NullableWirelessLinkStatus) Set(val *WirelessLinkStatus) {
v.value = val
v.isSet = true
}
-func (v NullableDataSourceStatus) IsSet() bool {
+func (v NullableWirelessLinkStatus) IsSet() bool {
return v.isSet
}
-func (v *NullableDataSourceStatus) Unset() {
+func (v *NullableWirelessLinkStatus) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableDataSourceStatus(val *DataSourceStatus) *NullableDataSourceStatus {
- return &NullableDataSourceStatus{value: val, isSet: true}
+func NewNullableWirelessLinkStatus(val *WirelessLinkStatus) *NullableWirelessLinkStatus {
+ return &NullableWirelessLinkStatus{value: val, isSet: true}
}
-func (v NullableDataSourceStatus) MarshalJSON() ([]byte, error) {
+func (v NullableWirelessLinkStatus) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error {
+func (v *NullableWirelessLinkStatus) 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
new file mode 100644
index 0000000000..b4c304acf8
--- /dev/null
+++ b/model_wireless_link_status_label.go
@@ -0,0 +1,112 @@
+/*
+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 aee78f0872..8aa2042e34 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go
index 6212c3f251..b16c5390bd 100644
--- a/model_writable_aggregate_request.go
+++ b/model_writable_aggregate_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,9 @@ var _ MappedNullable = &WritableAggregateRequest{}
// WritableAggregateRequest Adds support for custom fields and tags.
type WritableAggregateRequest struct {
- Prefix string `json:"prefix"`
- // Regional Internet Registry responsible for this IP space
- Rir int32 `json:"rir"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
@@ -38,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 int32) *WritableAggregateRequest {
+func NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest {
this := WritableAggregateRequest{}
this.Prefix = prefix
this.Rir = rir
@@ -78,9 +77,9 @@ func (o *WritableAggregateRequest) SetPrefix(v string) {
}
// GetRir returns the Rir field value
-func (o *WritableAggregateRequest) GetRir() int32 {
+func (o *WritableAggregateRequest) GetRir() RIRRequest {
if o == nil {
- var ret int32
+ var ret RIRRequest
return ret
}
@@ -89,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() int32 {
// GetRirOk returns a tuple with the Rir field value
// and a boolean to check if the value has been set.
-func (o *WritableAggregateRequest) GetRirOk() (*int32, bool) {
+func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) {
if o == nil {
return nil, false
}
@@ -97,14 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*int32, bool) {
}
// SetRir sets field value
-func (o *WritableAggregateRequest) SetRir(v int32) {
+func (o *WritableAggregateRequest) SetRir(v RIRRequest) {
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() int32 {
+func (o *WritableAggregateRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -113,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -129,8 +128,8 @@ func (o *WritableAggregateRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableAggregateRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableAggregateRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_asn_range_request.go b/model_writable_asn_range_request.go
deleted file mode 100644
index f92dd738de..0000000000
--- a/model_writable_asn_range_request.go
+++ /dev/null
@@ -1,441 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableASNRangeRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableASNRangeRequest{}
-
-// WritableASNRangeRequest Adds support for custom fields and tags.
-type WritableASNRangeRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Rir int32 `json:"rir"`
- Start int64 `json:"start"`
- End int64 `json:"end"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableASNRangeRequest WritableASNRangeRequest
-
-// NewWritableASNRangeRequest instantiates a new WritableASNRangeRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableASNRangeRequest(name string, slug string, rir int32, start int64, end int64) *WritableASNRangeRequest {
- this := WritableASNRangeRequest{}
- this.Name = name
- this.Slug = slug
- this.Rir = rir
- this.Start = start
- this.End = end
- return &this
-}
-
-// NewWritableASNRangeRequestWithDefaults instantiates a new WritableASNRangeRequest object
-// This 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 NewWritableASNRangeRequestWithDefaults() *WritableASNRangeRequest {
- this := WritableASNRangeRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableASNRangeRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *WritableASNRangeRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-// GetRir returns the Rir field value
-func (o *WritableASNRangeRequest) GetRir() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Rir
-}
-
-// GetRirOk returns a tuple with the Rir field value
-// and a boolean to check if the value has been set.
-func (o *WritableASNRangeRequest) GetRirOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Rir, true
-}
-
-// SetRir sets field value
-func (o *WritableASNRangeRequest) SetRir(v int32) {
- o.Rir = v
-}
-
-// GetStart returns the Start field value
-func (o *WritableASNRangeRequest) GetStart() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.Start
-}
-
-// GetStartOk returns a tuple with the Start field value
-// and a boolean to check if the value has been set.
-func (o *WritableASNRangeRequest) GetStartOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Start, true
-}
-
-// SetStart sets field value
-func (o *WritableASNRangeRequest) SetStart(v int64) {
- o.Start = v
-}
-
-// GetEnd returns the End field value
-func (o *WritableASNRangeRequest) GetEnd() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.End
-}
-
-// GetEndOk returns a tuple with the End field value
-// and a boolean to check if the value has been set.
-func (o *WritableASNRangeRequest) GetEndOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.End, true
-}
-
-// SetEnd sets field value
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) GetTenant() int32 {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableASNRangeRequest) GetTenantOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *WritableASNRangeRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableASNRangeRequest) SetTenant(v int32) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *WritableASNRangeRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *WritableASNRangeRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) 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 *WritableASNRangeRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableASNRangeRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableASNRangeRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
- toSerialize["rir"] = o.Rir
- toSerialize["start"] = o.Start
- toSerialize["end"] = o.End
- if o.Tenant.IsSet() {
- toSerialize["tenant"] = o.Tenant.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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableASNRangeRequest) 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",
- "rir",
- "start",
- "end",
- }
-
- 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)
- }
- }
-
- varWritableASNRangeRequest := _WritableASNRangeRequest{}
-
- err = json.Unmarshal(data, &varWritableASNRangeRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableASNRangeRequest(varWritableASNRangeRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "slug")
- delete(additionalProperties, "rir")
- delete(additionalProperties, "start")
- delete(additionalProperties, "end")
- delete(additionalProperties, "tenant")
- delete(additionalProperties, "description")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableASNRangeRequest struct {
- value *WritableASNRangeRequest
- isSet bool
-}
-
-func (v NullableWritableASNRangeRequest) Get() *WritableASNRangeRequest {
- return v.value
-}
-
-func (v *NullableWritableASNRangeRequest) Set(val *WritableASNRangeRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableASNRangeRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableASNRangeRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableASNRangeRequest(val *WritableASNRangeRequest) *NullableWritableASNRangeRequest {
- return &NullableWritableASNRangeRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableASNRangeRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableASNRangeRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_asn_request.go b/model_writable_asn_request.go
deleted file mode 100644
index 3de2ed860a..0000000000
--- a/model_writable_asn_request.go
+++ /dev/null
@@ -1,393 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableASNRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableASNRequest{}
-
-// WritableASNRequest Adds support for custom fields and tags.
-type WritableASNRequest struct {
- // 16- or 32-bit autonomous system number
- Asn int64 `json:"asn"`
- // Regional Internet Registry responsible for this AS number space
- Rir int32 `json:"rir"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableASNRequest WritableASNRequest
-
-// NewWritableASNRequest instantiates a new WritableASNRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableASNRequest(asn int64, rir int32) *WritableASNRequest {
- this := WritableASNRequest{}
- this.Asn = asn
- this.Rir = rir
- return &this
-}
-
-// NewWritableASNRequestWithDefaults instantiates a new WritableASNRequest object
-// This 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 NewWritableASNRequestWithDefaults() *WritableASNRequest {
- this := WritableASNRequest{}
- return &this
-}
-
-// GetAsn returns the Asn field value
-func (o *WritableASNRequest) GetAsn() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.Asn
-}
-
-// GetAsnOk returns a tuple with the Asn field value
-// and a boolean to check if the value has been set.
-func (o *WritableASNRequest) GetAsnOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Asn, true
-}
-
-// SetAsn sets field value
-func (o *WritableASNRequest) SetAsn(v int64) {
- o.Asn = v
-}
-
-// GetRir returns the Rir field value
-func (o *WritableASNRequest) GetRir() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Rir
-}
-
-// GetRirOk returns a tuple with the Rir field value
-// and a boolean to check if the value has been set.
-func (o *WritableASNRequest) GetRirOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Rir, true
-}
-
-// SetRir sets field value
-func (o *WritableASNRequest) SetRir(v int32) {
- 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 *WritableASNRequest) GetTenant() int32 {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableASNRequest) GetTenantOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *WritableASNRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableASNRequest) SetTenant(v int32) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *WritableASNRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *WritableASNRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) 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 *WritableASNRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableASNRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableASNRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["asn"] = o.Asn
- toSerialize["rir"] = o.Rir
- 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 *WritableASNRequest) 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{
- "asn",
- "rir",
- }
-
- 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)
- }
- }
-
- varWritableASNRequest := _WritableASNRequest{}
-
- err = json.Unmarshal(data, &varWritableASNRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableASNRequest(varWritableASNRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "asn")
- delete(additionalProperties, "rir")
- delete(additionalProperties, "tenant")
- delete(additionalProperties, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableASNRequest struct {
- value *WritableASNRequest
- isSet bool
-}
-
-func (v NullableWritableASNRequest) Get() *WritableASNRequest {
- return v.value
-}
-
-func (v *NullableWritableASNRequest) Set(val *WritableASNRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableASNRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableASNRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableASNRequest(val *WritableASNRequest) *NullableWritableASNRequest {
- return &NullableWritableASNRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableASNRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableASNRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_bookmark_request.go b/model_writable_bookmark_request.go
deleted file mode 100644
index acd36d9087..0000000000
--- a/model_writable_bookmark_request.go
+++ /dev/null
@@ -1,224 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableBookmarkRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableBookmarkRequest{}
-
-// WritableBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableBookmarkRequest struct {
- ObjectType string `json:"object_type"`
- ObjectId int64 `json:"object_id"`
- User int32 `json:"user"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableBookmarkRequest WritableBookmarkRequest
-
-// NewWritableBookmarkRequest instantiates a new WritableBookmarkRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableBookmarkRequest(objectType string, objectId int64, user int32) *WritableBookmarkRequest {
- this := WritableBookmarkRequest{}
- this.ObjectType = objectType
- this.ObjectId = objectId
- this.User = user
- return &this
-}
-
-// NewWritableBookmarkRequestWithDefaults instantiates a new WritableBookmarkRequest object
-// This constructor will only assign default values to properties that have it defined,
-// but it doesn't guarantee that properties required by API are set
-func NewWritableBookmarkRequestWithDefaults() *WritableBookmarkRequest {
- this := WritableBookmarkRequest{}
- return &this
-}
-
-// GetObjectType returns the ObjectType field value
-func (o *WritableBookmarkRequest) GetObjectType() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.ObjectType
-}
-
-// GetObjectTypeOk returns a tuple with the ObjectType field value
-// and a boolean to check if the value has been set.
-func (o *WritableBookmarkRequest) GetObjectTypeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ObjectType, true
-}
-
-// SetObjectType sets field value
-func (o *WritableBookmarkRequest) SetObjectType(v string) {
- o.ObjectType = v
-}
-
-// GetObjectId returns the ObjectId field value
-func (o *WritableBookmarkRequest) GetObjectId() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.ObjectId
-}
-
-// GetObjectIdOk returns a tuple with the ObjectId field value
-// and a boolean to check if the value has been set.
-func (o *WritableBookmarkRequest) GetObjectIdOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.ObjectId, true
-}
-
-// SetObjectId sets field value
-func (o *WritableBookmarkRequest) SetObjectId(v int64) {
- o.ObjectId = v
-}
-
-// GetUser returns the User field value
-func (o *WritableBookmarkRequest) GetUser() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.User
-}
-
-// GetUserOk returns a tuple with the User field value
-// and a boolean to check if the value has been set.
-func (o *WritableBookmarkRequest) GetUserOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.User, true
-}
-
-// SetUser sets field value
-func (o *WritableBookmarkRequest) SetUser(v int32) {
- o.User = v
-}
-
-func (o WritableBookmarkRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableBookmarkRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["object_type"] = o.ObjectType
- toSerialize["object_id"] = o.ObjectId
- toSerialize["user"] = o.User
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableBookmarkRequest) UnmarshalJSON(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",
- }
-
- 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)
- }
- }
-
- varWritableBookmarkRequest := _WritableBookmarkRequest{}
-
- err = json.Unmarshal(data, &varWritableBookmarkRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableBookmarkRequest(varWritableBookmarkRequest)
-
- 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 NullableWritableBookmarkRequest struct {
- value *WritableBookmarkRequest
- isSet bool
-}
-
-func (v NullableWritableBookmarkRequest) Get() *WritableBookmarkRequest {
- return v.value
-}
-
-func (v *NullableWritableBookmarkRequest) Set(val *WritableBookmarkRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableBookmarkRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableBookmarkRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableBookmarkRequest(val *WritableBookmarkRequest) *NullableWritableBookmarkRequest {
- return &NullableWritableBookmarkRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableBookmarkRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableBookmarkRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go
index f082ec1c2a..7d440df5e1 100644
--- a/model_writable_cable_request.go
+++ b/model_writable_cable_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 *CableType `json:"type,omitempty"`
- ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"`
- BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Label *string `json:"label,omitempty"`
- Color *string `json:"color,omitempty"`
- Length NullableFloat64 `json:"length,omitempty"`
- LengthUnit *CableLengthUnitValue `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 *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"`
AdditionalProperties map[string]interface{}
}
@@ -55,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest {
}
// GetType returns the Type field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetType() CableType {
+func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType {
if o == nil || IsNil(o.Type) {
- var ret CableType
+ var ret PatchedWritableCableRequestType
return ret
}
return *o.Type
@@ -65,7 +65,7 @@ func (o *WritableCableRequest) GetType() CableType {
// 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() (*CableType, bool) {
+func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool {
return false
}
-// SetType gets a reference to the given CableType and assigns it to the Type field.
-func (o *WritableCableRequest) SetType(v CableType) {
+// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field.
+func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) {
o.Type = &v
}
@@ -151,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetStatus() CableStatusValue {
+func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Status
@@ -161,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() CableStatusValue {
// 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() (*CableStatusValue, bool) {
+func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -177,15 +177,15 @@ func (o *WritableCableRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
-func (o *WritableCableRequest) SetStatus(v CableStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field.
+func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) {
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() int32 {
+func (o *WritableCableRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -194,7 +194,7 @@ func (o *WritableCableRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -210,8 +210,8 @@ func (o *WritableCableRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableCableRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableCableRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -333,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() {
}
// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise.
-func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue {
+func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit {
if o == nil || IsNil(o.LengthUnit) {
- var ret CableLengthUnitValue
+ var ret PatchedWritableCableRequestLengthUnit
return ret
}
return *o.LengthUnit
@@ -343,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue {
// 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() (*CableLengthUnitValue, bool) {
+func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) {
if o == nil || IsNil(o.LengthUnit) {
return nil, false
}
@@ -359,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool {
return false
}
-// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field.
-func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) {
+// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field.
+func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) {
o.LengthUnit = &v
}
diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go
index e535ee94c3..8b3bc60b27 100644
--- a/model_writable_circuit_request.go
+++ b/model_writable_circuit_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,14 +21,14 @@ var _ MappedNullable = &WritableCircuitRequest{}
// WritableCircuitRequest Adds support for custom fields and tags.
type WritableCircuitRequest struct {
// Unique circuit ID
- Cid string `json:"cid"`
- Provider int32 `json:"provider"`
- ProviderAccount NullableInt32 `json:"provider_account,omitempty"`
- Type int32 `json:"type"`
- Status *CircuitStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- InstallDate NullableString `json:"install_date,omitempty"`
- TerminationDate NullableString `json:"termination_date,omitempty"`
+ 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"`
// Committed rate
CommitRate NullableInt32 `json:"commit_rate,omitempty"`
Description *string `json:"description,omitempty"`
@@ -44,7 +44,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 int32, type_ int32) *WritableCircuitRequest {
+func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest {
this := WritableCircuitRequest{}
this.Cid = cid
this.Provider = provider
@@ -85,9 +85,9 @@ func (o *WritableCircuitRequest) SetCid(v string) {
}
// GetProvider returns the Provider field value
-func (o *WritableCircuitRequest) GetProvider() int32 {
+func (o *WritableCircuitRequest) GetProvider() ProviderRequest {
if o == nil {
- var ret int32
+ var ret ProviderRequest
return ret
}
@@ -96,7 +96,7 @@ func (o *WritableCircuitRequest) GetProvider() int32 {
// GetProviderOk returns a tuple with the Provider field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitRequest) GetProviderOk() (*int32, bool) {
+func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) {
if o == nil {
return nil, false
}
@@ -104,14 +104,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*int32, bool) {
}
// SetProvider sets field value
-func (o *WritableCircuitRequest) SetProvider(v int32) {
+func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) {
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() int32 {
+func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest {
if o == nil || IsNil(o.ProviderAccount.Get()) {
- var ret int32
+ var ret ProviderAccountRequest
return ret
}
return *o.ProviderAccount.Get()
@@ -120,7 +120,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() int32 {
// 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() (*int32, bool) {
+func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) {
if o == nil {
return nil, false
}
@@ -136,8 +136,8 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool {
return false
}
-// SetProviderAccount gets a reference to the given NullableInt32 and assigns it to the ProviderAccount field.
-func (o *WritableCircuitRequest) SetProviderAccount(v int32) {
+// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field.
+func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) {
o.ProviderAccount.Set(&v)
}
@@ -152,9 +152,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() {
}
// GetType returns the Type field value
-func (o *WritableCircuitRequest) GetType() int32 {
+func (o *WritableCircuitRequest) GetType() CircuitTypeRequest {
if o == nil {
- var ret int32
+ var ret CircuitTypeRequest
return ret
}
@@ -163,7 +163,7 @@ func (o *WritableCircuitRequest) GetType() int32 {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableCircuitRequest) GetTypeOk() (*int32, bool) {
+func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -171,14 +171,14 @@ func (o *WritableCircuitRequest) GetTypeOk() (*int32, bool) {
}
// SetType sets field value
-func (o *WritableCircuitRequest) SetType(v int32) {
+func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) {
o.Type = v
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue {
+func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CircuitStatusValue
+ var ret PatchedWritableCircuitRequestStatus
return ret
}
return *o.Status
@@ -186,7 +186,7 @@ func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue {
// 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() (*CircuitStatusValue, bool) {
+func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -202,15 +202,15 @@ func (o *WritableCircuitRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field.
-func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field.
+func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) {
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() int32 {
+func (o *WritableCircuitRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -219,7 +219,7 @@ func (o *WritableCircuitRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -235,8 +235,8 @@ func (o *WritableCircuitRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableCircuitRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableCircuitRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_circuit_termination_request.go b/model_writable_circuit_termination_request.go
deleted file mode 100644
index 81a8e28913..0000000000
--- a/model_writable_circuit_termination_request.go
+++ /dev/null
@@ -1,614 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableCircuitTerminationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableCircuitTerminationRequest{}
-
-// WritableCircuitTerminationRequest Adds support for custom fields and tags.
-type WritableCircuitTerminationRequest struct {
- Circuit int32 `json:"circuit"`
- TermSide Termination `json:"term_side"`
- Site NullableInt32 `json:"site,omitempty"`
- ProviderNetwork NullableInt32 `json:"provider_network,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"`
- // Patch panel ID and port number(s)
- 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"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableCircuitTerminationRequest WritableCircuitTerminationRequest
-
-// NewWritableCircuitTerminationRequest instantiates a new WritableCircuitTerminationRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableCircuitTerminationRequest(circuit int32, termSide Termination) *WritableCircuitTerminationRequest {
- this := WritableCircuitTerminationRequest{}
- this.Circuit = circuit
- this.TermSide = termSide
- return &this
-}
-
-// NewWritableCircuitTerminationRequestWithDefaults instantiates a new WritableCircuitTerminationRequest object
-// This 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 NewWritableCircuitTerminationRequestWithDefaults() *WritableCircuitTerminationRequest {
- this := WritableCircuitTerminationRequest{}
- return &this
-}
-
-// GetCircuit returns the Circuit field value
-func (o *WritableCircuitTerminationRequest) GetCircuit() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Circuit
-}
-
-// GetCircuitOk returns a tuple with the Circuit field value
-// and a boolean to check if the value has been set.
-func (o *WritableCircuitTerminationRequest) GetCircuitOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Circuit, true
-}
-
-// SetCircuit sets field value
-func (o *WritableCircuitTerminationRequest) SetCircuit(v int32) {
- o.Circuit = v
-}
-
-// GetTermSide returns the TermSide field value
-func (o *WritableCircuitTerminationRequest) GetTermSide() Termination {
- if o == nil {
- var ret Termination
- return ret
- }
-
- return o.TermSide
-}
-
-// GetTermSideOk returns a tuple with the TermSide field value
-// and a boolean to check if the value has been set.
-func (o *WritableCircuitTerminationRequest) GetTermSideOk() (*Termination, bool) {
- if o == nil {
- return nil, false
- }
- return &o.TermSide, true
-}
-
-// SetTermSide sets field value
-func (o *WritableCircuitTerminationRequest) SetTermSide(v Termination) {
- 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 *WritableCircuitTerminationRequest) GetSite() int32 {
- if o == nil || IsNil(o.Site.Get()) {
- var ret int32
- 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 *WritableCircuitTerminationRequest) GetSiteOk() (*int32, 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 *WritableCircuitTerminationRequest) HasSite() bool {
- if o != nil && o.Site.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *WritableCircuitTerminationRequest) SetSite(v int32) {
- o.Site.Set(&v)
-}
-
-// SetSiteNil sets the value for Site to be an explicit nil
-func (o *WritableCircuitTerminationRequest) SetSiteNil() {
- o.Site.Set(nil)
-}
-
-// UnsetSite ensures that no value is present for Site, not even an explicit nil
-func (o *WritableCircuitTerminationRequest) UnsetSite() {
- o.Site.Unset()
-}
-
-// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCircuitTerminationRequest) GetProviderNetwork() int32 {
- if o == nil || IsNil(o.ProviderNetwork.Get()) {
- var ret int32
- return ret
- }
- return *o.ProviderNetwork.Get()
-}
-
-// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableCircuitTerminationRequest) GetProviderNetworkOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet()
-}
-
-// HasProviderNetwork returns a boolean if a field has been set.
-func (o *WritableCircuitTerminationRequest) HasProviderNetwork() bool {
- if o != nil && o.ProviderNetwork.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetProviderNetwork gets a reference to the given NullableInt32 and assigns it to the ProviderNetwork field.
-func (o *WritableCircuitTerminationRequest) SetProviderNetwork(v int32) {
- o.ProviderNetwork.Set(&v)
-}
-
-// SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil
-func (o *WritableCircuitTerminationRequest) SetProviderNetworkNil() {
- o.ProviderNetwork.Set(nil)
-}
-
-// UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil
-func (o *WritableCircuitTerminationRequest) UnsetProviderNetwork() {
- o.ProviderNetwork.Unset()
-}
-
-// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetPortSpeed(v int32) {
- o.PortSpeed.Set(&v)
-}
-
-// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil
-func (o *WritableCircuitTerminationRequest) SetPortSpeedNil() {
- o.PortSpeed.Set(nil)
-}
-
-// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetUpstreamSpeed(v int32) {
- o.UpstreamSpeed.Set(&v)
-}
-
-// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil
-func (o *WritableCircuitTerminationRequest) SetUpstreamSpeedNil() {
- o.UpstreamSpeed.Set(nil)
-}
-
-// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil
-func (o *WritableCircuitTerminationRequest) UnsetUpstreamSpeed() {
- o.UpstreamSpeed.Unset()
-}
-
-// GetXconnectId returns the XconnectId field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetXconnectId(v string) {
- o.XconnectId = &v
-}
-
-// GetPpInfo returns the PpInfo field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) GetPpInfo() string {
- if o == nil || IsNil(o.PpInfo) {
- var ret string
- return ret
- }
- return *o.PpInfo
-}
-
-// GetPpInfoOk returns a tuple with the PpInfo field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableCircuitTerminationRequest) GetPpInfoOk() (*string, bool) {
- if o == nil || IsNil(o.PpInfo) {
- return nil, false
- }
- return o.PpInfo, true
-}
-
-// HasPpInfo returns a boolean if a field has been set.
-func (o *WritableCircuitTerminationRequest) HasPpInfo() bool {
- if o != nil && !IsNil(o.PpInfo) {
- return true
- }
-
- return false
-}
-
-// SetPpInfo gets a reference to the given string and assigns it to the PpInfo field.
-func (o *WritableCircuitTerminationRequest) SetPpInfo(v string) {
- o.PpInfo = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetMarkConnected(v bool) {
- o.MarkConnected = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) 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 *WritableCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableCircuitTerminationRequest) 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.ProviderNetwork.IsSet() {
- toSerialize["provider_network"] = o.ProviderNetwork.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.PpInfo) {
- toSerialize["pp_info"] = o.PpInfo
- }
- 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableCircuitTerminationRequest) 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{
- "circuit",
- "term_side",
- }
-
- 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)
- }
- }
-
- varWritableCircuitTerminationRequest := _WritableCircuitTerminationRequest{}
-
- err = json.Unmarshal(data, &varWritableCircuitTerminationRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableCircuitTerminationRequest(varWritableCircuitTerminationRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "circuit")
- delete(additionalProperties, "term_side")
- delete(additionalProperties, "site")
- delete(additionalProperties, "provider_network")
- delete(additionalProperties, "port_speed")
- delete(additionalProperties, "upstream_speed")
- delete(additionalProperties, "xconnect_id")
- delete(additionalProperties, "pp_info")
- delete(additionalProperties, "description")
- delete(additionalProperties, "mark_connected")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableCircuitTerminationRequest struct {
- value *WritableCircuitTerminationRequest
- isSet bool
-}
-
-func (v NullableWritableCircuitTerminationRequest) Get() *WritableCircuitTerminationRequest {
- return v.value
-}
-
-func (v *NullableWritableCircuitTerminationRequest) Set(val *WritableCircuitTerminationRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableCircuitTerminationRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableCircuitTerminationRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableCircuitTerminationRequest(val *WritableCircuitTerminationRequest) *NullableWritableCircuitTerminationRequest {
- return &NullableWritableCircuitTerminationRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableCircuitTerminationRequest) 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 7e8ae12893..25402473ef 100644
--- a/model_writable_cluster_request.go
+++ b/model_writable_cluster_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &WritableClusterRequest{}
// WritableClusterRequest Adds support for custom fields and tags.
type WritableClusterRequest struct {
- Name string `json:"name"`
- Type int32 `json:"type"`
- Group NullableInt32 `json:"group,omitempty"`
- Status *ClusterStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -39,7 +39,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_ int32) *WritableClusterRequest {
+func NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest {
this := WritableClusterRequest{}
this.Name = name
this.Type = type_
@@ -79,9 +79,9 @@ func (o *WritableClusterRequest) SetName(v string) {
}
// GetType returns the Type field value
-func (o *WritableClusterRequest) GetType() int32 {
+func (o *WritableClusterRequest) GetType() ClusterTypeRequest {
if o == nil {
- var ret int32
+ var ret ClusterTypeRequest
return ret
}
@@ -90,7 +90,7 @@ func (o *WritableClusterRequest) GetType() int32 {
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
-func (o *WritableClusterRequest) GetTypeOk() (*int32, bool) {
+func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -98,14 +98,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*int32, bool) {
}
// SetType sets field value
-func (o *WritableClusterRequest) SetType(v int32) {
+func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) {
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() int32 {
+func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret ClusterGroupRequest
return ret
}
return *o.Group.Get()
@@ -114,7 +114,7 @@ func (o *WritableClusterRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -130,8 +130,8 @@ func (o *WritableClusterRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableClusterRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field.
+func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) {
o.Group.Set(&v)
}
@@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableClusterRequest) GetStatus() ClusterStatusValue {
+func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ClusterStatusValue
+ var ret PatchedWritableClusterRequestStatus
return ret
}
return *o.Status
@@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() ClusterStatusValue {
// 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() (*ClusterStatusValue, bool) {
+func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -172,15 +172,15 @@ func (o *WritableClusterRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field.
-func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field.
+func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) {
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() int32 {
+func (o *WritableClusterRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -189,7 +189,7 @@ func (o *WritableClusterRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -205,8 +205,8 @@ func (o *WritableClusterRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableClusterRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableClusterRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -221,9 +221,9 @@ func (o *WritableClusterRequest) UnsetTenant() {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableClusterRequest) GetSite() int32 {
+func (o *WritableClusterRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -232,7 +232,7 @@ func (o *WritableClusterRequest) GetSite() int32 {
// 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 *WritableClusterRequest) GetSiteOk() (*int32, bool) {
+func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -248,8 +248,8 @@ func (o *WritableClusterRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *WritableClusterRequest) SetSite(v int32) {
+// 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)
}
diff --git a/model_writable_config_context_request.go b/model_writable_config_context_request.go
deleted file mode 100644
index 14f24415cc..0000000000
--- a/model_writable_config_context_request.go
+++ /dev/null
@@ -1,840 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableConfigContextRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableConfigContextRequest{}
-
-// WritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableConfigContextRequest struct {
- Name string `json:"name"`
- Weight *int32 `json:"weight,omitempty"`
- Description *string `json:"description,omitempty"`
- IsActive *bool `json:"is_active,omitempty"`
- Regions []int32 `json:"regions,omitempty"`
- SiteGroups []int32 `json:"site_groups,omitempty"`
- Sites []int32 `json:"sites,omitempty"`
- Locations []int32 `json:"locations,omitempty"`
- DeviceTypes []int32 `json:"device_types,omitempty"`
- Roles []int32 `json:"roles,omitempty"`
- Platforms []int32 `json:"platforms,omitempty"`
- ClusterTypes []int32 `json:"cluster_types,omitempty"`
- ClusterGroups []int32 `json:"cluster_groups,omitempty"`
- Clusters []int32 `json:"clusters,omitempty"`
- TenantGroups []int32 `json:"tenant_groups,omitempty"`
- Tenants []int32 `json:"tenants,omitempty"`
- Tags []string `json:"tags,omitempty"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- Data interface{} `json:"data"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableConfigContextRequest WritableConfigContextRequest
-
-// NewWritableConfigContextRequest instantiates a new WritableConfigContextRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableConfigContextRequest(name string, data interface{}) *WritableConfigContextRequest {
- this := WritableConfigContextRequest{}
- this.Name = name
- this.Data = data
- return &this
-}
-
-// NewWritableConfigContextRequestWithDefaults instantiates a new WritableConfigContextRequest object
-// This 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 NewWritableConfigContextRequestWithDefaults() *WritableConfigContextRequest {
- this := WritableConfigContextRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableConfigContextRequest) 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 *WritableConfigContextRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableConfigContextRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetWeight returns the Weight field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) SetWeight(v int32) {
- o.Weight = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetIsActive returns the IsActive field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) 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 *WritableConfigContextRequest) SetIsActive(v bool) {
- o.IsActive = &v
-}
-
-// GetRegions returns the Regions field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetRegions() []int32 {
- if o == nil || IsNil(o.Regions) {
- var ret []int32
- return ret
- }
- return o.Regions
-}
-
-// GetRegionsOk returns a tuple with the Regions field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetRegionsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Regions) {
- return nil, false
- }
- return o.Regions, true
-}
-
-// HasRegions returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasRegions() bool {
- if o != nil && !IsNil(o.Regions) {
- return true
- }
-
- return false
-}
-
-// SetRegions gets a reference to the given []int32 and assigns it to the Regions field.
-func (o *WritableConfigContextRequest) SetRegions(v []int32) {
- o.Regions = v
-}
-
-// GetSiteGroups returns the SiteGroups field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetSiteGroups() []int32 {
- if o == nil || IsNil(o.SiteGroups) {
- var ret []int32
- return ret
- }
- return o.SiteGroups
-}
-
-// GetSiteGroupsOk returns a tuple with the SiteGroups field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetSiteGroupsOk() ([]int32, bool) {
- if o == nil || IsNil(o.SiteGroups) {
- return nil, false
- }
- return o.SiteGroups, true
-}
-
-// HasSiteGroups returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasSiteGroups() bool {
- if o != nil && !IsNil(o.SiteGroups) {
- return true
- }
-
- return false
-}
-
-// SetSiteGroups gets a reference to the given []int32 and assigns it to the SiteGroups field.
-func (o *WritableConfigContextRequest) SetSiteGroups(v []int32) {
- o.SiteGroups = v
-}
-
-// GetSites returns the Sites field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetSites() []int32 {
- if o == nil || IsNil(o.Sites) {
- var ret []int32
- return ret
- }
- return o.Sites
-}
-
-// GetSitesOk returns a tuple with the Sites field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetSitesOk() ([]int32, bool) {
- if o == nil || IsNil(o.Sites) {
- return nil, false
- }
- return o.Sites, true
-}
-
-// HasSites returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasSites() bool {
- if o != nil && !IsNil(o.Sites) {
- return true
- }
-
- return false
-}
-
-// SetSites gets a reference to the given []int32 and assigns it to the Sites field.
-func (o *WritableConfigContextRequest) SetSites(v []int32) {
- o.Sites = v
-}
-
-// GetLocations returns the Locations field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetLocations() []int32 {
- if o == nil || IsNil(o.Locations) {
- var ret []int32
- return ret
- }
- return o.Locations
-}
-
-// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetLocationsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Locations) {
- return nil, false
- }
- return o.Locations, true
-}
-
-// HasLocations returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasLocations() bool {
- if o != nil && !IsNil(o.Locations) {
- return true
- }
-
- return false
-}
-
-// SetLocations gets a reference to the given []int32 and assigns it to the Locations field.
-func (o *WritableConfigContextRequest) SetLocations(v []int32) {
- o.Locations = v
-}
-
-// GetDeviceTypes returns the DeviceTypes field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetDeviceTypes() []int32 {
- if o == nil || IsNil(o.DeviceTypes) {
- var ret []int32
- return ret
- }
- return o.DeviceTypes
-}
-
-// GetDeviceTypesOk returns a tuple with the DeviceTypes field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetDeviceTypesOk() ([]int32, bool) {
- if o == nil || IsNil(o.DeviceTypes) {
- return nil, false
- }
- return o.DeviceTypes, true
-}
-
-// HasDeviceTypes returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasDeviceTypes() bool {
- if o != nil && !IsNil(o.DeviceTypes) {
- return true
- }
-
- return false
-}
-
-// SetDeviceTypes gets a reference to the given []int32 and assigns it to the DeviceTypes field.
-func (o *WritableConfigContextRequest) SetDeviceTypes(v []int32) {
- o.DeviceTypes = v
-}
-
-// GetRoles returns the Roles field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetRoles() []int32 {
- if o == nil || IsNil(o.Roles) {
- var ret []int32
- return ret
- }
- return o.Roles
-}
-
-// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetRolesOk() ([]int32, bool) {
- if o == nil || IsNil(o.Roles) {
- return nil, false
- }
- return o.Roles, true
-}
-
-// HasRoles returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasRoles() bool {
- if o != nil && !IsNil(o.Roles) {
- return true
- }
-
- return false
-}
-
-// SetRoles gets a reference to the given []int32 and assigns it to the Roles field.
-func (o *WritableConfigContextRequest) SetRoles(v []int32) {
- o.Roles = v
-}
-
-// GetPlatforms returns the Platforms field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetPlatforms() []int32 {
- if o == nil || IsNil(o.Platforms) {
- var ret []int32
- return ret
- }
- return o.Platforms
-}
-
-// GetPlatformsOk returns a tuple with the Platforms field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetPlatformsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Platforms) {
- return nil, false
- }
- return o.Platforms, true
-}
-
-// HasPlatforms returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasPlatforms() bool {
- if o != nil && !IsNil(o.Platforms) {
- return true
- }
-
- return false
-}
-
-// SetPlatforms gets a reference to the given []int32 and assigns it to the Platforms field.
-func (o *WritableConfigContextRequest) SetPlatforms(v []int32) {
- o.Platforms = v
-}
-
-// GetClusterTypes returns the ClusterTypes field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetClusterTypes() []int32 {
- if o == nil || IsNil(o.ClusterTypes) {
- var ret []int32
- return ret
- }
- return o.ClusterTypes
-}
-
-// GetClusterTypesOk returns a tuple with the ClusterTypes field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetClusterTypesOk() ([]int32, bool) {
- if o == nil || IsNil(o.ClusterTypes) {
- return nil, false
- }
- return o.ClusterTypes, true
-}
-
-// HasClusterTypes returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasClusterTypes() bool {
- if o != nil && !IsNil(o.ClusterTypes) {
- return true
- }
-
- return false
-}
-
-// SetClusterTypes gets a reference to the given []int32 and assigns it to the ClusterTypes field.
-func (o *WritableConfigContextRequest) SetClusterTypes(v []int32) {
- o.ClusterTypes = v
-}
-
-// GetClusterGroups returns the ClusterGroups field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetClusterGroups() []int32 {
- if o == nil || IsNil(o.ClusterGroups) {
- var ret []int32
- return ret
- }
- return o.ClusterGroups
-}
-
-// GetClusterGroupsOk returns a tuple with the ClusterGroups field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetClusterGroupsOk() ([]int32, bool) {
- if o == nil || IsNil(o.ClusterGroups) {
- return nil, false
- }
- return o.ClusterGroups, true
-}
-
-// HasClusterGroups returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasClusterGroups() bool {
- if o != nil && !IsNil(o.ClusterGroups) {
- return true
- }
-
- return false
-}
-
-// SetClusterGroups gets a reference to the given []int32 and assigns it to the ClusterGroups field.
-func (o *WritableConfigContextRequest) SetClusterGroups(v []int32) {
- o.ClusterGroups = v
-}
-
-// GetClusters returns the Clusters field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetClusters() []int32 {
- if o == nil || IsNil(o.Clusters) {
- var ret []int32
- return ret
- }
- return o.Clusters
-}
-
-// GetClustersOk returns a tuple with the Clusters field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetClustersOk() ([]int32, bool) {
- if o == nil || IsNil(o.Clusters) {
- return nil, false
- }
- return o.Clusters, true
-}
-
-// HasClusters returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasClusters() bool {
- if o != nil && !IsNil(o.Clusters) {
- return true
- }
-
- return false
-}
-
-// SetClusters gets a reference to the given []int32 and assigns it to the Clusters field.
-func (o *WritableConfigContextRequest) SetClusters(v []int32) {
- o.Clusters = v
-}
-
-// GetTenantGroups returns the TenantGroups field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetTenantGroups() []int32 {
- if o == nil || IsNil(o.TenantGroups) {
- var ret []int32
- return ret
- }
- return o.TenantGroups
-}
-
-// GetTenantGroupsOk returns a tuple with the TenantGroups field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetTenantGroupsOk() ([]int32, bool) {
- if o == nil || IsNil(o.TenantGroups) {
- return nil, false
- }
- return o.TenantGroups, true
-}
-
-// HasTenantGroups returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasTenantGroups() bool {
- if o != nil && !IsNil(o.TenantGroups) {
- return true
- }
-
- return false
-}
-
-// SetTenantGroups gets a reference to the given []int32 and assigns it to the TenantGroups field.
-func (o *WritableConfigContextRequest) SetTenantGroups(v []int32) {
- o.TenantGroups = v
-}
-
-// GetTenants returns the Tenants field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetTenants() []int32 {
- if o == nil || IsNil(o.Tenants) {
- var ret []int32
- return ret
- }
- return o.Tenants
-}
-
-// GetTenantsOk returns a tuple with the Tenants field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableConfigContextRequest) GetTenantsOk() ([]int32, bool) {
- if o == nil || IsNil(o.Tenants) {
- return nil, false
- }
- return o.Tenants, true
-}
-
-// HasTenants returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasTenants() bool {
- if o != nil && !IsNil(o.Tenants) {
- return true
- }
-
- return false
-}
-
-// SetTenants gets a reference to the given []int32 and assigns it to the Tenants field.
-func (o *WritableConfigContextRequest) SetTenants(v []int32) {
- o.Tenants = v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableConfigContextRequest) GetTags() []string {
- if o == nil || IsNil(o.Tags) {
- var ret []string
- 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 *WritableConfigContextRequest) GetTagsOk() ([]string, 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 *WritableConfigContextRequest) HasTags() bool {
- if o != nil && !IsNil(o.Tags) {
- return true
- }
-
- return false
-}
-
-// SetTags gets a reference to the given []string and assigns it to the Tags field.
-func (o *WritableConfigContextRequest) SetTags(v []string) {
- o.Tags = v
-}
-
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConfigContextRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
- return ret
- }
- return *o.DataSource.Get()
-}
-
-// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConfigContextRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataSource.Get(), o.DataSource.IsSet()
-}
-
-// HasDataSource returns a boolean if a field has been set.
-func (o *WritableConfigContextRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *WritableConfigContextRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
-}
-
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *WritableConfigContextRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *WritableConfigContextRequest) UnsetDataSource() {
- o.DataSource.Unset()
-}
-
-// GetData returns the Data field value
-// If the value is explicit nil, the zero value for interface{} will be returned
-func (o *WritableConfigContextRequest) 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 *WritableConfigContextRequest) GetDataOk() (*interface{}, bool) {
- if o == nil || IsNil(o.Data) {
- return nil, false
- }
- return &o.Data, true
-}
-
-// SetData sets field value
-func (o *WritableConfigContextRequest) SetData(v interface{}) {
- o.Data = v
-}
-
-func (o WritableConfigContextRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableConfigContextRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- if !IsNil(o.Weight) {
- toSerialize["weight"] = o.Weight
- }
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- if !IsNil(o.IsActive) {
- toSerialize["is_active"] = o.IsActive
- }
- if !IsNil(o.Regions) {
- toSerialize["regions"] = o.Regions
- }
- if !IsNil(o.SiteGroups) {
- toSerialize["site_groups"] = o.SiteGroups
- }
- if !IsNil(o.Sites) {
- toSerialize["sites"] = o.Sites
- }
- if !IsNil(o.Locations) {
- toSerialize["locations"] = o.Locations
- }
- if !IsNil(o.DeviceTypes) {
- toSerialize["device_types"] = o.DeviceTypes
- }
- if !IsNil(o.Roles) {
- toSerialize["roles"] = o.Roles
- }
- if !IsNil(o.Platforms) {
- toSerialize["platforms"] = o.Platforms
- }
- if !IsNil(o.ClusterTypes) {
- toSerialize["cluster_types"] = o.ClusterTypes
- }
- if !IsNil(o.ClusterGroups) {
- toSerialize["cluster_groups"] = o.ClusterGroups
- }
- if !IsNil(o.Clusters) {
- toSerialize["clusters"] = o.Clusters
- }
- if !IsNil(o.TenantGroups) {
- toSerialize["tenant_groups"] = o.TenantGroups
- }
- if !IsNil(o.Tenants) {
- toSerialize["tenants"] = o.Tenants
- }
- if !IsNil(o.Tags) {
- toSerialize["tags"] = o.Tags
- }
- if o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
- }
- if o.Data != nil {
- toSerialize["data"] = o.Data
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableConfigContextRequest) 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",
- "data",
- }
-
- 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)
- }
- }
-
- varWritableConfigContextRequest := _WritableConfigContextRequest{}
-
- err = json.Unmarshal(data, &varWritableConfigContextRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableConfigContextRequest(varWritableConfigContextRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "weight")
- delete(additionalProperties, "description")
- delete(additionalProperties, "is_active")
- delete(additionalProperties, "regions")
- delete(additionalProperties, "site_groups")
- delete(additionalProperties, "sites")
- delete(additionalProperties, "locations")
- delete(additionalProperties, "device_types")
- delete(additionalProperties, "roles")
- delete(additionalProperties, "platforms")
- delete(additionalProperties, "cluster_types")
- delete(additionalProperties, "cluster_groups")
- delete(additionalProperties, "clusters")
- delete(additionalProperties, "tenant_groups")
- delete(additionalProperties, "tenants")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "data_source")
- delete(additionalProperties, "data")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableConfigContextRequest struct {
- value *WritableConfigContextRequest
- isSet bool
-}
-
-func (v NullableWritableConfigContextRequest) Get() *WritableConfigContextRequest {
- return v.value
-}
-
-func (v *NullableWritableConfigContextRequest) Set(val *WritableConfigContextRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableConfigContextRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableConfigContextRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableConfigContextRequest(val *WritableConfigContextRequest) *NullableWritableConfigContextRequest {
- return &NullableWritableConfigContextRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableConfigContextRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableConfigContextRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_config_template_request.go b/model_writable_config_template_request.go
deleted file mode 100644
index b84d3a522b..0000000000
--- a/model_writable_config_template_request.go
+++ /dev/null
@@ -1,406 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableConfigTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableConfigTemplateRequest{}
-
-// WritableConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update().
-type WritableConfigTemplateRequest struct {
- Name string `json:"name"`
- 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"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- DataFile NullableInt32 `json:"data_file,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableConfigTemplateRequest WritableConfigTemplateRequest
-
-// NewWritableConfigTemplateRequest instantiates a new WritableConfigTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableConfigTemplateRequest(name string, templateCode string) *WritableConfigTemplateRequest {
- this := WritableConfigTemplateRequest{}
- this.Name = name
- this.TemplateCode = templateCode
- return &this
-}
-
-// NewWritableConfigTemplateRequestWithDefaults instantiates a new WritableConfigTemplateRequest object
-// This 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 NewWritableConfigTemplateRequestWithDefaults() *WritableConfigTemplateRequest {
- this := WritableConfigTemplateRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableConfigTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetEnvironmentParams(v interface{}) {
- o.EnvironmentParams = v
-}
-
-// GetTemplateCode returns the TemplateCode field value
-func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.TemplateCode, true
-}
-
-// SetTemplateCode sets field value
-func (o *WritableConfigTemplateRequest) SetTemplateCode(v string) {
- o.TemplateCode = v
-}
-
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConfigTemplateRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
- return ret
- }
- return *o.DataSource.Get()
-}
-
-// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConfigTemplateRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataSource.Get(), o.DataSource.IsSet()
-}
-
-// HasDataSource returns a boolean if a field has been set.
-func (o *WritableConfigTemplateRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *WritableConfigTemplateRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
-}
-
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *WritableConfigTemplateRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *WritableConfigTemplateRequest) UnsetDataSource() {
- o.DataSource.Unset()
-}
-
-// GetDataFile returns the DataFile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableConfigTemplateRequest) GetDataFile() int32 {
- if o == nil || IsNil(o.DataFile.Get()) {
- var ret int32
- return ret
- }
- return *o.DataFile.Get()
-}
-
-// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableConfigTemplateRequest) GetDataFileOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataFile.Get(), o.DataFile.IsSet()
-}
-
-// HasDataFile returns a boolean if a field has been set.
-func (o *WritableConfigTemplateRequest) HasDataFile() bool {
- if o != nil && o.DataFile.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataFile gets a reference to the given NullableInt32 and assigns it to the DataFile field.
-func (o *WritableConfigTemplateRequest) SetDataFile(v int32) {
- o.DataFile.Set(&v)
-}
-
-// SetDataFileNil sets the value for DataFile to be an explicit nil
-func (o *WritableConfigTemplateRequest) SetDataFileNil() {
- o.DataFile.Set(nil)
-}
-
-// UnsetDataFile ensures that no value is present for DataFile, not even an explicit nil
-func (o *WritableConfigTemplateRequest) UnsetDataFile() {
- o.DataFile.Unset()
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) 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 *WritableConfigTemplateRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-func (o WritableConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableConfigTemplateRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- 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 o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
- }
- if o.DataFile.IsSet() {
- toSerialize["data_file"] = o.DataFile.Get()
- }
- if !IsNil(o.Tags) {
- toSerialize["tags"] = o.Tags
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableConfigTemplateRequest) 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",
- "template_code",
- }
-
- 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)
- }
- }
-
- varWritableConfigTemplateRequest := _WritableConfigTemplateRequest{}
-
- err = json.Unmarshal(data, &varWritableConfigTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableConfigTemplateRequest(varWritableConfigTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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, "data_file")
- delete(additionalProperties, "tags")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableConfigTemplateRequest struct {
- value *WritableConfigTemplateRequest
- isSet bool
-}
-
-func (v NullableWritableConfigTemplateRequest) Get() *WritableConfigTemplateRequest {
- return v.value
-}
-
-func (v *NullableWritableConfigTemplateRequest) Set(val *WritableConfigTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableConfigTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableConfigTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableConfigTemplateRequest(val *WritableConfigTemplateRequest) *NullableWritableConfigTemplateRequest {
- return &NullableWritableConfigTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableConfigTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableConfigTemplateRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go
index c3767d38b4..60b31d0af0 100644
--- a/model_writable_console_port_request.go
+++ b/model_writable_console_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsolePortRequest{}
// WritableConsolePortRequest Adds support for custom fields and tags.
type WritableConsolePortRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
@@ -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 int32, name string) *WritableConsolePortRequest {
+func NewWritableConsolePortRequest(device DeviceRequest, 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() int32 {
+func (o *WritableConsolePortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableConsolePortRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableConsolePortRequest) SetDevice(v int32) {
+func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritableConsolePortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -92,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -108,8 +108,8 @@ func (o *WritableConsolePortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritableConsolePortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go
index 398f3c9118..afe73d3de3 100644
--- a/model_writable_console_port_template_request.go
+++ b/model_writable_console_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritableConsolePortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() int32 {
+func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritableConsolePortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go
index 534d48d58a..8f1c21baaf 100644
--- a/model_writable_console_server_port_request.go
+++ b/model_writable_console_server_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{}
// WritableConsoleServerPortRequest Adds support for custom fields and tags.
type WritableConsoleServerPortRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"`
@@ -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 int32, name string) *WritableConsoleServerPortRequest {
+func NewWritableConsoleServerPortRequest(device DeviceRequest, 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() int32 {
+func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableConsoleServerPortRequest) SetDevice(v int32) {
+func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -92,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -108,8 +108,8 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritableConsoleServerPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go
index 619db392f3..74ef741d93 100644
--- a/model_writable_console_server_port_template_request.go
+++ b/model_writable_console_server_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,8 +79,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -95,9 +95,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() int32 {
+func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -106,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,8 +122,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go
index b8e2c8702e..39fc360da0 100644
--- a/model_writable_contact_assignment_request.go
+++ b/model_writable_contact_assignment_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &WritableContactAssignmentRequest{}
// WritableContactAssignmentRequest Adds support for custom fields and tags.
type WritableContactAssignmentRequest struct {
- ContentType string `json:"content_type"`
+ ObjectType string `json:"object_type"`
ObjectId int64 `json:"object_id"`
- Contact int32 `json:"contact"`
- Role int32 `json:"role"`
+ 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"`
@@ -36,12 +36,11 @@ 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(contentType string, objectId int64, contact int32, role int32) *WritableContactAssignmentRequest {
+func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest {
this := WritableContactAssignmentRequest{}
- this.ContentType = contentType
+ this.ObjectType = objectType
this.ObjectId = objectId
this.Contact = contact
- this.Role = role
return &this
}
@@ -53,28 +52,28 @@ func NewWritableContactAssignmentRequestWithDefaults() *WritableContactAssignmen
return &this
}
-// GetContentType returns the ContentType field value
-func (o *WritableContactAssignmentRequest) GetContentType() string {
+// GetObjectType returns the ObjectType field value
+func (o *WritableContactAssignmentRequest) GetObjectType() string {
if o == nil {
var ret string
return ret
}
- return o.ContentType
+ return o.ObjectType
}
-// GetContentTypeOk returns a tuple with the ContentType field value
+// GetObjectTypeOk returns a tuple with the ObjectType field value
// and a boolean to check if the value has been set.
-func (o *WritableContactAssignmentRequest) GetContentTypeOk() (*string, bool) {
+func (o *WritableContactAssignmentRequest) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return &o.ContentType, true
+ return &o.ObjectType, true
}
-// SetContentType sets field value
-func (o *WritableContactAssignmentRequest) SetContentType(v string) {
- o.ContentType = v
+// SetObjectType sets field value
+func (o *WritableContactAssignmentRequest) SetObjectType(v string) {
+ o.ObjectType = v
}
// GetObjectId returns the ObjectId field value
@@ -102,9 +101,9 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) {
}
// GetContact returns the Contact field value
-func (o *WritableContactAssignmentRequest) GetContact() int32 {
+func (o *WritableContactAssignmentRequest) GetContact() ContactRequest {
if o == nil {
- var ret int32
+ var ret ContactRequest
return ret
}
@@ -113,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() int32 {
// GetContactOk returns a tuple with the Contact field value
// and a boolean to check if the value has been set.
-func (o *WritableContactAssignmentRequest) GetContactOk() (*int32, bool) {
+func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) {
if o == nil {
return nil, false
}
@@ -121,32 +120,51 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*int32, bool) {
}
// SetContact sets field value
-func (o *WritableContactAssignmentRequest) SetContact(v int32) {
+func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) {
o.Contact = v
}
-// GetRole returns the Role field value
-func (o *WritableContactAssignmentRequest) GetRole() int32 {
- if o == nil {
- var ret int32
+// 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 {
+ if o == nil || IsNil(o.Role.Get()) {
+ var ret ContactRoleRequest
return ret
}
-
- return o.Role
+ return *o.Role.Get()
}
-// 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 *WritableContactAssignmentRequest) GetRoleOk() (*int32, bool) {
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) {
if o == nil {
return nil, false
}
- return &o.Role, true
+ return o.Role.Get(), o.Role.IsSet()
}
-// SetRole sets field value
-func (o *WritableContactAssignmentRequest) SetRole(v int32) {
- o.Role = v
+// HasRole returns a boolean if a field has been set.
+func (o *WritableContactAssignmentRequest) HasRole() bool {
+ if o != nil && o.Role.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field.
+func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) {
+ o.Role.Set(&v)
+}
+
+// SetRoleNil sets the value for Role to be an explicit nil
+func (o *WritableContactAssignmentRequest) SetRoleNil() {
+ o.Role.Set(nil)
+}
+
+// UnsetRole ensures that no value is present for Role, not even an explicit nil
+func (o *WritableContactAssignmentRequest) UnsetRole() {
+ o.Role.Unset()
}
// GetPriority returns the Priority field value if set, zero value otherwise.
@@ -255,10 +273,12 @@ func (o WritableContactAssignmentRequest) MarshalJSON() ([]byte, error) {
func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_type"] = o.ContentType
+ toSerialize["object_type"] = o.ObjectType
toSerialize["object_id"] = o.ObjectId
toSerialize["contact"] = o.Contact
- toSerialize["role"] = o.Role
+ if o.Role.IsSet() {
+ toSerialize["role"] = o.Role.Get()
+ }
if !IsNil(o.Priority) {
toSerialize["priority"] = o.Priority
}
@@ -281,10 +301,9 @@ func (o *WritableContactAssignmentRequest) 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{
- "content_type",
+ "object_type",
"object_id",
"contact",
- "role",
}
allProperties := make(map[string]interface{})
@@ -314,7 +333,7 @@ func (o *WritableContactAssignmentRequest) UnmarshalJSON(data []byte) (err error
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_type")
+ delete(additionalProperties, "object_type")
delete(additionalProperties, "object_id")
delete(additionalProperties, "contact")
delete(additionalProperties, "role")
diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go
index 8893b2290c..18c9c5d250 100644
--- a/model_writable_contact_group_request.go
+++ b/model_writable_contact_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ var _ MappedNullable = &WritableContactGroupRequest{}
type WritableContactGroupRequest struct {
Name string `json:"name"`
Slug string `json:"slug"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Parent NullableInt32 `json:"parent"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -35,10 +35,11 @@ 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) *WritableContactGroupRequest {
+func NewWritableContactGroupRequest(name string, slug string, parent NullableInt32) *WritableContactGroupRequest {
this := WritableContactGroupRequest{}
this.Name = name
this.Slug = slug
+ this.Parent = parent
return &this
}
@@ -98,16 +99,18 @@ func (o *WritableContactGroupRequest) 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).
+// GetParent returns the Parent field value
+// If the value is explicit nil, the zero value for int32 will be returned
func (o *WritableContactGroupRequest) GetParent() int32 {
- if o == nil || IsNil(o.Parent.Get()) {
+ if o == nil || o.Parent.Get() == nil {
var ret int32
return ret
}
+
return *o.Parent.Get()
}
-// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent 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 *WritableContactGroupRequest) GetParentOk() (*int32, bool) {
@@ -117,30 +120,11 @@ func (o *WritableContactGroupRequest) GetParentOk() (*int32, bool) {
return o.Parent.Get(), o.Parent.IsSet()
}
-// 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.
+// SetParent sets field value
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 {
if o == nil || IsNil(o.Description) {
@@ -249,9 +233,7 @@ func (o WritableContactGroupRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
+ toSerialize["parent"] = o.Parent.Get()
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -276,6 +258,7 @@ func (o *WritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) {
requiredProperties := []string{
"name",
"slug",
+ "parent",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_contact_request.go b/model_writable_contact_request.go
deleted file mode 100644
index 22413089b1..0000000000
--- a/model_writable_contact_request.go
+++ /dev/null
@@ -1,547 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableContactRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableContactRequest{}
-
-// WritableContactRequest Adds support for custom fields and tags.
-type WritableContactRequest struct {
- Group NullableInt32 `json:"group,omitempty"`
- Name string `json:"name"`
- Title *string `json:"title,omitempty"`
- Phone *string `json:"phone,omitempty"`
- Email *string `json:"email,omitempty"`
- Address *string `json:"address,omitempty"`
- Link *string `json:"link,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableContactRequest WritableContactRequest
-
-// NewWritableContactRequest instantiates a new WritableContactRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableContactRequest(name string) *WritableContactRequest {
- this := WritableContactRequest{}
- this.Name = name
- return &this
-}
-
-// NewWritableContactRequestWithDefaults instantiates a new WritableContactRequest object
-// This 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 NewWritableContactRequestWithDefaults() *WritableContactRequest {
- this := WritableContactRequest{}
- return &this
-}
-
-// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableContactRequest) GetGroup() int32 {
- if o == nil || IsNil(o.Group.Get()) {
- var ret int32
- 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 *WritableContactRequest) GetGroupOk() (*int32, 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 *WritableContactRequest) HasGroup() bool {
- if o != nil && o.Group.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableContactRequest) SetGroup(v int32) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *WritableContactRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *WritableContactRequest) UnsetGroup() {
- o.Group.Unset()
-}
-
-// GetName returns the Name field value
-func (o *WritableContactRequest) 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 *WritableContactRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableContactRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetTitle returns the Title field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetTitle(v string) {
- o.Title = &v
-}
-
-// GetPhone returns the Phone field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetPhone(v string) {
- o.Phone = &v
-}
-
-// GetEmail returns the Email field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetEmail(v string) {
- o.Email = &v
-}
-
-// GetAddress returns the Address field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetAddress(v string) {
- o.Address = &v
-}
-
-// GetLink returns the Link field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetLink(v string) {
- o.Link = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) 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 *WritableContactRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableContactRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableContactRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableContactRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableContactRequest := _WritableContactRequest{}
-
- err = json.Unmarshal(data, &varWritableContactRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableContactRequest(varWritableContactRequest)
-
- 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
- }
-
- return err
-}
-
-type NullableWritableContactRequest struct {
- value *WritableContactRequest
- isSet bool
-}
-
-func (v NullableWritableContactRequest) Get() *WritableContactRequest {
- return v.value
-}
-
-func (v *NullableWritableContactRequest) Set(val *WritableContactRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableContactRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableContactRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableContactRequest(val *WritableContactRequest) *NullableWritableContactRequest {
- return &NullableWritableContactRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableContactRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableContactRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go
index 02331d6701..204ccffd13 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go
index b748d46846..5429f4cc5a 100644
--- a/model_writable_custom_field_request.go
+++ b/model_writable_custom_field_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ 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 {
- ContentTypes []string `json:"content_types"`
- Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"`
- ObjectType NullableString `json:"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 of the field as displayed to users (if not provided, 'the field's name will be used)
@@ -48,8 +48,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 NullableInt32 `json:"choice_set,omitempty"`
+ ValidationRegex *string `json:"validation_regex,omitempty"`
+ ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"`
+ Comments *string `json:"comments,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -59,9 +60,9 @@ type _WritableCustomFieldRequest WritableCustomFieldRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableCustomFieldRequest(contentTypes []string, name string) *WritableCustomFieldRequest {
+func NewWritableCustomFieldRequest(objectTypes []string, name string) *WritableCustomFieldRequest {
this := WritableCustomFieldRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
return &this
}
@@ -74,28 +75,28 @@ func NewWritableCustomFieldRequestWithDefaults() *WritableCustomFieldRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *WritableCustomFieldRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *WritableCustomFieldRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *WritableCustomFieldRequest) GetContentTypesOk() ([]string, bool) {
+func (o *WritableCustomFieldRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *WritableCustomFieldRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *WritableCustomFieldRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetType returns the Type field value if set, zero value otherwise.
@@ -130,47 +131,47 @@ func (o *WritableCustomFieldRequest) SetType(v PatchedWritableCustomFieldRequest
o.Type = &v
}
-// GetObjectType returns the ObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableCustomFieldRequest) GetObjectType() string {
- if o == nil || IsNil(o.ObjectType.Get()) {
+// GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *WritableCustomFieldRequest) GetRelatedObjectType() string {
+ if o == nil || IsNil(o.RelatedObjectType.Get()) {
var ret string
return ret
}
- return *o.ObjectType.Get()
+ return *o.RelatedObjectType.Get()
}
-// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
+// GetRelatedObjectTypeOk returns a tuple with the RelatedObjectType field value if set, nil otherwise
// and a 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) GetObjectTypeOk() (*string, bool) {
+func (o *WritableCustomFieldRequest) GetRelatedObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.ObjectType.Get(), o.ObjectType.IsSet()
+ return o.RelatedObjectType.Get(), o.RelatedObjectType.IsSet()
}
-// HasObjectType returns a boolean if a field has been set.
-func (o *WritableCustomFieldRequest) HasObjectType() bool {
- if o != nil && o.ObjectType.IsSet() {
+// HasRelatedObjectType returns a boolean if a field has been set.
+func (o *WritableCustomFieldRequest) HasRelatedObjectType() bool {
+ if o != nil && o.RelatedObjectType.IsSet() {
return true
}
return false
}
-// SetObjectType gets a reference to the given NullableString and assigns it to the ObjectType field.
-func (o *WritableCustomFieldRequest) SetObjectType(v string) {
- o.ObjectType.Set(&v)
+// SetRelatedObjectType gets a reference to the given NullableString and assigns it to the RelatedObjectType field.
+func (o *WritableCustomFieldRequest) SetRelatedObjectType(v string) {
+ o.RelatedObjectType.Set(&v)
}
-// SetObjectTypeNil sets the value for ObjectType to be an explicit nil
-func (o *WritableCustomFieldRequest) SetObjectTypeNil() {
- o.ObjectType.Set(nil)
+// SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil
+func (o *WritableCustomFieldRequest) SetRelatedObjectTypeNil() {
+ o.RelatedObjectType.Set(nil)
}
-// UnsetObjectType ensures that no value is present for ObjectType, not even an explicit nil
-func (o *WritableCustomFieldRequest) UnsetObjectType() {
- o.ObjectType.Unset()
+// UnsetRelatedObjectType ensures that no value is present for RelatedObjectType, not even an explicit nil
+func (o *WritableCustomFieldRequest) UnsetRelatedObjectType() {
+ o.RelatedObjectType.Unset()
}
// GetName returns the Name field value
@@ -669,9 +670,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() int32 {
+func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest {
if o == nil || IsNil(o.ChoiceSet.Get()) {
- var ret int32
+ var ret CustomFieldChoiceSetRequest
return ret
}
return *o.ChoiceSet.Get()
@@ -680,7 +681,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() int32 {
// 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() (*int32, bool) {
+func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) {
if o == nil {
return nil, false
}
@@ -696,8 +697,8 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool {
return false
}
-// SetChoiceSet gets a reference to the given NullableInt32 and assigns it to the ChoiceSet field.
-func (o *WritableCustomFieldRequest) SetChoiceSet(v int32) {
+// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field.
+func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) {
o.ChoiceSet.Set(&v)
}
@@ -711,6 +712,38 @@ func (o *WritableCustomFieldRequest) UnsetChoiceSet() {
o.ChoiceSet.Unset()
}
+// GetComments returns the Comments field value if set, zero value otherwise.
+func (o *WritableCustomFieldRequest) 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 *WritableCustomFieldRequest) 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 *WritableCustomFieldRequest) 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 *WritableCustomFieldRequest) SetComments(v string) {
+ o.Comments = &v
+}
+
func (o WritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
@@ -721,12 +754,12 @@ func (o WritableCustomFieldRequest) MarshalJSON() ([]byte, error) {
func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
- if o.ObjectType.IsSet() {
- toSerialize["object_type"] = o.ObjectType.Get()
+ if o.RelatedObjectType.IsSet() {
+ toSerialize["related_object_type"] = o.RelatedObjectType.Get()
}
toSerialize["name"] = o.Name
if !IsNil(o.Label) {
@@ -774,6 +807,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) {
if o.ChoiceSet.IsSet() {
toSerialize["choice_set"] = o.ChoiceSet.Get()
}
+ if !IsNil(o.Comments) {
+ toSerialize["comments"] = o.Comments
+ }
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
@@ -787,7 +823,7 @@ func (o *WritableCustomFieldRequest) 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{
- "content_types",
+ "object_types",
"name",
}
@@ -818,9 +854,9 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "type")
- delete(additionalProperties, "object_type")
+ delete(additionalProperties, "related_object_type")
delete(additionalProperties, "name")
delete(additionalProperties, "label")
delete(additionalProperties, "group_name")
@@ -837,6 +873,7 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "validation_maximum")
delete(additionalProperties, "validation_regex")
delete(additionalProperties, "choice_set")
+ delete(additionalProperties, "comments")
o.AdditionalProperties = additionalProperties
}
diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go
index b030e41f4a..d661bb97cf 100644
--- a/model_writable_data_source_request.go
+++ b/model_writable_data_source_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_device_bay_request.go b/model_writable_device_bay_request.go
deleted file mode 100644
index 13b3ae699b..0000000000
--- a/model_writable_device_bay_request.go
+++ /dev/null
@@ -1,392 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableDeviceBayRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableDeviceBayRequest{}
-
-// WritableDeviceBayRequest Adds support for custom fields and tags.
-type WritableDeviceBayRequest struct {
- Device int32 `json:"device"`
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- InstalledDevice NullableInt32 `json:"installed_device,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableDeviceBayRequest WritableDeviceBayRequest
-
-// NewWritableDeviceBayRequest instantiates a new WritableDeviceBayRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableDeviceBayRequest(device int32, name string) *WritableDeviceBayRequest {
- this := WritableDeviceBayRequest{}
- this.Device = device
- this.Name = name
- return &this
-}
-
-// NewWritableDeviceBayRequestWithDefaults instantiates a new WritableDeviceBayRequest object
-// This 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 NewWritableDeviceBayRequestWithDefaults() *WritableDeviceBayRequest {
- this := WritableDeviceBayRequest{}
- return &this
-}
-
-// GetDevice returns the Device field value
-func (o *WritableDeviceBayRequest) GetDevice() int32 {
- if o == nil {
- var ret int32
- 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 *WritableDeviceBayRequest) GetDeviceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *WritableDeviceBayRequest) SetDevice(v int32) {
- o.Device = v
-}
-
-// GetName returns the Name field value
-func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableDeviceBayRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableDeviceBayRequest) GetInstalledDevice() int32 {
- if o == nil || IsNil(o.InstalledDevice.Get()) {
- var ret int32
- return ret
- }
- return *o.InstalledDevice.Get()
-}
-
-// 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 *WritableDeviceBayRequest) GetInstalledDeviceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.InstalledDevice.Get(), o.InstalledDevice.IsSet()
-}
-
-// HasInstalledDevice returns a boolean if a field has been set.
-func (o *WritableDeviceBayRequest) HasInstalledDevice() bool {
- if o != nil && o.InstalledDevice.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetInstalledDevice gets a reference to the given NullableInt32 and assigns it to the InstalledDevice field.
-func (o *WritableDeviceBayRequest) SetInstalledDevice(v int32) {
- o.InstalledDevice.Set(&v)
-}
-
-// SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil
-func (o *WritableDeviceBayRequest) SetInstalledDeviceNil() {
- o.InstalledDevice.Set(nil)
-}
-
-// UnsetInstalledDevice ensures that no value is present for InstalledDevice, not even an explicit nil
-func (o *WritableDeviceBayRequest) UnsetInstalledDevice() {
- o.InstalledDevice.Unset()
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) 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 *WritableDeviceBayRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableDeviceBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableDeviceBayRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device"] = o.Device
- toSerialize["name"] = o.Name
- if !IsNil(o.Label) {
- toSerialize["label"] = o.Label
- }
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- if o.InstalledDevice.IsSet() {
- toSerialize["installed_device"] = o.InstalledDevice.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 *WritableDeviceBayRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableDeviceBayRequest := _WritableDeviceBayRequest{}
-
- err = json.Unmarshal(data, &varWritableDeviceBayRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableDeviceBayRequest(varWritableDeviceBayRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- delete(additionalProperties, "name")
- delete(additionalProperties, "label")
- delete(additionalProperties, "description")
- delete(additionalProperties, "installed_device")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableDeviceBayRequest struct {
- value *WritableDeviceBayRequest
- isSet bool
-}
-
-func (v NullableWritableDeviceBayRequest) Get() *WritableDeviceBayRequest {
- return v.value
-}
-
-func (v *NullableWritableDeviceBayRequest) Set(val *WritableDeviceBayRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableDeviceBayRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableDeviceBayRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableDeviceBayRequest(val *WritableDeviceBayRequest) *NullableWritableDeviceBayRequest {
- return &NullableWritableDeviceBayRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableDeviceBayRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableDeviceBayRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_device_bay_template_request.go b/model_writable_device_bay_template_request.go
deleted file mode 100644
index 8105185d9b..0000000000
--- a/model_writable_device_bay_template_request.go
+++ /dev/null
@@ -1,271 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableDeviceBayTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableDeviceBayTemplateRequest{}
-
-// WritableDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableDeviceBayTemplateRequest struct {
- DeviceType int32 `json:"device_type"`
- // {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Description *string `json:"description,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableDeviceBayTemplateRequest WritableDeviceBayTemplateRequest
-
-// NewWritableDeviceBayTemplateRequest instantiates a new WritableDeviceBayTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableDeviceBayTemplateRequest(deviceType int32, name string) *WritableDeviceBayTemplateRequest {
- this := WritableDeviceBayTemplateRequest{}
- this.DeviceType = deviceType
- this.Name = name
- return &this
-}
-
-// NewWritableDeviceBayTemplateRequestWithDefaults instantiates a new WritableDeviceBayTemplateRequest object
-// This 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 NewWritableDeviceBayTemplateRequestWithDefaults() *WritableDeviceBayTemplateRequest {
- this := WritableDeviceBayTemplateRequest{}
- return &this
-}
-
-// GetDeviceType returns the DeviceType field value
-func (o *WritableDeviceBayTemplateRequest) GetDeviceType() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceType
-}
-
-// GetDeviceTypeOk returns a tuple with the DeviceType field value
-// and a boolean to check if the value has been set.
-func (o *WritableDeviceBayTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceType, true
-}
-
-// SetDeviceType sets field value
-func (o *WritableDeviceBayTemplateRequest) SetDeviceType(v int32) {
- o.DeviceType = v
-}
-
-// GetName returns the Name field value
-func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableDeviceBayTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) 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 *WritableDeviceBayTemplateRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-func (o WritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device_type"] = o.DeviceType
- toSerialize["name"] = o.Name
- 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 *WritableDeviceBayTemplateRequest) 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_type",
- "name",
- }
-
- 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)
- }
- }
-
- varWritableDeviceBayTemplateRequest := _WritableDeviceBayTemplateRequest{}
-
- err = json.Unmarshal(data, &varWritableDeviceBayTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableDeviceBayTemplateRequest(varWritableDeviceBayTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device_type")
- delete(additionalProperties, "name")
- delete(additionalProperties, "label")
- delete(additionalProperties, "description")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableDeviceBayTemplateRequest struct {
- value *WritableDeviceBayTemplateRequest
- isSet bool
-}
-
-func (v NullableWritableDeviceBayTemplateRequest) Get() *WritableDeviceBayTemplateRequest {
- return v.value
-}
-
-func (v *NullableWritableDeviceBayTemplateRequest) Set(val *WritableDeviceBayTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableDeviceBayTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableDeviceBayTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableDeviceBayTemplateRequest(val *WritableDeviceBayTemplateRequest) *NullableWritableDeviceBayTemplateRequest {
- return &NullableWritableDeviceBayTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableDeviceBayTemplateRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_device_role_request.go b/model_writable_device_role_request.go
deleted file mode 100644
index 7efb7879fb..0000000000
--- a/model_writable_device_role_request.go
+++ /dev/null
@@ -1,429 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableDeviceRoleRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableDeviceRoleRequest{}
-
-// WritableDeviceRoleRequest Adds support for custom fields and tags.
-type WritableDeviceRoleRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Color *string `json:"color,omitempty"`
- // Virtual machines may be assigned to this role
- VmRole *bool `json:"vm_role,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableDeviceRoleRequest WritableDeviceRoleRequest
-
-// NewWritableDeviceRoleRequest instantiates a new WritableDeviceRoleRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableDeviceRoleRequest(name string, slug string) *WritableDeviceRoleRequest {
- this := WritableDeviceRoleRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewWritableDeviceRoleRequestWithDefaults instantiates a new WritableDeviceRoleRequest object
-// This 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 NewWritableDeviceRoleRequestWithDefaults() *WritableDeviceRoleRequest {
- this := WritableDeviceRoleRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableDeviceRoleRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *WritableDeviceRoleRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-// GetColor returns the Color field value if set, zero value otherwise.
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetColor(v string) {
- o.Color = &v
-}
-
-// GetVmRole returns the VmRole field value if set, zero value otherwise.
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) GetConfigTemplate() int32 {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceRoleRequest) GetConfigTemplateOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *WritableDeviceRoleRequest) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *WritableDeviceRoleRequest) SetConfigTemplate(v int32) {
- o.ConfigTemplate.Set(&v)
-}
-
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *WritableDeviceRoleRequest) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-func (o *WritableDeviceRoleRequest) UnsetConfigTemplate() {
- o.ConfigTemplate.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) 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 *WritableDeviceRoleRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableDeviceRoleRequest) 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.VmRole) {
- toSerialize["vm_role"] = o.VmRole
- }
- 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableDeviceRoleRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableDeviceRoleRequest := _WritableDeviceRoleRequest{}
-
- err = json.Unmarshal(data, &varWritableDeviceRoleRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableDeviceRoleRequest(varWritableDeviceRoleRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableDeviceRoleRequest struct {
- value *WritableDeviceRoleRequest
- isSet bool
-}
-
-func (v NullableWritableDeviceRoleRequest) Get() *WritableDeviceRoleRequest {
- return v.value
-}
-
-func (v *NullableWritableDeviceRoleRequest) Set(val *WritableDeviceRoleRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableDeviceRoleRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableDeviceRoleRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableDeviceRoleRequest(val *WritableDeviceRoleRequest) *NullableWritableDeviceRoleRequest {
- return &NullableWritableDeviceRoleRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableDeviceRoleRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go
index c21a680396..4275e29a1c 100644
--- a/model_writable_device_type_request.go
+++ b/model_writable_device_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{}
// WritableDeviceTypeRequest Adds support for custom fields and tags.
type WritableDeviceTypeRequest struct {
- Manufacturer int32 `json:"manufacturer"`
- DefaultPlatform NullableInt32 `json:"default_platform,omitempty"`
- Model string `json:"model"`
- Slug string `json:"slug"`
+ Manufacturer ManufacturerRequest `json:"manufacturer"`
+ DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"`
+ Model string `json:"model"`
+ Slug string `json:"slug"`
// 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 *ParentChildStatus `json:"subdevice_role,omitempty"`
- Airflow *DeviceAirflowValue `json:"airflow,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `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 *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"`
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 int32, model string, slug string) *WritableDeviceTypeRequest {
+func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, 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() int32 {
+func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
@@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() int32 {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*int32, bool) {
+func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -91,14 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*int32, bool) {
}
// SetManufacturer sets field value
-func (o *WritableDeviceTypeRequest) SetManufacturer(v int32) {
+func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) {
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() int32 {
+func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest {
if o == nil || IsNil(o.DefaultPlatform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.DefaultPlatform.Get()
@@ -107,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -123,8 +123,8 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool {
return false
}
-// SetDefaultPlatform gets a reference to the given NullableInt32 and assigns it to the DefaultPlatform field.
-func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v int32) {
+// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field.
+func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) {
o.DefaultPlatform.Set(&v)
}
@@ -315,9 +315,9 @@ func (o *WritableDeviceTypeRequest) SetIsFullDepth(v bool) {
}
// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise.
-func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus {
+func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1 {
if o == nil || IsNil(o.SubdeviceRole) {
- var ret ParentChildStatus
+ var ret ParentChildStatus1
return ret
}
return *o.SubdeviceRole
@@ -325,7 +325,7 @@ func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus {
// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus, bool) {
+func (o *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, bool) {
if o == nil || IsNil(o.SubdeviceRole) {
return nil, false
}
@@ -341,8 +341,8 @@ func (o *WritableDeviceTypeRequest) HasSubdeviceRole() bool {
return false
}
-// SetSubdeviceRole gets a reference to the given ParentChildStatus and assigns it to the SubdeviceRole field.
-func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus) {
+// SetSubdeviceRole gets a reference to the given ParentChildStatus1 and assigns it to the SubdeviceRole field.
+func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) {
o.SubdeviceRole = &v
}
@@ -422,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -432,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -448,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go
index f440dbfc9f..ee7fcd1a6b 100644
--- a/model_writable_device_with_config_context_request.go
+++ b/model_writable_device_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,38 +20,37 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{}
// WritableDeviceWithConfigContextRequest Adds support for custom fields and tags.
type WritableDeviceWithConfigContextRequest struct {
- Name NullableString `json:"name,omitempty"`
- DeviceType int32 `json:"device_type"`
- // The function this device serves
- Role int32 `json:"role"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
+ Name NullableString `json:"name,omitempty"`
+ DeviceType DeviceTypeRequest `json:"device_type"`
+ Role DeviceRoleRequest `json:"role"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
+ Platform NullablePlatformRequest `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
- AssetTag NullableString `json:"asset_tag,omitempty"`
- Site int32 `json:"site"`
- Location NullableInt32 `json:"location,omitempty"`
- Rack NullableInt32 `json:"rack,omitempty"`
- Position NullableFloat64 `json:"position,omitempty"`
- Face *RackFace `json:"face,omitempty"`
+ 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"`
// 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 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- OobIp NullableInt32 `json:"oob_ip,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- VirtualChassis NullableInt32 `json:"virtual_chassis,omitempty"`
- VcPosition NullableInt32 `json:"vc_position,omitempty"`
+ 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"`
// Virtual chassis master election priority
- VcPriority NullableInt32 `json:"vc_priority,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
+ VcPriority NullableInt32 `json:"vc_priority,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Comments *string `json:"comments,omitempty"`
+ ConfigTemplate NullableConfigTemplateRequest `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"`
@@ -65,11 +64,12 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableDeviceWithConfigContextRequest(deviceType int32, role int32, site int32) *WritableDeviceWithConfigContextRequest {
+func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest {
this := WritableDeviceWithConfigContextRequest{}
this.DeviceType = deviceType
this.Role = role
this.Site = site
+ this.Face = face
return &this
}
@@ -125,9 +125,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() {
}
// GetDeviceType returns the DeviceType field value
-func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest {
if o == nil {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
@@ -136,7 +136,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() int32 {
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -144,14 +144,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*int32, bool
}
// SetDeviceType sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v int32) {
+func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType = v
}
// GetRole returns the Role field value
-func (o *WritableDeviceWithConfigContextRequest) GetRole() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil {
- var ret int32
+ var ret DeviceRoleRequest
return ret
}
@@ -160,7 +160,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() int32 {
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -168,14 +168,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool) {
}
// SetRole sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetRole(v int32) {
+func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -200,8 +200,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableDeviceWithConfigContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -216,9 +216,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -227,7 +227,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -243,8 +243,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableInt32 and assigns it to the Platform field.
-func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v int32) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -334,9 +334,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() {
}
// GetSite returns the Site field value
-func (o *WritableDeviceWithConfigContextRequest) GetSite() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest {
if o == nil {
- var ret int32
+ var ret SiteRequest
return ret
}
@@ -345,7 +345,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() int32 {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -353,14 +353,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*int32, bool) {
}
// SetSite sets field value
-func (o *WritableDeviceWithConfigContextRequest) SetSite(v int32) {
+func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) {
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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret int32
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -369,7 +369,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -385,8 +385,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *WritableDeviceWithConfigContextRequest) SetLocation(v int32) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
@@ -401,9 +401,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret int32
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -412,7 +412,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -428,8 +428,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableInt32 and assigns it to the Rack field.
-func (o *WritableDeviceWithConfigContextRequest) SetRack(v int32) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -486,36 +486,28 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPosition() {
o.Position.Unset()
}
-// GetFace returns the Face field value if set, zero value otherwise.
-func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace {
- if o == nil || IsNil(o.Face) {
- var ret RackFace
+// GetFace returns the Face field value
+func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace1 {
+ if o == nil {
+ var ret RackFace1
return ret
}
- return *o.Face
+
+ return o.Face
}
-// GetFaceOk returns a tuple with the Face field value if set, nil otherwise
+// GetFaceOk returns a tuple with the Face field value
// and a boolean to check if the value has been set.
-func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace, bool) {
- if o == nil || IsNil(o.Face) {
+func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace1, bool) {
+ if o == nil {
return nil, false
}
- return o.Face, true
+ return &o.Face, true
}
-// HasFace returns a boolean if a field has been set.
-func (o *WritableDeviceWithConfigContextRequest) HasFace() bool {
- if o != nil && !IsNil(o.Face) {
- return true
- }
-
- return false
-}
-
-// SetFace gets a reference to the given RackFace and assigns it to the Face field.
-func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace) {
- o.Face = &v
+// SetFace sets field value
+func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace1) {
+ o.Face = v
}
// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -669,9 +661,9 @@ func (o *WritableDeviceWithConfigContextRequest) 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 *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -680,7 +672,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -696,8 +688,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -712,9 +704,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -723,7 +715,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -739,8 +731,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -755,9 +747,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest {
if o == nil || IsNil(o.OobIp.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.OobIp.Get()
@@ -766,7 +758,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() int32 {
// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -782,8 +774,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool {
return false
}
-// SetOobIp gets a reference to the given NullableInt32 and assigns it to the OobIp field.
-func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v int32) {
+// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field.
+func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) {
o.OobIp.Set(&v)
}
@@ -798,9 +790,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret int32
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -809,7 +801,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -825,8 +817,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableInt32 and assigns it to the Cluster field.
-func (o *WritableDeviceWithConfigContextRequest) SetCluster(v int32) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -841,9 +833,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest {
if o == nil || IsNil(o.VirtualChassis.Get()) {
- var ret int32
+ var ret VirtualChassisRequest
return ret
}
return *o.VirtualChassis.Get()
@@ -852,7 +844,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() int32 {
// 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() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) {
if o == nil {
return nil, false
}
@@ -868,8 +860,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool {
return false
}
-// SetVirtualChassis gets a reference to the given NullableInt32 and assigns it to the VirtualChassis field.
-func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v int32) {
+// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field.
+func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) {
o.VirtualChassis.Set(&v)
}
@@ -1034,9 +1026,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() int32 {
+func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -1045,7 +1037,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32 {
// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) {
+func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -1061,8 +1053,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool {
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
@@ -1210,9 +1202,7 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{},
if o.Position.IsSet() {
toSerialize["position"] = o.Position.Get()
}
- if !IsNil(o.Face) {
- toSerialize["face"] = o.Face
- }
+ toSerialize["face"] = o.Face
if o.Latitude.IsSet() {
toSerialize["latitude"] = o.Latitude.Get()
}
@@ -1280,6 +1270,7 @@ func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err
"device_type",
"role",
"site",
+ "face",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go
index 6376c27088..266bff6f0b 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &WritableEventRuleRequest{}
// WritableEventRuleRequest Adds support for custom fields and tags.
type WritableEventRuleRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
+ 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.
@@ -50,9 +50,9 @@ 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(contentTypes []string, name string, actionObjectType string) *WritableEventRuleRequest {
+func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest {
this := WritableEventRuleRequest{}
- this.ContentTypes = contentTypes
+ this.ObjectTypes = objectTypes
this.Name = name
this.ActionObjectType = actionObjectType
return &this
@@ -66,28 +66,28 @@ func NewWritableEventRuleRequestWithDefaults() *WritableEventRuleRequest {
return &this
}
-// GetContentTypes returns the ContentTypes field value
-func (o *WritableEventRuleRequest) GetContentTypes() []string {
+// GetObjectTypes returns the ObjectTypes field value
+func (o *WritableEventRuleRequest) GetObjectTypes() []string {
if o == nil {
var ret []string
return ret
}
- return o.ContentTypes
+ return o.ObjectTypes
}
-// GetContentTypesOk returns a tuple with the ContentTypes field value
+// GetObjectTypesOk returns a tuple with the ObjectTypes field value
// and a boolean to check if the value has been set.
-func (o *WritableEventRuleRequest) GetContentTypesOk() ([]string, bool) {
+func (o *WritableEventRuleRequest) GetObjectTypesOk() ([]string, bool) {
if o == nil {
return nil, false
}
- return o.ContentTypes, true
+ return o.ObjectTypes, true
}
-// SetContentTypes sets field value
-func (o *WritableEventRuleRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
+// SetObjectTypes sets field value
+func (o *WritableEventRuleRequest) SetObjectTypes(v []string) {
+ o.ObjectTypes = v
}
// GetName returns the Name field value
@@ -544,7 +544,7 @@ func (o WritableEventRuleRequest) MarshalJSON() ([]byte, error) {
func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
+ toSerialize["object_types"] = o.ObjectTypes
toSerialize["name"] = o.Name
if !IsNil(o.TypeCreate) {
toSerialize["type_create"] = o.TypeCreate
@@ -596,7 +596,7 @@ func (o *WritableEventRuleRequest) 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{
- "content_types",
+ "object_types",
"name",
"action_object_type",
}
@@ -628,7 +628,7 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) {
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
+ delete(additionalProperties, "object_types")
delete(additionalProperties, "name")
delete(additionalProperties, "type_create")
delete(additionalProperties, "type_update")
diff --git a/model_writable_export_template_request.go b/model_writable_export_template_request.go
deleted file mode 100644
index d565881acb..0000000000
--- a/model_writable_export_template_request.go
+++ /dev/null
@@ -1,425 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableExportTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableExportTemplateRequest{}
-
-// WritableExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableExportTemplateRequest struct {
- ContentTypes []string `json:"content_types"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- // 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
- MimeType *string `json:"mime_type,omitempty"`
- // Extension to append to the rendered filename
- FileExtension *string `json:"file_extension,omitempty"`
- // Download file as attachment
- AsAttachment *bool `json:"as_attachment,omitempty"`
- // Remote data source
- DataSource NullableInt32 `json:"data_source,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableExportTemplateRequest WritableExportTemplateRequest
-
-// NewWritableExportTemplateRequest instantiates a new WritableExportTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableExportTemplateRequest(contentTypes []string, name string, templateCode string) *WritableExportTemplateRequest {
- this := WritableExportTemplateRequest{}
- this.ContentTypes = contentTypes
- this.Name = name
- this.TemplateCode = templateCode
- return &this
-}
-
-// NewWritableExportTemplateRequestWithDefaults instantiates a new WritableExportTemplateRequest object
-// This 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 NewWritableExportTemplateRequestWithDefaults() *WritableExportTemplateRequest {
- this := WritableExportTemplateRequest{}
- return &this
-}
-
-// GetContentTypes returns the ContentTypes field value
-func (o *WritableExportTemplateRequest) GetContentTypes() []string {
- if o == nil {
- var ret []string
- return ret
- }
-
- return o.ContentTypes
-}
-
-// GetContentTypesOk returns a tuple with the ContentTypes field value
-// and a boolean to check if the value has been set.
-func (o *WritableExportTemplateRequest) GetContentTypesOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.ContentTypes, true
-}
-
-// SetContentTypes sets field value
-func (o *WritableExportTemplateRequest) SetContentTypes(v []string) {
- o.ContentTypes = v
-}
-
-// GetName returns the Name field value
-func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableExportTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTemplateCode returns the TemplateCode field value
-func (o *WritableExportTemplateRequest) 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 *WritableExportTemplateRequest) GetTemplateCodeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.TemplateCode, true
-}
-
-// SetTemplateCode sets field value
-func (o *WritableExportTemplateRequest) SetTemplateCode(v string) {
- o.TemplateCode = v
-}
-
-// GetMimeType returns the MimeType field value if set, zero value otherwise.
-func (o *WritableExportTemplateRequest) GetMimeType() string {
- if o == nil || IsNil(o.MimeType) {
- var ret string
- return ret
- }
- return *o.MimeType
-}
-
-// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableExportTemplateRequest) GetMimeTypeOk() (*string, bool) {
- if o == nil || IsNil(o.MimeType) {
- return nil, false
- }
- return o.MimeType, true
-}
-
-// HasMimeType returns a boolean if a field has been set.
-func (o *WritableExportTemplateRequest) HasMimeType() bool {
- if o != nil && !IsNil(o.MimeType) {
- return true
- }
-
- return false
-}
-
-// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
-func (o *WritableExportTemplateRequest) SetMimeType(v string) {
- o.MimeType = &v
-}
-
-// GetFileExtension returns the FileExtension field value if set, zero value otherwise.
-func (o *WritableExportTemplateRequest) GetFileExtension() string {
- if o == nil || IsNil(o.FileExtension) {
- var ret string
- return ret
- }
- return *o.FileExtension
-}
-
-// GetFileExtensionOk returns a tuple with the FileExtension field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableExportTemplateRequest) GetFileExtensionOk() (*string, bool) {
- if o == nil || IsNil(o.FileExtension) {
- return nil, false
- }
- return o.FileExtension, true
-}
-
-// HasFileExtension returns a boolean if a field has been set.
-func (o *WritableExportTemplateRequest) HasFileExtension() bool {
- if o != nil && !IsNil(o.FileExtension) {
- return true
- }
-
- return false
-}
-
-// SetFileExtension gets a reference to the given string and assigns it to the FileExtension field.
-func (o *WritableExportTemplateRequest) SetFileExtension(v string) {
- o.FileExtension = &v
-}
-
-// GetAsAttachment returns the AsAttachment field value if set, zero value otherwise.
-func (o *WritableExportTemplateRequest) GetAsAttachment() bool {
- if o == nil || IsNil(o.AsAttachment) {
- var ret bool
- return ret
- }
- return *o.AsAttachment
-}
-
-// GetAsAttachmentOk returns a tuple with the AsAttachment field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableExportTemplateRequest) GetAsAttachmentOk() (*bool, bool) {
- if o == nil || IsNil(o.AsAttachment) {
- return nil, false
- }
- return o.AsAttachment, true
-}
-
-// HasAsAttachment returns a boolean if a field has been set.
-func (o *WritableExportTemplateRequest) HasAsAttachment() bool {
- if o != nil && !IsNil(o.AsAttachment) {
- return true
- }
-
- return false
-}
-
-// SetAsAttachment gets a reference to the given bool and assigns it to the AsAttachment field.
-func (o *WritableExportTemplateRequest) SetAsAttachment(v bool) {
- o.AsAttachment = &v
-}
-
-// GetDataSource returns the DataSource field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableExportTemplateRequest) GetDataSource() int32 {
- if o == nil || IsNil(o.DataSource.Get()) {
- var ret int32
- return ret
- }
- return *o.DataSource.Get()
-}
-
-// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableExportTemplateRequest) GetDataSourceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.DataSource.Get(), o.DataSource.IsSet()
-}
-
-// HasDataSource returns a boolean if a field has been set.
-func (o *WritableExportTemplateRequest) HasDataSource() bool {
- if o != nil && o.DataSource.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDataSource gets a reference to the given NullableInt32 and assigns it to the DataSource field.
-func (o *WritableExportTemplateRequest) SetDataSource(v int32) {
- o.DataSource.Set(&v)
-}
-
-// SetDataSourceNil sets the value for DataSource to be an explicit nil
-func (o *WritableExportTemplateRequest) SetDataSourceNil() {
- o.DataSource.Set(nil)
-}
-
-// UnsetDataSource ensures that no value is present for DataSource, not even an explicit nil
-func (o *WritableExportTemplateRequest) UnsetDataSource() {
- o.DataSource.Unset()
-}
-
-func (o WritableExportTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableExportTemplateRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["content_types"] = o.ContentTypes
- toSerialize["name"] = o.Name
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- toSerialize["template_code"] = o.TemplateCode
- if !IsNil(o.MimeType) {
- toSerialize["mime_type"] = o.MimeType
- }
- if !IsNil(o.FileExtension) {
- toSerialize["file_extension"] = o.FileExtension
- }
- if !IsNil(o.AsAttachment) {
- toSerialize["as_attachment"] = o.AsAttachment
- }
- if o.DataSource.IsSet() {
- toSerialize["data_source"] = o.DataSource.Get()
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableExportTemplateRequest) 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{
- "content_types",
- "name",
- "template_code",
- }
-
- 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)
- }
- }
-
- varWritableExportTemplateRequest := _WritableExportTemplateRequest{}
-
- err = json.Unmarshal(data, &varWritableExportTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableExportTemplateRequest(varWritableExportTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "content_types")
- delete(additionalProperties, "name")
- delete(additionalProperties, "description")
- delete(additionalProperties, "template_code")
- delete(additionalProperties, "mime_type")
- delete(additionalProperties, "file_extension")
- delete(additionalProperties, "as_attachment")
- delete(additionalProperties, "data_source")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableExportTemplateRequest struct {
- value *WritableExportTemplateRequest
- isSet bool
-}
-
-func (v NullableWritableExportTemplateRequest) Get() *WritableExportTemplateRequest {
- return v.value
-}
-
-func (v *NullableWritableExportTemplateRequest) Set(val *WritableExportTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableExportTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableExportTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableExportTemplateRequest(val *WritableExportTemplateRequest) *NullableWritableExportTemplateRequest {
- return &NullableWritableExportTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableExportTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableExportTemplateRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_fhrp_group_assignment_request.go b/model_writable_fhrp_group_assignment_request.go
deleted file mode 100644
index d4d57efab7..0000000000
--- a/model_writable_fhrp_group_assignment_request.go
+++ /dev/null
@@ -1,253 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableFHRPGroupAssignmentRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableFHRPGroupAssignmentRequest{}
-
-// WritableFHRPGroupAssignmentRequest Adds support for custom fields and tags.
-type WritableFHRPGroupAssignmentRequest struct {
- Group int32 `json:"group"`
- InterfaceType string `json:"interface_type"`
- InterfaceId int64 `json:"interface_id"`
- Priority int32 `json:"priority"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableFHRPGroupAssignmentRequest WritableFHRPGroupAssignmentRequest
-
-// NewWritableFHRPGroupAssignmentRequest instantiates a new WritableFHRPGroupAssignmentRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableFHRPGroupAssignmentRequest(group int32, interfaceType string, interfaceId int64, priority int32) *WritableFHRPGroupAssignmentRequest {
- this := WritableFHRPGroupAssignmentRequest{}
- this.Group = group
- this.InterfaceType = interfaceType
- this.InterfaceId = interfaceId
- this.Priority = priority
- return &this
-}
-
-// NewWritableFHRPGroupAssignmentRequestWithDefaults instantiates a new WritableFHRPGroupAssignmentRequest object
-// This 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 NewWritableFHRPGroupAssignmentRequestWithDefaults() *WritableFHRPGroupAssignmentRequest {
- this := WritableFHRPGroupAssignmentRequest{}
- return &this
-}
-
-// GetGroup returns the Group field value
-func (o *WritableFHRPGroupAssignmentRequest) GetGroup() int32 {
- if o == nil {
- var ret int32
- 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 *WritableFHRPGroupAssignmentRequest) GetGroupOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Group, true
-}
-
-// SetGroup sets field value
-func (o *WritableFHRPGroupAssignmentRequest) SetGroup(v int32) {
- o.Group = v
-}
-
-// GetInterfaceType returns the InterfaceType field value
-func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceType() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.InterfaceType
-}
-
-// GetInterfaceTypeOk returns a tuple with the InterfaceType field value
-// and a boolean to check if the value has been set.
-func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceTypeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InterfaceType, true
-}
-
-// SetInterfaceType sets field value
-func (o *WritableFHRPGroupAssignmentRequest) SetInterfaceType(v string) {
- o.InterfaceType = v
-}
-
-// GetInterfaceId returns the InterfaceId field value
-func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceId() int64 {
- if o == nil {
- var ret int64
- return ret
- }
-
- return o.InterfaceId
-}
-
-// GetInterfaceIdOk returns a tuple with the InterfaceId field value
-// and a boolean to check if the value has been set.
-func (o *WritableFHRPGroupAssignmentRequest) GetInterfaceIdOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InterfaceId, true
-}
-
-// SetInterfaceId sets field value
-func (o *WritableFHRPGroupAssignmentRequest) SetInterfaceId(v int64) {
- o.InterfaceId = v
-}
-
-// GetPriority returns the Priority field value
-func (o *WritableFHRPGroupAssignmentRequest) GetPriority() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Priority
-}
-
-// GetPriorityOk returns a tuple with the Priority field value
-// and a boolean to check if the value has been set.
-func (o *WritableFHRPGroupAssignmentRequest) GetPriorityOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Priority, true
-}
-
-// SetPriority sets field value
-func (o *WritableFHRPGroupAssignmentRequest) SetPriority(v int32) {
- o.Priority = v
-}
-
-func (o WritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["group"] = o.Group
- toSerialize["interface_type"] = o.InterfaceType
- toSerialize["interface_id"] = o.InterfaceId
- toSerialize["priority"] = o.Priority
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableFHRPGroupAssignmentRequest) 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",
- "interface_type",
- "interface_id",
- "priority",
- }
-
- 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)
- }
- }
-
- varWritableFHRPGroupAssignmentRequest := _WritableFHRPGroupAssignmentRequest{}
-
- err = json.Unmarshal(data, &varWritableFHRPGroupAssignmentRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableFHRPGroupAssignmentRequest(varWritableFHRPGroupAssignmentRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "group")
- delete(additionalProperties, "interface_type")
- delete(additionalProperties, "interface_id")
- delete(additionalProperties, "priority")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableFHRPGroupAssignmentRequest struct {
- value *WritableFHRPGroupAssignmentRequest
- isSet bool
-}
-
-func (v NullableWritableFHRPGroupAssignmentRequest) Get() *WritableFHRPGroupAssignmentRequest {
- return v.value
-}
-
-func (v *NullableWritableFHRPGroupAssignmentRequest) Set(val *WritableFHRPGroupAssignmentRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableFHRPGroupAssignmentRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableFHRPGroupAssignmentRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableFHRPGroupAssignmentRequest(val *WritableFHRPGroupAssignmentRequest) *NullableWritableFHRPGroupAssignmentRequest {
- return &NullableWritableFHRPGroupAssignmentRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableFHRPGroupAssignmentRequest) 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 50696159e9..a8fb95366d 100644
--- a/model_writable_front_port_request.go
+++ b/model_writable_front_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &WritableFrontPortRequest{}
// WritableFrontPortRequest Adds support for custom fields and tags.
type WritableFrontPortRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortTypeValue `json:"type"`
@@ -44,12 +44,14 @@ 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 int32, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest {
+func NewWritableFrontPortRequest(device DeviceRequest, 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
}
@@ -58,13 +60,15 @@ func NewWritableFrontPortRequest(device int32, name string, type_ FrontPortTypeV
// 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() int32 {
+func (o *WritableFrontPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -73,7 +77,7 @@ func (o *WritableFrontPortRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,14 +85,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableFrontPortRequest) SetDevice(v int32) {
+func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritableFrontPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -97,7 +101,7 @@ func (o *WritableFrontPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -113,8 +117,8 @@ func (o *WritableFrontPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritableFrontPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go
index 555d578b28..135e41ea93 100644
--- a/model_writable_front_port_template_request.go
+++ b/model_writable_front_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 int32 `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"`
+ RearPort RearPortTemplateRequest `json:"rear_port"`
+ RearPortPosition *int32 `json:"rear_port_position,omitempty"`
+ Description *string `json:"description,omitempty"`
AdditionalProperties map[string]interface{}
}
@@ -40,11 +40,13 @@ 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 int32) *WritableFrontPortTemplateRequest {
+func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *WritableFrontPortTemplateRequest {
this := WritableFrontPortTemplateRequest{}
this.Name = name
this.Type = type_
this.RearPort = rearPort
+ var rearPortPosition int32 = 1
+ this.RearPortPosition = &rearPortPosition
return &this
}
@@ -53,13 +55,15 @@ 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() int32 {
+func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -68,7 +72,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -84,8 +88,8 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritableFrontPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -100,9 +104,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() int32 {
+func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -111,7 +115,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -127,8 +131,8 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritableFrontPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -255,9 +259,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) {
}
// GetRearPort returns the RearPort field value
-func (o *WritableFrontPortTemplateRequest) GetRearPort() int32 {
+func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest {
if o == nil {
- var ret int32
+ var ret RearPortTemplateRequest
return ret
}
@@ -266,7 +270,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() int32 {
// GetRearPortOk returns a tuple with the RearPort field value
// and a boolean to check if the value has been set.
-func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*int32, bool) {
+func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -274,7 +278,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*int32, bool) {
}
// SetRearPort sets field value
-func (o *WritableFrontPortTemplateRequest) SetRearPort(v int32) {
+func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) {
o.RearPort = v
}
diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go
index 5e785baac0..d734a972df 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -24,7 +24,7 @@ type WritableIKEPolicyRequest struct {
Description *string `json:"description,omitempty"`
Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"`
Mode *PatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"`
- Proposals []int32 `json:"proposals"`
+ Proposals []int32 `json:"proposals,omitempty"`
PresharedKey *string `json:"preshared_key,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -38,10 +38,9 @@ type _WritableIKEPolicyRequest WritableIKEPolicyRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableIKEPolicyRequest(name string, proposals []int32) *WritableIKEPolicyRequest {
+func NewWritableIKEPolicyRequest(name string) *WritableIKEPolicyRequest {
this := WritableIKEPolicyRequest{}
this.Name = name
- this.Proposals = proposals
return &this
}
@@ -173,26 +172,34 @@ func (o *WritableIKEPolicyRequest) SetMode(v PatchedWritableIKEPolicyRequestMode
o.Mode = &v
}
-// GetProposals returns the Proposals field value
+// GetProposals returns the Proposals field value if set, zero value otherwise.
func (o *WritableIKEPolicyRequest) GetProposals() []int32 {
- if o == nil {
+ if o == nil || IsNil(o.Proposals) {
var ret []int32
return ret
}
-
return o.Proposals
}
-// GetProposalsOk returns a tuple with the Proposals field value
+// GetProposalsOk returns a tuple with the Proposals field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WritableIKEPolicyRequest) GetProposalsOk() ([]int32, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Proposals) {
return nil, false
}
return o.Proposals, true
}
-// SetProposals sets field value
+// HasProposals returns a boolean if a field has been set.
+func (o *WritableIKEPolicyRequest) HasProposals() bool {
+ if o != nil && !IsNil(o.Proposals) {
+ return true
+ }
+
+ return false
+}
+
+// SetProposals gets a reference to the given []int32 and assigns it to the Proposals field.
func (o *WritableIKEPolicyRequest) SetProposals(v []int32) {
o.Proposals = v
}
@@ -345,7 +352,9 @@ func (o WritableIKEPolicyRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Mode) {
toSerialize["mode"] = o.Mode
}
- toSerialize["proposals"] = o.Proposals
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
if !IsNil(o.PresharedKey) {
toSerialize["preshared_key"] = o.PresharedKey
}
@@ -372,7 +381,6 @@ func (o *WritableIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "proposals",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go
index da01b2fc6e..1783b8e238 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go
index aa1db0443e..0cefa53d8c 100644
--- a/model_writable_interface_request.go
+++ b/model_writable_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,10 +20,10 @@ var _ MappedNullable = &WritableInterfaceRequest{}
// WritableInterfaceRequest Adds support for custom fields and tags.
type WritableInterfaceRequest struct {
- Device int32 `json:"device"`
- Vdcs []int32 `json:"vdcs"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Vdcs []int32 `json:"vdcs,omitempty"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type InterfaceTypeValue `json:"type"`
@@ -47,14 +47,14 @@ type WritableInterfaceRequest struct {
// Populated by selected channel (if set)
RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"`
// Populated by selected channel (if set)
- RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"`
- TxPower NullableInt32 `json:"tx_power,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
- TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
+ 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"`
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
WirelessLans []int32 `json:"wireless_lans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -66,10 +66,9 @@ 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 int32, vdcs []int32, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest {
+func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest {
this := WritableInterfaceRequest{}
this.Device = device
- this.Vdcs = vdcs
this.Name = name
this.Type = type_
return &this
@@ -84,9 +83,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest {
}
// GetDevice returns the Device field value
-func (o *WritableInterfaceRequest) GetDevice() int32 {
+func (o *WritableInterfaceRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -95,7 +94,7 @@ func (o *WritableInterfaceRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableInterfaceRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -103,38 +102,46 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableInterfaceRequest) SetDevice(v int32) {
+func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
-// GetVdcs returns the Vdcs field value
+// GetVdcs returns the Vdcs field value if set, zero value otherwise.
func (o *WritableInterfaceRequest) GetVdcs() []int32 {
- if o == nil {
+ if o == nil || IsNil(o.Vdcs) {
var ret []int32
return ret
}
-
return o.Vdcs
}
-// GetVdcsOk returns a tuple with the Vdcs field value
+// GetVdcsOk returns a tuple with the Vdcs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WritableInterfaceRequest) GetVdcsOk() ([]int32, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Vdcs) {
return nil, false
}
return o.Vdcs, true
}
-// SetVdcs sets field value
+// HasVdcs returns a boolean if a field has been set.
+func (o *WritableInterfaceRequest) HasVdcs() bool {
+ if o != nil && !IsNil(o.Vdcs) {
+ return true
+ }
+
+ return false
+}
+
+// SetVdcs gets a reference to the given []int32 and assigns it to the Vdcs field.
func (o *WritableInterfaceRequest) SetVdcs(v []int32) {
o.Vdcs = v
}
// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInterfaceRequest) GetModule() int32 {
+func (o *WritableInterfaceRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -143,7 +150,7 @@ func (o *WritableInterfaceRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -159,8 +166,8 @@ func (o *WritableInterfaceRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritableInterfaceRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -984,9 +991,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() int32 {
+func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -995,7 +1002,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() int32 {
// 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() (*int32, bool) {
+func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -1011,8 +1018,8 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableInt32 and assigns it to the UntaggedVlan field.
-func (o *WritableInterfaceRequest) SetUntaggedVlan(v int32) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -1123,9 +1130,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() int32 {
+func (o *WritableInterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -1134,7 +1141,7 @@ func (o *WritableInterfaceRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -1150,8 +1157,8 @@ func (o *WritableInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *WritableInterfaceRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -1240,7 +1247,9 @@ func (o WritableInterfaceRequest) MarshalJSON() ([]byte, error) {
func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["device"] = o.Device
- toSerialize["vdcs"] = o.Vdcs
+ if !IsNil(o.Vdcs) {
+ toSerialize["vdcs"] = o.Vdcs
+ }
if o.Module.IsSet() {
toSerialize["module"] = o.Module.Get()
}
@@ -1341,7 +1350,6 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"device",
- "vdcs",
"name",
"type",
}
diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go
index f17acadb0d..a0d61207ca 100644
--- a/model_writable_interface_template_request.go
+++ b/model_writable_interface_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -86,8 +86,8 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritableInterfaceTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -102,9 +102,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() int32 {
+func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -113,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -129,8 +129,8 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritableInterfaceTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_writable_inventory_item_request.go b/model_writable_inventory_item_request.go
deleted file mode 100644
index dbeaf1b483..0000000000
--- a/model_writable_inventory_item_request.go
+++ /dev/null
@@ -1,746 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// 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 int32 `json:"device"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
- // Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- 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 int32, 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() int32 {
- if o == nil {
- var ret int32
- 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() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *WritableInventoryItemRequest) SetDevice(v int32) {
- 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
-}
-
-// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInventoryItemRequest) GetRole() int32 {
- if o == nil || IsNil(o.Role.Get()) {
- var ret int32
- 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() (*int32, 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 NullableInt32 and assigns it to the Role field.
-func (o *WritableInventoryItemRequest) SetRole(v int32) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *WritableInventoryItemRequest) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// 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() int32 {
- if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
- 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() (*int32, 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 NullableInt32 and assigns it to the Manufacturer field.
-func (o *WritableInventoryItemRequest) SetManufacturer(v int32) {
- o.Manufacturer.Set(&v)
-}
-
-// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *WritableInventoryItemRequest) SetManufacturerNil() {
- o.Manufacturer.Set(nil)
-}
-
-// 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 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",
- }
-
- 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)
- }
- }
-
- 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, "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_inventory_item_template_request.go b/model_writable_inventory_item_template_request.go
deleted file mode 100644
index 7e341c796b..0000000000
--- a/model_writable_inventory_item_template_request.go
+++ /dev/null
@@ -1,549 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableInventoryItemTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableInventoryItemTemplateRequest{}
-
-// WritableInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableInventoryItemTemplateRequest struct {
- DeviceType int32 `json:"device_type"`
- Parent NullableInt32 `json:"parent,omitempty"`
- // {module} is accepted as a substitution for the module bay position when attached to a module type.
- Name string `json:"name"`
- // Physical label
- Label *string `json:"label,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
- // Manufacturer-assigned part identifier
- PartId *string `json:"part_id,omitempty"`
- Description *string `json:"description,omitempty"`
- ComponentType NullableString `json:"component_type,omitempty"`
- ComponentId NullableInt64 `json:"component_id,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableInventoryItemTemplateRequest WritableInventoryItemTemplateRequest
-
-// NewWritableInventoryItemTemplateRequest instantiates a new WritableInventoryItemTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableInventoryItemTemplateRequest(deviceType int32, name string) *WritableInventoryItemTemplateRequest {
- this := WritableInventoryItemTemplateRequest{}
- this.DeviceType = deviceType
- this.Name = name
- return &this
-}
-
-// NewWritableInventoryItemTemplateRequestWithDefaults instantiates a new WritableInventoryItemTemplateRequest object
-// This 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 NewWritableInventoryItemTemplateRequestWithDefaults() *WritableInventoryItemTemplateRequest {
- this := WritableInventoryItemTemplateRequest{}
- return &this
-}
-
-// GetDeviceType returns the DeviceType field value
-func (o *WritableInventoryItemTemplateRequest) GetDeviceType() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceType
-}
-
-// GetDeviceTypeOk returns a tuple with the DeviceType field value
-// and a boolean to check if the value has been set.
-func (o *WritableInventoryItemTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceType, true
-}
-
-// SetDeviceType sets field value
-func (o *WritableInventoryItemTemplateRequest) SetDeviceType(v int32) {
- 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetParent(v int32) {
- o.Parent.Set(&v)
-}
-
-// SetParentNil sets the value for Parent to be an explicit nil
-func (o *WritableInventoryItemTemplateRequest) SetParentNil() {
- o.Parent.Set(nil)
-}
-
-// UnsetParent ensures that no value is present for Parent, not even an explicit nil
-func (o *WritableInventoryItemTemplateRequest) UnsetParent() {
- o.Parent.Unset()
-}
-
-// GetName returns the Name field value
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableInventoryItemTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableInventoryItemTemplateRequest) GetRole() int32 {
- if o == nil || IsNil(o.Role.Get()) {
- var ret int32
- 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 *WritableInventoryItemTemplateRequest) GetRoleOk() (*int32, 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 *WritableInventoryItemTemplateRequest) HasRole() bool {
- if o != nil && o.Role.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritableInventoryItemTemplateRequest) SetRole(v int32) {
- o.Role.Set(&v)
-}
-
-// SetRoleNil sets the value for Role to be an explicit nil
-func (o *WritableInventoryItemTemplateRequest) SetRoleNil() {
- o.Role.Set(nil)
-}
-
-// UnsetRole ensures that no value is present for Role, not even an explicit nil
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) GetManufacturer() int32 {
- if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
- 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 *WritableInventoryItemTemplateRequest) GetManufacturerOk() (*int32, 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 *WritableInventoryItemTemplateRequest) HasManufacturer() bool {
- if o != nil && o.Manufacturer.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetManufacturer gets a reference to the given NullableInt32 and assigns it to the Manufacturer field.
-func (o *WritableInventoryItemTemplateRequest) SetManufacturer(v int32) {
- o.Manufacturer.Set(&v)
-}
-
-// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *WritableInventoryItemTemplateRequest) SetManufacturerNil() {
- o.Manufacturer.Set(nil)
-}
-
-// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-func (o *WritableInventoryItemTemplateRequest) UnsetManufacturer() {
- o.Manufacturer.Unset()
-}
-
-// GetPartId returns the PartId field value if set, zero value otherwise.
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetPartId(v string) {
- o.PartId = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetComponentType(v string) {
- o.ComponentType.Set(&v)
-}
-
-// SetComponentTypeNil sets the value for ComponentType to be an explicit nil
-func (o *WritableInventoryItemTemplateRequest) SetComponentTypeNil() {
- o.ComponentType.Set(nil)
-}
-
-// UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil
-func (o *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) 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 *WritableInventoryItemTemplateRequest) SetComponentId(v int64) {
- o.ComponentId.Set(&v)
-}
-
-// SetComponentIdNil sets the value for ComponentId to be an explicit nil
-func (o *WritableInventoryItemTemplateRequest) SetComponentIdNil() {
- o.ComponentId.Set(nil)
-}
-
-// UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil
-func (o *WritableInventoryItemTemplateRequest) UnsetComponentId() {
- o.ComponentId.Unset()
-}
-
-func (o WritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableInventoryItemTemplateRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device_type"] = o.DeviceType
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
- toSerialize["name"] = o.Name
- if !IsNil(o.Label) {
- toSerialize["label"] = o.Label
- }
- 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.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()
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableInventoryItemTemplateRequest) 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_type",
- "name",
- }
-
- 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)
- }
- }
-
- varWritableInventoryItemTemplateRequest := _WritableInventoryItemTemplateRequest{}
-
- err = json.Unmarshal(data, &varWritableInventoryItemTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableInventoryItemTemplateRequest(varWritableInventoryItemTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device_type")
- delete(additionalProperties, "parent")
- delete(additionalProperties, "name")
- delete(additionalProperties, "label")
- delete(additionalProperties, "role")
- delete(additionalProperties, "manufacturer")
- delete(additionalProperties, "part_id")
- delete(additionalProperties, "description")
- delete(additionalProperties, "component_type")
- delete(additionalProperties, "component_id")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableInventoryItemTemplateRequest struct {
- value *WritableInventoryItemTemplateRequest
- isSet bool
-}
-
-func (v NullableWritableInventoryItemTemplateRequest) Get() *WritableInventoryItemTemplateRequest {
- return v.value
-}
-
-func (v *NullableWritableInventoryItemTemplateRequest) Set(val *WritableInventoryItemTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableInventoryItemTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableInventoryItemTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableInventoryItemTemplateRequest(val *WritableInventoryItemTemplateRequest) *NullableWritableInventoryItemTemplateRequest {
- return &NullableWritableInventoryItemTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableInventoryItemTemplateRequest) 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 09a16bafa2..05fae1d609 100644
--- a/model_writable_ip_address_request.go
+++ b/model_writable_ip_address_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &WritableIPAddressRequest{}
// WritableIPAddressRequest Adds support for custom fields and tags.
type WritableIPAddressRequest struct {
Address string `json:"address"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
@@ -83,9 +83,9 @@ func (o *WritableIPAddressRequest) 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 *WritableIPAddressRequest) GetVrf() int32 {
+func (o *WritableIPAddressRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -94,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -110,8 +110,8 @@ func (o *WritableIPAddressRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *WritableIPAddressRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -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() int32 {
+func (o *WritableIPAddressRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -153,8 +153,8 @@ func (o *WritableIPAddressRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableIPAddressRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go
index 1fbf800ded..c93135b4cb 100644
--- a/model_writable_ip_range_request.go
+++ b/model_writable_ip_range_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,15 +22,14 @@ var _ MappedNullable = &WritableIPRangeRequest{}
type WritableIPRangeRequest struct {
StartAddress string `json:"start_address"`
EndAddress string `json:"end_address"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"`
- // The primary function of this range
- Role NullableInt32 `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,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"`
// Treat as fully utilized
MarkUtilized *bool `json:"mark_utilized,omitempty"`
AdditionalProperties map[string]interface{}
@@ -106,9 +105,9 @@ func (o *WritableIPRangeRequest) 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 *WritableIPRangeRequest) GetVrf() int32 {
+func (o *WritableIPRangeRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -117,7 +116,7 @@ func (o *WritableIPRangeRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -133,8 +132,8 @@ func (o *WritableIPRangeRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *WritableIPRangeRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
@@ -149,9 +148,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() int32 {
+func (o *WritableIPRangeRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -160,7 +159,7 @@ func (o *WritableIPRangeRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -176,8 +175,8 @@ func (o *WritableIPRangeRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableIPRangeRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -224,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() int32 {
+func (o *WritableIPRangeRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -235,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -251,8 +250,8 @@ func (o *WritableIPRangeRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritableIPRangeRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *WritableIPRangeRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go
index e37eceea34..d6599e6732 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ var _ MappedNullable = &WritableIPSecPolicyRequest{}
type WritableIPSecPolicyRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
- Proposals []int32 `json:"proposals"`
+ Proposals []int32 `json:"proposals,omitempty"`
PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -36,10 +36,9 @@ type _WritableIPSecPolicyRequest WritableIPSecPolicyRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableIPSecPolicyRequest(name string, proposals []int32) *WritableIPSecPolicyRequest {
+func NewWritableIPSecPolicyRequest(name string) *WritableIPSecPolicyRequest {
this := WritableIPSecPolicyRequest{}
this.Name = name
- this.Proposals = proposals
return &this
}
@@ -107,26 +106,34 @@ func (o *WritableIPSecPolicyRequest) SetDescription(v string) {
o.Description = &v
}
-// GetProposals returns the Proposals field value
+// GetProposals returns the Proposals field value if set, zero value otherwise.
func (o *WritableIPSecPolicyRequest) GetProposals() []int32 {
- if o == nil {
+ if o == nil || IsNil(o.Proposals) {
var ret []int32
return ret
}
-
return o.Proposals
}
-// GetProposalsOk returns a tuple with the Proposals field value
+// GetProposalsOk returns a tuple with the Proposals field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WritableIPSecPolicyRequest) GetProposalsOk() ([]int32, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Proposals) {
return nil, false
}
return o.Proposals, true
}
-// SetProposals sets field value
+// HasProposals returns a boolean if a field has been set.
+func (o *WritableIPSecPolicyRequest) HasProposals() bool {
+ if o != nil && !IsNil(o.Proposals) {
+ return true
+ }
+
+ return false
+}
+
+// SetProposals gets a reference to the given []int32 and assigns it to the Proposals field.
func (o *WritableIPSecPolicyRequest) SetProposals(v []int32) {
o.Proposals = v
}
@@ -284,7 +291,9 @@ func (o WritableIPSecPolicyRequest) ToMap() (map[string]interface{}, error) {
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
- toSerialize["proposals"] = o.Proposals
+ if !IsNil(o.Proposals) {
+ toSerialize["proposals"] = o.Proposals
+ }
if o.PfsGroup.IsSet() {
toSerialize["pfs_group"] = o.PfsGroup.Get()
}
@@ -311,7 +320,6 @@ func (o *WritableIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "proposals",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go
index 1616df8400..0f60eeb674 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -23,8 +23,8 @@ type WritableIPSecProfileRequest struct {
Name string `json:"name"`
Description *string `json:"description,omitempty"`
Mode IPSecProfileModeValue `json:"mode"`
- IkePolicy int32 `json:"ike_policy"`
- IpsecPolicy int32 `json:"ipsec_policy"`
+ 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"`
@@ -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 int32, ipsecPolicy int32) *WritableIPSecProfileRequest {
+func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest {
this := WritableIPSecProfileRequest{}
this.Name = name
this.Mode = mode
@@ -135,9 +135,9 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) {
}
// GetIkePolicy returns the IkePolicy field value
-func (o *WritableIPSecProfileRequest) GetIkePolicy() int32 {
+func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest {
if o == nil {
- var ret int32
+ var ret IKEPolicyRequest
return ret
}
@@ -146,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() int32 {
// GetIkePolicyOk returns a tuple with the IkePolicy field value
// and a boolean to check if the value has been set.
-func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*int32, bool) {
+func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) {
if o == nil {
return nil, false
}
@@ -154,14 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*int32, bool) {
}
// SetIkePolicy sets field value
-func (o *WritableIPSecProfileRequest) SetIkePolicy(v int32) {
+func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) {
o.IkePolicy = v
}
// GetIpsecPolicy returns the IpsecPolicy field value
-func (o *WritableIPSecProfileRequest) GetIpsecPolicy() int32 {
+func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest {
if o == nil {
- var ret int32
+ var ret IPSecPolicyRequest
return ret
}
@@ -170,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() int32 {
// GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value
// and a boolean to check if the value has been set.
-func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, bool) {
+func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) {
if o == nil {
return nil, false
}
@@ -178,7 +178,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*int32, bool) {
}
// SetIpsecPolicy sets field value
-func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v int32) {
+func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) {
o.IpsecPolicy = v
}
diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go
index a13ba2b74a..f04acc1ab2 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go
index 5cab9bbb7b..ab1c91cc27 100644
--- a/model_writable_journal_entry_request.go
+++ b/model_writable_journal_entry_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go
index beca5ea5d6..64af85b8da 100644
--- a/model_writable_l2_vpn_request.go
+++ b/model_writable_l2_vpn_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -28,7 +28,7 @@ type WritableL2VPNRequest struct {
ExportTargets []int32 `json:"export_targets,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -300,9 +300,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() int32 {
+func (o *WritableL2VPNRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -311,7 +311,7 @@ func (o *WritableL2VPNRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -327,8 +327,8 @@ func (o *WritableL2VPNRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableL2VPNRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_l2_vpn_termination_request.go b/model_writable_l2_vpn_termination_request.go
deleted file mode 100644
index 2cbb2c9494..0000000000
--- a/model_writable_l2_vpn_termination_request.go
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableL2VPNTerminationRequest{}
-
-// WritableL2VPNTerminationRequest Adds support for custom fields and tags.
-type WritableL2VPNTerminationRequest struct {
- L2vpn int32 `json:"l2vpn"`
- AssignedObjectType string `json:"assigned_object_type"`
- AssignedObjectId int64 `json:"assigned_object_id"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableL2VPNTerminationRequest WritableL2VPNTerminationRequest
-
-// NewWritableL2VPNTerminationRequest instantiates a new WritableL2VPNTerminationRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableL2VPNTerminationRequest(l2vpn int32, assignedObjectType string, assignedObjectId int64) *WritableL2VPNTerminationRequest {
- this := WritableL2VPNTerminationRequest{}
- this.L2vpn = l2vpn
- this.AssignedObjectType = assignedObjectType
- this.AssignedObjectId = assignedObjectId
- return &this
-}
-
-// NewWritableL2VPNTerminationRequestWithDefaults instantiates a new WritableL2VPNTerminationRequest object
-// This 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 NewWritableL2VPNTerminationRequestWithDefaults() *WritableL2VPNTerminationRequest {
- this := WritableL2VPNTerminationRequest{}
- return &this
-}
-
-// GetL2vpn returns the L2vpn field value
-func (o *WritableL2VPNTerminationRequest) GetL2vpn() int32 {
- if o == nil {
- var ret int32
- 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 *WritableL2VPNTerminationRequest) GetL2vpnOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.L2vpn, true
-}
-
-// SetL2vpn sets field value
-func (o *WritableL2VPNTerminationRequest) SetL2vpn(v int32) {
- o.L2vpn = v
-}
-
-// GetAssignedObjectType returns the AssignedObjectType field value
-func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.AssignedObjectType, true
-}
-
-// SetAssignedObjectType sets field value
-func (o *WritableL2VPNTerminationRequest) SetAssignedObjectType(v string) {
- o.AssignedObjectType = v
-}
-
-// GetAssignedObjectId returns the AssignedObjectId field value
-func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) {
- if o == nil {
- return nil, false
- }
- return &o.AssignedObjectId, true
-}
-
-// SetAssignedObjectId sets field value
-func (o *WritableL2VPNTerminationRequest) SetAssignedObjectId(v int64) {
- o.AssignedObjectId = v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) 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 *WritableL2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableL2VPNTerminationRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableL2VPNTerminationRequest) 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",
- "assigned_object_type",
- "assigned_object_id",
- }
-
- 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)
- }
- }
-
- varWritableL2VPNTerminationRequest := _WritableL2VPNTerminationRequest{}
-
- err = json.Unmarshal(data, &varWritableL2VPNTerminationRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableL2VPNTerminationRequest(varWritableL2VPNTerminationRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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
- }
-
- return err
-}
-
-type NullableWritableL2VPNTerminationRequest struct {
- value *WritableL2VPNTerminationRequest
- isSet bool
-}
-
-func (v NullableWritableL2VPNTerminationRequest) Get() *WritableL2VPNTerminationRequest {
- return v.value
-}
-
-func (v *NullableWritableL2VPNTerminationRequest) Set(val *WritableL2VPNTerminationRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableL2VPNTerminationRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableL2VPNTerminationRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableL2VPNTerminationRequest(val *WritableL2VPNTerminationRequest) *NullableWritableL2VPNTerminationRequest {
- return &NullableWritableL2VPNTerminationRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableL2VPNTerminationRequest) 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 1b8dadd1cf..4ee75bbce5 100644
--- a/model_writable_location_request.go
+++ b/model_writable_location_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,12 +20,14 @@ var _ MappedNullable = &WritableLocationRequest{}
// WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support.
type WritableLocationRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Site int32 `json:"site"`
- Parent NullableInt32 `json:"parent,omitempty"`
- Status *LocationStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
+ // 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"`
@@ -38,11 +40,12 @@ 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 int32) *WritableLocationRequest {
+func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32) *WritableLocationRequest {
this := WritableLocationRequest{}
this.Name = name
this.Slug = slug
this.Site = site
+ this.Parent = parent
return &this
}
@@ -103,9 +106,9 @@ func (o *WritableLocationRequest) SetSlug(v string) {
}
// GetSite returns the Site field value
-func (o *WritableLocationRequest) GetSite() int32 {
+func (o *WritableLocationRequest) GetSite() SiteRequest {
if o == nil {
- var ret int32
+ var ret SiteRequest
return ret
}
@@ -114,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() int32 {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableLocationRequest) GetSiteOk() (*int32, bool) {
+func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -122,20 +125,22 @@ func (o *WritableLocationRequest) GetSiteOk() (*int32, bool) {
}
// SetSite sets field value
-func (o *WritableLocationRequest) SetSite(v int32) {
+func (o *WritableLocationRequest) SetSite(v SiteRequest) {
o.Site = v
}
-// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null).
+// GetParent returns the Parent field value
+// If the value is explicit nil, the zero value for int32 will be returned
func (o *WritableLocationRequest) GetParent() int32 {
- if o == nil || IsNil(o.Parent.Get()) {
+ if o == nil || o.Parent.Get() == nil {
var ret int32
return ret
}
+
return *o.Parent.Get()
}
-// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent 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 *WritableLocationRequest) GetParentOk() (*int32, bool) {
@@ -145,34 +150,15 @@ func (o *WritableLocationRequest) GetParentOk() (*int32, bool) {
return o.Parent.Get(), o.Parent.IsSet()
}
-// 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.
+// SetParent sets field value
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() LocationStatusValue {
+func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret LocationStatusValue
+ var ret PatchedWritableLocationRequestStatus
return ret
}
return *o.Status
@@ -180,7 +166,7 @@ func (o *WritableLocationRequest) GetStatus() LocationStatusValue {
// 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() (*LocationStatusValue, bool) {
+func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -196,15 +182,15 @@ func (o *WritableLocationRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
-func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field.
+func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) {
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() int32 {
+func (o *WritableLocationRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -213,7 +199,7 @@ func (o *WritableLocationRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -229,8 +215,8 @@ func (o *WritableLocationRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableLocationRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableLocationRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -244,6 +230,38 @@ func (o *WritableLocationRequest) UnsetTenant() {
o.Tenant.Unset()
}
+// GetFacility returns the Facility field value if set, zero value otherwise.
+func (o *WritableLocationRequest) 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 *WritableLocationRequest) 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 *WritableLocationRequest) 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 *WritableLocationRequest) SetFacility(v string) {
+ o.Facility = &v
+}
+
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *WritableLocationRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
@@ -353,15 +371,16 @@ func (o WritableLocationRequest) ToMap() (map[string]interface{}, error) {
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
toSerialize["site"] = o.Site
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
+ 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
}
@@ -387,6 +406,7 @@ func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
"name",
"slug",
"site",
+ "parent",
}
allProperties := make(map[string]interface{})
@@ -422,6 +442,7 @@ func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "parent")
delete(additionalProperties, "status")
delete(additionalProperties, "tenant")
+ delete(additionalProperties, "facility")
delete(additionalProperties, "description")
delete(additionalProperties, "tags")
delete(additionalProperties, "custom_fields")
diff --git a/model_writable_module_bay_request.go b/model_writable_module_bay_request.go
deleted file mode 100644
index b5910d03cd..0000000000
--- a/model_writable_module_bay_request.go
+++ /dev/null
@@ -1,411 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableModuleBayRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableModuleBayRequest{}
-
-// WritableModuleBayRequest Adds support for custom fields and tags.
-type WritableModuleBayRequest struct {
- Device int32 `json:"device"`
- Name string `json:"name"`
- InstalledModule int32 `json:"installed_module"`
- // 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"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableModuleBayRequest WritableModuleBayRequest
-
-// NewWritableModuleBayRequest instantiates a new WritableModuleBayRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableModuleBayRequest(device int32, name string, installedModule int32) *WritableModuleBayRequest {
- this := WritableModuleBayRequest{}
- this.Device = device
- this.Name = name
- this.InstalledModule = installedModule
- return &this
-}
-
-// NewWritableModuleBayRequestWithDefaults instantiates a new WritableModuleBayRequest object
-// This 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 NewWritableModuleBayRequestWithDefaults() *WritableModuleBayRequest {
- this := WritableModuleBayRequest{}
- return &this
-}
-
-// GetDevice returns the Device field value
-func (o *WritableModuleBayRequest) GetDevice() int32 {
- if o == nil {
- var ret int32
- 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 *WritableModuleBayRequest) GetDeviceOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Device, true
-}
-
-// SetDevice sets field value
-func (o *WritableModuleBayRequest) SetDevice(v int32) {
- o.Device = v
-}
-
-// GetName returns the Name field value
-func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableModuleBayRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetInstalledModule returns the InstalledModule field value
-func (o *WritableModuleBayRequest) GetInstalledModule() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.InstalledModule
-}
-
-// GetInstalledModuleOk returns a tuple with the InstalledModule field value
-// and a boolean to check if the value has been set.
-func (o *WritableModuleBayRequest) GetInstalledModuleOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.InstalledModule, true
-}
-
-// SetInstalledModule sets field value
-func (o *WritableModuleBayRequest) SetInstalledModule(v int32) {
- o.InstalledModule = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *WritableModuleBayRequest) GetPosition() string {
- if o == nil || IsNil(o.Position) {
- var ret string
- return ret
- }
- return *o.Position
-}
-
-// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableModuleBayRequest) GetPositionOk() (*string, bool) {
- if o == nil || IsNil(o.Position) {
- return nil, false
- }
- return o.Position, true
-}
-
-// HasPosition returns a boolean if a field has been set.
-func (o *WritableModuleBayRequest) HasPosition() bool {
- if o != nil && !IsNil(o.Position) {
- return true
- }
-
- return false
-}
-
-// SetPosition gets a reference to the given string and assigns it to the Position field.
-func (o *WritableModuleBayRequest) SetPosition(v string) {
- o.Position = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) 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 *WritableModuleBayRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableModuleBayRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableModuleBayRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device"] = o.Device
- toSerialize["name"] = o.Name
- toSerialize["installed_module"] = o.InstalledModule
- if !IsNil(o.Label) {
- toSerialize["label"] = o.Label
- }
- if !IsNil(o.Position) {
- toSerialize["position"] = o.Position
- }
- 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 *WritableModuleBayRequest) 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",
- "installed_module",
- }
-
- 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)
- }
- }
-
- varWritableModuleBayRequest := _WritableModuleBayRequest{}
-
- err = json.Unmarshal(data, &varWritableModuleBayRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableModuleBayRequest(varWritableModuleBayRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device")
- delete(additionalProperties, "name")
- delete(additionalProperties, "installed_module")
- delete(additionalProperties, "label")
- delete(additionalProperties, "position")
- delete(additionalProperties, "description")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableModuleBayRequest struct {
- value *WritableModuleBayRequest
- isSet bool
-}
-
-func (v NullableWritableModuleBayRequest) Get() *WritableModuleBayRequest {
- return v.value
-}
-
-func (v *NullableWritableModuleBayRequest) Set(val *WritableModuleBayRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableModuleBayRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableModuleBayRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableModuleBayRequest(val *WritableModuleBayRequest) *NullableWritableModuleBayRequest {
- return &NullableWritableModuleBayRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableModuleBayRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableModuleBayRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_module_bay_template_request.go b/model_writable_module_bay_template_request.go
deleted file mode 100644
index f4e8d5b96e..0000000000
--- a/model_writable_module_bay_template_request.go
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableModuleBayTemplateRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableModuleBayTemplateRequest{}
-
-// WritableModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableModuleBayTemplateRequest struct {
- DeviceType int32 `json:"device_type"`
- // {module} is accepted as a substitution for the module bay position when attached to a module type.
- 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"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableModuleBayTemplateRequest WritableModuleBayTemplateRequest
-
-// NewWritableModuleBayTemplateRequest instantiates a new WritableModuleBayTemplateRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableModuleBayTemplateRequest(deviceType int32, name string) *WritableModuleBayTemplateRequest {
- this := WritableModuleBayTemplateRequest{}
- this.DeviceType = deviceType
- this.Name = name
- return &this
-}
-
-// NewWritableModuleBayTemplateRequestWithDefaults instantiates a new WritableModuleBayTemplateRequest object
-// This 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 NewWritableModuleBayTemplateRequestWithDefaults() *WritableModuleBayTemplateRequest {
- this := WritableModuleBayTemplateRequest{}
- return &this
-}
-
-// GetDeviceType returns the DeviceType field value
-func (o *WritableModuleBayTemplateRequest) GetDeviceType() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.DeviceType
-}
-
-// GetDeviceTypeOk returns a tuple with the DeviceType field value
-// and a boolean to check if the value has been set.
-func (o *WritableModuleBayTemplateRequest) GetDeviceTypeOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.DeviceType, true
-}
-
-// SetDeviceType sets field value
-func (o *WritableModuleBayTemplateRequest) SetDeviceType(v int32) {
- o.DeviceType = v
-}
-
-// GetName returns the Name field value
-func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableModuleBayTemplateRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetLabel returns the Label field value if set, zero value otherwise.
-func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetLabel(v string) {
- o.Label = &v
-}
-
-// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *WritableModuleBayTemplateRequest) GetPosition() string {
- if o == nil || IsNil(o.Position) {
- var ret string
- return ret
- }
- return *o.Position
-}
-
-// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableModuleBayTemplateRequest) GetPositionOk() (*string, bool) {
- if o == nil || IsNil(o.Position) {
- return nil, false
- }
- return o.Position, true
-}
-
-// HasPosition returns a boolean if a field has been set.
-func (o *WritableModuleBayTemplateRequest) HasPosition() bool {
- if o != nil && !IsNil(o.Position) {
- return true
- }
-
- return false
-}
-
-// SetPosition gets a reference to the given string and assigns it to the Position field.
-func (o *WritableModuleBayTemplateRequest) SetPosition(v string) {
- o.Position = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) 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 *WritableModuleBayTemplateRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-func (o WritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["device_type"] = o.DeviceType
- toSerialize["name"] = o.Name
- if !IsNil(o.Label) {
- toSerialize["label"] = o.Label
- }
- if !IsNil(o.Position) {
- toSerialize["position"] = o.Position
- }
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableModuleBayTemplateRequest) 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_type",
- "name",
- }
-
- 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)
- }
- }
-
- varWritableModuleBayTemplateRequest := _WritableModuleBayTemplateRequest{}
-
- err = json.Unmarshal(data, &varWritableModuleBayTemplateRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableModuleBayTemplateRequest(varWritableModuleBayTemplateRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "device_type")
- delete(additionalProperties, "name")
- delete(additionalProperties, "label")
- delete(additionalProperties, "position")
- delete(additionalProperties, "description")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableModuleBayTemplateRequest struct {
- value *WritableModuleBayTemplateRequest
- isSet bool
-}
-
-func (v NullableWritableModuleBayTemplateRequest) Get() *WritableModuleBayTemplateRequest {
- return v.value
-}
-
-func (v *NullableWritableModuleBayTemplateRequest) Set(val *WritableModuleBayTemplateRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableModuleBayTemplateRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableModuleBayTemplateRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableModuleBayTemplateRequest(val *WritableModuleBayTemplateRequest) *NullableWritableModuleBayTemplateRequest {
- return &NullableWritableModuleBayTemplateRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableModuleBayTemplateRequest) 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 4bf106c5f2..83271a51ea 100644
--- a/model_writable_module_request.go
+++ b/model_writable_module_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &WritableModuleRequest{}
// WritableModuleRequest Adds support for custom fields and tags.
type WritableModuleRequest struct {
- Device int32 `json:"device"`
- ModuleBay int32 `json:"module_bay"`
- ModuleType int32 `json:"module_type"`
- Status *ModuleStatusValue `json:"status,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Device DeviceRequest `json:"device"`
+ ModuleBay int32 `json:"module_bay"`
+ ModuleType ModuleTypeRequest `json:"module_type"`
+ Status *PatchedWritableModuleRequestStatus `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"`
@@ -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 int32, moduleBay int32, moduleType int32) *WritableModuleRequest {
+func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *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() int32 {
+func (o *WritableModuleRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,7 +76,7 @@ func (o *WritableModuleRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableModuleRequest) SetDevice(v int32) {
+func (o *WritableModuleRequest) SetDevice(v DeviceRequest) {
o.Device = v
}
@@ -105,9 +105,9 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) {
}
// GetModuleType returns the ModuleType field value
-func (o *WritableModuleRequest) GetModuleType() int32 {
+func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest {
if o == nil {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
@@ -116,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() int32 {
// GetModuleTypeOk returns a tuple with the ModuleType field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleRequest) GetModuleTypeOk() (*int32, bool) {
+func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -124,14 +124,14 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*int32, bool) {
}
// SetModuleType sets field value
-func (o *WritableModuleRequest) SetModuleType(v int32) {
+func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType = v
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableModuleRequest) GetStatus() ModuleStatusValue {
+func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
+ var ret PatchedWritableModuleRequestStatus
return ret
}
return *o.Status
@@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() ModuleStatusValue {
// 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() (*ModuleStatusValue, bool) {
+func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -155,8 +155,8 @@ func (o *WritableModuleRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
-func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field.
+func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) {
o.Status = &v
}
diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go
index c016bc8f44..a321613feb 100644
--- a/model_writable_module_type_request.go
+++ b/model_writable_module_type_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,16 +20,16 @@ var _ MappedNullable = &WritableModuleTypeRequest{}
// WritableModuleTypeRequest Adds support for custom fields and tags.
type WritableModuleTypeRequest struct {
- Manufacturer int32 `json:"manufacturer"`
- Model string `json:"model"`
+ Manufacturer ManufacturerRequest `json:"manufacturer"`
+ Model string `json:"model"`
// Discrete part number (optional)
- PartNumber *string `json:"part_number,omitempty"`
- Weight NullableFloat64 `json:"weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `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"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -39,7 +39,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 int32, model string) *WritableModuleTypeRequest {
+func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest {
this := WritableModuleTypeRequest{}
this.Manufacturer = manufacturer
this.Model = model
@@ -55,9 +55,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest {
}
// GetManufacturer returns the Manufacturer field value
-func (o *WritableModuleTypeRequest) GetManufacturer() int32 {
+func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest {
if o == nil {
- var ret int32
+ var ret ManufacturerRequest
return ret
}
@@ -66,7 +66,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() int32 {
// GetManufacturerOk returns a tuple with the Manufacturer field value
// and a boolean to check if the value has been set.
-func (o *WritableModuleTypeRequest) GetManufacturerOk() (*int32, bool) {
+func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) {
if o == nil {
return nil, false
}
@@ -74,7 +74,7 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*int32, bool) {
}
// SetManufacturer sets field value
-func (o *WritableModuleTypeRequest) SetManufacturer(v int32) {
+func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) {
o.Manufacturer = v
}
@@ -178,9 +178,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -188,7 +188,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -204,8 +204,8 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_writable_object_permission_request.go b/model_writable_object_permission_request.go
deleted file mode 100644
index c4cbe383ec..0000000000
--- a/model_writable_object_permission_request.go
+++ /dev/null
@@ -1,412 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableObjectPermissionRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableObjectPermissionRequest{}
-
-// WritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableObjectPermissionRequest struct {
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Enabled *bool `json:"enabled,omitempty"`
- ObjectTypes []string `json:"object_types"`
- Groups []int32 `json:"groups,omitempty"`
- Users []int32 `json:"users,omitempty"`
- // The list of actions granted by this permission
- Actions []string `json:"actions"`
- // Queryset filter matching the applicable objects of the selected type(s)
- Constraints interface{} `json:"constraints,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableObjectPermissionRequest WritableObjectPermissionRequest
-
-// NewWritableObjectPermissionRequest instantiates a new WritableObjectPermissionRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableObjectPermissionRequest(name string, objectTypes []string, actions []string) *WritableObjectPermissionRequest {
- this := WritableObjectPermissionRequest{}
- this.Name = name
- this.ObjectTypes = objectTypes
- this.Actions = actions
- return &this
-}
-
-// NewWritableObjectPermissionRequestWithDefaults instantiates a new WritableObjectPermissionRequest object
-// This 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 NewWritableObjectPermissionRequestWithDefaults() *WritableObjectPermissionRequest {
- this := WritableObjectPermissionRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableObjectPermissionRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetEnabled returns the Enabled field value if set, zero value otherwise.
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetEnabled(v bool) {
- o.Enabled = &v
-}
-
-// GetObjectTypes returns the ObjectTypes field value
-func (o *WritableObjectPermissionRequest) GetObjectTypes() []string {
- if o == nil {
- var ret []string
- return ret
- }
-
- return o.ObjectTypes
-}
-
-// GetObjectTypesOk returns a tuple with the ObjectTypes field value
-// and a boolean to check if the value has been set.
-func (o *WritableObjectPermissionRequest) GetObjectTypesOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.ObjectTypes, true
-}
-
-// SetObjectTypes sets field value
-func (o *WritableObjectPermissionRequest) SetObjectTypes(v []string) {
- o.ObjectTypes = v
-}
-
-// GetGroups returns the Groups field value if set, zero value otherwise.
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetGroups(v []int32) {
- o.Groups = v
-}
-
-// GetUsers returns the Users field value if set, zero value otherwise.
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) SetUsers(v []int32) {
- o.Users = v
-}
-
-// GetActions returns the Actions field value
-func (o *WritableObjectPermissionRequest) GetActions() []string {
- if o == nil {
- var ret []string
- return ret
- }
-
- return o.Actions
-}
-
-// GetActionsOk returns a tuple with the Actions field value
-// and a boolean to check if the value has been set.
-func (o *WritableObjectPermissionRequest) GetActionsOk() ([]string, bool) {
- if o == nil {
- return nil, false
- }
- return o.Actions, true
-}
-
-// SetActions sets field value
-func (o *WritableObjectPermissionRequest) 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 *WritableObjectPermissionRequest) GetConstraints() interface{} {
- if o == nil {
- var ret interface{}
- return ret
- }
- return o.Constraints
-}
-
-// GetConstraintsOk returns a tuple with the Constraints field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableObjectPermissionRequest) GetConstraintsOk() (*interface{}, bool) {
- if o == nil || IsNil(o.Constraints) {
- return nil, false
- }
- return &o.Constraints, true
-}
-
-// HasConstraints returns a boolean if a field has been set.
-func (o *WritableObjectPermissionRequest) HasConstraints() bool {
- if o != nil && !IsNil(o.Constraints) {
- return true
- }
-
- return false
-}
-
-// SetConstraints gets a reference to the given interface{} and assigns it to the Constraints field.
-func (o *WritableObjectPermissionRequest) SetConstraints(v interface{}) {
- o.Constraints = v
-}
-
-func (o WritableObjectPermissionRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableObjectPermissionRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- if !IsNil(o.Enabled) {
- toSerialize["enabled"] = o.Enabled
- }
- toSerialize["object_types"] = o.ObjectTypes
- if !IsNil(o.Groups) {
- toSerialize["groups"] = o.Groups
- }
- if !IsNil(o.Users) {
- toSerialize["users"] = o.Users
- }
- toSerialize["actions"] = o.Actions
- if o.Constraints != nil {
- toSerialize["constraints"] = o.Constraints
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableObjectPermissionRequest) 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",
- "object_types",
- "actions",
- }
-
- 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)
- }
- }
-
- varWritableObjectPermissionRequest := _WritableObjectPermissionRequest{}
-
- err = json.Unmarshal(data, &varWritableObjectPermissionRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableObjectPermissionRequest(varWritableObjectPermissionRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "description")
- delete(additionalProperties, "enabled")
- delete(additionalProperties, "object_types")
- delete(additionalProperties, "groups")
- delete(additionalProperties, "users")
- delete(additionalProperties, "actions")
- delete(additionalProperties, "constraints")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableObjectPermissionRequest struct {
- value *WritableObjectPermissionRequest
- isSet bool
-}
-
-func (v NullableWritableObjectPermissionRequest) Get() *WritableObjectPermissionRequest {
- return v.value
-}
-
-func (v *NullableWritableObjectPermissionRequest) Set(val *WritableObjectPermissionRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableObjectPermissionRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableObjectPermissionRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableObjectPermissionRequest(val *WritableObjectPermissionRequest) *NullableWritableObjectPermissionRequest {
- return &NullableWritableObjectPermissionRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableObjectPermissionRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableObjectPermissionRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_platform_request.go b/model_writable_platform_request.go
deleted file mode 100644
index affb3d62b7..0000000000
--- a/model_writable_platform_request.go
+++ /dev/null
@@ -1,403 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritablePlatformRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritablePlatformRequest{}
-
-// WritablePlatformRequest Adds support for custom fields and tags.
-type WritablePlatformRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- // Optionally limit this platform to devices of a certain manufacturer
- Manufacturer NullableInt32 `json:"manufacturer,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
- Description *string `json:"description,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritablePlatformRequest WritablePlatformRequest
-
-// NewWritablePlatformRequest instantiates a new WritablePlatformRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritablePlatformRequest(name string, slug string) *WritablePlatformRequest {
- this := WritablePlatformRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewWritablePlatformRequestWithDefaults instantiates a new WritablePlatformRequest object
-// This 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 NewWritablePlatformRequestWithDefaults() *WritablePlatformRequest {
- this := WritablePlatformRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritablePlatformRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) GetManufacturer() int32 {
- if o == nil || IsNil(o.Manufacturer.Get()) {
- var ret int32
- 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 *WritablePlatformRequest) GetManufacturerOk() (*int32, 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 *WritablePlatformRequest) HasManufacturer() bool {
- if o != nil && o.Manufacturer.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetManufacturer gets a reference to the given NullableInt32 and assigns it to the Manufacturer field.
-func (o *WritablePlatformRequest) SetManufacturer(v int32) {
- o.Manufacturer.Set(&v)
-}
-
-// SetManufacturerNil sets the value for Manufacturer to be an explicit nil
-func (o *WritablePlatformRequest) SetManufacturerNil() {
- o.Manufacturer.Set(nil)
-}
-
-// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) GetConfigTemplate() int32 {
- if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
- return ret
- }
- return *o.ConfigTemplate.Get()
-}
-
-// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePlatformRequest) GetConfigTemplateOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet()
-}
-
-// HasConfigTemplate returns a boolean if a field has been set.
-func (o *WritablePlatformRequest) HasConfigTemplate() bool {
- if o != nil && o.ConfigTemplate.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *WritablePlatformRequest) SetConfigTemplate(v int32) {
- o.ConfigTemplate.Set(&v)
-}
-
-// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil
-func (o *WritablePlatformRequest) SetConfigTemplateNil() {
- o.ConfigTemplate.Set(nil)
-}
-
-// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil
-func (o *WritablePlatformRequest) UnsetConfigTemplate() {
- o.ConfigTemplate.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) 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 *WritablePlatformRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritablePlatformRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritablePlatformRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritablePlatformRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritablePlatformRequest := _WritablePlatformRequest{}
-
- err = json.Unmarshal(data, &varWritablePlatformRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritablePlatformRequest(varWritablePlatformRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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
- }
-
- return err
-}
-
-type NullableWritablePlatformRequest struct {
- value *WritablePlatformRequest
- isSet bool
-}
-
-func (v NullableWritablePlatformRequest) Get() *WritablePlatformRequest {
- return v.value
-}
-
-func (v *NullableWritablePlatformRequest) Set(val *WritablePlatformRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritablePlatformRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritablePlatformRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritablePlatformRequest(val *WritablePlatformRequest) *NullableWritablePlatformRequest {
- return &NullableWritablePlatformRequest{value: val, isSet: true}
-}
-
-func (v NullableWritablePlatformRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritablePlatformRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go
index 92d9add905..3a6fcef64d 100644
--- a/model_writable_power_feed_request.go
+++ b/model_writable_power_feed_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerFeedRequest{}
// WritablePowerFeedRequest Adds support for custom fields and tags.
type WritablePowerFeedRequest struct {
- PowerPanel int32 `json:"power_panel"`
- Rack NullableInt32 `json:"rack,omitempty"`
+ PowerPanel PowerPanelRequest `json:"power_panel"`
+ Rack NullableRackRequest `json:"rack,omitempty"`
Name string `json:"name"`
Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"`
Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"`
@@ -34,7 +34,7 @@ type WritablePowerFeedRequest struct {
// Treat as if a cable is connected
MarkConnected *bool `json:"mark_connected,omitempty"`
Description *string `json:"description,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -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 int32, name string) *WritablePowerFeedRequest {
+func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, 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() int32 {
+func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest {
if o == nil {
- var ret int32
+ var ret PowerPanelRequest
return ret
}
@@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() int32 {
// GetPowerPanelOk returns a tuple with the PowerPanel field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*int32, bool) {
+func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) {
if o == nil {
return nil, false
}
@@ -82,14 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*int32, bool) {
}
// SetPowerPanel sets field value
-func (o *WritablePowerFeedRequest) SetPowerPanel(v int32) {
+func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) {
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() int32 {
+func (o *WritablePowerFeedRequest) GetRack() RackRequest {
if o == nil || IsNil(o.Rack.Get()) {
- var ret int32
+ var ret RackRequest
return ret
}
return *o.Rack.Get()
@@ -98,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) {
if o == nil {
return nil, false
}
@@ -114,8 +114,8 @@ func (o *WritablePowerFeedRequest) HasRack() bool {
return false
}
-// SetRack gets a reference to the given NullableInt32 and assigns it to the Rack field.
-func (o *WritablePowerFeedRequest) SetRack(v int32) {
+// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field.
+func (o *WritablePowerFeedRequest) SetRack(v RackRequest) {
o.Rack.Set(&v)
}
@@ -442,9 +442,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() int32 {
+func (o *WritablePowerFeedRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -453,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() int32 {
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritablePowerFeedRequest) GetTenantOk() (*int32, bool) {
+func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -469,8 +469,8 @@ func (o *WritablePowerFeedRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritablePowerFeedRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go
index 90193e2ed8..024131d9b7 100644
--- a/model_writable_power_outlet_request.go
+++ b/model_writable_power_outlet_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,13 @@ var _ MappedNullable = &WritablePowerOutletRequest{}
// WritablePowerOutletRequest Adds support for custom fields and tags.
type WritablePowerOutletRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"`
- PowerPort NullableInt32 `json:"power_port,omitempty"`
+ PowerPort NullablePowerPortRequest `json:"power_port,omitempty"`
FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"`
Description *string `json:"description,omitempty"`
// Treat as if a cable is connected
@@ -42,7 +42,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 int32, name string) *WritablePowerOutletRequest {
+func NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest {
this := WritablePowerOutletRequest{}
this.Device = device
this.Name = name
@@ -58,9 +58,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest {
}
// GetDevice returns the Device field value
-func (o *WritablePowerOutletRequest) GetDevice() int32 {
+func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -69,7 +69,7 @@ func (o *WritablePowerOutletRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerOutletRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -77,14 +77,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritablePowerOutletRequest) SetDevice(v int32) {
+func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritablePowerOutletRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -93,7 +93,7 @@ func (o *WritablePowerOutletRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -109,8 +109,8 @@ func (o *WritablePowerOutletRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritablePowerOutletRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
@@ -213,9 +213,9 @@ func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequest
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletRequest) GetPowerPort() int32 {
+func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret int32
+ var ret PowerPortRequest
return ret
}
return *o.PowerPort.Get()
@@ -224,7 +224,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +240,8 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableInt32 and assigns it to the PowerPort field.
-func (o *WritablePowerOutletRequest) SetPowerPort(v int32) {
+// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field.
+func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go
index 86ab19892a..d74116d275 100644
--- a/model_writable_power_outlet_template_request.go
+++ b/model_writable_power_outlet_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,14 +20,14 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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 NullableInt32 `json:"power_port,omitempty"`
+ PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"`
FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `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() int32 {
+func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -81,8 +81,8 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -97,9 +97,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() int32 {
+func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -108,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -124,8 +124,8 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritablePowerOutletTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
@@ -228,9 +228,9 @@ func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutle
}
// GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePowerOutletTemplateRequest) GetPowerPort() int32 {
+func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest {
if o == nil || IsNil(o.PowerPort.Get()) {
- var ret int32
+ var ret PowerPortTemplateRequest
return ret
}
return *o.PowerPort.Get()
@@ -239,7 +239,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -255,8 +255,8 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool {
return false
}
-// SetPowerPort gets a reference to the given NullableInt32 and assigns it to the PowerPort field.
-func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v int32) {
+// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field.
+func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) {
o.PowerPort.Set(&v)
}
diff --git a/model_writable_power_panel_request.go b/model_writable_power_panel_request.go
deleted file mode 100644
index 6004735d02..0000000000
--- a/model_writable_power_panel_request.go
+++ /dev/null
@@ -1,391 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritablePowerPanelRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritablePowerPanelRequest{}
-
-// WritablePowerPanelRequest Adds support for custom fields and tags.
-type WritablePowerPanelRequest struct {
- Site int32 `json:"site"`
- Location NullableInt32 `json:"location,omitempty"`
- Name string `json:"name"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritablePowerPanelRequest WritablePowerPanelRequest
-
-// NewWritablePowerPanelRequest instantiates a new WritablePowerPanelRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritablePowerPanelRequest(site int32, name string) *WritablePowerPanelRequest {
- this := WritablePowerPanelRequest{}
- this.Site = site
- this.Name = name
- return &this
-}
-
-// NewWritablePowerPanelRequestWithDefaults instantiates a new WritablePowerPanelRequest object
-// This 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 NewWritablePowerPanelRequestWithDefaults() *WritablePowerPanelRequest {
- this := WritablePowerPanelRequest{}
- return &this
-}
-
-// GetSite returns the Site field value
-func (o *WritablePowerPanelRequest) GetSite() int32 {
- if o == nil {
- var ret int32
- 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 *WritablePowerPanelRequest) GetSiteOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Site, true
-}
-
-// SetSite sets field value
-func (o *WritablePowerPanelRequest) SetSite(v int32) {
- 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 *WritablePowerPanelRequest) GetLocation() int32 {
- if o == nil || IsNil(o.Location.Get()) {
- var ret int32
- 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 *WritablePowerPanelRequest) GetLocationOk() (*int32, 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 *WritablePowerPanelRequest) HasLocation() bool {
- if o != nil && o.Location.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *WritablePowerPanelRequest) SetLocation(v int32) {
- o.Location.Set(&v)
-}
-
-// SetLocationNil sets the value for Location to be an explicit nil
-func (o *WritablePowerPanelRequest) SetLocationNil() {
- o.Location.Set(nil)
-}
-
-// UnsetLocation ensures that no value is present for Location, not even an explicit nil
-func (o *WritablePowerPanelRequest) UnsetLocation() {
- o.Location.Unset()
-}
-
-// GetName returns the Name field value
-func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritablePowerPanelRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) 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 *WritablePowerPanelRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritablePowerPanelRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritablePowerPanelRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritablePowerPanelRequest) 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{
- "site",
- "name",
- }
-
- 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)
- }
- }
-
- varWritablePowerPanelRequest := _WritablePowerPanelRequest{}
-
- err = json.Unmarshal(data, &varWritablePowerPanelRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritablePowerPanelRequest(varWritablePowerPanelRequest)
-
- 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
- }
-
- return err
-}
-
-type NullableWritablePowerPanelRequest struct {
- value *WritablePowerPanelRequest
- isSet bool
-}
-
-func (v NullableWritablePowerPanelRequest) Get() *WritablePowerPanelRequest {
- return v.value
-}
-
-func (v *NullableWritablePowerPanelRequest) Set(val *WritablePowerPanelRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritablePowerPanelRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritablePowerPanelRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritablePowerPanelRequest(val *WritablePowerPanelRequest) *NullableWritablePowerPanelRequest {
- return &NullableWritablePowerPanelRequest{value: val, isSet: true}
-}
-
-func (v NullableWritablePowerPanelRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritablePowerPanelRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go
index 0b31bb4ac8..1634269d89 100644
--- a/model_writable_power_port_request.go
+++ b/model_writable_power_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &WritablePowerPortRequest{}
// WritablePowerPortRequest Adds support for custom fields and tags.
type WritablePowerPortRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"`
@@ -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 int32, name string) *WritablePowerPortRequest {
+func NewWritablePowerPortRequest(device DeviceRequest, 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() int32 {
+func (o *WritablePowerPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritablePowerPortRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritablePowerPortRequest) SetDevice(v int32) {
+func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritablePowerPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -95,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -111,8 +111,8 @@ func (o *WritablePowerPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritablePowerPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go
index 32443dcee4..0f35c5336a 100644
--- a/model_writable_power_port_template_request.go
+++ b/model_writable_power_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -83,8 +83,8 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritablePowerPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -99,9 +99,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() int32 {
+func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -110,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -126,8 +126,8 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritablePowerPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go
index 14f7d0c4d0..2b7bd6bba7 100644
--- a/model_writable_prefix_request.go
+++ b/model_writable_prefix_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,13 +21,12 @@ var _ MappedNullable = &WritablePrefixRequest{}
// WritablePrefixRequest Adds support for custom fields and tags.
type WritablePrefixRequest struct {
Prefix string `json:"prefix"`
- Site NullableInt32 `json:"site,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
+ Site NullableSiteRequest `json:"site,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
+ Vlan NullableVLANRequest `json:"vlan,omitempty"`
Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"`
- // The primary function of this prefix
- Role NullableInt32 `json:"role,omitempty"`
+ Role NullableRoleRequest `json:"role,omitempty"`
// All IP addresses within this prefix are considered usable
IsPool *bool `json:"is_pool,omitempty"`
// Treat as fully utilized
@@ -84,9 +83,9 @@ func (o *WritablePrefixRequest) SetPrefix(v string) {
}
// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetSite() int32 {
+func (o *WritablePrefixRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -95,7 +94,7 @@ func (o *WritablePrefixRequest) GetSite() int32 {
// 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 *WritablePrefixRequest) GetSiteOk() (*int32, bool) {
+func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -111,8 +110,8 @@ func (o *WritablePrefixRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *WritablePrefixRequest) SetSite(v int32) {
+// 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)
}
@@ -127,9 +126,9 @@ func (o *WritablePrefixRequest) UnsetSite() {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetVrf() int32 {
+func (o *WritablePrefixRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -138,7 +137,7 @@ func (o *WritablePrefixRequest) GetVrf() int32 {
// 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) GetVrfOk() (*int32, bool) {
+func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -154,8 +153,8 @@ func (o *WritablePrefixRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *WritablePrefixRequest) SetVrf(v int32) {
+// 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)
}
@@ -170,9 +169,9 @@ func (o *WritablePrefixRequest) UnsetVrf() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritablePrefixRequest) GetTenant() int32 {
+func (o *WritablePrefixRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -181,7 +180,7 @@ func (o *WritablePrefixRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -197,8 +196,8 @@ func (o *WritablePrefixRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritablePrefixRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritablePrefixRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -213,9 +212,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() int32 {
+func (o *WritablePrefixRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -224,7 +223,7 @@ func (o *WritablePrefixRequest) GetVlan() int32 {
// 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() (*int32, bool) {
+func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *WritablePrefixRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableInt32 and assigns it to the Vlan field.
-func (o *WritablePrefixRequest) SetVlan(v int32) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *WritablePrefixRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -288,9 +287,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() int32 {
+func (o *WritablePrefixRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -299,7 +298,7 @@ func (o *WritablePrefixRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -315,8 +314,8 @@ func (o *WritablePrefixRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritablePrefixRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *WritablePrefixRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_writable_provider_account_request.go b/model_writable_provider_account_request.go
deleted file mode 100644
index 0b7bb2a4e2..0000000000
--- a/model_writable_provider_account_request.go
+++ /dev/null
@@ -1,380 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableProviderAccountRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableProviderAccountRequest{}
-
-// WritableProviderAccountRequest Adds support for custom fields and tags.
-type WritableProviderAccountRequest struct {
- Provider int32 `json:"provider"`
- Name *string `json:"name,omitempty"`
- Account string `json:"account"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableProviderAccountRequest WritableProviderAccountRequest
-
-// NewWritableProviderAccountRequest instantiates a new WritableProviderAccountRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableProviderAccountRequest(provider int32, account string) *WritableProviderAccountRequest {
- this := WritableProviderAccountRequest{}
- this.Provider = provider
- this.Account = account
- return &this
-}
-
-// NewWritableProviderAccountRequestWithDefaults instantiates a new WritableProviderAccountRequest object
-// This 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 NewWritableProviderAccountRequestWithDefaults() *WritableProviderAccountRequest {
- this := WritableProviderAccountRequest{}
- return &this
-}
-
-// GetProvider returns the Provider field value
-func (o *WritableProviderAccountRequest) GetProvider() int32 {
- if o == nil {
- var ret int32
- 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 *WritableProviderAccountRequest) GetProviderOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *WritableProviderAccountRequest) SetProvider(v int32) {
- o.Provider = v
-}
-
-// GetName returns the Name field value if set, zero value otherwise.
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) SetName(v string) {
- o.Name = &v
-}
-
-// GetAccount returns the Account field value
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) GetAccountOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Account, true
-}
-
-// SetAccount sets field value
-func (o *WritableProviderAccountRequest) SetAccount(v string) {
- o.Account = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) 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 *WritableProviderAccountRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableProviderAccountRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableProviderAccountRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["provider"] = o.Provider
- if !IsNil(o.Name) {
- toSerialize["name"] = o.Name
- }
- toSerialize["account"] = o.Account
- 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 *WritableProviderAccountRequest) 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{
- "provider",
- "account",
- }
-
- 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)
- }
- }
-
- varWritableProviderAccountRequest := _WritableProviderAccountRequest{}
-
- err = json.Unmarshal(data, &varWritableProviderAccountRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableProviderAccountRequest(varWritableProviderAccountRequest)
-
- 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
- }
-
- return err
-}
-
-type NullableWritableProviderAccountRequest struct {
- value *WritableProviderAccountRequest
- isSet bool
-}
-
-func (v NullableWritableProviderAccountRequest) Get() *WritableProviderAccountRequest {
- return v.value
-}
-
-func (v *NullableWritableProviderAccountRequest) Set(val *WritableProviderAccountRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableProviderAccountRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableProviderAccountRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableProviderAccountRequest(val *WritableProviderAccountRequest) *NullableWritableProviderAccountRequest {
- return &NullableWritableProviderAccountRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableProviderAccountRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableProviderAccountRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_provider_network_request.go b/model_writable_provider_network_request.go
deleted file mode 100644
index b4299b47e6..0000000000
--- a/model_writable_provider_network_request.go
+++ /dev/null
@@ -1,380 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableProviderNetworkRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableProviderNetworkRequest{}
-
-// WritableProviderNetworkRequest Adds support for custom fields and tags.
-type WritableProviderNetworkRequest struct {
- Provider int32 `json:"provider"`
- Name string `json:"name"`
- ServiceId *string `json:"service_id,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableProviderNetworkRequest WritableProviderNetworkRequest
-
-// NewWritableProviderNetworkRequest instantiates a new WritableProviderNetworkRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableProviderNetworkRequest(provider int32, name string) *WritableProviderNetworkRequest {
- this := WritableProviderNetworkRequest{}
- this.Provider = provider
- this.Name = name
- return &this
-}
-
-// NewWritableProviderNetworkRequestWithDefaults instantiates a new WritableProviderNetworkRequest object
-// This 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 NewWritableProviderNetworkRequestWithDefaults() *WritableProviderNetworkRequest {
- this := WritableProviderNetworkRequest{}
- return &this
-}
-
-// GetProvider returns the Provider field value
-func (o *WritableProviderNetworkRequest) GetProvider() int32 {
- if o == nil {
- var ret int32
- 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 *WritableProviderNetworkRequest) GetProviderOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Provider, true
-}
-
-// SetProvider sets field value
-func (o *WritableProviderNetworkRequest) SetProvider(v int32) {
- o.Provider = v
-}
-
-// GetName returns the Name field value
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableProviderNetworkRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetServiceId returns the ServiceId field value if set, zero value otherwise.
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetServiceId(v string) {
- o.ServiceId = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) 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 *WritableProviderNetworkRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableProviderNetworkRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableProviderNetworkRequest) 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{
- "provider",
- "name",
- }
-
- 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)
- }
- }
-
- varWritableProviderNetworkRequest := _WritableProviderNetworkRequest{}
-
- err = json.Unmarshal(data, &varWritableProviderNetworkRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableProviderNetworkRequest(varWritableProviderNetworkRequest)
-
- 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
- }
-
- return err
-}
-
-type NullableWritableProviderNetworkRequest struct {
- value *WritableProviderNetworkRequest
- isSet bool
-}
-
-func (v NullableWritableProviderNetworkRequest) Get() *WritableProviderNetworkRequest {
- return v.value
-}
-
-func (v *NullableWritableProviderNetworkRequest) Set(val *WritableProviderNetworkRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableProviderNetworkRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableProviderNetworkRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableProviderNetworkRequest(val *WritableProviderNetworkRequest) *NullableWritableProviderNetworkRequest {
- return &NullableWritableProviderNetworkRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableProviderNetworkRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableProviderNetworkRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_provider_request.go b/model_writable_provider_request.go
deleted file mode 100644
index 0ee585d01c..0000000000
--- a/model_writable_provider_request.go
+++ /dev/null
@@ -1,410 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableProviderRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableProviderRequest{}
-
-// WritableProviderRequest Adds support for custom fields and tags.
-type WritableProviderRequest struct {
- // Full name of the provider
- Name string `json:"name"`
- Slug string `json:"slug"`
- Accounts []int32 `json:"accounts"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Asns []int32 `json:"asns,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableProviderRequest WritableProviderRequest
-
-// NewWritableProviderRequest instantiates a new WritableProviderRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableProviderRequest(name string, slug string, accounts []int32) *WritableProviderRequest {
- this := WritableProviderRequest{}
- this.Name = name
- this.Slug = slug
- this.Accounts = accounts
- return &this
-}
-
-// NewWritableProviderRequestWithDefaults instantiates a new WritableProviderRequest object
-// This 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 NewWritableProviderRequestWithDefaults() *WritableProviderRequest {
- this := WritableProviderRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableProviderRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *WritableProviderRequest) SetSlug(v string) {
- o.Slug = v
-}
-
-// GetAccounts returns the Accounts field value
-func (o *WritableProviderRequest) GetAccounts() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Accounts
-}
-
-// GetAccountsOk returns a tuple with the Accounts field value
-// and a boolean to check if the value has been set.
-func (o *WritableProviderRequest) GetAccountsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Accounts, true
-}
-
-// SetAccounts sets field value
-func (o *WritableProviderRequest) SetAccounts(v []int32) {
- o.Accounts = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetAsns returns the Asns field value if set, zero value otherwise.
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) SetAsns(v []int32) {
- o.Asns = v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) 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 *WritableProviderRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableProviderRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableProviderRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- toSerialize["slug"] = o.Slug
- 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableProviderRequest) 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",
- "accounts",
- }
-
- 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)
- }
- }
-
- varWritableProviderRequest := _WritableProviderRequest{}
-
- err = json.Unmarshal(data, &varWritableProviderRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableProviderRequest(varWritableProviderRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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
- }
-
- return err
-}
-
-type NullableWritableProviderRequest struct {
- value *WritableProviderRequest
- isSet bool
-}
-
-func (v NullableWritableProviderRequest) Get() *WritableProviderRequest {
- return v.value
-}
-
-func (v *NullableWritableProviderRequest) Set(val *WritableProviderRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableProviderRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableProviderRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableProviderRequest(val *WritableProviderRequest) *NullableWritableProviderRequest {
- return &NullableWritableProviderRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableProviderRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableProviderRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go
index 1e04d3a412..fd0dcb9245 100644
--- a/model_writable_rack_request.go
+++ b/model_writable_rack_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,13 +22,12 @@ var _ MappedNullable = &WritableRackRequest{}
type WritableRackRequest struct {
Name string `json:"name"`
FacilityId NullableString `json:"facility_id,omitempty"`
- Site int32 `json:"site"`
- Location NullableInt32 `json:"location,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ Site SiteRequest `json:"site"`
+ Location NullableLocationRequest `json:"location,omitempty"`
+ Tenant NullableTenantRequest `json:"tenant,omitempty"`
Status *PatchedWritableRackRequestStatus `json:"status,omitempty"`
- // Functional role
- Role NullableInt32 `json:"role,omitempty"`
- Serial *string `json:"serial,omitempty"`
+ Role NullableRackRoleRequest `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"`
@@ -39,8 +38,8 @@ type WritableRackRequest struct {
StartingUnit *int32 `json:"starting_unit,omitempty"`
Weight NullableFloat64 `json:"weight,omitempty"`
// Maximum load capacity for the rack
- MaxWeight NullableInt32 `json:"max_weight,omitempty"`
- WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"`
+ MaxWeight NullableInt32 `json:"max_weight,omitempty"`
+ WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"`
// Units are numbered top-to-bottom
DescUnits *bool `json:"desc_units,omitempty"`
// Outer dimension of rack (width)
@@ -63,7 +62,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 int32) *WritableRackRequest {
+func NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest {
this := WritableRackRequest{}
this.Name = name
this.Site = site
@@ -146,9 +145,9 @@ func (o *WritableRackRequest) UnsetFacilityId() {
}
// GetSite returns the Site field value
-func (o *WritableRackRequest) GetSite() int32 {
+func (o *WritableRackRequest) GetSite() SiteRequest {
if o == nil {
- var ret int32
+ var ret SiteRequest
return ret
}
@@ -157,7 +156,7 @@ func (o *WritableRackRequest) GetSite() int32 {
// GetSiteOk returns a tuple with the Site field value
// and a boolean to check if the value has been set.
-func (o *WritableRackRequest) GetSiteOk() (*int32, bool) {
+func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -165,14 +164,14 @@ func (o *WritableRackRequest) GetSiteOk() (*int32, bool) {
}
// SetSite sets field value
-func (o *WritableRackRequest) SetSite(v int32) {
+func (o *WritableRackRequest) SetSite(v SiteRequest) {
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() int32 {
+func (o *WritableRackRequest) GetLocation() LocationRequest {
if o == nil || IsNil(o.Location.Get()) {
- var ret int32
+ var ret LocationRequest
return ret
}
return *o.Location.Get()
@@ -181,7 +180,7 @@ func (o *WritableRackRequest) GetLocation() int32 {
// 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() (*int32, bool) {
+func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) {
if o == nil {
return nil, false
}
@@ -197,8 +196,8 @@ func (o *WritableRackRequest) HasLocation() bool {
return false
}
-// SetLocation gets a reference to the given NullableInt32 and assigns it to the Location field.
-func (o *WritableRackRequest) SetLocation(v int32) {
+// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field.
+func (o *WritableRackRequest) SetLocation(v LocationRequest) {
o.Location.Set(&v)
}
@@ -213,9 +212,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() int32 {
+func (o *WritableRackRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -224,7 +223,7 @@ func (o *WritableRackRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -240,8 +239,8 @@ func (o *WritableRackRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableRackRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableRackRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -288,9 +287,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() int32 {
+func (o *WritableRackRequest) GetRole() RackRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RackRoleRequest
return ret
}
return *o.Role.Get()
@@ -299,7 +298,7 @@ func (o *WritableRackRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -315,8 +314,8 @@ func (o *WritableRackRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritableRackRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field.
+func (o *WritableRackRequest) SetRole(v RackRoleRequest) {
o.Role.Set(&v)
}
@@ -620,9 +619,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() {
}
// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise.
-func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
+func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit {
if o == nil || IsNil(o.WeightUnit) {
- var ret DeviceTypeWeightUnitValue
+ var ret PatchedWritableDeviceTypeRequestWeightUnit
return ret
}
return *o.WeightUnit
@@ -630,7 +629,7 @@ func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue {
// 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() (*DeviceTypeWeightUnitValue, bool) {
+func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) {
if o == nil || IsNil(o.WeightUnit) {
return nil, false
}
@@ -646,8 +645,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool {
return false
}
-// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field.
-func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) {
+// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field.
+func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) {
o.WeightUnit = &v
}
diff --git a/model_writable_rack_reservation_request.go b/model_writable_rack_reservation_request.go
deleted file mode 100644
index c58e981aa5..0000000000
--- a/model_writable_rack_reservation_request.go
+++ /dev/null
@@ -1,412 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableRackReservationRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableRackReservationRequest{}
-
-// WritableRackReservationRequest Adds support for custom fields and tags.
-type WritableRackReservationRequest struct {
- Rack int32 `json:"rack"`
- Units []int32 `json:"units"`
- User int32 `json:"user"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Description string `json:"description"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableRackReservationRequest WritableRackReservationRequest
-
-// NewWritableRackReservationRequest instantiates a new WritableRackReservationRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableRackReservationRequest(rack int32, units []int32, user int32, description string) *WritableRackReservationRequest {
- this := WritableRackReservationRequest{}
- this.Rack = rack
- this.Units = units
- this.User = user
- this.Description = description
- return &this
-}
-
-// NewWritableRackReservationRequestWithDefaults instantiates a new WritableRackReservationRequest object
-// This 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 NewWritableRackReservationRequestWithDefaults() *WritableRackReservationRequest {
- this := WritableRackReservationRequest{}
- return &this
-}
-
-// GetRack returns the Rack field value
-func (o *WritableRackReservationRequest) GetRack() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Rack
-}
-
-// GetRackOk returns a tuple with the Rack field value
-// and a boolean to check if the value has been set.
-func (o *WritableRackReservationRequest) GetRackOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Rack, true
-}
-
-// SetRack sets field value
-func (o *WritableRackReservationRequest) SetRack(v int32) {
- o.Rack = v
-}
-
-// GetUnits returns the Units field value
-func (o *WritableRackReservationRequest) GetUnits() []int32 {
- if o == nil {
- var ret []int32
- return ret
- }
-
- return o.Units
-}
-
-// GetUnitsOk returns a tuple with the Units field value
-// and a boolean to check if the value has been set.
-func (o *WritableRackReservationRequest) GetUnitsOk() ([]int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Units, true
-}
-
-// SetUnits sets field value
-func (o *WritableRackReservationRequest) SetUnits(v []int32) {
- o.Units = v
-}
-
-// GetUser returns the User field value
-func (o *WritableRackReservationRequest) GetUser() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.User
-}
-
-// GetUserOk returns a tuple with the User field value
-// and a boolean to check if the value has been set.
-func (o *WritableRackReservationRequest) GetUserOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.User, true
-}
-
-// SetUser sets field value
-func (o *WritableRackReservationRequest) SetUser(v int32) {
- 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 *WritableRackReservationRequest) GetTenant() int32 {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRackReservationRequest) GetTenantOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *WritableRackReservationRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableRackReservationRequest) SetTenant(v int32) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *WritableRackReservationRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *WritableRackReservationRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
-// GetDescription returns the Description field value
-func (o *WritableRackReservationRequest) GetDescription() string {
- if o == nil {
- var ret string
- return ret
- }
-
- return o.Description
-}
-
-// GetDescriptionOk returns a tuple with the Description field value
-// and a boolean to check if the value has been set.
-func (o *WritableRackReservationRequest) GetDescriptionOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Description, true
-}
-
-// SetDescription sets field value
-func (o *WritableRackReservationRequest) SetDescription(v string) {
- o.Description = v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) 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 *WritableRackReservationRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableRackReservationRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableRackReservationRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["rack"] = o.Rack
- toSerialize["units"] = o.Units
- toSerialize["user"] = o.User
- if o.Tenant.IsSet() {
- toSerialize["tenant"] = o.Tenant.Get()
- }
- 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 *WritableRackReservationRequest) 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{
- "rack",
- "units",
- "user",
- "description",
- }
-
- 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)
- }
- }
-
- varWritableRackReservationRequest := _WritableRackReservationRequest{}
-
- err = json.Unmarshal(data, &varWritableRackReservationRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableRackReservationRequest(varWritableRackReservationRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "rack")
- delete(additionalProperties, "units")
- delete(additionalProperties, "user")
- delete(additionalProperties, "tenant")
- delete(additionalProperties, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableRackReservationRequest struct {
- value *WritableRackReservationRequest
- isSet bool
-}
-
-func (v NullableWritableRackReservationRequest) Get() *WritableRackReservationRequest {
- return v.value
-}
-
-func (v *NullableWritableRackReservationRequest) Set(val *WritableRackReservationRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableRackReservationRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableRackReservationRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableRackReservationRequest(val *WritableRackReservationRequest) *NullableWritableRackReservationRequest {
- return &NullableWritableRackReservationRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableRackReservationRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableRackReservationRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go
index 3079a840da..0bd5f8acb0 100644
--- a/model_writable_rear_port_request.go
+++ b/model_writable_rear_port_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,9 +20,9 @@ var _ MappedNullable = &WritableRearPortRequest{}
// WritableRearPortRequest Adds support for custom fields and tags.
type WritableRearPortRequest struct {
- Device int32 `json:"device"`
- Module NullableInt32 `json:"module,omitempty"`
- Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
+ Module NullableModuleRequest `json:"module,omitempty"`
+ Name string `json:"name"`
// Physical label
Label *string `json:"label,omitempty"`
Type FrontPortTypeValue `json:"type"`
@@ -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 int32, name string, type_ FrontPortTypeValue) *WritableRearPortRequest {
+func NewWritableRearPortRequest(device DeviceRequest, 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() int32 {
+func (o *WritableRearPortRequest) GetDevice() DeviceRequest {
if o == nil {
- var ret int32
+ var ret DeviceRequest
return ret
}
@@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() int32 {
// GetDeviceOk returns a tuple with the Device field value
// and a boolean to check if the value has been set.
-func (o *WritableRearPortRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*int32, bool) {
}
// SetDevice sets field value
-func (o *WritableRearPortRequest) SetDevice(v int32) {
+func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) {
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() int32 {
+func (o *WritableRearPortRequest) GetModule() ModuleRequest {
if o == nil || IsNil(o.Module.Get()) {
- var ret int32
+ var ret ModuleRequest
return ret
}
return *o.Module.Get()
@@ -95,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() int32 {
// 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() (*int32, bool) {
+func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) {
if o == nil {
return nil, false
}
@@ -111,8 +111,8 @@ func (o *WritableRearPortRequest) HasModule() bool {
return false
}
-// SetModule gets a reference to the given NullableInt32 and assigns it to the Module field.
-func (o *WritableRearPortRequest) SetModule(v int32) {
+// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field.
+func (o *WritableRearPortRequest) SetModule(v ModuleRequest) {
o.Module.Set(&v)
}
diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go
index a919f8ca98..68e2467e91 100644
--- a/model_writable_rear_port_template_request.go
+++ b/model_writable_rear_port_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,8 +20,8 @@ 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 NullableInt32 `json:"device_type,omitempty"`
- ModuleType NullableInt32 `json:"module_type,omitempty"`
+ DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"`
+ ModuleType NullableModuleTypeRequest `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
@@ -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() int32 {
+func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest {
if o == nil || IsNil(o.DeviceType.Get()) {
- var ret int32
+ var ret DeviceTypeRequest
return ret
}
return *o.DeviceType.Get()
@@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() int32 {
// 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() (*int32, bool) {
+func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -82,8 +82,8 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool {
return false
}
-// SetDeviceType gets a reference to the given NullableInt32 and assigns it to the DeviceType field.
-func (o *WritableRearPortTemplateRequest) SetDeviceType(v int32) {
+// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field.
+func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) {
o.DeviceType.Set(&v)
}
@@ -98,9 +98,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() int32 {
+func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest {
if o == nil || IsNil(o.ModuleType.Get()) {
- var ret int32
+ var ret ModuleTypeRequest
return ret
}
return *o.ModuleType.Get()
@@ -109,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() int32 {
// 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() (*int32, bool) {
+func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) {
if o == nil {
return nil, false
}
@@ -125,8 +125,8 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool {
return false
}
-// SetModuleType gets a reference to the given NullableInt32 and assigns it to the ModuleType field.
-func (o *WritableRearPortTemplateRequest) SetModuleType(v int32) {
+// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field.
+func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) {
o.ModuleType.Set(&v)
}
diff --git a/model_writable_region_request.go b/model_writable_region_request.go
index 0af093f1bc..10e3c56c26 100644
--- a/model_writable_region_request.go
+++ b/model_writable_region_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ var _ MappedNullable = &WritableRegionRequest{}
type WritableRegionRequest struct {
Name string `json:"name"`
Slug string `json:"slug"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Parent NullableInt32 `json:"parent"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -35,10 +35,11 @@ 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) *WritableRegionRequest {
+func NewWritableRegionRequest(name string, slug string, parent NullableInt32) *WritableRegionRequest {
this := WritableRegionRequest{}
this.Name = name
this.Slug = slug
+ this.Parent = parent
return &this
}
@@ -98,16 +99,18 @@ func (o *WritableRegionRequest) 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).
+// GetParent returns the Parent field value
+// If the value is explicit nil, the zero value for int32 will be returned
func (o *WritableRegionRequest) GetParent() int32 {
- if o == nil || IsNil(o.Parent.Get()) {
+ if o == nil || o.Parent.Get() == nil {
var ret int32
return ret
}
+
return *o.Parent.Get()
}
-// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent 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 *WritableRegionRequest) GetParentOk() (*int32, bool) {
@@ -117,30 +120,11 @@ func (o *WritableRegionRequest) GetParentOk() (*int32, bool) {
return o.Parent.Get(), o.Parent.IsSet()
}
-// 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.
+// SetParent sets field value
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 {
if o == nil || IsNil(o.Description) {
@@ -249,9 +233,7 @@ func (o WritableRegionRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
+ toSerialize["parent"] = o.Parent.Get()
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -276,6 +258,7 @@ func (o *WritableRegionRequest) UnmarshalJSON(data []byte) (err error) {
requiredProperties := []string{
"name",
"slug",
+ "parent",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_route_target_request.go b/model_writable_route_target_request.go
deleted file mode 100644
index 72607446b4..0000000000
--- a/model_writable_route_target_request.go
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableRouteTargetRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableRouteTargetRequest{}
-
-// WritableRouteTargetRequest Adds support for custom fields and tags.
-type WritableRouteTargetRequest struct {
- // Route target value (formatted in accordance with RFC 4360)
- Name string `json:"name"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableRouteTargetRequest WritableRouteTargetRequest
-
-// NewWritableRouteTargetRequest instantiates a new WritableRouteTargetRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableRouteTargetRequest(name string) *WritableRouteTargetRequest {
- this := WritableRouteTargetRequest{}
- this.Name = name
- return &this
-}
-
-// NewWritableRouteTargetRequestWithDefaults instantiates a new WritableRouteTargetRequest object
-// This 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 NewWritableRouteTargetRequestWithDefaults() *WritableRouteTargetRequest {
- this := WritableRouteTargetRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) GetTenant() int32 {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableRouteTargetRequest) GetTenantOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *WritableRouteTargetRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableRouteTargetRequest) SetTenant(v int32) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *WritableRouteTargetRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *WritableRouteTargetRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) 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 *WritableRouteTargetRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableRouteTargetRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableRouteTargetRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["name"] = o.Name
- 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 *WritableRouteTargetRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableRouteTargetRequest := _WritableRouteTargetRequest{}
-
- err = json.Unmarshal(data, &varWritableRouteTargetRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableRouteTargetRequest(varWritableRouteTargetRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "name")
- delete(additionalProperties, "tenant")
- delete(additionalProperties, "description")
- delete(additionalProperties, "comments")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableRouteTargetRequest struct {
- value *WritableRouteTargetRequest
- isSet bool
-}
-
-func (v NullableWritableRouteTargetRequest) Get() *WritableRouteTargetRequest {
- return v.value
-}
-
-func (v *NullableWritableRouteTargetRequest) Set(val *WritableRouteTargetRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableRouteTargetRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableRouteTargetRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableRouteTargetRequest(val *WritableRouteTargetRequest) *NullableWritableRouteTargetRequest {
- return &NullableWritableRouteTargetRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableRouteTargetRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableRouteTargetRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_service_request.go b/model_writable_service_request.go
index c9737ada9d..a3150a1280 100644
--- a/model_writable_service_request.go
+++ b/model_writable_service_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,17 +20,16 @@ var _ MappedNullable = &WritableServiceRequest{}
// WritableServiceRequest Adds support for custom fields and tags.
type WritableServiceRequest struct {
- Device NullableInt32 `json:"device,omitempty"`
- VirtualMachine NullableInt32 `json:"virtual_machine,omitempty"`
- Name string `json:"name"`
- Ports []int32 `json:"ports"`
- Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
- // The specific IP addresses (if any) to which this service is bound
- Ipaddresses []int32 `json:"ipaddresses,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -40,11 +39,11 @@ type _WritableServiceRequest WritableServiceRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableServiceRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol) *WritableServiceRequest {
+func NewWritableServiceRequest(name string, protocol PatchedWritableServiceRequestProtocol, ports []int32) *WritableServiceRequest {
this := WritableServiceRequest{}
this.Name = name
- this.Ports = ports
this.Protocol = protocol
+ this.Ports = ports
return &this
}
@@ -57,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() int32 {
+func (o *WritableServiceRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -68,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -84,8 +83,8 @@ func (o *WritableServiceRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *WritableServiceRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *WritableServiceRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -100,9 +99,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() int32 {
+func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil || IsNil(o.VirtualMachine.Get()) {
- var ret int32
+ var ret VirtualMachineRequest
return ret
}
return *o.VirtualMachine.Get()
@@ -111,7 +110,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() int32 {
// 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() (*int32, bool) {
+func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -127,8 +126,8 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool {
return false
}
-// SetVirtualMachine gets a reference to the given NullableInt32 and assigns it to the VirtualMachine field.
-func (o *WritableServiceRequest) SetVirtualMachine(v int32) {
+// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field.
+func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine.Set(&v)
}
@@ -166,52 +165,52 @@ func (o *WritableServiceRequest) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *WritableServiceRequest) GetPorts() []int32 {
+// GetProtocol returns the Protocol field value
+func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
- var ret []int32
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
- return o.Ports
+ return o.Protocol
}
-// GetPortsOk returns a tuple with the Ports field value
+// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceRequest) GetPortsOk() ([]int32, bool) {
+func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil {
return nil, false
}
- return o.Ports, true
+ return &o.Protocol, true
}
-// SetPorts sets field value
-func (o *WritableServiceRequest) SetPorts(v []int32) {
- o.Ports = v
+// SetProtocol sets field value
+func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
+ o.Protocol = v
}
-// GetProtocol returns the Protocol field value
-func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
+// GetPorts returns the Ports field value
+func (o *WritableServiceRequest) GetPorts() []int32 {
if o == nil {
- var ret PatchedWritableServiceRequestProtocol
+ var ret []int32
return ret
}
- return o.Protocol
+ return o.Ports
}
-// GetProtocolOk returns a tuple with the Protocol field value
+// GetPortsOk returns a tuple with the Ports field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
+func (o *WritableServiceRequest) GetPortsOk() ([]int32, bool) {
if o == nil {
return nil, false
}
- return &o.Protocol, true
+ return o.Ports, true
}
-// SetProtocol sets field value
-func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
- o.Protocol = v
+// SetPorts sets field value
+func (o *WritableServiceRequest) SetPorts(v []int32) {
+ o.Ports = v
}
// GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise.
@@ -391,8 +390,8 @@ func (o WritableServiceRequest) ToMap() (map[string]interface{}, error) {
toSerialize["virtual_machine"] = o.VirtualMachine.Get()
}
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
toSerialize["protocol"] = o.Protocol
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Ipaddresses) {
toSerialize["ipaddresses"] = o.Ipaddresses
}
@@ -422,8 +421,8 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "ports",
"protocol",
+ "ports",
}
allProperties := make(map[string]interface{})
@@ -456,8 +455,8 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) {
delete(additionalProperties, "device")
delete(additionalProperties, "virtual_machine")
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "ipaddresses")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go
index b749861b21..c7008f3ed2 100644
--- a/model_writable_service_template_request.go
+++ b/model_writable_service_template_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,8 +21,8 @@ var _ MappedNullable = &WritableServiceTemplateRequest{}
// WritableServiceTemplateRequest Adds support for custom fields and tags.
type WritableServiceTemplateRequest struct {
Name string `json:"name"`
- Ports []int32 `json:"ports"`
Protocol PatchedWritableServiceRequestProtocol `json:"protocol"`
+ Ports []int32 `json:"ports"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
@@ -36,11 +36,11 @@ type _WritableServiceTemplateRequest WritableServiceTemplateRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewWritableServiceTemplateRequest(name string, ports []int32, protocol PatchedWritableServiceRequestProtocol) *WritableServiceTemplateRequest {
+func NewWritableServiceTemplateRequest(name string, protocol PatchedWritableServiceRequestProtocol, ports []int32) *WritableServiceTemplateRequest {
this := WritableServiceTemplateRequest{}
this.Name = name
- this.Ports = ports
this.Protocol = protocol
+ this.Ports = ports
return &this
}
@@ -76,52 +76,52 @@ func (o *WritableServiceTemplateRequest) SetName(v string) {
o.Name = v
}
-// GetPorts returns the Ports field value
-func (o *WritableServiceTemplateRequest) GetPorts() []int32 {
+// GetProtocol returns the Protocol field value
+func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
if o == nil {
- var ret []int32
+ var ret PatchedWritableServiceRequestProtocol
return ret
}
- return o.Ports
+ return o.Protocol
}
-// GetPortsOk returns a tuple with the Ports field value
+// GetProtocolOk returns a tuple with the Protocol field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
+func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
if o == nil {
return nil, false
}
- return o.Ports, true
+ return &o.Protocol, true
}
-// SetPorts sets field value
-func (o *WritableServiceTemplateRequest) SetPorts(v []int32) {
- o.Ports = v
+// SetProtocol sets field value
+func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
+ o.Protocol = v
}
-// GetProtocol returns the Protocol field value
-func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol {
+// GetPorts returns the Ports field value
+func (o *WritableServiceTemplateRequest) GetPorts() []int32 {
if o == nil {
- var ret PatchedWritableServiceRequestProtocol
+ var ret []int32
return ret
}
- return o.Protocol
+ return o.Ports
}
-// GetProtocolOk returns a tuple with the Protocol field value
+// GetPortsOk returns a tuple with the Ports field value
// and a boolean to check if the value has been set.
-func (o *WritableServiceTemplateRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool) {
+func (o *WritableServiceTemplateRequest) GetPortsOk() ([]int32, bool) {
if o == nil {
return nil, false
}
- return &o.Protocol, true
+ return o.Ports, true
}
-// SetProtocol sets field value
-func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceRequestProtocol) {
- o.Protocol = v
+// SetPorts sets field value
+func (o *WritableServiceTemplateRequest) SetPorts(v []int32) {
+ o.Ports = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
@@ -263,8 +263,8 @@ func (o WritableServiceTemplateRequest) MarshalJSON() ([]byte, error) {
func (o WritableServiceTemplateRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
- toSerialize["ports"] = o.Ports
toSerialize["protocol"] = o.Protocol
+ toSerialize["ports"] = o.Ports
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -291,8 +291,8 @@ func (o *WritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error)
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
- "ports",
"protocol",
+ "ports",
}
allProperties := make(map[string]interface{})
@@ -323,8 +323,8 @@ func (o *WritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error)
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "name")
- delete(additionalProperties, "ports")
delete(additionalProperties, "protocol")
+ delete(additionalProperties, "ports")
delete(additionalProperties, "description")
delete(additionalProperties, "comments")
delete(additionalProperties, "tags")
diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go
index 2d0434f93e..b0c4346c1f 100644
--- a/model_writable_site_group_request.go
+++ b/model_writable_site_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ var _ MappedNullable = &WritableSiteGroupRequest{}
type WritableSiteGroupRequest struct {
Name string `json:"name"`
Slug string `json:"slug"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Parent NullableInt32 `json:"parent"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -35,10 +35,11 @@ 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) *WritableSiteGroupRequest {
+func NewWritableSiteGroupRequest(name string, slug string, parent NullableInt32) *WritableSiteGroupRequest {
this := WritableSiteGroupRequest{}
this.Name = name
this.Slug = slug
+ this.Parent = parent
return &this
}
@@ -98,16 +99,18 @@ func (o *WritableSiteGroupRequest) 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).
+// GetParent returns the Parent field value
+// If the value is explicit nil, the zero value for int32 will be returned
func (o *WritableSiteGroupRequest) GetParent() int32 {
- if o == nil || IsNil(o.Parent.Get()) {
+ if o == nil || o.Parent.Get() == nil {
var ret int32
return ret
}
+
return *o.Parent.Get()
}
-// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent 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 *WritableSiteGroupRequest) GetParentOk() (*int32, bool) {
@@ -117,30 +120,11 @@ func (o *WritableSiteGroupRequest) GetParentOk() (*int32, bool) {
return o.Parent.Get(), o.Parent.IsSet()
}
-// 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.
+// SetParent sets field value
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 {
if o == nil || IsNil(o.Description) {
@@ -249,9 +233,7 @@ func (o WritableSiteGroupRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
+ toSerialize["parent"] = o.Parent.Get()
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -276,6 +258,7 @@ func (o *WritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) {
requiredProperties := []string{
"name",
"slug",
+ "parent",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_site_request.go b/model_writable_site_request.go
index fd4b2a019f..2fcc036008 100644
--- a/model_writable_site_request.go
+++ b/model_writable_site_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -21,12 +21,12 @@ 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 *LocationStatusValue `json:"status,omitempty"`
- Region NullableInt32 `json:"region,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
+ 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"`
// Local facility ID or description
Facility *string `json:"facility,omitempty"`
TimeZone NullableString `json:"time_zone,omitempty"`
@@ -116,9 +116,9 @@ func (o *WritableSiteRequest) SetSlug(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableSiteRequest) GetStatus() LocationStatusValue {
+func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret LocationStatusValue
+ var ret PatchedWritableLocationRequestStatus
return ret
}
return *o.Status
@@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() LocationStatusValue {
// 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() (*LocationStatusValue, bool) {
+func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -142,15 +142,15 @@ func (o *WritableSiteRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field.
-func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field.
+func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) {
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() int32 {
+func (o *WritableSiteRequest) GetRegion() RegionRequest {
if o == nil || IsNil(o.Region.Get()) {
- var ret int32
+ var ret RegionRequest
return ret
}
return *o.Region.Get()
@@ -159,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() int32 {
// 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() (*int32, bool) {
+func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) {
if o == nil {
return nil, false
}
@@ -175,8 +175,8 @@ func (o *WritableSiteRequest) HasRegion() bool {
return false
}
-// SetRegion gets a reference to the given NullableInt32 and assigns it to the Region field.
-func (o *WritableSiteRequest) SetRegion(v int32) {
+// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field.
+func (o *WritableSiteRequest) SetRegion(v RegionRequest) {
o.Region.Set(&v)
}
@@ -191,9 +191,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() int32 {
+func (o *WritableSiteRequest) GetGroup() SiteGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret SiteGroupRequest
return ret
}
return *o.Group.Get()
@@ -202,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -218,8 +218,8 @@ func (o *WritableSiteRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableSiteRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field.
+func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) {
o.Group.Set(&v)
}
@@ -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() int32 {
+func (o *WritableSiteRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -261,8 +261,8 @@ func (o *WritableSiteRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableSiteRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableSiteRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go
index 10b4b29346..a8b1c1775f 100644
--- a/model_writable_tenant_group_request.go
+++ b/model_writable_tenant_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_tenant_request.go b/model_writable_tenant_request.go
deleted file mode 100644
index fd121bd08f..0000000000
--- a/model_writable_tenant_request.go
+++ /dev/null
@@ -1,391 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableTenantRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableTenantRequest{}
-
-// WritableTenantRequest Adds support for custom fields and tags.
-type WritableTenantRequest struct {
- Name string `json:"name"`
- Slug string `json:"slug"`
- Group NullableInt32 `json:"group,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableTenantRequest WritableTenantRequest
-
-// NewWritableTenantRequest instantiates a new WritableTenantRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableTenantRequest(name string, slug string) *WritableTenantRequest {
- this := WritableTenantRequest{}
- this.Name = name
- this.Slug = slug
- return &this
-}
-
-// NewWritableTenantRequestWithDefaults instantiates a new WritableTenantRequest object
-// This 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 NewWritableTenantRequestWithDefaults() *WritableTenantRequest {
- this := WritableTenantRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableTenantRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetSlug returns the Slug field value
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) GetSlugOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Slug, true
-}
-
-// SetSlug sets field value
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) GetGroup() int32 {
- if o == nil || IsNil(o.Group.Get()) {
- var ret int32
- 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 *WritableTenantRequest) GetGroupOk() (*int32, 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 *WritableTenantRequest) HasGroup() bool {
- if o != nil && o.Group.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableTenantRequest) SetGroup(v int32) {
- o.Group.Set(&v)
-}
-
-// SetGroupNil sets the value for Group to be an explicit nil
-func (o *WritableTenantRequest) SetGroupNil() {
- o.Group.Set(nil)
-}
-
-// UnsetGroup ensures that no value is present for Group, not even an explicit nil
-func (o *WritableTenantRequest) UnsetGroup() {
- o.Group.Unset()
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) 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 *WritableTenantRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableTenantRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableTenantRequest) 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableTenantRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableTenantRequest := _WritableTenantRequest{}
-
- err = json.Unmarshal(data, &varWritableTenantRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableTenantRequest(varWritableTenantRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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
- }
-
- return err
-}
-
-type NullableWritableTenantRequest struct {
- value *WritableTenantRequest
- isSet bool
-}
-
-func (v NullableWritableTenantRequest) Get() *WritableTenantRequest {
- return v.value
-}
-
-func (v *NullableWritableTenantRequest) Set(val *WritableTenantRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableTenantRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableTenantRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableTenantRequest(val *WritableTenantRequest) *NullableWritableTenantRequest {
- return &NullableWritableTenantRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableTenantRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableTenantRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_token_request.go b/model_writable_token_request.go
deleted file mode 100644
index 21c4a587e2..0000000000
--- a/model_writable_token_request.go
+++ /dev/null
@@ -1,375 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
- "time"
-)
-
-// checks if the WritableTokenRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableTokenRequest{}
-
-// WritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableTokenRequest struct {
- User int32 `json:"user"`
- Expires NullableTime `json:"expires,omitempty"`
- LastUsed NullableTime `json:"last_used,omitempty"`
- Key *string `json:"key,omitempty"`
- // Permit create/update/delete operations using this key
- WriteEnabled *bool `json:"write_enabled,omitempty"`
- Description *string `json:"description,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableTokenRequest WritableTokenRequest
-
-// NewWritableTokenRequest instantiates a new WritableTokenRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableTokenRequest(user int32) *WritableTokenRequest {
- this := WritableTokenRequest{}
- this.User = user
- return &this
-}
-
-// NewWritableTokenRequestWithDefaults instantiates a new WritableTokenRequest object
-// This 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 NewWritableTokenRequestWithDefaults() *WritableTokenRequest {
- this := WritableTokenRequest{}
- return &this
-}
-
-// GetUser returns the User field value
-func (o *WritableTokenRequest) GetUser() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.User
-}
-
-// GetUserOk returns a tuple with the User field value
-// and a boolean to check if the value has been set.
-func (o *WritableTokenRequest) GetUserOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.User, true
-}
-
-// SetUser sets field value
-func (o *WritableTokenRequest) SetUser(v int32) {
- 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 *WritableTokenRequest) GetExpires() time.Time {
- if o == nil || IsNil(o.Expires.Get()) {
- var ret time.Time
- return ret
- }
- return *o.Expires.Get()
-}
-
-// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableTokenRequest) GetExpiresOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.Expires.Get(), o.Expires.IsSet()
-}
-
-// HasExpires returns a boolean if a field has been set.
-func (o *WritableTokenRequest) HasExpires() bool {
- if o != nil && o.Expires.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetExpires gets a reference to the given NullableTime and assigns it to the Expires field.
-func (o *WritableTokenRequest) SetExpires(v time.Time) {
- o.Expires.Set(&v)
-}
-
-// SetExpiresNil sets the value for Expires to be an explicit nil
-func (o *WritableTokenRequest) SetExpiresNil() {
- o.Expires.Set(nil)
-}
-
-// UnsetExpires ensures that no value is present for Expires, not even an explicit nil
-func (o *WritableTokenRequest) UnsetExpires() {
- o.Expires.Unset()
-}
-
-// GetLastUsed returns the LastUsed field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTokenRequest) GetLastUsed() time.Time {
- if o == nil || IsNil(o.LastUsed.Get()) {
- var ret time.Time
- return ret
- }
- return *o.LastUsed.Get()
-}
-
-// GetLastUsedOk returns a tuple with the LastUsed field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableTokenRequest) GetLastUsedOk() (*time.Time, bool) {
- if o == nil {
- return nil, false
- }
- return o.LastUsed.Get(), o.LastUsed.IsSet()
-}
-
-// HasLastUsed returns a boolean if a field has been set.
-func (o *WritableTokenRequest) HasLastUsed() bool {
- if o != nil && o.LastUsed.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetLastUsed gets a reference to the given NullableTime and assigns it to the LastUsed field.
-func (o *WritableTokenRequest) SetLastUsed(v time.Time) {
- o.LastUsed.Set(&v)
-}
-
-// SetLastUsedNil sets the value for LastUsed to be an explicit nil
-func (o *WritableTokenRequest) SetLastUsedNil() {
- o.LastUsed.Set(nil)
-}
-
-// UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil
-func (o *WritableTokenRequest) UnsetLastUsed() {
- o.LastUsed.Unset()
-}
-
-// GetKey returns the Key field value if set, zero value otherwise.
-func (o *WritableTokenRequest) GetKey() string {
- if o == nil || IsNil(o.Key) {
- var ret string
- return ret
- }
- return *o.Key
-}
-
-// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableTokenRequest) GetKeyOk() (*string, bool) {
- if o == nil || IsNil(o.Key) {
- return nil, false
- }
- return o.Key, true
-}
-
-// HasKey returns a boolean if a field has been set.
-func (o *WritableTokenRequest) HasKey() bool {
- if o != nil && !IsNil(o.Key) {
- return true
- }
-
- return false
-}
-
-// SetKey gets a reference to the given string and assigns it to the Key field.
-func (o *WritableTokenRequest) SetKey(v string) {
- o.Key = &v
-}
-
-// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise.
-func (o *WritableTokenRequest) GetWriteEnabled() bool {
- if o == nil || IsNil(o.WriteEnabled) {
- var ret bool
- return ret
- }
- return *o.WriteEnabled
-}
-
-// GetWriteEnabledOk returns a tuple with the WriteEnabled field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *WritableTokenRequest) GetWriteEnabledOk() (*bool, bool) {
- if o == nil || IsNil(o.WriteEnabled) {
- return nil, false
- }
- return o.WriteEnabled, true
-}
-
-// HasWriteEnabled returns a boolean if a field has been set.
-func (o *WritableTokenRequest) HasWriteEnabled() bool {
- if o != nil && !IsNil(o.WriteEnabled) {
- return true
- }
-
- return false
-}
-
-// SetWriteEnabled gets a reference to the given bool and assigns it to the WriteEnabled field.
-func (o *WritableTokenRequest) SetWriteEnabled(v bool) {
- o.WriteEnabled = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableTokenRequest) 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 *WritableTokenRequest) 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 *WritableTokenRequest) 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 *WritableTokenRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-func (o WritableTokenRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableTokenRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["user"] = o.User
- if o.Expires.IsSet() {
- toSerialize["expires"] = o.Expires.Get()
- }
- if o.LastUsed.IsSet() {
- toSerialize["last_used"] = o.LastUsed.Get()
- }
- if !IsNil(o.Key) {
- toSerialize["key"] = o.Key
- }
- if !IsNil(o.WriteEnabled) {
- toSerialize["write_enabled"] = o.WriteEnabled
- }
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableTokenRequest) 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{
- "user",
- }
-
- 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)
- }
- }
-
- varWritableTokenRequest := _WritableTokenRequest{}
-
- err = json.Unmarshal(data, &varWritableTokenRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableTokenRequest(varWritableTokenRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "user")
- delete(additionalProperties, "expires")
- delete(additionalProperties, "last_used")
- delete(additionalProperties, "key")
- delete(additionalProperties, "write_enabled")
- delete(additionalProperties, "description")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableTokenRequest struct {
- value *WritableTokenRequest
- isSet bool
-}
-
-func (v NullableWritableTokenRequest) Get() *WritableTokenRequest {
- return v.value
-}
-
-func (v *NullableWritableTokenRequest) Set(val *WritableTokenRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableTokenRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableTokenRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableTokenRequest(val *WritableTokenRequest) *NullableWritableTokenRequest {
- return &NullableWritableTokenRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableTokenRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableTokenRequest) 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 bcb329c0cd..057faf1f70 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,10 +22,10 @@ var _ MappedNullable = &WritableTunnelRequest{}
type WritableTunnelRequest struct {
Name string `json:"name"`
Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
+ Group NullableTunnelGroupRequest `json:"group,omitempty"`
Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"`
- IpsecProfile NullableInt32 `json:"ipsec_profile,omitempty"`
- Tenant NullableInt32 `json:"tenant,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"`
@@ -112,9 +112,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() int32 {
+func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret TunnelGroupRequest
return ret
}
return *o.Group.Get()
@@ -123,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -139,8 +139,8 @@ func (o *WritableTunnelRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableTunnelRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field.
+func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) {
o.Group.Set(&v)
}
@@ -179,9 +179,9 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE
}
// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableTunnelRequest) GetIpsecProfile() int32 {
+func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest {
if o == nil || IsNil(o.IpsecProfile.Get()) {
- var ret int32
+ var ret IPSecProfileRequest
return ret
}
return *o.IpsecProfile.Get()
@@ -190,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() int32 {
// 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() (*int32, bool) {
+func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) {
if o == nil {
return nil, false
}
@@ -206,8 +206,8 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool {
return false
}
-// SetIpsecProfile gets a reference to the given NullableInt32 and assigns it to the IpsecProfile field.
-func (o *WritableTunnelRequest) SetIpsecProfile(v int32) {
+// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field.
+func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) {
o.IpsecProfile.Set(&v)
}
@@ -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() int32 {
+func (o *WritableTunnelRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -249,8 +249,8 @@ func (o *WritableTunnelRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableTunnelRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableTunnelRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go
index 1ee9790651..ec11b7d2b4 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: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,11 +20,11 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{}
// WritableTunnelTerminationRequest Adds support for custom fields and tags.
type WritableTunnelTerminationRequest struct {
- Tunnel int32 `json:"tunnel"`
+ Tunnel TunnelRequest `json:"tunnel"`
Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"`
TerminationType string `json:"termination_type"`
- TerminationId NullableInt64 `json:"termination_id,omitempty"`
- OutsideIp NullableInt32 `json:"outside_ip,omitempty"`
+ TerminationId NullableInt64 `json:"termination_id"`
+ OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -36,10 +36,11 @@ 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 int32, terminationType string) *WritableTunnelTerminationRequest {
+func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest {
this := WritableTunnelTerminationRequest{}
this.Tunnel = tunnel
this.TerminationType = terminationType
+ this.TerminationId = terminationId
return &this
}
@@ -52,9 +53,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio
}
// GetTunnel returns the Tunnel field value
-func (o *WritableTunnelTerminationRequest) GetTunnel() int32 {
+func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest {
if o == nil {
- var ret int32
+ var ret TunnelRequest
return ret
}
@@ -63,7 +64,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() int32 {
// GetTunnelOk returns a tuple with the Tunnel field value
// and a boolean to check if the value has been set.
-func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*int32, bool) {
+func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) {
if o == nil {
return nil, false
}
@@ -71,7 +72,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*int32, bool) {
}
// SetTunnel sets field value
-func (o *WritableTunnelTerminationRequest) SetTunnel(v int32) {
+func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) {
o.Tunnel = v
}
@@ -131,16 +132,18 @@ func (o *WritableTunnelTerminationRequest) SetTerminationType(v string) {
o.TerminationType = v
}
-// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null).
+// GetTerminationId returns the TerminationId field value
+// If the value is explicit nil, the zero value for int64 will be returned
func (o *WritableTunnelTerminationRequest) GetTerminationId() int64 {
- if o == nil || IsNil(o.TerminationId.Get()) {
+ if o == nil || o.TerminationId.Get() == nil {
var ret int64
return ret
}
+
return *o.TerminationId.Get()
}
-// GetTerminationIdOk returns a tuple with the TerminationId field value if set, nil otherwise
+// GetTerminationIdOk returns a tuple with the TerminationId 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 *WritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) {
@@ -150,34 +153,15 @@ func (o *WritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) {
return o.TerminationId.Get(), o.TerminationId.IsSet()
}
-// 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.
+// SetTerminationId sets field value
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() int32 {
+func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest {
if o == nil || IsNil(o.OutsideIp.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.OutsideIp.Get()
@@ -186,7 +170,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() int32 {
// 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() (*int32, bool) {
+func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -202,8 +186,8 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool {
return false
}
-// SetOutsideIp gets a reference to the given NullableInt32 and assigns it to the OutsideIp field.
-func (o *WritableTunnelTerminationRequest) SetOutsideIp(v int32) {
+// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field.
+func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) {
o.OutsideIp.Set(&v)
}
@@ -296,9 +280,7 @@ func (o WritableTunnelTerminationRequest) ToMap() (map[string]interface{}, error
toSerialize["role"] = o.Role
}
toSerialize["termination_type"] = o.TerminationType
- if o.TerminationId.IsSet() {
- toSerialize["termination_id"] = o.TerminationId.Get()
- }
+ toSerialize["termination_id"] = o.TerminationId.Get()
if o.OutsideIp.IsSet() {
toSerialize["outside_ip"] = o.OutsideIp.Get()
}
@@ -323,6 +305,7 @@ func (o *WritableTunnelTerminationRequest) UnmarshalJSON(data []byte) (err error
requiredProperties := []string{
"tunnel",
"termination_type",
+ "termination_id",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_user_request.go b/model_writable_user_request.go
deleted file mode 100644
index 25d44fde95..0000000000
--- a/model_writable_user_request.go
+++ /dev/null
@@ -1,507 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
- "time"
-)
-
-// checks if the WritableUserRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableUserRequest{}
-
-// WritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
-type WritableUserRequest struct {
- // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
- Username string `json:"username"`
- Password string `json:"password"`
- 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"`
- // The groups this user belongs to. A user will get all permissions granted to each of their groups.
- Groups []int32 `json:"groups,omitempty"`
- AdditionalProperties map[string]interface{}
-}
-
-type _WritableUserRequest WritableUserRequest
-
-// NewWritableUserRequest instantiates a new WritableUserRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableUserRequest(username string, password string) *WritableUserRequest {
- this := WritableUserRequest{}
- this.Username = username
- this.Password = password
- return &this
-}
-
-// NewWritableUserRequestWithDefaults instantiates a new WritableUserRequest object
-// This 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 NewWritableUserRequestWithDefaults() *WritableUserRequest {
- this := WritableUserRequest{}
- return &this
-}
-
-// GetUsername returns the Username field value
-func (o *WritableUserRequest) 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 *WritableUserRequest) GetUsernameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Username, true
-}
-
-// SetUsername sets field value
-func (o *WritableUserRequest) SetUsername(v string) {
- o.Username = v
-}
-
-// GetPassword returns the Password field value
-func (o *WritableUserRequest) 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 *WritableUserRequest) GetPasswordOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Password, true
-}
-
-// SetPassword sets field value
-func (o *WritableUserRequest) SetPassword(v string) {
- o.Password = v
-}
-
-// GetFirstName returns the FirstName field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetFirstName(v string) {
- o.FirstName = &v
-}
-
-// GetLastName returns the LastName field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetLastName(v string) {
- o.LastName = &v
-}
-
-// GetEmail returns the Email field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetEmail(v string) {
- o.Email = &v
-}
-
-// GetIsStaff returns the IsStaff field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetIsStaff(v bool) {
- o.IsStaff = &v
-}
-
-// GetIsActive returns the IsActive field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetIsActive(v bool) {
- o.IsActive = &v
-}
-
-// GetDateJoined returns the DateJoined field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetLastLogin(v time.Time) {
- o.LastLogin.Set(&v)
-}
-
-// SetLastLoginNil sets the value for LastLogin to be an explicit nil
-func (o *WritableUserRequest) SetLastLoginNil() {
- o.LastLogin.Set(nil)
-}
-
-// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil
-func (o *WritableUserRequest) UnsetLastLogin() {
- o.LastLogin.Unset()
-}
-
-// GetGroups returns the Groups field value if set, zero value otherwise.
-func (o *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) 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 *WritableUserRequest) SetGroups(v []int32) {
- o.Groups = v
-}
-
-func (o WritableUserRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableUserRequest) 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
- }
-
- for key, value := range o.AdditionalProperties {
- toSerialize[key] = value
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableUserRequest) 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",
- "password",
- }
-
- 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)
- }
- }
-
- varWritableUserRequest := _WritableUserRequest{}
-
- err = json.Unmarshal(data, &varWritableUserRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableUserRequest(varWritableUserRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableUserRequest struct {
- value *WritableUserRequest
- isSet bool
-}
-
-func (v NullableWritableUserRequest) Get() *WritableUserRequest {
- return v.value
-}
-
-func (v *NullableWritableUserRequest) Set(val *WritableUserRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableUserRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableUserRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableUserRequest(val *WritableUserRequest) *NullableWritableUserRequest {
- return &NullableWritableUserRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableUserRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableUserRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go
index f9c92d3add..76b1664be6 100644
--- a/model_writable_virtual_chassis_request.go
+++ b/model_writable_virtual_chassis_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go
index 0549405ee9..9c16e0e714 100644
--- a/model_writable_virtual_device_context_request.go
+++ b/model_writable_virtual_device_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,13 +20,12 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{}
// WritableVirtualDeviceContextRequest Adds support for custom fields and tags.
type WritableVirtualDeviceContextRequest struct {
- Name string `json:"name"`
- Device NullableInt32 `json:"device,omitempty"`
- // Numeric identifier unique to the parent device
+ Name string `json:"name"`
+ Device DeviceRequest `json:"device"`
Identifier NullableInt32 `json:"identifier,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,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"`
@@ -41,9 +40,10 @@ 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, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest {
+func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest {
this := WritableVirtualDeviceContextRequest{}
this.Name = name
+ this.Device = device
this.Status = status
return &this
}
@@ -80,47 +80,28 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) {
o.Name = v
}
-// GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualDeviceContextRequest) GetDevice() int32 {
- if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+// GetDevice returns the Device field value
+func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest {
+ if o == nil {
+ var ret DeviceRequest
return ret
}
- return *o.Device.Get()
+
+ return o.Device
}
-// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
+// GetDeviceOk returns a tuple with the Device 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 *WritableVirtualDeviceContextRequest) GetDeviceOk() (*int32, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
- return o.Device.Get(), o.Device.IsSet()
-}
-
-// HasDevice returns a boolean if a field has been set.
-func (o *WritableVirtualDeviceContextRequest) HasDevice() bool {
- if o != nil && o.Device.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *WritableVirtualDeviceContextRequest) SetDevice(v int32) {
- o.Device.Set(&v)
-}
-
-// SetDeviceNil sets the value for Device to be an explicit nil
-func (o *WritableVirtualDeviceContextRequest) SetDeviceNil() {
- o.Device.Set(nil)
+ return &o.Device, true
}
-// UnsetDevice ensures that no value is present for Device, not even an explicit nil
-func (o *WritableVirtualDeviceContextRequest) UnsetDevice() {
- o.Device.Unset()
+// SetDevice sets field value
+func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) {
+ o.Device = v
}
// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null).
@@ -167,9 +148,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() int32 {
+func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -178,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -194,8 +175,8 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableVirtualDeviceContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -210,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() int32 {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -221,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -237,8 +218,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -253,9 +234,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() int32 {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -264,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -280,8 +261,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -458,9 +439,7 @@ func (o WritableVirtualDeviceContextRequest) MarshalJSON() ([]byte, error) {
func (o WritableVirtualDeviceContextRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
- if o.Device.IsSet() {
- toSerialize["device"] = o.Device.Get()
- }
+ toSerialize["device"] = o.Device
if o.Identifier.IsSet() {
toSerialize["identifier"] = o.Identifier.Get()
}
@@ -500,6 +479,7 @@ func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err er
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"name",
+ "device",
"status",
}
diff --git a/model_writable_virtual_disk_request.go b/model_writable_virtual_disk_request.go
deleted file mode 100644
index 62c63cf617..0000000000
--- a/model_writable_virtual_disk_request.go
+++ /dev/null
@@ -1,335 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableVirtualDiskRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableVirtualDiskRequest{}
-
-// WritableVirtualDiskRequest Adds support for custom fields and tags.
-type WritableVirtualDiskRequest struct {
- VirtualMachine int32 `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{}
-}
-
-type _WritableVirtualDiskRequest WritableVirtualDiskRequest
-
-// NewWritableVirtualDiskRequest instantiates a new WritableVirtualDiskRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableVirtualDiskRequest(virtualMachine int32, name string, size int32) *WritableVirtualDiskRequest {
- this := WritableVirtualDiskRequest{}
- this.VirtualMachine = virtualMachine
- this.Name = name
- this.Size = size
- return &this
-}
-
-// NewWritableVirtualDiskRequestWithDefaults instantiates a new WritableVirtualDiskRequest object
-// This 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 NewWritableVirtualDiskRequestWithDefaults() *WritableVirtualDiskRequest {
- this := WritableVirtualDiskRequest{}
- return &this
-}
-
-// GetVirtualMachine returns the VirtualMachine field value
-func (o *WritableVirtualDiskRequest) GetVirtualMachine() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.VirtualMachine
-}
-
-// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
-// and a boolean to check if the value has been set.
-func (o *WritableVirtualDiskRequest) GetVirtualMachineOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.VirtualMachine, true
-}
-
-// SetVirtualMachine sets field value
-func (o *WritableVirtualDiskRequest) SetVirtualMachine(v int32) {
- o.VirtualMachine = v
-}
-
-// GetName returns the Name field value
-func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableVirtualDiskRequest) SetName(v string) {
- o.Name = v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetSize returns the Size field value
-func (o *WritableVirtualDiskRequest) GetSize() int32 {
- if o == nil {
- var ret int32
- return ret
- }
-
- return o.Size
-}
-
-// GetSizeOk returns a tuple with the Size field value
-// and a boolean to check if the value has been set.
-func (o *WritableVirtualDiskRequest) GetSizeOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Size, true
-}
-
-// SetSize sets field value
-func (o *WritableVirtualDiskRequest) SetSize(v int32) {
- o.Size = v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) 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 *WritableVirtualDiskRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableVirtualDiskRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- toSerialize["virtual_machine"] = o.VirtualMachine
- toSerialize["name"] = o.Name
- if !IsNil(o.Description) {
- toSerialize["description"] = o.Description
- }
- toSerialize["size"] = o.Size
- 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 *WritableVirtualDiskRequest) 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_machine",
- "name",
- "size",
- }
-
- 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)
- }
- }
-
- varWritableVirtualDiskRequest := _WritableVirtualDiskRequest{}
-
- err = json.Unmarshal(data, &varWritableVirtualDiskRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableVirtualDiskRequest(varWritableVirtualDiskRequest)
-
- additionalProperties := make(map[string]interface{})
-
- if err = json.Unmarshal(data, &additionalProperties); err == nil {
- delete(additionalProperties, "virtual_machine")
- delete(additionalProperties, "name")
- delete(additionalProperties, "description")
- delete(additionalProperties, "size")
- delete(additionalProperties, "tags")
- delete(additionalProperties, "custom_fields")
- o.AdditionalProperties = additionalProperties
- }
-
- return err
-}
-
-type NullableWritableVirtualDiskRequest struct {
- value *WritableVirtualDiskRequest
- isSet bool
-}
-
-func (v NullableWritableVirtualDiskRequest) Get() *WritableVirtualDiskRequest {
- return v.value
-}
-
-func (v *NullableWritableVirtualDiskRequest) Set(val *WritableVirtualDiskRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableVirtualDiskRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableVirtualDiskRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableVirtualDiskRequest(val *WritableVirtualDiskRequest) *NullableWritableVirtualDiskRequest {
- return &NullableWritableVirtualDiskRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableVirtualDiskRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableVirtualDiskRequest) UnmarshalJSON(src []byte) error {
- 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 bd68c7aee9..a24bbacab8 100644
--- a/model_writable_virtual_machine_with_config_context_request.go
+++ b/model_writable_virtual_machine_with_config_context_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,22 +20,22 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{}
// WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags.
type WritableVirtualMachineWithConfigContextRequest struct {
- Name string `json:"name"`
- Status *ModuleStatusValue `json:"status,omitempty"`
- Site NullableInt32 `json:"site,omitempty"`
- Cluster NullableInt32 `json:"cluster,omitempty"`
- Device NullableInt32 `json:"device,omitempty"`
- Role NullableInt32 `json:"role,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Platform NullableInt32 `json:"platform,omitempty"`
- PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"`
- PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"`
- Vcpus NullableFloat64 `json:"vcpus,omitempty"`
- Memory NullableInt32 `json:"memory,omitempty"`
- Disk NullableInt32 `json:"disk,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- ConfigTemplate NullableInt32 `json:"config_template,omitempty"`
+ 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"`
// 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"`
@@ -88,9 +88,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret ModuleStatusValue
+ var ret PatchedWritableModuleRequestStatus
return ret
}
return *o.Status
@@ -98,7 +98,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatu
// 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() (*ModuleStatusValue, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -114,15 +114,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) {
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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -131,7 +131,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -147,8 +147,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v int32) {
+// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) {
o.Site.Set(&v)
}
@@ -163,9 +163,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
- var ret int32
+ var ret ClusterRequest
return ret
}
return *o.Cluster.Get()
@@ -174,7 +174,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) {
if o == nil {
return nil, false
}
@@ -190,8 +190,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool {
return false
}
-// SetCluster gets a reference to the given NullableInt32 and assigns it to the Cluster field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v int32) {
+// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) {
o.Cluster.Set(&v)
}
@@ -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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest {
if o == nil || IsNil(o.Device.Get()) {
- var ret int32
+ var ret DeviceRequest
return ret
}
return *o.Device.Get()
@@ -217,7 +217,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) {
if o == nil {
return nil, false
}
@@ -233,8 +233,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool {
return false
}
-// SetDevice gets a reference to the given NullableInt32 and assigns it to the Device field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v int32) {
+// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) {
o.Device.Set(&v)
}
@@ -249,9 +249,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() {
}
// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret DeviceRoleRequest
return ret
}
return *o.Role.Get()
@@ -260,7 +260,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -276,8 +276,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) {
o.Role.Set(&v)
}
@@ -292,9 +292,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -303,7 +303,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -319,8 +319,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -335,9 +335,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
- var ret int32
+ var ret PlatformRequest
return ret
}
return *o.Platform.Get()
@@ -346,7 +346,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) {
if o == nil {
return nil, false
}
@@ -362,8 +362,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool {
return false
}
-// SetPlatform gets a reference to the given NullableInt32 and assigns it to the Platform field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32) {
+// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) {
o.Platform.Set(&v)
}
@@ -378,9 +378,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp4.Get()
@@ -389,7 +389,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -405,8 +405,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool {
return false
}
-// SetPrimaryIp4 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp4 field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32) {
+// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
@@ -421,9 +421,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
- var ret int32
+ var ret IPAddressRequest
return ret
}
return *o.PrimaryIp6.Get()
@@ -432,7 +432,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() int32 {
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) {
if o == nil {
return nil, false
}
@@ -448,8 +448,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool {
return false
}
-// SetPrimaryIp6 gets a reference to the given NullableInt32 and assigns it to the PrimaryIp6 field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32) {
+// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
@@ -657,9 +657,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() int32 {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest {
if o == nil || IsNil(o.ConfigTemplate.Get()) {
- var ret int32
+ var ret ConfigTemplateRequest
return ret
}
return *o.ConfigTemplate.Get()
@@ -668,7 +668,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() int
// 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() (*int32, bool) {
+func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) {
if o == nil {
return nil, false
}
@@ -684,8 +684,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo
return false
}
-// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field.
-func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v int32) {
+// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field.
+func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) {
o.ConfigTemplate.Set(&v)
}
diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go
index 662e6c8166..047e6f3899 100644
--- a/model_writable_vlan_request.go
+++ b/model_writable_vlan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,21 +20,18 @@ var _ MappedNullable = &WritableVLANRequest{}
// WritableVLANRequest Adds support for custom fields and tags.
type WritableVLANRequest struct {
- // The specific site to which this VLAN is assigned (if any)
- Site NullableInt32 `json:"site,omitempty"`
- // VLAN group (optional)
- Group NullableInt32 `json:"group,omitempty"`
+ Site NullableSiteRequest `json:"site,omitempty"`
+ Group NullableVLANGroupRequest `json:"group,omitempty"`
// Numeric VLAN ID (1-4094)
- Vid int32 `json:"vid"`
- Name string `json:"name"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"`
- // The primary function of this VLAN
- Role NullableInt32 `json:"role,omitempty"`
- Description *string `json:"description,omitempty"`
- Comments *string `json:"comments,omitempty"`
- Tags []NestedTagRequest `json:"tags,omitempty"`
- CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
+ 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"`
AdditionalProperties map[string]interface{}
}
@@ -60,9 +57,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() int32 {
+func (o *WritableVLANRequest) GetSite() SiteRequest {
if o == nil || IsNil(o.Site.Get()) {
- var ret int32
+ var ret SiteRequest
return ret
}
return *o.Site.Get()
@@ -71,7 +68,7 @@ func (o *WritableVLANRequest) GetSite() int32 {
// 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() (*int32, bool) {
+func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) {
if o == nil {
return nil, false
}
@@ -87,8 +84,8 @@ func (o *WritableVLANRequest) HasSite() bool {
return false
}
-// SetSite gets a reference to the given NullableInt32 and assigns it to the Site field.
-func (o *WritableVLANRequest) SetSite(v int32) {
+// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field.
+func (o *WritableVLANRequest) SetSite(v SiteRequest) {
o.Site.Set(&v)
}
@@ -103,9 +100,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() int32 {
+func (o *WritableVLANRequest) GetGroup() VLANGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret VLANGroupRequest
return ret
}
return *o.Group.Get()
@@ -114,7 +111,7 @@ func (o *WritableVLANRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -130,8 +127,8 @@ func (o *WritableVLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableVLANRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field.
+func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) {
o.Group.Set(&v)
}
@@ -194,9 +191,9 @@ func (o *WritableVLANRequest) 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 *WritableVLANRequest) GetTenant() int32 {
+func (o *WritableVLANRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -205,7 +202,7 @@ func (o *WritableVLANRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -221,8 +218,8 @@ func (o *WritableVLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableVLANRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableVLANRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
@@ -269,9 +266,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() int32 {
+func (o *WritableVLANRequest) GetRole() RoleRequest {
if o == nil || IsNil(o.Role.Get()) {
- var ret int32
+ var ret RoleRequest
return ret
}
return *o.Role.Get()
@@ -280,7 +277,7 @@ func (o *WritableVLANRequest) GetRole() int32 {
// 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() (*int32, bool) {
+func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) {
if o == nil {
return nil, false
}
@@ -296,8 +293,8 @@ func (o *WritableVLANRequest) HasRole() bool {
return false
}
-// SetRole gets a reference to the given NullableInt32 and assigns it to the Role field.
-func (o *WritableVLANRequest) SetRole(v int32) {
+// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field.
+func (o *WritableVLANRequest) SetRole(v RoleRequest) {
o.Role.Set(&v)
}
diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go
index d489522245..3c0acb8009 100644
--- a/model_writable_vm_interface_request.go
+++ b/model_writable_vm_interface_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,7 +20,7 @@ var _ MappedNullable = &WritableVMInterfaceRequest{}
// WritableVMInterfaceRequest Adds support for custom fields and tags.
type WritableVMInterfaceRequest struct {
- VirtualMachine int32 `json:"virtual_machine"`
+ VirtualMachine VirtualMachineRequest `json:"virtual_machine"`
Name string `json:"name"`
Enabled *bool `json:"enabled,omitempty"`
Parent NullableInt32 `json:"parent,omitempty"`
@@ -29,9 +29,9 @@ type WritableVMInterfaceRequest struct {
MacAddress NullableString `json:"mac_address,omitempty"`
Description *string `json:"description,omitempty"`
Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"`
- UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"`
+ UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"`
TaggedVlans []int32 `json:"tagged_vlans,omitempty"`
- Vrf NullableInt32 `json:"vrf,omitempty"`
+ Vrf NullableVRFRequest `json:"vrf,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
@@ -43,7 +43,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 int32, name string) *WritableVMInterfaceRequest {
+func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest {
this := WritableVMInterfaceRequest{}
this.VirtualMachine = virtualMachine
this.Name = name
@@ -59,9 +59,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest {
}
// GetVirtualMachine returns the VirtualMachine field value
-func (o *WritableVMInterfaceRequest) GetVirtualMachine() int32 {
+func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest {
if o == nil {
- var ret int32
+ var ret VirtualMachineRequest
return ret
}
@@ -70,7 +70,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() int32 {
// GetVirtualMachineOk returns a tuple with the VirtualMachine field value
// and a boolean to check if the value has been set.
-func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*int32, bool) {
+func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) {
if o == nil {
return nil, false
}
@@ -78,7 +78,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*int32, bool) {
}
// SetVirtualMachine sets field value
-func (o *WritableVMInterfaceRequest) SetVirtualMachine(v int32) {
+func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) {
o.VirtualMachine = v
}
@@ -375,9 +375,9 @@ func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMo
}
// GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetUntaggedVlan() int32 {
+func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest {
if o == nil || IsNil(o.UntaggedVlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.UntaggedVlan.Get()
@@ -386,7 +386,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() int32 {
// 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() (*int32, bool) {
+func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -402,8 +402,8 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool {
return false
}
-// SetUntaggedVlan gets a reference to the given NullableInt32 and assigns it to the UntaggedVlan field.
-func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v int32) {
+// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field.
+func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) {
o.UntaggedVlan.Set(&v)
}
@@ -450,9 +450,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) {
}
// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableVMInterfaceRequest) GetVrf() int32 {
+func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest {
if o == nil || IsNil(o.Vrf.Get()) {
- var ret int32
+ var ret VRFRequest
return ret
}
return *o.Vrf.Get()
@@ -461,7 +461,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() int32 {
// 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() (*int32, bool) {
+func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) {
if o == nil {
return nil, false
}
@@ -477,8 +477,8 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool {
return false
}
-// SetVrf gets a reference to the given NullableInt32 and assigns it to the Vrf field.
-func (o *WritableVMInterfaceRequest) SetVrf(v int32) {
+// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field.
+func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) {
o.Vrf.Set(&v)
}
diff --git a/model_writable_vrf_request.go b/model_writable_vrf_request.go
deleted file mode 100644
index 06cf5d6793..0000000000
--- a/model_writable_vrf_request.go
+++ /dev/null
@@ -1,523 +0,0 @@
-/*
-NetBox REST API
-
-No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
-API version: 3.7.7 (3.7)
-*/
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package netbox
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// checks if the WritableVRFRequest type satisfies the MappedNullable interface at compile time
-var _ MappedNullable = &WritableVRFRequest{}
-
-// WritableVRFRequest Adds support for custom fields and tags.
-type WritableVRFRequest struct {
- Name string `json:"name"`
- // Unique route distinguisher (as defined in RFC 4364)
- Rd NullableString `json:"rd,omitempty"`
- Tenant NullableInt32 `json:"tenant,omitempty"`
- // 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{}
-}
-
-type _WritableVRFRequest WritableVRFRequest
-
-// NewWritableVRFRequest instantiates a new WritableVRFRequest object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed
-func NewWritableVRFRequest(name string) *WritableVRFRequest {
- this := WritableVRFRequest{}
- this.Name = name
- return &this
-}
-
-// NewWritableVRFRequestWithDefaults instantiates a new WritableVRFRequest object
-// This 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 NewWritableVRFRequestWithDefaults() *WritableVRFRequest {
- this := WritableVRFRequest{}
- return &this
-}
-
-// GetName returns the Name field value
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) GetNameOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
- return &o.Name, true
-}
-
-// SetName sets field value
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetRd(v string) {
- o.Rd.Set(&v)
-}
-
-// SetRdNil sets the value for Rd to be an explicit nil
-func (o *WritableVRFRequest) SetRdNil() {
- o.Rd.Set(nil)
-}
-
-// UnsetRd ensures that no value is present for Rd, not even an explicit nil
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) GetTenant() int32 {
- if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
- return ret
- }
- return *o.Tenant.Get()
-}
-
-// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-// NOTE: If the value is an explicit nil, `nil, true` will be returned
-func (o *WritableVRFRequest) GetTenantOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
- return o.Tenant.Get(), o.Tenant.IsSet()
-}
-
-// HasTenant returns a boolean if a field has been set.
-func (o *WritableVRFRequest) HasTenant() bool {
- if o != nil && o.Tenant.IsSet() {
- return true
- }
-
- return false
-}
-
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableVRFRequest) SetTenant(v int32) {
- o.Tenant.Set(&v)
-}
-
-// SetTenantNil sets the value for Tenant to be an explicit nil
-func (o *WritableVRFRequest) SetTenantNil() {
- o.Tenant.Set(nil)
-}
-
-// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
-func (o *WritableVRFRequest) UnsetTenant() {
- o.Tenant.Unset()
-}
-
-// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetEnforceUnique(v bool) {
- o.EnforceUnique = &v
-}
-
-// GetDescription returns the Description field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetDescription(v string) {
- o.Description = &v
-}
-
-// GetComments returns the Comments field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetComments(v string) {
- o.Comments = &v
-}
-
-// GetImportTargets returns the ImportTargets field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetImportTargets(v []int32) {
- o.ImportTargets = v
-}
-
-// GetExportTargets returns the ExportTargets field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetExportTargets(v []int32) {
- o.ExportTargets = v
-}
-
-// GetTags returns the Tags field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetTags(v []NestedTagRequest) {
- o.Tags = v
-}
-
-// GetCustomFields returns the CustomFields field value if set, zero value otherwise.
-func (o *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) 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 *WritableVRFRequest) SetCustomFields(v map[string]interface{}) {
- o.CustomFields = v
-}
-
-func (o WritableVRFRequest) MarshalJSON() ([]byte, error) {
- toSerialize, err := o.ToMap()
- if err != nil {
- return []byte{}, err
- }
- return json.Marshal(toSerialize)
-}
-
-func (o WritableVRFRequest) ToMap() (map[string]interface{}, error) {
- toSerialize := map[string]interface{}{}
- 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
- }
- 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
- }
-
- return toSerialize, nil
-}
-
-func (o *WritableVRFRequest) 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",
- }
-
- 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)
- }
- }
-
- varWritableVRFRequest := _WritableVRFRequest{}
-
- err = json.Unmarshal(data, &varWritableVRFRequest)
-
- if err != nil {
- return err
- }
-
- *o = WritableVRFRequest(varWritableVRFRequest)
-
- additionalProperties := make(map[string]interface{})
-
- 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
- }
-
- return err
-}
-
-type NullableWritableVRFRequest struct {
- value *WritableVRFRequest
- isSet bool
-}
-
-func (v NullableWritableVRFRequest) Get() *WritableVRFRequest {
- return v.value
-}
-
-func (v *NullableWritableVRFRequest) Set(val *WritableVRFRequest) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableWritableVRFRequest) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableWritableVRFRequest) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableWritableVRFRequest(val *WritableVRFRequest) *NullableWritableVRFRequest {
- return &NullableWritableVRFRequest{value: val, isSet: true}
-}
-
-func (v NullableWritableVRFRequest) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableWritableVRFRequest) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go
index af9b02639a..e64cce0c93 100644
--- a/model_writable_wireless_lan_group_request.go
+++ b/model_writable_wireless_lan_group_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,7 +22,7 @@ var _ MappedNullable = &WritableWirelessLANGroupRequest{}
type WritableWirelessLANGroupRequest struct {
Name string `json:"name"`
Slug string `json:"slug"`
- Parent NullableInt32 `json:"parent,omitempty"`
+ Parent NullableInt32 `json:"parent"`
Description *string `json:"description,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
@@ -35,10 +35,11 @@ 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) *WritableWirelessLANGroupRequest {
+func NewWritableWirelessLANGroupRequest(name string, slug string, parent NullableInt32) *WritableWirelessLANGroupRequest {
this := WritableWirelessLANGroupRequest{}
this.Name = name
this.Slug = slug
+ this.Parent = parent
return &this
}
@@ -98,16 +99,18 @@ func (o *WritableWirelessLANGroupRequest) 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).
+// GetParent returns the Parent field value
+// If the value is explicit nil, the zero value for int32 will be returned
func (o *WritableWirelessLANGroupRequest) GetParent() int32 {
- if o == nil || IsNil(o.Parent.Get()) {
+ if o == nil || o.Parent.Get() == nil {
var ret int32
return ret
}
+
return *o.Parent.Get()
}
-// GetParentOk returns a tuple with the Parent field value if set, nil otherwise
+// GetParentOk returns a tuple with the Parent 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 *WritableWirelessLANGroupRequest) GetParentOk() (*int32, bool) {
@@ -117,30 +120,11 @@ func (o *WritableWirelessLANGroupRequest) GetParentOk() (*int32, bool) {
return o.Parent.Get(), o.Parent.IsSet()
}
-// 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.
+// SetParent sets field value
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 {
if o == nil || IsNil(o.Description) {
@@ -249,9 +233,7 @@ func (o WritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, error)
toSerialize := map[string]interface{}{}
toSerialize["name"] = o.Name
toSerialize["slug"] = o.Slug
- if o.Parent.IsSet() {
- toSerialize["parent"] = o.Parent.Get()
- }
+ toSerialize["parent"] = o.Parent.Get()
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
@@ -276,6 +258,7 @@ func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error)
requiredProperties := []string{
"name",
"slug",
+ "parent",
}
allProperties := make(map[string]interface{})
diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go
index 049e546263..098a33b0b1 100644
--- a/model_writable_wireless_lan_request.go
+++ b/model_writable_wireless_lan_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -22,10 +22,10 @@ var _ MappedNullable = &WritableWirelessLANRequest{}
type WritableWirelessLANRequest struct {
Ssid string `json:"ssid"`
Description *string `json:"description,omitempty"`
- Group NullableInt32 `json:"group,omitempty"`
+ Group NullableWirelessLANGroupRequest `json:"group,omitempty"`
Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"`
- Vlan NullableInt32 `json:"vlan,omitempty"`
- Tenant NullableInt32 `json:"tenant,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"`
@@ -112,9 +112,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() int32 {
+func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest {
if o == nil || IsNil(o.Group.Get()) {
- var ret int32
+ var ret WirelessLANGroupRequest
return ret
}
return *o.Group.Get()
@@ -123,7 +123,7 @@ func (o *WritableWirelessLANRequest) GetGroup() int32 {
// 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() (*int32, bool) {
+func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) {
if o == nil {
return nil, false
}
@@ -139,8 +139,8 @@ func (o *WritableWirelessLANRequest) HasGroup() bool {
return false
}
-// SetGroup gets a reference to the given NullableInt32 and assigns it to the Group field.
-func (o *WritableWirelessLANRequest) SetGroup(v int32) {
+// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field.
+func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) {
o.Group.Set(&v)
}
@@ -187,9 +187,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() int32 {
+func (o *WritableWirelessLANRequest) GetVlan() VLANRequest {
if o == nil || IsNil(o.Vlan.Get()) {
- var ret int32
+ var ret VLANRequest
return ret
}
return *o.Vlan.Get()
@@ -198,7 +198,7 @@ func (o *WritableWirelessLANRequest) GetVlan() int32 {
// 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() (*int32, bool) {
+func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) {
if o == nil {
return nil, false
}
@@ -214,8 +214,8 @@ func (o *WritableWirelessLANRequest) HasVlan() bool {
return false
}
-// SetVlan gets a reference to the given NullableInt32 and assigns it to the Vlan field.
-func (o *WritableWirelessLANRequest) SetVlan(v int32) {
+// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field.
+func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) {
o.Vlan.Set(&v)
}
@@ -230,9 +230,9 @@ func (o *WritableWirelessLANRequest) UnsetVlan() {
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
-func (o *WritableWirelessLANRequest) GetTenant() int32 {
+func (o *WritableWirelessLANRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -241,7 +241,7 @@ func (o *WritableWirelessLANRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -257,8 +257,8 @@ func (o *WritableWirelessLANRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableWirelessLANRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go
index 6a4b9ac6dd..84ae70e23c 100644
--- a/model_writable_wireless_link_request.go
+++ b/model_writable_wireless_link_request.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -20,18 +20,18 @@ var _ MappedNullable = &WritableWirelessLinkRequest{}
// WritableWirelessLinkRequest Adds support for custom fields and tags.
type WritableWirelessLinkRequest struct {
- InterfaceA int32 `json:"interface_a"`
- InterfaceB int32 `json:"interface_b"`
- Ssid *string `json:"ssid,omitempty"`
- Status *CableStatusValue `json:"status,omitempty"`
- Tenant NullableInt32 `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 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"`
AdditionalProperties map[string]interface{}
}
@@ -41,7 +41,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 int32, interfaceB int32) *WritableWirelessLinkRequest {
+func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest {
this := WritableWirelessLinkRequest{}
this.InterfaceA = interfaceA
this.InterfaceB = interfaceB
@@ -57,9 +57,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest {
}
// GetInterfaceA returns the InterfaceA field value
-func (o *WritableWirelessLinkRequest) GetInterfaceA() int32 {
+func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest {
if o == nil {
- var ret int32
+ var ret InterfaceRequest
return ret
}
@@ -68,7 +68,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() int32 {
// GetInterfaceAOk returns a tuple with the InterfaceA field value
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*int32, bool) {
+func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) {
if o == nil {
return nil, false
}
@@ -76,14 +76,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*int32, bool) {
}
// SetInterfaceA sets field value
-func (o *WritableWirelessLinkRequest) SetInterfaceA(v int32) {
+func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) {
o.InterfaceA = v
}
// GetInterfaceB returns the InterfaceB field value
-func (o *WritableWirelessLinkRequest) GetInterfaceB() int32 {
+func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest {
if o == nil {
- var ret int32
+ var ret InterfaceRequest
return ret
}
@@ -92,7 +92,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() int32 {
// GetInterfaceBOk returns a tuple with the InterfaceB field value
// and a boolean to check if the value has been set.
-func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*int32, bool) {
+func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) {
if o == nil {
return nil, false
}
@@ -100,7 +100,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*int32, bool) {
}
// SetInterfaceB sets field value
-func (o *WritableWirelessLinkRequest) SetInterfaceB(v int32) {
+func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) {
o.InterfaceB = v
}
@@ -137,9 +137,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) {
}
// GetStatus returns the Status field value if set, zero value otherwise.
-func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue {
+func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus {
if o == nil || IsNil(o.Status) {
- var ret CableStatusValue
+ var ret PatchedWritableCableRequestStatus
return ret
}
return *o.Status
@@ -147,7 +147,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue {
// 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() (*CableStatusValue, bool) {
+func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
@@ -163,15 +163,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool {
return false
}
-// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field.
-func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) {
+// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field.
+func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) {
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() int32 {
+func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
- var ret int32
+ var ret TenantRequest
return ret
}
return *o.Tenant.Get()
@@ -180,7 +180,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() int32 {
// 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() (*int32, bool) {
+func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) {
if o == nil {
return nil, false
}
@@ -196,8 +196,8 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool {
return false
}
-// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field.
-func (o *WritableWirelessLinkRequest) SetTenant(v int32) {
+// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field.
+func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) {
o.Tenant.Set(&v)
}
diff --git a/readme.md b/readme.md
index 7f0010031f..2dc9553228 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
# go-netbox
-[![GoDoc](https://pkg.go.dev/badge/github.com/netbox-community/go-netbox/v3)](https://pkg.go.dev/github.com/netbox-community/go-netbox/v3) [![Build Status](https://github.com/netbox-community/go-netbox/workflows/main/badge.svg?branch=master)](https://github.com/netbox-community/go-netbox/actions) [![Report Card](https://goreportcard.com/badge/github.com/netbox-community/go-netbox)](https://goreportcard.com/report/github.com/netbox-community/go-netbox)
+[![GoDoc](https://pkg.go.dev/badge/github.com/netbox-community/go-netbox/v4)](https://pkg.go.dev/github.com/netbox-community/go-netbox/v4) [![Build Status](https://github.com/netbox-community/go-netbox/workflows/main/badge.svg?branch=master)](https://github.com/netbox-community/go-netbox/actions) [![Report Card](https://goreportcard.com/badge/github.com/netbox-community/go-netbox)](https://goreportcard.com/report/github.com/netbox-community/go-netbox)
_go-netbox_ is —to nobody's surprise— the official [Go](https://go.dev) API client for the [Netbox](https://github.com/netbox-community/netbox) IPAM and DCIM service.
@@ -11,10 +11,10 @@ This project follows [Semantic Versioning](https://semver.org). The version of t
Use `go get` to add the library as a dependency to your project. Do not forget to run `go mod init` first if necessary.
```shell
-go get github.com/netbox-community/go-netbox/v3
+go get github.com/netbox-community/go-netbox/v4
# Or install a specific version
-go get github.com/netbox-community/go-netbox/v3@v3.7.7-0
+go get github.com/netbox-community/go-netbox/v4@v4.0.3-0
```
**Note:** dependencies should be managed with [Go modules](https://go.dev/doc/modules/managing-dependencies).
@@ -32,7 +32,7 @@ import (
"context"
"log"
- "github.com/netbox-community/go-netbox/v3"
+ "github.com/netbox-community/go-netbox/v4"
)
func main() {
@@ -58,7 +58,7 @@ import (
"context"
"log"
- "github.com/netbox-community/go-netbox/v3"
+ "github.com/netbox-community/go-netbox/v4"
)
func main() {
diff --git a/response.go b/response.go
index c481b651bb..d10be0f114 100644
--- a/response.go
+++ b/response.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// 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 c7e9f9b9e3..fac390124a 100755
--- a/scripts/fix-spec.py
+++ b/scripts/fix-spec.py
@@ -41,31 +41,6 @@
if schema['properties'][ntype]['format'] == 'binary':
schema['properties'][ntype].pop('nullable')
-# Fix "site.asns" and "interface.tagged_vlans"
-data["components"]["schemas"]["Site"]["properties"]["asns"]["items"].pop("type")
-data["components"]["schemas"]["Interface"]["properties"]["tagged_vlans"]["items"].pop("type")
-data["components"]["schemas"]["Site"]["properties"]["asns"]["items"]["$ref"] = "#/components/schemas/NestedASN"
-data["components"]["schemas"]["Interface"]["properties"]["tagged_vlans"]["items"]["$ref"] = "#/components/schemas/NestedVLAN"
-data["components"]["schemas"]["NestedASN"] = {
- "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},
- "asn": {
- "type": "integer",
- "maximum": 4294967295,
- "minimum": 1,
- "format": "int64",
- "description": "16- or 32-bit autonomous system number",
- },
- },
- "required": ["asn", "display", "id", "url"],
-}
-
# Save the spec file
with open(SPEC_PATH, 'w') as file:
yaml.dump(data, file, Dumper=yaml.CDumper, sort_keys=False)
diff --git a/scripts/generate-code.sh b/scripts/generate-code.sh
index 96257a66d4..8680a6e38a 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.5.0 \
+docker run --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.6.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
index 01e731d0ec..9380c73ae5 100644
--- a/test/api_circuits_test.go
+++ b/test/api_circuits_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_core_test.go b/test/api_core_test.go
index 2a73fdfe83..a69dd75c6f 100644
--- a/test/api_core_test.go
+++ b/test/api_core_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_dcim_test.go b/test/api_dcim_test.go
index 37885516b5..cc9db9429d 100644
--- a/test/api_dcim_test.go
+++ b/test/api_dcim_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_extras_test.go b/test/api_extras_test.go
index d062887924..b77ce0a320 100644
--- a/test/api_extras_test.go
+++ b/test/api_extras_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -407,32 +407,6 @@ func Test_netbox_ExtrasAPIService(t *testing.T) {
})
- t.Run("Test ExtrasAPIService ExtrasContentTypesList", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- resp, httpRes, err := apiClient.ExtrasAPI.ExtrasContentTypesList(context.Background()).Execute()
-
- require.Nil(t, err)
- require.NotNil(t, resp)
- assert.Equal(t, 200, httpRes.StatusCode)
-
- })
-
- t.Run("Test ExtrasAPIService ExtrasContentTypesRetrieve", func(t *testing.T) {
-
- t.Skip("skip test") // remove to run test
-
- var id int32
-
- resp, httpRes, err := apiClient.ExtrasAPI.ExtrasContentTypesRetrieve(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
@@ -1332,6 +1306,32 @@ func Test_netbox_ExtrasAPIService(t *testing.T) {
})
+ 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
@@ -1446,6 +1446,85 @@ func Test_netbox_ExtrasAPIService(t *testing.T) {
})
+ 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
diff --git a/test/api_ipam_test.go b/test/api_ipam_test.go
index 490d52e36d..83dc3ec598 100644
--- a/test/api_ipam_test.go
+++ b/test/api_ipam_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_schema_test.go b/test/api_schema_test.go
index c31c335b90..aafe3beec8 100644
--- a/test/api_schema_test.go
+++ b/test/api_schema_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_status_test.go b/test/api_status_test.go
index b54e29570b..ea8380f29a 100644
--- a/test/api_status_test.go
+++ b/test/api_status_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_tenancy_test.go b/test/api_tenancy_test.go
index aca81f29aa..6a8bd572cc 100644
--- a/test/api_tenancy_test.go
+++ b/test/api_tenancy_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_users_test.go b/test/api_users_test.go
index 939cd53cc2..d965356580 100644
--- a/test/api_users_test.go
+++ b/test/api_users_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_virtualization_test.go b/test/api_virtualization_test.go
index dd2cbf69c3..b76b5d6bd9 100644
--- a/test/api_virtualization_test.go
+++ b/test/api_virtualization_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_vpn_test.go b/test/api_vpn_test.go
index e6767fc89d..0f9c55d94d 100644
--- a/test/api_vpn_test.go
+++ b/test/api_vpn_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/test/api_wireless_test.go b/test/api_wireless_test.go
index 12ebe8f252..b92b2933cd 100644
--- a/test/api_wireless_test.go
+++ b/test/api_wireless_test.go
@@ -13,7 +13,7 @@ import (
"context"
"testing"
- openapiclient "github.com/netbox-community/go-netbox/v3"
+ openapiclient "github.com/netbox-community/go-netbox/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/utils.go b/utils.go
index 3777756e1f..31b2f6c2e5 100644
--- a/utils.go
+++ b/utils.go
@@ -3,7 +3,7 @@ NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-API version: 3.7.7 (3.7)
+API version: 4.0.3 (4.0)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.